kinetis KM34 SARADC calibration registers

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

kinetis KM34 SARADC calibration registers

Jump to solution
930 Views
jun1
Contributor V

Hi.

The 32.5.6 Calibration function of Kinetis KM34 Sub-Family Reference Manual, Rev. 3, 09/2017 describes how to return the value saved at startup to the register as follows.

Overall, the calibration routine may take as many as 14k ADCK cycles and 100 bus cycles, depending on the results and the clock source chosen. For an 8 MHz clock source, this length amounts to about 1.7 ms. To reduce this latency, the calibration values, which are offset, plus-side gain, and plus-side calibration values, may be stored in flash memory after an initial calibration and recovered prior to the first ADC conversion. This method can reduce the calibration latency to 20 register store operations on all subsequent power, reset, or Low-Power Stop mode recoveries.

1.
Are the following registers saved and written back at startup?
offset: ADCx_OFS
plus-side gain: ADCx_PG
plus-side calibration values: ADCx_CLPD, ADCx_CLPS, ADCx_CLP4-0

2.
The manual says 20 register store, but if you count the above registers, it's nine.
What do the 20 texts in the manual refer to?

Thank you.

 

0 Kudos
1 Solution
904 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi @jun1 ,

1. Yes, you can store these register in flash. Before first conversion, user should copy these value from flash to register.

2. Yes, there is only 9 register for calibration, not 20.

 

Regards,

Jing

View solution in original post

0 Kudos
2 Replies
892 Views
jun1
Contributor V

Hi.

thank you for your answer. understand. It was helpful.

 

0 Kudos
905 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi @jun1 ,

1. Yes, you can store these register in flash. Before first conversion, user should copy these value from flash to register.

2. Yes, there is only 9 register for calibration, not 20.

 

Regards,

Jing

0 Kudos