NEC 78GK0S/K 1+ Series Application Note page 16

Sample program (watchdog timer) 131 ms interval runaway detection
Table of Contents

Advertisement

[Example 3]
Stopping the watchdog timer
WDTM
0
1
1
The WDTM setting value is
respectively)". (In the example below, "x" of bit 3 and bits 2 to 0 is set to 0 and 1, respectively.)
• Assembly language
MOV
• C language
WDTM = 0b01110111;
Option byte (address: 0080H)
1
x
x
The option byte setting value is
When the software is described together with the protect byte setting, the following results. (In the
example below, bits 6, 5, and 1 are set to 0, and bits 3 and 2 are set to 1.)
OPBT
16
CHAPTER 4 SETTING METHODS
1
x
x
"0111xxxx
WDTM,
#01110111B
1
x
x
x
"1xx1xxx0
CSEG
AT
0080H
DB
10011100B
DB
11111111B
Application Note U18847EJ1V0AN
x
x
Overflow time setting
x
x
x
(Invalid setting due to watchdog timer operation
stop)
Operation clock selection
1
x
Watchdog timer operation stop
(x: don't care, bits 7, 6, and 5 must be set to 0, 1, and 1,
0
Oscillation control of the low-speed internal oscillator
0
Can be stopped by using software
(x: don't care, bits 7 and 4 must be set to 1)".

Advertisement

Table of Contents
loading

This manual is also suitable for:

78k0s/ka1+78k0s/kb1+78k0s/ku1+78k0s/ky1+

Table of Contents