
Programming
Chapter 4
AT-MIO-16D User Manual
4-72
© National Instruments Corporation
The formula for the voltage output versus digital code for a bipolar analog output configuration
in straight binary form is as follows:
V
out
= V
ref
* (digital code - 2,048)
2,048
where V
ref
is the reference voltage applied to the analog output channel. The digital code in the
above formula is a decimal value ranging from 0 to 4,095.
The formula for the voltage output versus digital code for a bipolar analog output configuration
in two's complement form is as follows:
V
out
= V
ref
* (digital code)
2,048
where V
ref
is the positive reference voltage applied to the analog output channel. The digital
code in the above formula is a decimal value ranging from -2,048 to +2,047.
Table 4-6. Analog Output Voltage Versus Digital Code (Bipolar Mode)
Digital Code
Straight Binary
Two’s Complement
Voltage Output
Decimal
Hex
Decimal
Hex
Vref = 10 V
Vout
0
1
1,024
2,047
2,048
2,049
3,072
4,095
0
1
0400
07FF
0800
0801
0C00
0FFF
-2,048
-2,047
-1,024
-1
0
1
1,024
2,047
F800
F801
FC00
FFFF
0
1
0400
07FF
0
Vref * (-2,047)
2,048
-Vref
2
-Vref
2,048
0
Vref
2,048
Vref
2
Vref * 2,047
2,048
-10 V
-9.9951 V
-5 V
-2.44 mV
0 V
2.44 mV
5 V
9.9951 V
Programming the MIO-16 Digital I/O Circuitry
The digital input circuitry is controlled and monitored using the MIO-16 Digital Input Register,
the MIO-16 Digital Output Register, and the two bits DOUT0EN and DOUT1EN in Command
Register 2. See the register bit descriptions earlier in this chapter for more information.
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: ......