Datasheet

TPS65910
,
TPS65910A
,
TPS65910A3
,
TPS659101
TPS659102
,
TPS659103
,
TPS659104
,
TPS659105
TPS659106, TPS659107, TPS659108, TPS659109
SWCS046U MARCH 2010REVISED JUNE 2014
www.ti.com
6.5.1 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:
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 closest minute, by setting the ROUND_30S register bit. 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:
If current time is 10H59M45S, a round operation changes time to 11H00M00S.
if current time is 10H59M29S, a round operation changes time to 10H59M00S.
6.5.2 General Registers
Software can access the RTC_STATUS_REG and RTC_CTRL_REG registers at any time (except for the
RTC_CTRL_REG[5] bit, which must be changed only when the RTC is stopped).
6.5.3 Compensation Registers
The RTC_COMP_MSB_REG and RTC_COMP_LSB_REG registers must respect the available access
period. These registers must be updated before each compensation process. For example, software can
load the compensation value into these registers after each hour event, during an available access period.
54 Detailed Description Copyright © 2010–2014, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: TPS65910 TPS65910A TPS65910A3 TPS659101 TPS659102 TPS659103 TPS659104
TPS659105 TPS659106 TPS659107 TPS659108 TPS659109