Format Of Watchdog Timer Mode Register - NEC switch User Manual

Nec user's manua switch
Table of Contents

Advertisement

(2) Watchdog timer mode register (WDTM)
This register sets the operation mode of the watchdog timer, and enables/disables counting of the watchdog
timer.
The WDTM is set with a 1-bit or 8-bit memory manipulation instruction.
RESET input sets the WDTM to 00H.
Symbol
<7>
6
5
WDTM
RUN
0
0
RUN
0
Stop counting
1
Clear counter and start counting
WDTM4
WDTM3
0
0
Operation disabled
0
1
Interval timer mode (overflow and maskable interrupt occur)
1
0
Watchdog timer mode 1 (overflow and non-maskable interrupt occur)
1
1
Watchdog timer mode 2 (overflow occurs and reset operation started)
Notes 1. Once RUN has been set (1), it cannot be cleared (0) by software. Therefore, when counting is
started, it cannot be stopped by any means other than RESET input.
2. Once WDTM3 and WDTM4 have been set (1), they cannot be cleared (0) by software.
3. The watchdog timer starts operations as an interval timer when RUN is set to 1.
Cautions
1. When the watchdog timer is cleared by setting RUN to 1, the actual overflow time is up
to 0.8% shorter than the time set by timer clock select register 2 (TCL2).
2. In watchdog timer mode 1 or 2, set WDTM4 to 1 after confirming TMIF4 (bit 0 of the
interrupt request flag register 0 (IF0)) is set to 0. While TMIF4 is 1, a non-maskable
interrupt is generated upon write completion if watchdog timer mode 1 or 2 is
selected.
94
CHAPTER 7
WATCHDOG TIMER
Figure 7-3. Format of Watchdog Timer Mode Register
4
3
2
1
WDTM4 WDTM3
0
0
Selection of operation of watchdog timer
Selection of operation mode of watchdog timer
User's Manual U12978EJ3V0UD
0
Address
After reset
0
FFF9H
00H
Note 1
Note 3
R/W
R/W
Note 2

Advertisement

Table of Contents
loading

Table of Contents