1998 Apr 07
24
Philips Semiconductors
Product specification
8-bit Flash microcontrollers
P89C738; P89C739
10.3
Watchdog Timer (T3)
The Watchdog Timer (see Fig.14), consists of an 11-bit
prescaler and an 8-bit timer formed by SFR T3. The timer
is incremented every 1.5 ms, which is derived from the
system clock frequency of 16 MHz by the following
f
2048
×
)
formula:
The 8-bit timer increments every 12
×
2048 cycles of the
on-chip oscillator. When a timer overflow occurs, the
microcontroller is reset. The internal reset signal is not
inhibited when the external RST pin is kept LOW, e.g. by
an external reset circuit. The reset signal drives Ports 1, 2,
3, 4 and 5 outputs into the HIGH state and Port 0 into
high-impedance, no matter whether the clock oscillator is
running or not.
To prevent a system reset the timer must be reloaded in
time by the application software. If the processor suffers a
hardware/software malfunction, the software will fail to
reload the timer. This failure will result in a reset upon
overflow thus preventing the processor running out of
control.
f
timer
--12
=
This time interval is determined by the 8-bit reload value
that is written into register T3:
--T3
=
The Watchdog Timer can only be reloaded if the condition
flag WLE (PCON.4) has been previously set HIGH by
software. At the moment the counter is loaded WLE is
automatically cleared.
In the Idle mode the Watchdog Timer and reset circuitry
remain active.
The Watchdog Timer is controlled by the Watchdog enable
signal EW (EBTCON.1). A HIGH level enables the
Watchdog Timer and disables the Power-down mode.
A LOW level disables the Watchdog Timer and enables
the Power-down mode.
Watchdog time interval
]
12
f
clk
×
2048
×
Fig.14 Watchdog Timer block diagram.
handbook, full pagewidth
MBH081
INTERNAL BUS
1/12 fclk
write
T3
PRESCALER
11-BIT
TIMER T3 (8-BIT)
LOAD
CLEAR
to reset circuitry
LOADEN
EW
LOADEN
PCON.4
PCON.1
CLEAR
WLE
PD
INTERNAL BUS
(1)
(1) See Fig.21.