Datasheet
Hours
32-kHz clock
input
INT_ALARM
INT_TIMER
Seconds
Interrupt
Minutes
Week
Days
Days
Months Years
Control
Alarm
Frequency
compensation
32-kHz
counter
SWCS049-015
TPS659110, TPS659112, TPS659113, TPS659116
SWCS049L –JUNE 2010–REVISED MARCH 2014
www.ti.com
Real-Time Clock (RTC) (continued)
Figure 16. RTC Digital Section Block Diagram
8.7.1 Time Calendar Registers
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.
1. Years data ranges from 00 to 99
– Leap year = Year divisible by four (2000, 2004, 2008, 2012...)
– Common year = other years
2. Months data ranges from 01 to 12
3. Days value ranges from:
– 1 to 31 when months are 1, 3, 5, 7, 8, 10, 12
– 1 to 30 when months are 4, 6, 9, 11
– 1 to 29 when month is 2 and year is a leap year
– 1 to 28 when month is 2 and year is a common year
4. Weeks value ranges from 0 to 6
5. Hours value ranges from 00 to 23 in 24-hour mode and ranges from 1 to 12 in AM/PM mode
6. Minutes value ranges from 0 to 59
7. Seconds value ranges from 0 to 59
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:
Table 13. Real-Time Clock Registers Example
Register Value
SECONDS_REG 0x36
MINUTES_REG 0x54
HOURS_REG 0x90
DAYS_REG 0x05
56 Submit Documentation Feedback Copyright © 2010–2014, Texas Instruments Incorporated
Product Folder Links: TPS659110 TPS659112 TPS659113 TPS659116