PRODUCTPREVIEW
Hours
32-kHz clock
input
INT_ALARM
INT_TIMER
Seconds
Interrupt
Minutes
Week
Days
Months
Years
Control
Alarm
Frequency
compensation
32-kHz
counter
SWCS046-014
SWCS046C – MARCH 2010 – REVISED JUNE 2010
www.ti.com
Figure 14. RTC Digital Section Block Diagram
NOTE
INT_ALARM can generate a wakeup of the platform.
INT_TIMER cannot generate a wakeup of the platform.
TIME CALENDAR REGISTERS
All the time and calendar information are available in these dedicated registers, called TC registers. Values of the
TC registers are written in BCD format.
1. Year data ranges from 00 to 99
–
Leap year = Year divisible by four (2000, 2004, 2008, 2012...)
–
Common year = other years
2. Month data ranges from 01 to 12
3. Day 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. Week value ranges from 0 to 6
5. Hour 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 DBB can write into 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 TC values, and then restart the RTC by setting the STOP_RTC bit.
Example: Time is 10H54M36S PM (PM_AM mode set), 2008 September 5, previous register values are:
46
Copyright 2010, Texas Instruments Incorporated