Obsolete Product(s) - Obsolete Product(s) Obsolete Product(s) - Obsolete Product(s)
13/26
M48T559Y
The second approach is better suited to a manu-
facturing environment, and involves the use of the
IRQ/FT pin. The pin will t oggle at 512Hz, when the
Stop Bit (ST, D7 of 1FF9h) is '0,' the Frequency
Test Bit (FT, D6 of 1FFCh) is '1,' the Alarm Flag
Enable Bit (AFE, D7 of 1FF6h) is '0,' and the
Watchdog Steering Bit (WDS, D7 of 1FF7h) is '1'
or the Watchdog Register (1FF7h = 0) is reset.
Any deviation from 512 Hz indicates the degree
and direction of oscillator frequency shift at the test
temperature. For example, a reading of
512.010124 Hz would indicate a +20 ppm oscilla-
tor f requency error, requi ring a –10 (XX001010) to
be loaded into the Calibration Byte for correction.
Note that setting or changing the Calibration Byte
does not affect the Frequency test output frequen-
cy. The FT Bit is cleared on power-down.
For more i nformation on cali bration, see the A ppli-
cation Note AN934, “TIMEKEEPER C a li b r a tion”.
The IRQ/FT pin is an open d ra in output which re-
quires a pull-up resistor for proper operation. A
500-10kΩ resistor is recommended in order to
control the rise time.
Watchdog Timer
The watchdog timer can be used to detect an out-
of-control microprocessor. The us er program s the
watchdog timer by setting the desired amount of
time-out into the eight-bit Watchdog Regist er (Ad-
dress 1FF7h). The five bits (BMB4-BMB0) store a
binary multiplier and the two lower order bits (RB1-
RB0) select the resolution, where 00 = 1/16 sec-
ond, 01 = 1/4 second, 10 = 1 second, an d 11 = 4
seconds. The amount of time-out is then deter-
mined to be the multiplication o f the five-bit multi-
plier value with the resolution. (For example:
writing 00001110 in the Watchdog Register = 3 x
1 or 3 seconds).
Note: Accuracy of timer is within ± the selected
resolution.
If the processor does not reset the t imer within the
specified period, the M48T559Y sets the WDF
(Watchdog Flag) and generates a watchdog inter-
rupt or a microprocessor reset. WDF is reset by
reading the Flags Register (Address 1FF0h).
The most significa nt bit of the Watchdog Regi ster
is the Watchdog Steering Bit. When set to a '0,' the
watchdog will activate the IRQ/FT pin when timed-
out. When WDS is set to a '1,' the watchdog will
output a negative pulse on the RST pin for a dura-
tion of 40ms to 200ms. The Watchdog register,
FT, AFE, and ABE bits wi l l re se t to a '0' at th e end
of a wat chdog time-out when the WDS Bit is set to
a '1.'
The watchdog timer can be reset by two methods:
– a transition (high-to-low or low-to-high) can be
applied to the Watchdog input pin (WDI); or
– the microprocessor can perform a WRITE of the
Watchdog Register. The time-out period then
starts over. The WDI pin contains a pull-down
resistor and therefore must be grounded if not
used.
The watchdog timer will be reset on each transition
(edge) seen by the WDI pin. I n order t o pe rform a
software reset of the Watchdog timer, the original
time-out period ca n be written into the Watchdog
Register, effectively res tarting th e count -down cy-
cle.
Should the watchdog timer time-out, and the WDS
Bit is programmed to output an interrupt, a value of
00h needs to be written to the Watchdog Regi ster
in order to clear the IRQ/FT pi n. This will also dis-
able the watchdog function until it is again pro-
grammed correctly. A READ of the Flags Register
will reset the Watchdog Flag (D7; Address 1FF0h).
The watchdog function is automatically disabled
upon power-down and the Watchdog Register is
cleared. If the watchdog func tion is set to output to
the IRQ /FT pin and the frequency test function is
activated, the watchdog or alarm function prevails
and the frequency test function is denied.
Power-on Reset
The M48T559Y continuously monitors VCC. When
VCC falls to the power fail detect trip point, the RST
pulls low (open drain) and remains low on power-
up for 40ms to 200ms after VCC passes
VPFD (max). An external pull-up resistor t o VCC is
required (1KΩ resistor is recommended). The re-
set pulse remains active with VCC at VSS.
Obsolete Product(s) - Obsolete Product(s)