Z8F082A28100KIT ZILOG [Zilog, Inc.], Z8F082A28100KIT Datasheet - Page 132

no-image

Z8F082A28100KIT

Manufacturer Part Number
Z8F082A28100KIT
Description
Z8 Encore XP-R F08xA Series with eXtended Peripherals
Manufacturer
ZILOG [Zilog, Inc.]
Datasheet
PS024705-0405
Note:
Calibration and Compensation
The Z8 Encore! XP
error, with the compensation data stored in Flash memory. Alternatively, user code can
perform its own calibration, storing the values into Flash themselves. Thirdly, the user
code can perform a manual offset calibration during DIFFERENTIAL mode operation.
Factory Calibration
Devices that have been factory calibrated contain 30 bytes of calibration data in the Flash
option bit space. This data consists of 3 bytes for each input mode. See “ZiLOG Calibra-
tion Bits” on page 145. There is 1 byte for offset, 2 bytes for gain correction.
User Calibration
If the user has precision references available, its own external calibration can be per-
formed using any of the three available input modes. Because the calibration data consid-
ers buffer offset and non-linearity, it is recommended that this calibration be performed
separately for each of the ADC input modes planned for use.
Manual Offset Calibration
When uncalibrated, the ADC has significant offset (up to 35 mV with unity gain and up to
250 mV in 20x gain mode). Subsequently, manual offset calibration capability is built into
the block. When the
UAL OFFSET CALIBRATION mode, the differential inputs to the ADC are shorted
together by an internal switch. Reading the ADC value at this point produces 0 in an ideal
system. The value actually read is the ADC offset. This value can be stored in flash and
accessed by user code to compensate for the input offset error.
There is no provision for manual gain calibration.
Software Compensation Procedure
The value read from the ADC high and low byte registers are uncompensated. The user
mode software must apply gain and offset correction to this uncompensated value for
maximum accuracy. The following formula yields the compensated value:
ADC
where GAINCAL is the gain calibration byte, OFFCAL is the offset calibration byte and
ADC
two’s complement format, as are the compensated and uncompensated ADC values.
The offset compensation is performed first, followed by the gain compensation. One bit of
resolution is lost because of rounding on both the offset and gain computations. As a result
the ADC registers read back 13 bits: 1 sign bit, two calibration bits lost to rounding and 10
data bits.
comp
uncomp
= (ADC
is the uncompensated value read from the ADC. The OFFCAL value is in
uncomp
®
ADC Control Register 0
F08xA Series ADC can be factory calibrated for offset error and gain
- OFFCAL) + ((ADC
P R E L I M I N A R Y
sets the input mode (ANAIN[2:0]) to MAN-
uncomp
- OFFCAL)*GAINCAL)/2
Z8 Encore! XP
Product Specification
Analog-to-Digital Converter
®
F08xA Series
16
114

Related parts for Z8F082A28100KIT