
Chapter 6
86
Data Format
DT300 Series boards use offset binary data encoding to represent unipolar and bipolar signals.
Using software, specify the data encoding as binary.
In software, the analog input value is returned as a code. To convert the code to voltage, use
the following formulas:
LSB = FSR
2
N
Vout = Code * LSB + offset
where,
•
LSB
is the least significant bit.
•
FSR
is the full-scale range. For the DT300 Series, the full-scale range is 10 for the unipolar
range or 20 for the bipolar range.
Note:
DT321 and DT322 boards support bipolar signals only.
•
N
is the number of bits of the A/D converter. For the DT301, DT302, DT303, and DT304
boards,
N
is 12. For the DT321 and DT322 boards,
N
is 16.
•
Vout
is the analog voltage.
•
Code
is the raw count used by the software to represent the voltage.
•
Offset
is the actual minus full-scale value. Theoretically, the minus full-scale value is 0.0 V
for the unipolar input range and
−
10 V for the bipolar input range. However, the actual
minus full-scale value may be slightly different than these values, such as 0.01 V and/or
−
9.99 V. For greatest accuracy, use the actual minus full-scale value when converting
codes to voltage.
For example, assume that you are using a DT301 board with a unipolar input range. The
actual minus full-scale value is 0.01 V. If the software returns a code of 2010 for the analog
input operation, determine the analog input voltage as follows:
LSB = 10 = 0.002441 V
4096
Vout = 2010 * 0.002441
+
0.01 V
Vout = 4.916 V
Similarly, assume that you are using a DT322 board with a bipolar input range. The actual
minus full-scale value is
−
9.98 V. If the software returns a code of 2010 for the analog input
operation, determine the analog input voltage as follows:
LSB = 20 = 0.000305 V
65536
Содержание DT300 Series
Страница 1: ...DT300 Series UM 16501 T User s Manual Title Page ...
Страница 4: ......
Страница 10: ...Contents 10 ...
Страница 14: ...About this Manual 14 ...
Страница 15: ...15 1 Overview Features 16 Supported Software 18 Accessories 19 Getting Started Procedure 20 ...
Страница 21: ...Part 1 Getting Started ...
Страница 22: ......
Страница 58: ...Chapter 4 58 ...
Страница 69: ...Part 2 Using Your Board ...
Страница 70: ......
Страница 106: ...Chapter 6 106 ...
Страница 124: ...Chapter 8 124 ...
Страница 125: ...125 9 Troubleshooting General Checklist 126 Technical Support 128 If Your Board Needs Factory Service 129 ...
Страница 130: ...Chapter 9 130 ...
Страница 156: ...Appendix C 156 ...
Страница 164: ...Index 164 ...