
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.
Содержание MPC5566
Страница 12: ...MPC5566 Microcontroller Reference Manual Devices Supported MPC5566 MPC5566 RM Rev 2 0 23 Apr 2008...
Страница 81: ...Introduction MPC5566 Microcontroller Reference Manual Rev 2 1 24 Freescale Semiconductor...
Страница 135: ...Signal Description MPC5566 Microcontroller Reference Manual Rev 2 2 54 Freescale Semiconductor...
Страница 189: ...Reset MPC5566 Microcontroller Reference Manual Rev 2 4 20 Freescale Semiconductor...
Страница 331: ...System Integration Unit SIU MPC5566 Microcontroller Reference Manual Rev 2 6 128 Freescale Semiconductor...
Страница 343: ...Crossbar Switch XBAR MPC5566 Microcontroller Reference Manual Rev 2 7 12 Freescale Semiconductor...
Страница 361: ...Error Correction Status Module ECSM MPC5566 Microcontroller Reference Manual Rev 2 8 18 Freescale Semiconductor...
Страница 455: ...Interrupt Controller INTC MPC5566 Microcontroller Reference Manual Rev 2 10 42 Freescale Semiconductor...
Страница 603: ...Flash Memory MPC5566 Microcontroller Reference Manual Rev 2 13 38 Freescale Semiconductor...
Страница 609: ...SRAM MPC5566 Microcontroller Reference Manual Rev 2 14 6 Freescale Semiconductor...
Страница 679: ...Boot Assist Module BAM MPC5566 Microcontroller Reference Manual Rev 2 16 20 Freescale Semiconductor...
Страница 997: ...Deserial Serial Peripheral Interface DSPI MPC5566 Microcontroller Reference Manual Rev 2 20 72 Freescale Semiconductor...
Страница 1037: ...Enhanced Serial Communication Interface eSCI MPC5566 Microcontroller Reference Manual Rev 2 21 40 Freescale Semiconductor...
Страница 1073: ...MPC5566 Microcontroller Reference Manual Rev 2 22 36 Freescale Semiconductor...
Страница 1081: ...Voltage Regulator Controller VRC and POR Module MPC5566 Microcontroller Reference Manual Rev 2 23 8 Freescale Semiconductor...
Страница 1093: ...IEEE 1149 1 Test Access Port Controller JTAGC MPC5566 Microcontroller Reference Manual Rev 2 24 12 Freescale Semiconductor...
Страница 1185: ...Nexus MPC5566 Microcontroller Reference Manual Rev 2 25 92 Freescale Semiconductor...
Страница 1267: ...MPC5566 Reference Manual Revision History MPC5566 Microcontroller Reference Manual Rev 2 Freescale Semiconductor C 10...
Страница 1268: ...MPC5566 Reference Manual Revision History MPC5566 Microcontroller Reference Manual Rev 2 Freescale Semiconductor C 11...