NEC 78K0S/K 1+ Series Application Note page 15

Led lighting switch control sample program (initial settings)
Hide thumbs Also See for 78K0S/K 1+ Series:
Table of Contents

Advertisement

[Example 1] Watchdog timer stop (same as in the sample program setting)
WDTM
0
1
1
Note To stop watchdog timer operation, the option byte must be used to set to "Oscillation is stopped by
software setting (LSRSTOP bit is set to 1)". For details, refer to
The WDTM register setting value is
respectively)". (In the example below, "x" of bit 3 is set to 0, and "x" of bits 2 to 0 is set to 1.)
• Assembly language
MOV
WDTM,
• C language
WDTM = 0b01110111;
[Example 2] The low-speed internal oscillation clock (f
overflow time is set to the maximum period (2
WDTM
0
1
1
To use the WDTM register as described above, its setting value is the same as its value after reset release, so
setting by a program is not required.
[Column] Binary-value description
To describe a binary value, append "B" or "Y" after the binary value in assembly language, or append "0b"
or "0B" before the binary value in C language.
CHAPTER 4 SETTING METHODS
1
x
x
x
"0111xxxx
#01110111B
0
0
1
1
Application Note U18752EJ2V0AN
x
Overflow time setting
(Setting is invalid, because watchdog timer
x
x
x
operation is stopped.)
Operation clock selection
1
x
Watchdog timer operation stop
* In this sample program, the watchdog timer is not used for
program loop detection, so it is set to operation stop.
4.1 Option Byte
(x: don't care, bits 7, 6, and 5 must be set to 0, 1, and 1,
) is used as the watchdog timer operation clock and the
RL
18
/f
) (same as the WDTM value after reset release).
RL
1
Overflow time setting
18
1
1
1
2
/f
Operation clock selection
0
0
Low-speed internal oscillation clock (f
Note
Setting.
RL
RL
)
15

Advertisement

Table of Contents
loading

This manual is also suitable for:

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

Table of Contents