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

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

Advertisement

(2) Low-speed internal oscillator setting
The low-speed internal oscillation clock is used as the clock source for the watchdog timer and 8-bit timer H1.
The LSRCM register is used to oscillate or stop the low-speed internal oscillator.
In this sample program, the low-speed internal oscillation clock is not used, so the LSRCM register is set as
described in
[Example
Figure 4-4. Format of Low-Speed Internal Oscillation Mode Register (LSRCM)
LSRCM
0
0
0
Note To stop the low-speed internal oscillator, 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
Caution Bits 1 to 7 of LSRCM must be set to 0.
[Example 1] Oscillation stop of the low-speed internal oscillator (same as in the sample program setting)
LSRCM
0
0
0
Note To stop the low-speed internal oscillator, 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 LSRCM register setting value is
• Assembly language
MOV
LSRCM,
• C language
LSRCM = 0b00000001;
20
CHAPTER 4 SETTING METHODS
1], mentioned below.
0
0
0
0
0
0
0
0
"00000001
(bits 7 to 1 must be set to 0)".
#00000001B
Application Note U18752EJ2V0AN
LSR
STOP
Oscillation/stop of low-speed internal oscillator
0
Oscillation
1
Stop
4.1 Option Byte
1
Oscillation/stop of low-speed internal oscillator
1
Stop
4.1 Option Byte
Note
Setting.
Note
Setting.

Advertisement

Table of Contents
loading

This manual is also suitable for:

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

Table of Contents