Watchdog Timer Operation; Operation As Watchdog Timer; Inadvertent Loop Detection Time Of Watchdog Timer - NEC switch User Manual

Nec user's manua switch
Table of Contents

Advertisement

7.4 Watchdog Timer Operation

7.4.1 Operation as watchdog timer

The watchdog timer detects an inadvertent program loop when bit 4 (WDTM4) of the watchdog timer mode
register (WDTM) is set to 1.
The count clock (inadvertent loop detection time interval) of the watchdog timer can be selected by bits 0 to 2
(TCL20 to TCL22) of timer clock select register 2 (TCL2). By setting bit 7 (RUN) of WDTM to 1, the watchdog timer
is started. Set RUN to 1 within the set inadvertent 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
inadvertent loop detection time is exceeded, the system is reset or a non-maskable interrupt is generated by the
value of bit 3 (WDTM3) of WDTM.
The watchdog 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 watchdog timer, and then execute the STOP instruction.
Caution
The actual inadvertent loop detection time may be up to 0.8% shorter than the set time.
Table 7-4. Inadvertent Loop Detection Time of Watchdog Timer
TCL22
TCL21
0
0
0
1
1
0
1
1
f
: System clock oscillation frequency
X
CHAPTER 7
WATCHDOG TIMER
TCL20
Inadvertent Loop Detection Time
× 1/f
11
0
2
X
× 1/f
13
0
2
X
× 1/f
15
0
2
X
× 1/f
17
0
2
X
User's Manual U12978EJ3V0UD
Operation at f
= 6.0 MHz
X
341 µ s
1.37 ms
5.46 ms
21.8 ms
95

Advertisement

Table of Contents
loading

Table of Contents