ZHCSKK3B December 2019 – February 2022 TPS6594-Q1
PRODUCTION DATA
All the time and calendar information is available in the time calendar (TC) dedicated registers: SECONDS_REG, MINUTES_REG, HOURS_REG, DAYS_REG, WEEKS_REG, MONTHS_REG, and YEARS_REG. The TC register values are written in BCD code.
Example: Time is 10H54M36S PM (PM_AM mode set), 2008 September 5; previous registers values are listed in Table 8-7:
REGISTER | CONTENT |
---|---|
RTC_SECONDS | 0x36 |
RTC_MINTURES | 0x54 |
RTC_HOURS | 0x10 |
RTC_DAYS | 0x05 |
RTC_MONTHS | 0x09 |
RTC_YEARS | 0x08 |
RTC_WEEKS | 0x06 |
The user can round to the closest minute, by setting the ROUND_30S register bit in the RTC_CTRL_REG register. TC values are set to the closest minute value at the next second. The ROUND_30S bit is automatically cleared when the rounding time is performed.
Example: