English
Language : 

MC81F4332 Datasheet, PDF (108/198 Pages) Finechips – ABOV SEMICONDUCTOR 8-BIT SINGLE-CHIP MICROCONTROLLERS
MC81F4x16
16. WATCH DOG TIMER
BCK[2:0]
fxx/1024
Start the CPU
fxx/512
fxx/256
M
overflow
fxx
fxx/128
fxx/64
U
fxx/32
8-Bit Up Counter
BITR
overflow
fxx/16
X
fxx/8
clear
BTCL
clear
Watchdog
Counter (7-bit)
clear
Basic interval timer INT enable
BTIE
BTIR
BTINT
Basic interval timer INT request
WDTSR
7-bit Comparator
7-bit Compare data
WDTCL
WDTR
To RESET CPU
WDTIE
WDTON
Watchdog timer INT enable
WDTIR
WDTINT
Watchdog timer INT request
Figure 16-1 Block diagram of Basic Interval Timer/Watchdog Timer
The watchdog timer rapidly detects the CPU malfunction such as endless looping caused by noise or
the like, and resumes the CPU to the normal state. The watchdog timer signal for detecting
malfunction can be selected either a reset CPU or a interrupt request.
When the watchdog timer is not being used for malfunction detection, it can be used as a timer to
generate an interrupt at fixed intervals.
The watchdog timer uses the Basic Interval Timer as a clock source.
The watchdog timer consists of 7-bit binary counter and the watchdog timer data register. When the
value of 7-bit binary counter is equal to the lower 7 bits of WDTR, the interrupt request flag is
generated. This can be used as Watchdog timer interrupt or reset the CPU in accordance with the bit
WDTON.
Watchdog reset feature is disabled when the watchdog timer status register(WDTSR) value is „0A5h‟.
Note that, WDTSR‟s reset value is „00h‟. And reset value of WDTON is „1‟. So watchdog timer reset is
enabled at reset time.
108
October 19, 2009 Ver.1.35