JAJSF73S June 2010 – August 2018 TPS65911
PRODUCTION DATA.
All the time and calendar information is available in these dedicated registers, called TC registers. Values of the TC registers are written in BCD format.
To modify the current time, software writes the new time into TC registers to fix the time/calendar information. The processor can write into the TC registers without stopping the RTC. In addition, software can stop the RTC by clearing the STOP_RTC bit of the control register and check the RUN bit of the status to be sure that the RTC is frozen, then update the TC values, and then restart the RTC by setting STOP_RTC bit.
Example: Time is 10H54M36S PM (PM_AM mode set), 2008 September 5, previous register values are:
Register | Value |
---|---|
SECONDS_REG | 0x36 |
MINUTES_REG | 0x54 |
HOURS_REG | 0x90 |
DAYS_REG | 0x05 |
MONTHS_REG | 0x09 |
YEARS_REG | 0x08 |
The user can round to the nearest minute, by setting the ROUND_30S register bit. TC values are set to the nearest minute value at the next second. The ROUND_30S bit is automatically cleared when the rounding time is performed.
Example: