ADC calibration

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

ADC calibration

630 Views
Gargi2021
Contributor I

hi Team,

i want to implement ADC calibration using two point method in S32K144. i will provide two range of voltage and calculate gain and offset values for the same, those gain and offset i will utilize to calibrate the input provided. 

do you have any sample code including this method.

Thanks,

Gargi 

0 Kudos
Reply
1 Reply

620 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Looking at reference manual ADC calibration is done in HW, you simply enable it after power on reset:

41.13 ADC calibration scheme
After a POR, and after the flash memory has been made available, the ADC calibration must be executed by use of the CAL bit in the ADC_SC3 control register.

After the ADC has been configured and calibrated, no further calibration is required as long as the power is maintained. Hence, upon subsequent exits from power mode STOP2, re-calibration is not required. Since the power is continuous in all of the device power modes (STOP2 RUN, and HSRUN), all of the ADC specifications are maintained as per the data sheet.

petervlna_0-1654674075145.png

I am not sure what you want to achieve? Some SW calibration when there is HW mechanism for it?

Best regards,

Peter

 

0 Kudos
Reply