CHAPTER 8 WATCHDOG TIMER
User's Manual U11919EJ3V0UM00
120
8.4.2 Operation as interval timer
When bits 4 and 3 (WDTM4, WDTM3) of the watchdog timer mode register (WDTM) are set to 0 and 1
respectively, the watchdog timer also operates as an interval timer that repeatedly generates an interrupt at time
intervals specified by a count value set in advance.
Select a count clock (or interval time) by setting bits 0 to 2 (TCL20 to TCL22) of timer clock select register 2
(TCL2). The watchdog timer starts operation as an interval timer when the RUN bit (bit 7 of WDTM) is set to 1.
In the interval timer mode, the interrupt mask flag (TMMK4) is valid, and a maskable interrupt (INTWDT) can be
generated. The priority of INTWDT is set as the highest of all the maskable interrupts.
The interval timer continues operation in the HALT mode, but stops in the STOP mode. Therefore, set RUN to 1
before entering the STOP mode to clear the interval timer, and then execute the STOP instruction.
Cautions 1. Once bit 4 (WDTM4) of WDTM is set to 1 (when the watchdog timer mode is selected), the
interval timer mode is not set, unless the RESET signal is input.
2. The interval time immediately after the setting by WDTM may be up to 0.8% shorter than the
set time.
Table 8-5. Interval Time of Interval Timer
TCL22
TCL21
TCL20
Interval Time
At f
X
= 5.0 MHz
0
0
0
2
11
×
1/f
X
410
µ
s
0
1
0
2
13
×
1/f
X
1.64 ms
1
0
0
2
15
×
1/f
X
6.55 ms
1
1
0
2
17
×
1/f
X
26.2 ms
f
X
: System clock oscillation frequency
www.DataSheet4U.com
Содержание UPD789026 Series
Страница 2: ...User s Manual U11919EJ3V0UM00 2 MEMO www DataSheet4U com...
Страница 8: ...User s Manual U11919EJ3V0UM00 8 MEMO www DataSheet4U com...
Страница 12: ...User s Manual U11919EJ3V0UM00 12 MEMO www DataSheet4U com...
Страница 22: ...User s Manual U11919EJ3V0UM00 22 MEMO www DataSheet4U com...
Страница 32: ...User s Manual U11919EJ3V0UM00 32 MEMO www DataSheet4U com...
Страница 84: ...User s Manual U11919EJ3V0UM00 84 MEMO www DataSheet4U com...
Страница 92: ...User s Manual U11919EJ3V0UM00 92 MEMO www DataSheet4U com...
Страница 104: ...User s Manual U11919EJ3V0UM00 104 MEMO www DataSheet4U com...
Страница 166: ...User s Manual U11919EJ3V0UM00 166 MEMO www DataSheet4U com...
Страница 178: ...User s Manual U11919EJ3V0UM00 178 MEMO www DataSheet4U com...
Страница 184: ...User s Manual U11919EJ3V0UM00 184 MEMO www DataSheet4U com...
Страница 204: ...User s Manual U11919EJ3V0UM00 204 MEMO www DataSheet4U com...
Страница 206: ...User s Manual U11919EJ3V0UM00 206 MEMO www DataSheet4U com...
Страница 212: ...User s Manual U11919EJ3V0UM00 212 MEMO www DataSheet4U com...