216
CHAPTER 10 WATCHDOG TIMER
User’s Manual U15798EJ2V0UD
10.5 Watchdog Timer Operations
10.5.1 Watchdog timer operation
When bit 4 (WDTM4) of the watchdog timer mode register (WDTM) is set to 1, the watchdog timer is operated to
detect a program loop.
The program loop detection time interval is selected with bits 0 to 2 (WDCS0 to WDCS2) of the watchdog timer
clock select register (WDCS).
Watchdog timer starts by setting bit 7 (RUN) of WDTM to 1. After the watchdog timer is started, set RUN to 1 within
the set program loop time interval. The watchdog timer can be cleared and counting is started by setting RUN to
1. If RUN is not set to 1 and the program loop detection time is exceeded, system reset or a non-maskable interrupt
request is generated according to WDTM bit 3 (WDTM3) value.
The watchdog timer continues operating in the HALT mode but it stops in the STOP mode. Thus, set RUN to 1
before the STOP mode is set, clear the watchdog timer and then execute the STOP instruction.
Cautions 1. The actual program loop detection time may be shorter than the set time by a maximum of
2
8
/f
X
seconds.
2. When the subsystem clock is selected for CPU clock, watchdog timer count operation is
stopped.
Table 10-4. Watchdog Timer Program Loop Detection Time
Program Loop Detection Time
2
12
×
1/f
X
(410
µ
s)
2
13
×
1/f
X
(819
µ
s)
2
14
×
1/f
X
(1.64 ms)
2
15
×
1/f
X
(3.28 ms)
2
16
×
1/f
X
(6.55 ms)
2
17
×
1/f
X
(13.1 ms)
2
18
×
1/f
X
(26.2 ms)
2
20
×
1/f
X
(105 ms)
Remarks 1.
f
X
: Main system clock oscillation frequency
2.
Figures in parentheses are for operation with f
X
= 10 MHz.
Содержание mPD780344 Series
Страница 2: ...2 User s Manual U15798EJ2V0UD MEMO...