Flow Chart - NEC 78K0S/K 1+ Series Application Note

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

Advertisement

CHAPTER 3 SOFTWARE
3.4

Flow Chart

A flow chart for the sample program is shown below.
Start
Option byte setting
Stack pointer setting
Stopping watchdog timer
operation
Initial settings
Setting the CPU clock
frequency and peripheral
hardware clock frequency
to 2 MHz
Stopping the oscillation of the
low-speed internal oscillator
I/O port setting
Reading the switch input from
the input port (P4)
Extracting the LED output
corresponding to the read
input value
LED outputs (LED1 to LED3)
from the output port (P2)
7
Application Note U18752EJ2V0AN

Advertisement

Table of Contents
loading

This manual is also suitable for:

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

Table of Contents