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