
P95020 / Preliminary Datasheet
Revision 0.7.10
67
2010 Integrated Device Technology, Inc.
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.
5.2
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.
5.2.1
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
Bit
Bit Name
Def.
Set.
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
5.2.2
RTC_MIN
– RTC Minutes Register
The full range of the minutes counter is 0 through 59.
IC Address = Page-0: 65(0x41), C Address = 0xA041
Bit
Bit Name
Def.
Set.
User
Type
Value
Description / Comments
[3:0]
MINUTE
0h
R/W
0000 = 0, 0001 = 1, etc.
Minute counter, BCD format, low bits. Range: 0~9
[6:4]
MINUTE_10
000b
R/W
000 = 0, 001 = 1, etc.
Minute counter, BCD format, high bits. Range: 0~5
7
RESERVED
R/W
RESERVED
5.2.3
RTC_HR
– RTC Hours Register
The full range of the hour counter is 1 through 12 when 12-hour mode is selected, or 0 through 23 when 24-hour mode is
selected.
IC Address = Page-0: 66(0x42), C Address = 0xA042
Bit
Bit Name
Def.
Set.
User
Type
Value
Description / Comments
[3:0]
HOUR
0h
R/W
Hour counter, BCD format, low bits. Range: 0~9
4
HOUR_10
0b
R/W
Hour counter, BCD format, high bits. LSB of HOUR_10.
5
PM
0b
R/W
When 12-hour mode is selected, 1 = PM, 0 = AM
When 24-hour mode is selected, this bit is MSB of HOUR_10
6
TIME_12
0b
R/W
1 = 12-hour mode is
selected
0 = 24-hour mode is
selected
12-hour or 24-hour mode selection bit.
7
RESERVED
R/W
RESERVED
5.3
RTC - DATE REGISTERS
The date for the RTC module can be controlled and monitored by reading and writing 8-bit control words to the various
registers described below.
5.3.1
RTC_DAY
– RTC Day Register
IC Address = Page-0: 67(0x43), C Address = 0xA043
Bit
Bit Name
Def.
Set.
User
Type
Value
Description / Comments
[2:0]
DAY
000b
R/W
Day counter, BCD format. Range: 1~7
[7:3]
RESERVED
R/W
RESERVED