Programming
Chapter 5
AT-MIO-64F-5 User Manual
5-2
© National Instruments Corporation
Initializing the AT-MIO-64F-5
The AT-MIO-64F-5 hardware must be initialized for the AT-MIO-64F-5 circuitry to operate
properly. To initialize the AT-MIO-64F-5 hardware, complete the following steps:
1. Write 0 to Command Registers <1..4>.
2. Access the following strobe registers:
CONFIGMEMCLR Register
DAQ Clear Register
DMATC A and B Clear Registers
DMA Channel Clear Register
DAC Clear Register
TMRREQ Clear Register
3. Initialize the Am9513A (see the next section,
Initializing the Am9513A
).
4. Disable all RTSI switch connections (see the
Programming the RTSI Switch
section later in
this chapter).
This sequence leaves the AT-MIO-64F-5 circuitry in the following state:
¥
DMA and interrupts are disabled.
¥
The DMA circuitry is cleared.
¥
The outputs of counter/timers are in the high-impedance state.
¥
The analog input circuitry is initialized.
¥
The analog output is in immediate update mode.
¥
The ADC and DAC FIFOs are cleared.
¥
The DIO ports A and B are set for input mode.
Initializing the Am9513A
Use the sequence in Figure 5-1 to initialize the Am9513A Counter/Timer. All writes are 16-bit
operations. All values are given in hexadecimal.
After this sequence of writes, the Am9513A Counter/Timer is in the following state:
¥
16-bit mode is enabled.
¥
The BCD scaler division is selected.
¥
The FOUT signal is turned off.
¥
All counter OUT output pins are set to the high-impedance output state.
¥
All counters are loaded with a nonterminal count value.
For additional details concerning the Am9513A Counter/Timer, see Appendix E,
AMD Am9513
Data Sheet
.
Содержание AT-MIO-64F-5
Страница 13: ......
Страница 16: ......
Страница 200: ......
Страница 201: ......
Страница 202: ......
Страница 203: ......
Страница 204: ......
Страница 205: ......
Страница 206: ......
Страница 207: ......
Страница 208: ......
Страница 209: ......
Страница 210: ......
Страница 211: ......
Страница 212: ......
Страница 213: ......
Страница 214: ......
Страница 215: ......
Страница 216: ......
Страница 217: ......
Страница 218: ......
Страница 219: ......
Страница 220: ......
Страница 221: ......
Страница 222: ......
Страница 223: ......
Страница 224: ......
Страница 225: ......
Страница 226: ......
Страница 227: ......
Страница 228: ......
Страница 229: ......
Страница 230: ......
Страница 231: ......
Страница 232: ......
Страница 233: ......
Страница 234: ......
Страница 235: ......
Страница 236: ......
Страница 237: ......
Страница 238: ......