Datasheet
Alarms
The device contains two time of day/date alarms. Alarm 1
canbesetbywritingtoregisters07hto0Ah.Alarm2can
besetbywritingtoregisters0Bhto0Dh.Thealarmscan
beprogrammed(bytheAlarmEnableandINTCNbitsof
theControlRegister)toactivatetheSQW/INT output on
an alarm match condition. Bit 7 of each of the time of day/
date alarm registers are mask bits (Table 4
).Whenallthe
maskbitsforeachalarmarelogic0,analarmonlyoccurs
whenthevaluesinthetimekeepingregisters00hto06h
match the values stored in the time of day/date alarm
registers. The alarms can also be programmed to repeat
every second, minute, hour, day, or date. Table 4 shows
the possible settings. Configurations not listed in the table
result in illogical operation.
The DY/DT bits (bit 6 of the alarm day/date registers)
controlwhether the alarmvalue storedin bits 0to 5of
that register reflects the day of the week or the date of
themonth.IfDY/DTiswrittentoalogic0,thealarmis
theresultofamatchwithdateofthemonth.IfDY/DT is
written to a logic 1, the alarm is the result of a match with
day of the week.
The device checks for an alarm match once per second.
When the RTC register values match alarm register
settings,thecorrespondingAlarmFlag‘A1F’or‘A2F’bitis
settologic1.IfthecorrespondingAlarmInterruptEnable
‘A1IE’or‘A2IE’isalsosettologic1andtheINTCNbitis
settologic1,thealarmconditionactivatestheSQW/INT
signal.IftheBBSQIbitissetto1,theINT output activates
whilethepartisbeingpoweredbyV
BACKUP
. The alarm
output remains active until the alarm flag is cleared by
the user.
Table 4. Alarm Mask Bits
DY/DT
ALARM1 REGISTER MASK BITS (BIT 7)
ALARM RATE
A1M4 A1M3 A1M2 A1M1
X 1 1 1 1 Alarm once per second
X 1 1 1 0 Alarm when seconds match
X 1 1 0 0 Alarm when minutes and seconds match
X 1 0 0 0 Alarm when hours, minutes, and seconds match
0 0 0 0 0 Alarm when date, hours, minutes, and seconds match
1 0 0 0 0 Alarm when day, hours, minutes, and seconds match
DY/DT
ALARM2 REGISTER MASK BITS (BIT 7)
ALARM RATE
A2M4 A2M3 A2M2
X 1 1 1
Alarmonceperminute(00sec.ofeveryminute)
X 1 1 0 Alarm when minutes match
X 1 0 0 Alarm when hours and minutes match
0 0 0 0 Alarm when date, hours, and minutes match
1 0 0 0 Alarm when day, hours, and minutes match
DS1339B Low-Current, I
2
C, Serial Real-Time Clock
For High-ESR Crystals
www.maximintegrated.com
MaximIntegrated
│
11










