Chapter 5
64
For example, if the software returns a code of 3072 for the analog input operation, determine
the analog input voltage as follows:
Voltage = (2.44 * 3072) / 4096 = 1.83 V
Converting a Twos Complement Code to a Voltage
To convert a twos complement code into a voltage on the DT9812-10V, DT9812-10V-OEM,
DT9812A, DT9813-10V, DT9813A, DT9814-10V, or DT9814A module, use the following
formula:
Voltage = (20 * Code) / 4096
where,
• 20 is the full-scale range of the module (-10V to +10V)
•
Code
is the raw count used by the software to represent the voltage
• 4096 is the input resolution (12 bits)
•
Voltage
is the analog voltage
For example, assume that the software returns a code of 1040 for the analog input value.
Determine the analog input voltage as follows:
Voltage = (20 * 1040) /4096 = 5.078 V
Error Conditions
An overrun condition is reported if the A/D sample clock rate is too fast. This error is reported
if a new A/D sample clock pulse occurs while the ADC is busy performing a conversion from
the previous A/D sample clock pulse. It is up to the host application to handle this error by
either ignoring the error or stopping acquisition. To avoid this error, use a slower sampling
rate or increase the buffer size and/or number of buffers.
Содержание DT9812 Series
Страница 1: ...DT9812 UM 20769 R DT9813 and User s Manual DT9814 Series Title Page ...
Страница 4: ......
Страница 12: ...About this Manual 12 ...
Страница 13: ...13 1 Overview Key Hardware Features 14 Supported Software 15 Getting Started Procedure 16 ...
Страница 17: ...Part 1 Getting Started ...
Страница 18: ......
Страница 26: ...Chapter 2 26 ...
Страница 53: ...Part 2 Using Your Module ...
Страница 54: ......
Страница 76: ...Chapter 5 76 ...
Страница 88: ...Chapter 6 88 ...
Страница 89: ...89 7 Troubleshooting General Checklist 90 Technical Support 92 If Your Module Needs Factory Service 93 ...
Страница 94: ...Chapter 7 94 ...
Страница 113: ...113 B Screw Terminal and Connector Pin Assignments ...
Страница 124: ...Index 124 writing programs in C C 15 Visual Basic 15 Visual Basic NET 15 Visual C 15 Visual C 15 ...