• Before starting calibration, the calibration registers (CLPS, CLP3, CLP2, CLP1,
CLP0, CLPX, and CLP9) must be cleared by writing 0x0 into them.
• Start ADC calibration by writing ADC_SC3 register with: CAL=1, AVGE=1,
AVGS=11.
• Wait for calibration to finish. This will be indicated by conversion complete flag
(COCO in ADC_SC1n).
• Now you can run ADC conversions with high accuracy in your application. Please
make sure to reconfigure the ADCK clock speed and reconfigure AVGE and AVGS
to your desired settings. (Maximum clock speed and no use of hardware averaging is
possible.)
The total calibration conversion time is: 12 * ( # of AVERAGE * [Sample time (sample
+1) + 1 cycle for hold + 34 cycles for compare phase]) + 1st conversion synchronization
(~5 ADC 5 IPG clocks).
For high accuracy of the ADC (as specified in data sheet) on your application board
(PCB), the following requirements should be met:
• Bypass caps between VREFH and VREFL. Suggested cap sizes: 1 nF, 100 nF, 10
μF.
• Place caps on PCB as close as possible to the device pins VREFH and VREFL.
• Bypass caps between VDDA and VSSA. Suggested cap sizes: 1 nF, 100 nF, 10 μF.
• Place caps on PCB as close as possible to the device pins VDDA and VSSA.
• Routing of VDDA, VSSA, VREFH, and VREFL on PCB:
• Low impedance between the bypass caps and the MCU pins.
• Keep routing distant from noisy signal routes like switching I/Os.
37.5.7 User-defined offset function
OFS is a two's-complement, left-justified register that contains the calibration-generated
offset error correction value.
The value in OFS is subtracted from the conversion and the result is transferred into the
result registers, Rn. If the result is greater than the maximum or less than the minimum
result value, it is forced to the appropriate limit for the current mode of operation.
The formatting of OFS is different from the data result register, Rn, to preserve the
resolution of the calibration value regardless of the conversion mode selected. Lower
order bits are ignored in lower resolution modes. For example, in 8-bit single-ended
mode, OFS[14:7] are subtracted from D[7:0]; OFS[15] indicates the sign (negative
numbers are effectively added to the result) and OFS[6:0] are ignored.
Chapter 37 Analog-to-Digital Converter (ADC)
Kinetis KE1xF Sub-Family Reference Manual, Rev. 4, 06/2019
NXP Semiconductors
857
Содержание KE1xF Series
Страница 2: ...Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 2 NXP Semiconductors...
Страница 60: ...SysTick Clock Configuration Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 60 NXP Semiconductors...
Страница 114: ...Initialization application information Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 114 NXP Semiconductors...
Страница 138: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 138 NXP Semiconductors...
Страница 320: ...Private Peripheral Bus PPB memory map Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 320 NXP Semiconductors...
Страница 342: ...Functional Description Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 342 NXP Semiconductors...
Страница 360: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 360 NXP Semiconductors...
Страница 490: ...Interrupts Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 490 NXP Semiconductors...
Страница 550: ...Memory map and register definition Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 550 NXP Semiconductors...
Страница 562: ...Boot Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 562 NXP Semiconductors...
Страница 662: ...Power supply supervisor Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 662 NXP Semiconductors...
Страница 694: ...On chip resource access control mechanism Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 694 NXP Semiconductors...
Страница 706: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 706 NXP Semiconductors...
Страница 724: ...Application Information Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 724 NXP Semiconductors...
Страница 736: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 736 NXP Semiconductors...
Страница 750: ...Debug and Security Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 750 NXP Semiconductors...
Страница 798: ...Functional description Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 798 NXP Semiconductors...
Страница 808: ...Functional description Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 808 NXP Semiconductors...
Страница 866: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 866 NXP Semiconductors...
Страница 1164: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 1164 NXP Semiconductors...
Страница 1178: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 1178 NXP Semiconductors...
Страница 1380: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 1380 NXP Semiconductors...
Страница 1472: ...Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 1472 NXP Semiconductors...
Страница 1482: ...Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 1482 NXP Semiconductors...