
REAL-TIME CLOCK
S-3531A
14
Seiko Instruments Inc.
4.
Processing of none-existent data and end-of-month
When writing real-time data, validate it and treat any invalid data and end-of-month correction.
[None-existent data processing]
Table 3 None-existent data processing
Register
Normal data
Error data
Result
Year data
00 to 99
XA to XF, AX to FX
00
Month data
01 to 12
00, 13 to 19, XA to XF
01
Day data
01 to 31
00, 32 to 39, XA to XF
01
Day of week data
0 to 6
7
0
Hour data (24-hour)
(*)
(12-hour)
0 to 23
0 to 11
24 to 29, 3X, XA to XF
12 to 19, XA to XF
00
Minute data
00 to 59
60 to 79, XA to XF
00
Second data (**)
00 to 59
60 to 79, XA to XF
00
(*)
For 12-hour expression, write the AM/PM flag.
The AM/PM flag is ignored in 24-hour expression, but "0" for 0 to 11 o'clock and "1" for
12 to 23 o'clock are read in a read operation.
(**)
None-existent data processing for second data is performed by a carry pulse one
second after the end of writing. At this point, the carry pulse is sent to the minute
counter.
[End-of-month correction]
Any none-existent day is corrected to the first day of the next month. For example, February 30 is
changed to March 1. Leap-year correction is also performed here.
5.
Interrupt
There are different five output formats from the INT1 pin, which are chosen by the INT1AE, INT1ME
and INT1FE bits of the status register .
(1) Alarm interrupt output
Alarm interrupt is enabled by setting hour and minute data to the INT1 register and turning the
status register's INT1AE to "1" and INT1ME and INT1FE to "0" . When set hour data is met, low
is output from the INT1 pin. Since the output is held, rewrite INT1AE of the status register to "0"
through serial communication to turn the output to high (OFF state).
When you perform
DISABLE or ENABLE communication while the corresponding signal is being retained (for one
minute), "Low" signal is output from the INT1 pin again.
(2) Selected frequency steady interrupt output
When you set frequency/duty data to the INT1 register and turn the status register's INT1ME to
"0" and INT1FE to "1," clock set at the INT1 register is output from the INT1 pin.
(3) Per-minute edge interrupt output
When a first minute carry is performed after the status register's INT1ME is set with "1" and
INT1FE with "0" , low is output from the INT1 pin. Since the output is held, rewrite INT1AE,
INT1ME and INT1FE of the status register to "0" through serial communication to turn the output
to high (OFF state). When you perform DISABLE or ENABLE communication while the minute
carry processing signal is being retained (for 10 msec), "Low" signal is output from the INT1 pin
again.
(4) Per-minute steady interrupt output
When a first minute carry is performed after the status register's INT1ME and INT1FE are set
with "1" , clock is output from the INT1 pin with a period of one minute (50% duty). When you
perform DISABLE or ENABLE communication while the INT1 pin is at "L," "Low" signal is output
from the INT1 pin again.
Note 1 : If changing an output mode, give care to the state of the INT1 register and output.
Note 2 : If per-minute edge interrupt output or per-minute steady interrupt output is chosen, the
INT1 register has no meaning.