©
National Instruments Corporation
3-1
Static DIO Register-Level Programmer Manual
3
Programming
This chapter contains basic programming information for your
NI 6509/651
x
/6520/6521/6528 devices. Programming your NI 6509/651
x
/6520/6521/6528
device involves writing to and reading from registers on the device. Registers are listed in
Chapter 2,
Programming Examples
Most of the register-level functionality is explained through a separate set of examples in the
NI Measurement Hardware Driver Development Kit (DDK). These examples show how to
program the device register and isolate you from register addressing and MITE initialization.
The NI Measurement Hardware DDK works on a variety of operating systems, including
Linux and Mac OS X. It also includes an OS generic bus interface you can use to support
additional operating systems. To download the NI Measurement Hardware DDK and
NI 6509/651
x
/6520/6521/6528 examples, go to
ni.com/info
and enter
mhddk
.
Using Interrupts and Other Advanced Functionality
The NI Measurement Hardware DDK does not directly support interrupts. As a result, it does
not provide programming examples for change detection, the watchdog timer, and other
advanced functionality. If you wish to program these features at the register level, you must
install your own interrupt service routines. Refer to the register descriptions in Chapter 2,
, for information on the relevant registers for these features.
Programming Your Device without the NI Measurement
Hardware DDK
If you chose not to use the NI Measurement Hardware DDK, you will need to detect your
device and initialize the PCI bus and MITE interface.
Содержание PCI-6528
Страница 1: ...PCI 6528...