147
CHAPTER 10 WATCHDOG TIMER
Preliminary User’s Manual U14581EJ3V0UM00
10.4 Watchdog Timer Operations
10.4.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 any runaways.
A watchdog timer count clock (runaway detection time interval) can be selected by using 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 runaway time interval. The watchdog timer can be cleared and counting is started.
If RUN is not set to 1 and the runaway detection time is past, system reset or a non-maskable interrupt request
is generated according to the WDTM bit 3 (WDTM3) value.
The watchdog timer is cleared if RUN is set to 1.
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.
Caution
The actual runaway detection time may be shorter than the set time by a maximum of 2
8
/f
X
[sec].
Table 10-4. Watchdog Timer Runaway Detection Time
WDCS2
WDCS1
WDCS0
Runaway Detection Time
0
0
0
f
X
/2
12
(489
µ
s)
0
0
1
f
X
/2
13
(978
µ
s)
0
1
0
f
X
/2
14
(1.96 ms)
0
1
1
f
X
/2
15
(3.91 ms)
1
0
0
f
X
/2
16
(7.82 ms)
1
0
1
f
X
/2
17
(15.6 ms)
1
1
0
f
X
/2
18
(31.3 ms)
1
1
1
f
X
/2
20
(125 ms)
Remarks 1. f
X
: Main system clock oscillation frequency
2. Figures in parentheses apply to operation with f
X
= 8.38 MHz.
Содержание mPD780852 Series
Страница 2: ...2 Preliminary User s Manual U14581EJ3V0UM00 MEMO...
Страница 8: ...8 Preliminary User s Manual U14581EJ3V0UM00 MEMO...
Страница 12: ...12 Preliminary User s Manual U14581EJ3V0UM00 MEMO...
Страница 26: ...26 Preliminary User s Manual U14581EJ3V0UM00 MEMO...
Страница 46: ...46 Preliminary User s Manual U14581EJ3V0UM00 MEMO...
Страница 74: ...74 Preliminary User s Manual U14581EJ3V0UM00 MEMO...
Страница 90: ...90 Preliminary User s Manual U14581EJ3V0UM00 MEMO...
Страница 100: ...100 Preliminary User s Manual U14581EJ3V0UM00 MEMO...
Страница 136: ...136 Preliminary User s Manual U14581EJ3V0UM00 MEMO...
Страница 142: ...142 Preliminary User s Manual U14581EJ3V0UM00 MEMO...
Страница 186: ...186 Preliminary User s Manual U14581EJ3V0UM00 MEMO...
Страница 222: ...222 Preliminary User s Manual U14581EJ3V0UM00 MEMO...
Страница 230: ...230 Preliminary User s Manual U14581EJ3V0UM00 MEMO...
Страница 240: ...240 Preliminary User s Manual U14581EJ3V0UM00 MEMO...
Страница 262: ...262 Preliminary User s Manual U14581EJ3V0UM00 MEMO...
Страница 296: ...296 Preliminary User s Manual U14581EJ3V0UM00 MEMO...
Страница 304: ...304 Preliminary User s Manual U14581EJ3V0UM00 MEMO...
Страница 314: ...314 Preliminary User s Manual U14581EJ3V0UM00 MEMO...