![Freescale Semiconductor PXR4030 Скачать руководство пользователя страница 1108](http://html1.mh-extra.com/html/freescale-semiconductor/pxr4030/pxr4030_reference-manual_23306601108.webp)
Enhanced Queued Analog-to-Digital Converter (EQADC)
27-126
Freescale Semiconductor
PXR40 Microcontroller Reference Manual, Rev. 1
27.8.6
ADC Result Calibration
The ADC result calibration process consists of two steps: determining the gain and offset calibration
constants, and calibrating the raw results generated by the on-chip ADCs by solving the following equation
discussed in
Section 27.7.6.6, ADC Calibration Feature
CAL_RES = GCC * R OCC+2;
Eqn. 27-1
The calibration constants GCC and OCC can be calculated from equation
provided that two
pairs of expected (CAL_RES) and measured (RAW_RES) result values are available for two different
input voltages. Most likely calibration points to be used are 25% VREF
1
and 75% VREF since they are far
apart but not too close to the end points of the full input voltage range. This allows for calculations of more
representative calibration constants. The EQADC provides these voltages via channel numbers 43 and 44.
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 * RAW_RES
75%VREF
+ OCC+2;
CAL_RES
25%VREF
= GCC * RAW_RES
25%VREF
+ OCC+2;
Thus;
GCC = (CAL_RES
75%VREF
– CAL_RES
25%VREF
) / (RAW_RES
75%VREF
– RAW_RES
25%VREF
);
Eqn. 27-2
OCC = CAL_RES
75%VREF
– GCC*RAW_RES
75%VREF
– 2;
Eqn. 27-3
or
OCC = CAL_RES
25%VREF
– GCC*RAW_RES
25%VREF
– 2;
Eqn. 27-4
After being calculated, the GCC and OCC values must be written to ADC registers:
ADC0/1 Gain Calibration Constant Registers (ADC0_GCCR and ADC1_GCCR)
, and
ADC0/1 Offset Calibration Constant Registers (ADC0_OCCR and ADC1_OCCR)
configuration commands.
The EQADC will automatically calibrate the results, according to equation
conversion command that has its CAL bit asserted using the GCC and OCC values stored in the ADC
calibration registers.
27.8.6.1
MAC Configuration Procedure
The following steps illustrate how to configure the calibration hardware, namely, determining the values
of the gain and offset calibration constants, and the writing of these constants to the calibration registers.
The procedure below should be performed for ADC0 and for 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
).
1.
VREF=VRH-VRL
Содержание PXR4030
Страница 1: ...PXR40 Microcontroller Reference Manual Devices Supported PXR4030 PXR4040 PXR40RM Rev 1 06 2011...
Страница 30: ...PXR40 Microcontroller Reference Manual Rev 1 Freescale Semiconductor xxx...
Страница 40: ...PXR40 Microcontroller Reference Manual Rev 1 xl Freescale Semiconductor...
Страница 66: ...Memory Map PXR40 Microcontroller Reference Manual Rev 1 2 4 Freescale Semiconductor...
Страница 120: ...Signal Descriptions 3 54 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 158: ...Power Management Controller PMC 5 26 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 182: ...Frequency Modulated Phase Locked Loop FMPLL 6 24 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 278: ...System Integration Unit SIU 7 96 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 280: ...System Information Module PXR40 Microcontroller Reference Manual Rev 1 8 2 Freescale Semiconductor...
Страница 300: ...Boot Assist Module BAM 9 20 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 346: ...Interrupts and Interrupt Controller INTC 10 46 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 352: ...General Purpose Static RAM SRAM 11 6 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 432: ...Core e200z7 Overview PXR40 Microcontroller Reference Manual Rev 1 13 44 Freescale Semiconductor...
Страница 460: ...Peripheral Bridge PBRIDGE 15 16 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 478: ...Memory Protection Unit MPU 16 18 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 496: ...Error Correction Status Module ECSM 17 18 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 524: ...Periodic Interrupt Timer PIT_RTI 20 12 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 740: ...FlexRay Communication Controller FLEXRAY 22 156 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 860: ...FlexCAN Module 24 50 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 928: ...Deserial Serial Peripheral Interface DSPI 25 68 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 982: ...Enhanced Serial Communication Interface eSCI 26 54 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 1114: ...Enhanced Queued Analog to Digital Converter EQADC 27 132 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 1167: ...Decimation Filter Freescale Semiconductor 28 53 PXR40 Microcontroller Reference Manual Rev 1...
Страница 1168: ...Decimation Filter 28 54 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 1262: ...Enhanced Time Processing Unit eTPU2 29 94 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Страница 1399: ...Nexus Development Interface NDI Freescale Semiconductor 31 83 PXR40 Microcontroller Reference Manual Rev 1...
Страница 1400: ...Nexus Development Interface NDI 31 84 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...