Appendix E
Register-Level Programming
© National Instruments Corporation
E-21
Lab-PC+ User Manual
updated when a low level is detected on either EXTUPDATE* or OUTA2. If LDAC0 is set low,
the analog output from DAC0 is updated as soon as the DAC0 Data Register is written to.
LDAC1 controls the updating of DAC1 analog output in a similar manner.
The output voltage generated from the digital code depends on the configuration, unipolar or
bipolar, of the associated analog output channel. Unipolar or bipolar configuration is determined
by jumper settings described in Chapter 2, Configuration and Installation. Table E-3 shows the
output voltage versus digital code for a unipolar analog output configuration. Table E-4 shows
the voltage versus digital code for a bipolar analog output configuration.
The following formula calculates the voltage output versus digital code for a unipolar analog
output configuration and straight binary coding:
V
out
= 10.0 *
(digital code)
4,096
The digital code in the preceding formula is a decimal value ranging from 0 to +4,095. Notice
that straight binary coding is selected by clearing the 2SDAC bit in Command Register 2.
Table E-3. Analog Output Voltage Versus Digital Code
(Unipolar Mode, Straight Binary Coding)
Digital Code
Voltage Output
(Decimal)
(Hex)
0
0000
0 V
1
0001
2.4414 mV
2,048
0800
5.0 V
4,095
0FFF
9.9976 V
Summary of Contents for Low-Cost Multifunction I/O Board for ISA...
Page 89: ......
Page 90: ......
Page 91: ......
Page 92: ......
Page 93: ......
Page 94: ......
Page 95: ......
Page 96: ......
Page 97: ......
Page 98: ......
Page 99: ......
Page 101: ......
Page 102: ......
Page 103: ......
Page 104: ......
Page 105: ......
Page 106: ......
Page 107: ......
Page 108: ......
Page 109: ......
Page 110: ......
Page 111: ......
Page 112: ......
Page 113: ......
Page 114: ......
Page 115: ......
Page 116: ......