
IDTP95020
Product Datasheet
September 2, 2011 Revision 1.3 Final
79
2011 Integrated Device Technology, Inc.
Table 117. Alarm 1 Mask Bits
DY1
A1M4
A1M3
A1M2
A1M1
ALARM RATE
X
1
Alarm once per second
X
1
0
Alarm when seconds match
X
1
0
Alarm when minutes and seconds match
X
1
0
Alarm when hours, minutes, and seconds match
0
Alarm when date, hours, minutes, and seconds match
1
0
Alarm when day, hours, minutes, and seconds match
Table 118. Alarm 2 Mask Bits
DY2
A2M4
A2M3
A2M2
A2M1
ALARM RATE
X
1
Alarm once per second
X
1
0
Alarm when seconds match
X
1
0
Alarm when minutes and seconds match
X
1
0
Alarm when hours, minutes, and seconds match
0
Alarm when date, hours, minutes, and seconds match
1
0
Alarm when day, hours, minutes, and seconds match
The DY1 bit (bit 6 of the day/date alarm 1 value register)
control whether the alarm value stored in bits 0 to 5 of that
register reflects the day of the week or the date of the
month. If DY1 is written to a logic 0, the alarm is the result
of a match with date of the month. If DY1 is written to a
logic 1, the alarm is the result of a match with day of the
week. The DY2 bit serves the same function for the
day/date alarm 2 value register.
The RTC block checks for an alarm match once per
second. When the RTC register values match the alarm
register settings, the corresponding Alarm Flag (A1_FLAG
or A2_FLAG) bit is set to logic 1. If the corresponding
Alarm Interrupt Enable “A1_EN” or “A2_EN” is also set to
logic 1, the alarm condition activates the INT signal. The
INT remains active until the alarm flag is cleared by the
user.
RTC – Timekeeper Registers
The time for the RTC module can be controlled and monitored by writing and reading 8-bit control words to the various
registers described below.
RTC_SEC – RTC Seconds Register
The full range of the seconds counter is 0 through 59.
IC Address = Page-0: 64(0x40), C Address = 0xA040
Table 119. RTC Seconds Register
BIT
BIT NAME
DEFAULT SETTING
USER
TYPE
VALUE
DESCRIPTION / COMMENTS
[3:0] SECOND
0h
R/W
0000 = 0, 0001 = 1, etc. Second counter, BCD format, low bits. Range: 0~9
[6:4] SECOND_10 000b
R/W
000 = 0, 001 = 1, etc.
Second counter, BCD format, high bits. Range: 0~5
7
RESERVED
R/W
RESERVED