
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.
Summary of Contents for AT-MIO-16D
Page 16: ......
Page 23: ......
Page 185: ......
Page 206: ......
Page 207: ......
Page 208: ......
Page 209: ......
Page 210: ......
Page 211: ......
Page 212: ......
Page 213: ......
Page 214: ......
Page 215: ......
Page 216: ......
Page 217: ......
Page 218: ......
Page 219: ......
Page 220: ......
Page 221: ......
Page 222: ......
Page 223: ......
Page 224: ......
Page 225: ......
Page 226: ......
Page 227: ......
Page 228: ......
Page 229: ......
Page 230: ......
Page 231: ......
Page 232: ......
Page 233: ......
Page 234: ......
Page 235: ......
Page 236: ......
Page 237: ......
Page 238: ......
Page 239: ......
Page 240: ......
Page 241: ......
Page 242: ......
Page 243: ......
Page 244: ......
Page 246: ......
Page 247: ......
Page 248: ......
Page 249: ......
Page 250: ......
Page 251: ......
Page 252: ......
Page 253: ......
Page 254: ......
Page 255: ......
Page 256: ......
Page 257: ......
Page 258: ......
Page 259: ......
Page 260: ......
Page 261: ......