Operation As Interval Timer; Interval Time Of Interval Timer - NEC PD789488 User Manual

Pd789489 subseries 8-bit single-chip microcontrollers
Table of Contents

Advertisement

9.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 operates as an interval timer that repeatedly generates an interrupt at intervals
specified by a preset count value.
Select a count clock (or interval) by setting bits 0 to 2 (WDCS0 to WDCS2) of the watchdog timer clock selection
register (WDCS). The watchdog timer starts operation as an interval timer when the RUN bit (bit 7 of WDTM) is set to
1.
In interval timer mode, the interrupt mask flag (WDTMK) 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 HALT mode, but stops in STOP mode. Therefore, first set RUN to 1 to
clear the interval timer before executing the STOP instruction.
Cautions 1. Once bit 4 (WDTM4) of WDTM is set to 1 (when watchdog timer mode is selected), interval
timer mode is not set unless the RESET signal is input.
2. The interval time may be up to 0.8% shorter than the set time when WDTM has just been set.
WDCS2 WDCS1 WDCS0
0
0
1
1
f
: Main system clock oscillation frequency
X
172
CHAPTER 9 WATCHDOG TIMER
Table 9-5. Interval Time of Interval Timer
11
× 1/f
0
0
2
X
13
1
0
2
× 1/f
X
15
0
0
2
× 1/f
X
17
× 1/f
1
0
2
X
User's Manual U15331EJ4V1UD
Interval
µ
410
s
1.64 ms
6.55 ms
26.2 ms
At f
= 5.0 MHz
X

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pd78f9488Pd78f9489Pd789489

Table of Contents