Setting Overflow Time Of Watchdog Timer - NEC mPD78F0730 Preliminary User's Manual

8-bit single-chip microcontroller
Table of Contents

Advertisement

Cautions 4. The operation of the watchdog timer in the HALT and STOP modes differs as follows

9.4.2 Setting overflow time of watchdog timer

Set the overflow time of the watchdog timer by using bits 3 to 1 (WDCS2 to WDCS0) of the option byte (0080H).
If an overflow occurs, an internal reset signal is generated. The present count is cleared and the watchdog timer
starts counting again by writing "ACH" to WDTE during the window open period before the overflow time.
The following overflow time is set.
Downloaded from
Elcodis.com
electronic components distributor
depending on the set value of bit 0 (LIOCP) of the option byte.
LIOCP = 0 (Internal Low-Speed Oscillator
In HALT mode
Watchdog timer operation stops.
In STOP mode
If LIOCP = 0, the watchdog timer resumes counting after the HALT or STOP mode is released.
At this time, the counter is not cleared to 0 but starts counting from the value at which it was
stopped.
If oscillation of the internal low-speed oscillator is stopped by setting LSRSTOP (bit 1 of the
internal oscillation mode register (RCM) = 1) when LIOCP = 0, the watchdog timer stops
operating. At this time, the counter is not cleared to 0.
5. The watchdog timer does not stop during self-programming of the flash memory and
TM
EEPROM
emulation. During processing, the interrupt acknowledge time is delayed. Set the
overflow time and window size taking this delay into consideration.
Table 9-3. Setting of Overflow Time of Watchdog Timer
WDCS2
WDCS1
0
0
0
0
0
1
0
1
1
0
1
0
1
1
1
1
Caution The watchdog timer does not stop during self-programming of the flash memory and
EEPROM emulation. During processing, the interrupt acknowledge time is delayed. Set
the overflow time and window size taking this delay into consideration.
Remarks 1. f
: Internal low-speed oscillation clock frequency
RL
2. ( ): f
= 264 kHz (MAX.)
RL
CHAPTER 9 WATCHDOG TIMER
Can Be Stopped by Software)
WDCS0
Overflow Time of Watchdog Timer
10
0
2
/f
(3.88 ms)
RL
11
1
2
/f
(7.76 ms)
RL
12
0
2
/f
(15.52 ms)
RL
13
1
2
/f
(31.03 ms)
RL
14
0
2
/f
(62.06 ms)
RL
15
1
2
/f
(124.12 ms)
RL
16
0
2
/f
(248.24 ms)
RL
17
1
2
/f
(496.48 ms)
RL
Preliminary User's Manual U19014EJ1V0UD
LIOCP = 1 (Internal Low-Speed Oscillator
Cannot Be Stopped)
Watchdog timer operation continues.
221

Advertisement

Table of Contents
loading

Table of Contents