SWCS095L August 2013 – February 2019 TPS659038-Q1 , TPS659039-Q1
PRODUCTION DATA.
Refer to the PDF data sheet for device specific package drawings
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 6-2:
REGISTER | CONTENT |
---|---|
SECONDS_REG | 0x36 |
MINTURES_REG | 0x54 |
HOURS_REG | 0x10 |
DAYS_REG | 0x05 |
MONTHS_REG | 0x09 |
YEARS_REG | 0x08 |
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: