Hi,
I’m trying to compensate RTC accuracy over temperature and crystal error. To be able to do this, I may need to modify RTC content every minute with functions like Inc_RTC_A_Second() or Dec_RTC_A_Second().
But these functions seem not easy to implement. Because RTC counter is asynchronous to the CPU clock, any attempt to write to RTC registers can cause losing up to one second. There should be a safer way to do this. What is your recommendation to read and modify RTC content without losing any second.
Thank you.