126
CHAPTER 8 WATCHDOG TIMER
User’s Manual U15104EJ2V0UD
8.4.2 Interval timer operation
The watchdog timer operates as an interval timer that 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 count clock (interval time) can be selected by using bits 0 to 2 (WDCS0 to WDCS2) of the watchdog timer
clock select register (WDCS). By setting bit 7 (RUN) of WDTM to 1, the watchdog timer starts operating as an interval
timer.
When the watchdog timer operates as an interval timer, the interrupt mask flag (WDTMK) and priority specification
flag (WDTPR) are validated and the maskable request interrupt (INTWDT) can be generated. Among maskable
interrupt requests, the INTWDT default has the highest priority.
The interval timer continues operating in the HALT mode but 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 (with the watchdog timer mode selected), the interval
timer mode is not set unless RESET is input.
2. The interval time just after setting by WDTM may be shorter than the set time by a maximum
of 0.5%.
Table 8-5. Interval Timer Interval Time
Interval Time
2
12
/f
X
(910
µ
s)
2
13
/f
X
(1.82 ms)
2
14
/f
X
(3.64 ms)
2
15
/f
X
(7.28 ms)
2
16
/f
X
(14.6 ms)
2
17
/f
X
(29.1 ms)
2
18
/f
X
(58.3 ms)
2
20
/f
X
(233 ms)
Remarks 1. f
X
: System clock oscillation frequency
2. ( ): f
X
= 4.5 MHz
Содержание mPD178053
Страница 2: ...2 User s Manual U15104EJ2V0UD MEMO ...