Z8 Encore! XP® 4K Series
Product Specification
121
Compensation Steps:
1. Correct for Offset
ADC MSB
ADC LSB
Offset LSB
#1 LSB
-
Offset MSB
=
#1 MSB
2. Take absolute value of the offset corrected ADC value if negative – the gain correction
factor is computed assuming positive numbers, with sign restoration afterward.
#2 MSB
Also take absolute value of the gain correction word if negative.
AGain MSB AGain LSB
#2 LSB
3. Multiply by Gain Correction Word. If in DIFFERENTIAL mode, there are two gain
correction values: one for positive ADC values, another for negative ADC values.
Based on the sign of #2, use the appropriate Gain Correction Word.
#2 MSB
AGain MSB
#3
#2 LSB
AGain LSB
#3
*
=
#3
#3
4. Round the result and discard the least significant two bytes (this is equivalent to
dividing by 216).
#3
#3
#3
#3
-
0x00
0x00
0x80
0x00
=
#4 MSB
#4 LSB
5. Determine sign of the gain correction factor using the sign bits from step #2. If the
offset corrected ADC value AND the gain correction word have the same sign, then
the factor is positive and is left unchanged. If they have differing signs, then the factor
is negative and should be multiplied by -1.
#5 MSB
#5 LSB
PS022815-0206
Analog-to-Digital Converter