English
Language : 

Z8F042ASJ020EG2156 Datasheet, PDF (147/280 Pages) Zilog, Inc. – High-Performance 8-Bit Microcontrollers
Z8 Encore! XP® F082A Series
Product Specification
132
#3
#3
#3
#3
4. Round the result and discard the least significant two bytes (equivalent to dividing by
216).
#3
#3
#3
#3
–
0x00
0x00
0x80
0x00
=
#4 MSB
#4 LSB
5. Determine the sign of the gain correction factor using the sign bits from Step 2. If the
offset-corrected ADC value and the gain correction word both have the same sign,
then the factor is positive and remains unchanged. If they have differing signs, then
the factor is negative and must be multiplied by –1.
#5 MSB
#5 LSB
6. Add the gain correction factor to the original offset corrected value.
#5 MSB
#5 LSB
+
#1 MSB
#1 LSB
=
#6 MSB
#6 LSB
7. Shift the result to the right, using the sign bit determined in Step 1, to allow for the
detection of computational overflow.
S→
#6 MSB
#6 LSB
PS022828-0413
PRELIMINARY
Operation