
MB90895 Series
DS07-13731-4E
31
3.
Watchdog Timer
The watchdog timer is a 2-bit counter that uses time-base timer or watch timer as count clock. If the counter is
not cleared within an interval time, CPU is reset.
Watchdog timer functions
The watchdog timer is a timer counter that prevents runaway of a program. Once a watchdog timer is activated,
the counter of watchdog timer must always be cleared within a specified time of interval. If specified interval
time elapses without clearing the counter of a watchdog timer, CPU resetting occurs. This is the function of a
watchdog timer.
The interval time of a watchdog timer is determined by a clock cycle, which is input as a count clock. Watchdog
resetting occurs between a minimum time and a maximum time specified.
The output target of a clock source is specified by the watchdog clock selection bit (WTC: WDCS) in the watch
timer control register.
Interval time of a watchdog timer is specified by the time-base timer output selection bit/watch timer output
selection bit (WDTC: WT1, WT0) in the watchdog timer control register.
Interval timer of watchdog timer
HCLK: Oscillation clock ( 4 MHz) , CSCLK: Sub clock (8.192 kHz)
Notes:
If the time-base timer is cleared when watchdog timer count clock is used as time base timer output
(carry-over signal), watchdog reset time may become longer.
When using the sub clock as machine clock, be sure to specify watchdog timer clock source selection bit
(WDCS) in watch timer control register (WTC) at “0,” selecting output of watch timer.
Min
Max
Clock cycle
Min
Max
Clock cycle
Approx. 3.58 ms
Approx. 4.61 ms
214
±211
/HCLK
Approx. 0.457 s Approx. 0.576 s
212
±29
/SCLK
Approx. 14.33 ms Approx. 18.3 ms
216
±213
/HCLK
Approx. 3.584 s Approx. 4.608 s
215
±212
/SCLK
Approx. 57.23 ms Approx. 73.73 ms
218
±215
/HCLK
Approx. 7.168 s Approx. 9.216 s
216
±213
/SCLK
Approx.
458.75 ms
Approx.
589.82 ms
221
±218
/HCLK
Approx.
14.336 s
Approx.
18.432 s
217
±214
/SCLK