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
Hi @anujtanksali , You will find some examples that on SDK that can read the ADC
And you can find the examples too for RTC witch can help you with your implementation
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