
Enhanced Queued Analog-to-Digital Converter (eQADC)
MPC5566 Microcontroller Reference Manual, Rev. 2
Freescale Semiconductor
19-117
The raw, uncalibrated results for these input voltages are obtained by converting these channels with
conversion commands that have the CAL bit negated.
The transfer equations for when sampling these reference voltages are:
CAL_RES
75%VREF
= GCC x RAW_RES
75%VREF
+ OCC + 2;
Eqn. 19-2
CAL_RES
25%VREF
= GCC x RAW_RES
25%VREF
+ OCC + 2;
Eqn. 19-3
Thus;
GCC = (CAL_RES
75%VREF
- CAL_RES
25%VREF
) / (RAW_RES
75%VREF
- RAW_RES
25%VREF
);
Eqn. 19-4
OCC = CAL_RES
75%VREF
- GCC x RAW_RES
75%VREF
– 2;
Eqn. 19-5
or
OCC = CAL_RES
25%VREF
- GCC x RAW_RES
25%VREF
– 2;
Eqn. 19-6
After being calculated, the GCC and OCC values must be written to ADC0_GCCR and ADC1_GCCR
registers (see
Section 19.3.3.4, “ADCn Gain Calibration Constant Registers (ADC0_GCCR and
”) and the ADC0_OCCR and ADC1_OCCR registers (see
Section 19.3.3.5, “ADCn Offset
Calibration Constant Registers (ADC0_OCCR and ADC1_OCCR)
”) using write configuration
commands.
The eQADC automatically calibrates the results, according to
command that has its CAL bit asserted using the GCC and OCC values stored in the ADC calibration
registers.
19.5.6.1
MAC Configuration Procedure
The following steps illustrate how to configure the calibration hardware, that is, determining the values of
the gain and offset calibration constants, and the writing these constants to the calibration registers. This
procedure should be performed for both ADC0 and ADC1.
1. Convert channel 44 with a command that has its CAL bit negated and obtain the raw, uncalibrated
result for 25% V
REF
(RAW_RES
25%VREF
).
2. Convert channel 43 with a command that has its CAL bit negated and obtain the raw, uncalibrated
result for 75% V
REF
(RAW_RES
75%VREF
).
3. Because the expected values for the conversion of these voltages are known (CAL_RES
25%VREF
and CAL_RES
75%VREF
), GCC and OCC values can be calculated from
using these values, and the results determined in steps 1 and 2.
4. Reformat GCC and OCC to the proper data formats as specified in
.” GCC is an unsigned 15-bit fixed point value and OCC is a signed
14-bit value.
Summary of Contents for MPC5566
Page 81: ...Introduction MPC5566 Microcontroller Reference Manual Rev 2 1 24 Freescale Semiconductor...
Page 135: ...Signal Description MPC5566 Microcontroller Reference Manual Rev 2 2 54 Freescale Semiconductor...
Page 189: ...Reset MPC5566 Microcontroller Reference Manual Rev 2 4 20 Freescale Semiconductor...
Page 603: ...Flash Memory MPC5566 Microcontroller Reference Manual Rev 2 13 38 Freescale Semiconductor...
Page 609: ...SRAM MPC5566 Microcontroller Reference Manual Rev 2 14 6 Freescale Semiconductor...
Page 1073: ...MPC5566 Microcontroller Reference Manual Rev 2 22 36 Freescale Semiconductor...
Page 1185: ...Nexus MPC5566 Microcontroller Reference Manual Rev 2 25 92 Freescale Semiconductor...