MCP79510 RTCC - Date and Time Error - Setting Time at 12h:59sec

How do you get past the time and date errors?

Update RTC registers byte by byte only or you MUST stop the clock before updating RTC registers.
For example, the current time is 11:45 am. Set hours == 12, minutes == 59 and change am to pm. RTC reads back 12:59 am incorrectly. It should read 12:59 pm.

Excerpt from TB3116:

"The oscillator should be stopped by clearing the ST bit in the RTCSEC register if a crystal is used, or by clearing EXTOSC bit in the control register if an external clock source is used; wait for it to stop (the OSCRUN bit in the RTCWKDAT register should change to 0) and then update the register and start the oscillator again."

© 2018 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.