2013-11-23 05:58 AM
2013-11-23 06:15 AM
I have implemented RTC in STM32F107RB at 50Mhz operating frequency, it works good but the problem is shift in time about 5 to 6 seconds in a day. Is there any correction factor? Here i have attached RTC intialisation code
50 MHZ? Well if you can't get the frequency of the clock right, then one of your alternatives is to determine the clock drift and how the bias accumulates over time, and periodically slew the time count, ie determine number of seconds over which a second of error accumulates, and then after that period (or multiples there of) slew the clock to adjust, and remember the last time you did it.2013-11-24 09:25 PM