Enhanced Queued Analog-to-Digital Converter (eQADC)
MPC5565 Microcontroller Reference Manual, Rev. 1.0
Freescale Semiconductor
18-91
•
The addition of two reduces the maximum quantization error of the ADC. Refer to
Section 18.5.6.3, “Quantization Error Reduction During Calibration
Calibration constants GCC and OCC are determined by taking two samples of known reference voltages
and using these samples to calculate their values. For details and an example about how to calculate the
calibration constants and use them in result calibration refer to
Section 18.5.6, “ADC Result Calibration
After it is calculated, GCC is stored in ADC0_GCCR and ADC1_GCCR (see
Gain Calibration Constant Registers (ADC0_GCCR and ADC1_GCCR)
”) and OCC in ADC0_OCCR and
ADC1_OCCR (see
Section 18.3.3.5, “ADCn Offset Calibration Constant Registers (ADC0_OCCR and
”) from where their values are fed to the MAC unit. Since the analog characteristics of each
on-chip ADC differs, each ADC has an independent pair of calibration constants.
A conversion result is calibrated according to the status of CAL bit in the command that initiated the
conversion. If the CAL bit is asserted, the eQADC automatically calculates the calibrated result before
sending the result to the appropriate RFIFO. If the CAL bit is negated, the result is not calibrated, it
bypasses the calibration hardware, and is directly sent to the appropriate RFIFO.
18.4.5.4.2
MAC Unit and Operand Data Format
The MAC unit diagram is shown in
. Each on-chip ADC has a separate MAC unit to calibrate
its conversion results.
Figure 18-49. MAC Unit Diagram
The OCC
n
operand is a 14-bit signed value and it is the upper 14 bits of the value stored in ADC0_OCCR
and ADC1_OCCR. The RAW_RES operand is the raw uncalibrated result, and it is a direct output from
the on-chip ADCs.
The GCC
n
operand is a 15-bit fixed point unsigned value, and it is the upper 15 bits of the value stored in
ADC0_GCCR and ADC1_GCCR. The GCC is expressed in the
GCC_INT.GCC_FRAC
binary format.
The integer part of the GCC (GCC_INT = GCC[1]) contains a single binary digit while its fractional part
(GCC_FRAC = GCC[2:15]) contains 14 bits. Refer to
for more information. The gain
constant equivalent decimal value ranges from 0 to 1.999938..., as shown in
. Two is always
added to the MAC output: see
Section 18.5.6.3, “Quantization Error Reduction During Calibration
CAL_RES output is the calibrated result, and it is a 14-bit unsigned value. CAL_RES is truncated to
0x3FFF, in case of a overflow, and to 0x0000, in case of an underflow.
MAC Unit
Offset Calibration Constant (OCC
n
)
(14-bit signed value from ADC
n
_OCCR)
Raw Uncalibrated Result (RAW_RES)
(12-bit unsigned value)
Gain Calibration Constant (GCC
n
)
(15-bit fixed point unsigned value
from ADC
n
_GCCR)
Calibrated Result (CAL_RES)
(14-bit unsigned value)
2
Содержание 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...