Chapter 4
Programming
© National Instruments Corporation
4-9
AT-MIO-16D User Manual
Command Register 2
Command Register 2 contains 10 bits that control AT-MIO-16D interrupts, digital output drivers,
and scan modes used by the data acquisition circuitry.
Address:
Base a 2 (hex)
Type:
Write-only
Word Size:
16-bit
Bit Map:
15
14
13
12
11
10
9
8
X
X
X
X
X
X
DOUTEN1
DOUTEN0
7
6
5
4
3
2
1
0
INTEN
INT2EN
LDAC
SCN2
A4RCV
A4DRV
A2RCV
A2DRV
Bit
Name
Description
15-10
X
Don't care bits.
9
DOUTEN1
This bit enables and disables driving of the 4-bit MIO-16 digital
output port 1 by the MIO-16 Digital Output Register. If
DOUTEN1 is set, the MIO-16 Digital Output Register drives the
digital lines. If DOUTEN1 is cleared, the MIO-16 Digital Output
Register drivers are set to a high-impedance state, thereby allowing
an external device to drive the digital lines.
8
DOUTEN0
This bit enables and disables driving of the 4-bit MIO-16 digital
output port 0 by the MIO-16 Digital Output Register. If
DOUTEN0 is set, the MIO-16 Digital Output Register drives the
digital lines. If DOUTEN0 is cleared, the MIO-16 Digital Output
Register drivers are set to a high-impedance state, thereby allowing
an external device to drive the digital lines.
7
INTEN
This bit enables and disables any interrupt generated from the
MIO-16 circuitry of the AT-MIO-16D board. If this bit is cleared,
all MIO-16 interrupts are disabled from the AT-MIO-16D board.
To generate a specific interrupt, INTEN and a specific interrupt
enable bit must be set.
6
INT2EN
This bit enables and disables the generation of an interrupt on the
OUT2 signal of the Am9513A Counter/Timer. If INT2EN is set,
interrupt requests are generated when a rising edge on OUT2 is
detected. The interrupt is cleared by writing to the INT2CLR
Register. When INT2EN is cleared, OUT2 interrupts are not
generated. This interrupt is useful for waveform generation or
interrupt generation on an external signal connected to OUT2.
Содержание AT-MIO-16D
Страница 16: ......
Страница 23: ......
Страница 185: ......
Страница 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: ......
Страница 239: ......
Страница 240: ......
Страница 241: ......
Страница 242: ......
Страница 243: ......
Страница 244: ......
Страница 246: ......
Страница 247: ......
Страница 248: ......
Страница 249: ......
Страница 250: ......
Страница 251: ......
Страница 252: ......
Страница 253: ......
Страница 254: ......
Страница 255: ......
Страница 256: ......
Страница 257: ......
Страница 258: ......
Страница 259: ......
Страница 260: ......
Страница 261: ......