CHAPTER 9 WATCHDOG TIMER
206
9.4
Operation
9.4.1 Operating as watchdog timer
Set bit 4 (WDTM4) of the watchdog timer mode register (WDTM) to 1 to operate as a watchdog timer to detect
program runaway.
Setting bit 7 (RUN) of WDTM to 1 starts the count. After counting starts, if RUN is set to 1 again within the set
time interval for runaway detection, the watchdog timer is cleared and counting starts again.
If RUN is not set to 1 and the runaway detection time has elapsed, a nonmaskable interrupt (INTWDT) is
generated (no reset functions).
The watchdog timer stops running in the STOP mode and IDLE mode. Consequently, set RUN to 1 and clear the
watchdog timer before entering the STOP mode or IDLE mode. However, in the case of STOP mode, clearing or
holding the watchdog timer differs (CESEL = 0: clear, CESEL = 1: hold) according to the value of CESEL bit of the
power saving control register (PSC). Do not set the watchdog timer when operating the HALT mode since the
watchdog timer running in HALT mode.
Cautions 1. Sometimes, the actual runaway detection time is a maximum of 0.5% less than the set time.
2.
When the subclock is selected in a CPU clock, the watchdog timer stops (retains) counting.
Table 9-4. Runaway Detection Time of Watchdog Timer
Runaway Detection Time
Note
2
14
/fxx (964
µ
s)
2
15
/fxx (1.928 ms)
2
16
/fxx (3.855 ms)
2
17
/fxx (7.710 ms)
2
18
/fxx (15.42 ms)
2
19
/fxx (30.84 ms)
2
20
/fxx (61.68 ms)
2
22
/fxx (246.7 ms)
Note
Parenthesized values apply when fxx = 17 MHz.
Summary of Contents for V850/SA1 mPD703015
Page 2: ...2 MEMO ...
Page 100: ...100 MEMO ...
Page 144: ...144 MEMO ...
Page 200: ...200 MEMO ...
Page 328: ...328 MEMO ...
Page 356: ...356 MEMO ...
Page 358: ...358 MEMO ...
Page 368: ...368 MEMO ...
Page 374: ...374 MEMO ...
Page 382: ...382 MEMO ...