Manual PCIe-DA16-6
17
The value stored is a number from 0 to 6, representing the 7 ranges (as shown in the
table below). These are read from the range selection switches in real time.
Byte Address
Channel
Value
Range
Base + F0h
Channel 0
0
0 - 5V
Base + F1h
Channel 1
1
0 - 2.5V
Base + F2h
Channel 2
2
0 - 10V
Base + F3h
Channel 3
3
-5 - +5V
Base + F4h
Channel 4
4
-2.5 - +2.5V
Base + F5h
Channel 5
5
-10 - +10V
6
4 to 20mA
Table 7-2:
Range Data Per Channel Locations
The currently configured Range Code for each DAC can be read using the
following code:
RangeCode = inportb(C 0xF0 + DAC);