Content originally posted in LPCWare by MarcVonWindscooting on Mon Aug 19 07:06:02 MST 2013
Now, that is odd!
And probably that applies to all LPC's that have a RTC.
What does that mean?
If buffering is applied and the register update synced with the RTC 1Hz clock, then you can never get the RTC closer than +- 1 sec to the real time, in an easy way, as you cannot reset the fractional part (of 1s) by a write. We have to reset the clock tick counter. And does that mean, the new value is used only a (full) second later? As a consequence, we have to set +1 sec and take care of all the possible carry s**t, too. OMG!
I planned to use RTC in conjunction with a (German) DCF77 decoder, but your observation puts me down. My uC for that is a LPC2146.
I will take a very close look at the behaviour.