RTC Temperature compenstation on K22FN512

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

RTC Temperature compenstation on K22FN512

218 Views
anujtanksali
Contributor II

Hi,

Am using K22FN512 device and the internal RTC deviates a lot with time. So wanted to implement a temperature compensation to reduce the RTC deviation.

I already tried implementing using the AN4949 and AN3031 documents but facing issues in reading the internal ADC for temperature.

So there are 2 aspects 

1. Read the internal ADC and calulate temperature

2. Compensate the RTC as per temperature read.

Can you please provide any sample codes which implement the above two points?

As I have already gone through the application notes and tried implementing as per application note without sucess, any sample code will be very helpfull.

Thanks

Anuj

 

 

 

0 Kudos
1 Reply

196 Views
CarlosGarabito
NXP TechSupport
NXP TechSupport

Hi @anujtanksali , You will find some examples that  on SDK that can read the ADC

CarlosGarabito_0-1670475348475.png

 

 

And you can find the examples too for RTC witch can help you with your implementation

 

CarlosGarabito_1-1670475348475.png

it's a good idea to check this blog, this blog can teach you a lot of things https://mcuoneclipse.com/2013/02/10/tutorial-adc-with-the-freedom-board/ read through each of the topics and immerse yourself in knowledge

 

I hope this will help you

Have a good day

 

Best Regards

0 Kudos