Application Note
78K0S/Kx1+
Sample Program (Initial Settings)
LED Lighting Switch Control
This document summarizes the initial settings for the sample program and describes basic initial settings for
the microcontroller. In the sample program, the two switch inputs and lighting of the three LEDs are
controlled, after the basic initial settings for the microcontroller, such as selecting the clock frequency or I/O
port, have been performed.
Target devices
78K0S/KA1+ microcontroller
78K0S/KB1+ microcontroller
78K0S/KU1+ microcontroller
78K0S/KY1+ microcontroller
Document No.
U18752EJ2V0AN00 (2nd edition)
Date Published September 2008 NS
Printed in Japan
2007
CHAPTER 1 OVERVIEW ....................................................................................3
2.1
Circuit Diagram ........................................................................................4
2.2
Peripheral Hardware ................................................................................4
CHAPTER 3 SOFTWARE ...................................................................................5
3.1
File Configuration.....................................................................................5
3.2
3.3
3.4
Flow Chart ...............................................................................................7
4.1
Option Byte Setting ..................................................................................8
4.2
Vector Table Setting ..............................................................................12
4.3
4.4
4.5
Clock Setting..........................................................................................17
4.6
Port Setting ............................................................................................23
4.7
Main Processing ....................................................................................27
5.1
5.2
Operation with SM+ ...............................................................................31
CONTENTS
Need help?
Do you have a question about the 78K0S/K 1+ Series and is the answer not in the manual?
Questions and answers