Clock operation
M41T62/63/64/65
3.3
Note:
Setting alarm clock registers
Address locations 0Ah-0Eh contain the alarm settings. The alarm can be configured to go
off at a prescribed time on a specific month, date, hour, minute, or second, or repeat every
year, month, day, hour, minute, or second. Bits RPT5–RPT1 put the alarm in the repeat
mode of operation. Table 7 on page 26 shows the possible configurations. Codes not listed
in the table default to the once per second mode to quickly alert the user of an incorrect
alarm setting.
When the clock information matches the alarm clock settings based on the match criteria
defined by RPT5–RPT1, the AF (alarm flag) is set. If AFE (alarm flag enable) is also set
(M41T62/65), the alarm condition activates the IRQ/OUT or IRQ/FT/OUT pin. To disable the
alarm, write '0' to the alarm date register and to RPT5–RPT1.
If the address pointer is allowed to increment to the flag register address, an alarm condition
will not cause the interrupt/flag to occur until the address pointer is moved to a different
address. It should also be noted that if the last address written is the “Alarm Seconds,” the
address pointer will increment to the flag address, causing this situation to occur.
The IRQ output is cleared by a READ to the flags register as shown in Figure 23 on
page 26. A subsequent READ of the flags register is necessary to see that the value of the
alarm flag has been reset to '0.'
Figure 23. Alarm interrupt reset waveform
Register address 0Eh
0Fh
00h
ALARM FLAG BIT (AF)
IRQ/OUT or
IRQ/FT/OUT
Table 7.
RPT5
1
1
1
1
1
0
Alarm repeat modes
RPT4
RPT3
RPT2
1
1
1
1
1
1
1
1
0
1
0
0
0
0
0
0
0
0
RPT1
1
0
0
0
0
0
HIGH-Z
AI08898
Alarm setting
Once per second
Once per minute
Once per hour
Once per day
Once per month
Once per year
26/41
Doc ID 10397 Rev 14