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.
Содержание 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: ......