RTC puzzle
Pages: 1 2
David Pitt (3386) 1248 posts |
Thanks for that, the first correction is in the right direction now.
My first thought was why such an apparently random value, or perhaps not quite so random, The RTC in this Titanium gains about two minutes per day, the correction can be quite long. Put another way the Titanium has to be on for at least two hours per day to just keep up with itself.
That would be better. I would be even more in favour of starting with the right time in the first place. That is a loop we have been round before, I have either forgotten or never understood, or both, why that should not be so. |
Steve Pampling (1551) 8172 posts |
Ben there, done that, with a set of switches that exhibited a weird semi-reset behaviour after 497 (and a bit) days of uptime. If you want the precise interval then take a 32 bit counter and check its rollover time.
Is a more frequent correction interval when the error value is large an option? Perhaps a larger adjustment at that more frequent interval too. Basically avoiding large step changes unless the error value is measured in days. |
Pages: 1 2