17
FN6451.0
March 30, 2007
“1”, and disabling the frequency output. The IRQ output
will now be pulsed each time an alarm occurs. This means
that once the interrupt mode alarm is set, it will continue to
alarm for each occurring match of the alarm and present
time. This mode is convenient for hourly or daily hardware
interrupts in microcontroller applications such as security
cameras or utility meter reading.
To clear a single event alarm, the ALM bit in the status
register must be set to “0” with a write. Note that if the ARST
bit is set to 1 (address 08h, bit 7), the ALM bit will
automatically be cleared when the status register is read.
Following are examples of both Single Event and periodic
Interrupt Mode alarms.
Example 1
• Alarm set with single interrupt (IM = ”0”)
• A single alarm will occur on January 1 at 11:30am.
• Set Alarm registers as follows:
After these registers are set, an alarm will be generated when
the RTC advances to exactly 11:30am on January 1 (after
seconds changes from 59 to 00) by setting the ALM bit in the
status register to “1” and also bringing the IRQ
output low.
Example 2
• Pulsed interrupt once per minute (IM = ”1”)
• Interrupts at one minute intervals when the seconds
register is at 30 seconds.
• Set Alarm registers as follows:
Once the registers are set, the following waveform will be
seen at IRQ
:
Note that the status register ALM bit will be set each time the
alarm is triggered, but does not need to be read or cleared
Time Stamp V
DD
to Battery Registers (TSV2B)
The TSV2B Register bytes are identical to the RTC register
bytes, except they do not extend beyond the Month. The Time
Stamp captures the FIRST V
DD
to Battery Voltage transition
time, and will not update upon subsequent events, until cleared
(only the first event is captured before clearing). Set CLRTS = 1
to clear this register (Add 09h, PWR_V
DD
register).
Note that the time stamp registers are cleared to all “0”,
including the month and day, which is different from the RTC
and alarm registers (those registers default to 01h). This is
the indicator that no time stamping has occurred since the
last clear or initial powerup. Once a time stamp occurs, there
will be a non-zero time stamp.
Time Stamp Battery to V
DD
Registers (TSB2V)
The Time Stamp Battery to V
DD
Register bytes are identical
to the RTC register bytes, except they do not extend beyond
Month. The Time Stamp captures the LAST transition of
V
BAT
to V
D
(only the last event of a series of power up/down
events is retained). Set CLRTS = 1 to clear this register (Add
09h, PWR_V
DD
register).
DST Control Registers (DSTCR)
8 bytes of control registers have been assigned for the
Daylight Savings Time (DST) functions. DST beginning time
is controlled by the registers DstMoFd, DstDwFd, DstDtFd
ALARM
REGISTER
BIT
DESCRIPTION76543210HEX
SCA0 00000000 00hSeconds disabled
MNA0 10110000 B0hMinutes set to 30,
enabled
HRA0 10010001 91hHours set to 11,
enabled
DTA0 10000001 81hDate set to 1,
enabled
MOA0 10000001 81hMonth set to 1,
enabled
DWA0 00000000 00hDay of week
disabled
ALARM
REGISTER
BIT
DESCRIPTION76543210HEX
SCA0 10110000B0hSeconds set to 30,
enabled
MNA0 0000000000hMinutes disabled
HRA0 0000000000hHours disabled
DTA0 0000000000hDate disabled
MOA0 0000000000hMonth disabled
DWA0 0000000000hDay of week disabled
ALARM
REGISTER
BIT
DESCRIPTION76543210HEX
60s
RTC AND ALARM REGISTERS ARE BOTH “30s”
FIGURE 5. IRQ WAVEFORM
BMODE
CLRTS
CLRTS INT+
V
DD
TS
V
BAT
TS
FIGURE 6.
ISL12021