500-003111-000
4-15
4.6.3
Reading ADC Codes
The data format which applies when reading the ADC Data Register is
shown in Table 4.6.3-1. Coding can be straight binary, offset binary, or two's
complement, depending upon the configuration of the ADC jumper selections and
the state of the TWO'S COMPL control bit. Table 4.6.3-1 also summarizes the
converter output codes that are produced at major points within the full-scale
ranges shown.
For any offset binary converter output code (BIPOLAR RANGE), the
associated input voltage is obtained with the expression:
INPUT (Volts) = -E
FSR
/2 + [E
FSR
x (DECIMAL OUTPUT CODE)] / [4096 x GAIN]
where E
FSR
is the full-scale range voltage (e.g.: E
FSR
= 10 Volts for the ±5 V range),
and gain is the program-selected gain of the Programmable Gain Amplifier (PGA).
The input voltage for a straight binary code (UNIPOLAR RANGE) is:
INPUT (Volts) = E
FSR
x [ DECIMAL OUTPUT CODE ] / [4096 x GAIN].
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com