217
CHAPTER 10 WATCHDOG TIMER
User’s Manual U15798EJ2V0UD
10.5.2 Interval timer operation
The watchdog timer operates as an interval timer which generates interrupt requests repeatedly at an interval of
the preset count value when bit 4 (WDTM4) of the watchdog timer mode register (WDTM) is set to 0.
The interval time of interval timer is selected with bits 0 to 2 (WDCS0 to WDCS2) of the watchdog timer clock select
register (WDCS). When 1 is set to bit 7 (RUN) of WDTM, the watchdog timer operates as an interval timer.
When the watchdog timer operated as the interval timer, the interrupt mask flag (WDTMK) and priority specify flag
(WDTPR) are validated and the maskable interrupt request (INTWDT) can be generated. Among maskable interrupts,
INTWDT has the highest priority at default.
The interval timer continues operating in the HALT mode but it stops in STOP mode. Thus, set RUN to 1 before
the STOP mode is set, clear the interval timer and then execute the STOP instruction.
Cautions 1. Once bit 4 (WDTM4) of WDTM is set to 1 (this selects the watchdog timer mode), the interval
timer mode is not set unless RESET input is applied.
2. The interval time just after setting by WDTM may be shorter than the set time by a maximum
of 2
8
/f
X
seconds.
3. When the subsystem clock is selected for CPU clock, watchdog timer count operation is
stopped.
Table 10-5. Interval Timer Interval Time
Interval 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...