M4T32-BR12SHX STMICROELECTRONICS [STMicroelectronics], M4T32-BR12SHX Datasheet - Page 22

no-image

M4T32-BR12SHX

Manufacturer Part Number
M4T32-BR12SHX
Description
Serial real-time clock with 44 bytes NVRAM and reset
Manufacturer
STMICROELECTRONICS [STMicroelectronics]
Datasheet
4.4
Note:
4.5
22/41
Watchdog timer
The watchdog timer can be used to detect an out-of-control microprocessor. The user
programs the watchdog timer by setting the desired amount of time-out into the Watchdog
register, address 09h. bits BMB4-BMB0 store a binary multiplier and the two lower order bits
RB1-RB0 select the resolution, where 00 =
and 11 = 4 seconds. The amount of time-out is then determined to be the multiplication of
the five-bit multiplier value with the resolution. (For example: writing 00001110 in the
Watchdog register = 3*1 or 3 seconds).
Accuracy of timer is within ± the selected resolution.
If the processor does not reset the timer within the specified period, the M41T94 sets the
WDF (Watchdog Flag) and generates a watchdog interrupt or a microprocessor reset. WDF
is reset by reading the Flags register (0Fh).
The most significant bit of the Watchdog register is the Watchdog Steering bit (WDS). When
set to a '0,' the watchdog will activate the IRQ/FT/OUT pin when timed-out. When WDS is
set to a '1,' the watchdog will output a negative pulse on the RST pin for t
register and the AFE, ABE, SQWE, and FT bits will reset to a '0' at the end of a Watchdog
time-out when the WDS bit is set to a '1.'
The watchdog timer can be reset by two methods:
1.
2.
The time-out period then starts over. The WDI pin should be tied to V
to perform a software reset of the watchdog timer, the original time-out period can be written
into the Watchdog register, effectively restarting the count-down cycle.
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 register in order to clear the
IRQ/FT/OUT pin. This will also disable the watchdog function until it is again programmed
correctly. A READ of the Flags register will reset the Watchdog Flag (bit D7; register 0Fh).
The watchdog function is automatically disabled upon power-up and the Watchdog register
is cleared. If the watchdog function is set to output to the IRQ/FT/OUT pin and the
Frequency Test (FT) function is activated, the watchdog function prevails and the Frequency
Test function is denied.
Square wave output
The M41T94 offers the user a programmable Square Wave function which is output on the
SQW pin. RS3-RS0 bits located in 13h establish the Square Wave output frequency. These
frequencies are listed in Table
frequency has been completed, the SQW pin can be turned on and off under software
control with the Square Wave Enable bit (SQWE) located in register 0Ah.
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.
Table 6 on page
1
/
16
23. Once the selection of the SQW
second, 01 =
1
/
4
second, 10 = 1 second,
SS
REC
if not used. In order
. The Watchdog

Related parts for M4T32-BR12SHX