Will RTC accuracy decrease in STM32L412KB if we calibrate it's prescalers more frequently ?
We are using RTC and it's alarm in our project. We are reading data from sensor at specific interval which can be between 10 min to 24 hours.
We are using LSI as RTC clock source. We measure the LSI frequency using Timers as given in application note. After measuring the LSI frequency then we set AsynchPrediv = 127 and SynchPrediv = (LSIfrequency/128) - 1 to get 1 Hz frequency. MCU go to Stand By mode when it reads the data from sensor and we are using RTC Alarm to wake up the MCU for next reading. The reading interval can be between 10 min to 24 hours.
But if we use this application for long time then RTC shows inaccurate value. It may be due to variation in LSI frequency. So we thought to use second alarm which calibrate the RTC prescalers after every 5 seconds. But doing this it further reduces the accuracy.
So, anybody can tell where is the problem and how to improve RTC accuracy ?
