Table 6-2.
Format for Clock, Calendar, and Alarm Data
Index Register
Address
Function
BCD Range
0
Seconds
00-59
1
Seconds Alarm
00-59
2
Minutes
00-59
3
Minutes Alarm
00-59
4
Hours (12 hour mode)
01-12 (AM), 81-92 (PM)
Hours (24 hour mode)
00-23
5
Hours Alarm (12 hour mode)
01-12 (AM), 81-92 (PM)
Hours Alarm (24 hour mode)
00-23
6
Day of Week
01-07
7
Day of Month
01-31
8
Month
01-12
9
Year
00-99
Table 6-2 above shows the format for the ten clock, calendar, and alarm data. The 24/12
bit in register B determines whether the hour locations are updated using a 1-12 or 0-23
format. In 12 hour format, the high order bit of the hours byte in both the time and alarm
bytes indicates PM when it is set to one.
During uptdates, which occur once per second, the ten bytes of time, calendar, and alarm
information are unavailable to be read or written by the CPU for a period of 2ms. These
ten locations cannot be written to during this time. Information read while the Real Time
Clock is performing update is undefined. The Update Cycle section describes how
Update Cycle/PCU contention problems can be avoided.
The alarm bytes can be programmed to generate an interrupt at a specific time or they can
be programmed to generate a peroidic interrupt.
Static RAM
The 114 bytes of RAM for index address 0EH to 7FH are not affected by the Real
Time Clock. These bytes are accessible during the update cycle and may be used for
whatever the designer wishes. Typical applications use this as nonvolatile storage for
configuration and calibration parameters since this device is normally battery powered
when the system is turned off.
Real Time Clock and Internal Timer Registers
Real Time Clock Interface----MC146818 Compatible
I
Chips and Technologies, Inc.
P R E L I M I N A R Y
Revision 3.0
6-3