MB90560/565 Series
3. Watchdog Timer
• The watchdog timer is a timer/counter used to detect faults such as program runaway.
• The watchdog timer is a 2-bit counter that counts the clock signal from the timebase timer or clock timer.
• Once started, the watchdog timer must be cleared before the 2-bit counter overflows. If an overflow occurs,
the CPU is reset.
• Interval time for the watchdog timer
HCLK : Oscillation Clock (4 MHz)
Min.
Max.
Clock Period
Approx. 3.58 ms
Approx. 14.33 ms
Approx. 57.23 ms
Approx. 458.75 ms
Approx. 4.61 ms
Approx. 18.30 ms
Approx. 73.73 ms
Approx. 589.82 ms
2
14 ± 211 / HCLK
16 ± 213 / HCLK
18 ± 215 / HCLK
18 ± 215 / HCLK
2
2
2
Notes: • Thedifferencebetweenthemaximumandminimumwatchdogtimerintervaltimesisduetothetimingwhen
the counter is cleared.
• As the watchdog timer is a 2-bit counter that counts the carry-up signal from the timebase timer or clock
timer, clearing the timebase timer (when operating on HCLK) or the clock timer (when operating on SCLK)
lengthens the time until the watchdog timer reset is generated.
• Watchdog timer count clock
HCLK : Oscillation clock
WTC : WDCS
PCLK : PLL clock
“0”
“1”
Prohibited setting
Count the timebase timer output.
• Events that stop the watchdog timer
1 : Stop due to a power-on reset
2 : Watchdog reset
• Events that clear the watchdog timer
1 : External reset input from the RST pin.
2 : Writing “0” to the software reset bit.
3 : Writing “0” to the watchdog control bit (second and subsequent times) .
4 : Changing to sleep mode (clears the watchdog timer and temporarily halts the count) .
5 : Changing to timebase timer mode (clears the watchdog timer and temporarily halts the count) .
6 : Changing to stop mode (clears the watchdog timer and temporarily halts the count) .
34