KM34 SAR ADC calibration registers

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

KM34 SAR ADC calibration registers

Jump to solution
1,286 Views
jun1
Contributor V

Hi.

I am trying to omit the automatic calibration at startup by automatically calibrating the KM34's SARADC at the time of board manufacturing, saving the register value in FROM, and writing the value back to the register at reboot. If so, which register should be saved?
Are ADCx_OFS and ADCx_PG okay?
In the explanation of the manual, CLP0, CLP1, CLP2, CLP3, CLP4, CLPS are added to the variable divided by 2, and MSB is set by ADCx_PG, so if you also set the above two register values I thought there was no problem.


Thank you very much.

0 Kudos
1 Solution
1,044 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hi @jun1 

I agree with you.

Diego

View solution in original post

0 Kudos
3 Replies
1,178 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hi @jun1

You can also consider the plus-side calibration values. ,CLPx registers. 

Just note that all the calibration values that you obtain  need to be made for every ADC instance. This is mentioned in the recommended calibration procedure of this document  16-bit SAR ADC calibration

Please accept my apologies for the delayed response. 

 

Do not hesitate to let me know if you have any further question. 

Diego. 

0 Kudos
1,099 Views
jun1
Contributor V

Hi.

"You need to create each ADC instance" means that if you have a CPU with only one SAR-CONVERTER, you can calibrate it with that SAR-CONVERTER, right?
Since the AD input is multiplexed and enters the SAR-CONVERTER, calibration should be done only once for the representative AD input, right?

thank you.

 

 

0 Kudos
1,045 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hi @jun1 

I agree with you.

Diego

0 Kudos