Watchdog Timer Operation; Operation As Watchdog Timer; Watchdog Timer Program Loop Detection Time - NEC PD789488 User Manual

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

Advertisement

9.4 Watchdog Timer Operation

9.4.1 Operation as watchdog timer

The watchdog timer detects a program loop when bit 4 (WDTM4) of the watchdog timer mode register (WDTM) is
set to 1.
The count clock (program loop detection time interval) of the watchdog timer can be selected by bits 0 to 2
(WDCS0 to WDCS2) of watchdog timer clock selection register (WDCS). By setting bit 7 (RUN) of WDTM to 1, the
watchdog timer is started. Set RUN to 1 within the set program loop detection time interval after the watchdog timer
has been started. By setting RUN to 1, the watchdog timer can be cleared and start counting. If RUN is not set to 1,
and the program loop detection time is exceeded, a system reset signal or a non-maskable interrupt is generated,
depending on the value of bit 3 (WDTM3) of WDTM.
The watchdog timer continues operation in HALT mode, but stops in STOP mode. Therefore, first set RUN to 1 to
clear the watchdog timer before executing the STOP instruction.
Cautions 1. The actual program loop detection time may be up to 0.8% shorter than the set time.
2. When the subsystem clock is selected as the CPU clock, the watchdog timer count
operation is stopped. Even when the main system clock continues oscillating in this case,
watchdog timer count operation is stopped.
WDCS2 WDCS1 WDCS0
0
0
1
1
f
: Main system clock oscillation frequency
X
CHAPTER 9 WATCHDOG TIMER
Table 9-4. Watchdog Timer Program Loop Detection Time
Program Loop Detection Time
11
0
0
2
× 1/f
X
13
1
0
2
× 1/f
X
15
× 1/f
0
0
2
X
17
× 1/f
1
0
2
X
User's Manual U15331EJ4V1UD
At f
= 5.0 MHz
X
µ
410
s
1.64 ms
6.55 ms
26.2 ms
171

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pd78f9488Pd78f9489Pd789489

Table of Contents