Enhanced Queued Analog-to-Digital Converter (eQADC)
MPC5565 Microcontroller Reference Manual, Rev. 1.0
18-118
Freescale Semiconductor
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_RES75%VREF = GCC * RAW_RES75%VREF + OCC +2;
Eqn. 18-2
CAL_RES25%VREF = GCC * RAW_RES25%VREF + OCC +2;
Eqn. 18-3
Thus;
GCC = (CAL_RES75%VREF - CAL_RES25%VREF) / (RAW_RES75%VREF - RAW_RES25%VREF);
Eqn. 18-4
OCC = CAL_RES75%VREF - GCC*RAW_RES75%VREF – 2;
Eqn. 18-5
or
OCC = CAL_RES25%VREF - GCC*RAW_RES25%VREF – 2;
Eqn. 18-6
After being calculated, the GCC and OCC values must be written to ADC0_GCCR and ADC1_GCCR
registers (see
Section 18.3.3.4, “ADCn Gain Calibration Constant Registers (ADC0_GCCR and
”) and the ADC0_OCCR and ADC1_OCCR registers (see
Section 18.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.
18.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%VREF (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%VREF (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.
Содержание MPC5565
Страница 18: ...MPC5565 Microcontroller Reference Manual Devices Supported MPC5565 MPC5565 RM Rev 1 0 09 2007...
Страница 34: ...MPC5565 Reference Manual Rev 1 0 Freescale Semiconductor 15...
Страница 35: ...MPC5565 Reference Manual Rev 1 0 16 Freescale Semiconductor...
Страница 325: ...Error Correction Status Module ECSM MPC5565 Microcontroller Reference Manual Rev 1 0 8 16 Freescale Semiconductor...
Страница 515: ...External Bus Interface EBI MPC5565 Microcontroller Reference Manual Rev 1 0 12 70 Freescale Semiconductor...
Страница 553: ...Flash Memory MPC5565 Microcontroller Reference Manual Rev 1 0 13 38 Freescale Semiconductor...
Страница 559: ...SRAM MPC5565 Microcontroller Reference Manual Rev 1 0 14 6 Freescale Semiconductor...
Страница 577: ...Boot Assist Module BAM MPC5565 Microcontroller Reference Manual Rev 1 0 15 18 Freescale Semiconductor...
Страница 895: ...Deserial Serial Peripheral Interface DSPI MPC5565 Microcontroller Reference Manual Rev 1 0 19 72 Freescale Semiconductor...
Страница 973: ...Preface MPC5565 Microcontroller Reference Manual Rev 1 0 21 36 Freescale Semiconductor...
Страница 1145: ...MPC5565 Register Map MPC5565 Microcontroller Reference Manual Rev 1 0 A 60 Freescale Semiconductor...
Страница 1153: ...Calibration MPC5565 Microcontroller Reference Manual Rev 1 0 B 8 Freescale Semiconductor...