Application Note
78K0S/Kx1+
Sample Program (16-bit Timer/Event Counter 00)
Interval Timer
This document describes an operation overview of the sample program and how to use it, as well as how to set and use
the interval timer function of 16-bit timer/event counter 00. In the sample program, the LEDs are blinked at fixed cycles
by using the interval timer function of 16-bit timer/event counter 00. Furthermore, the blinking cycle of the LEDs is
changed in accordance with the number of switch inputs.
Target devices
78K0S/KA1+ microcontroller
78K0S/KB1+ microcontroller
78K0S/KU1+ microcontroller
78K0S/KY1+ microcontroller
Document No.
U18887EJ1V0AN00 (1st edition)
Date Published November 2007 N
Printed in Japan
2007
CHAPTER 1 OVERVIEW....................................................................................... 3
1.1
1.2
2.1
Circuit Diagram ........................................................................................... 5
2.2
Peripheral Hardware ................................................................................... 5
CHAPTER 3 SOFTWARE .................................................................................... 6
3.1
File Configuration ........................................................................................ 6
3.2
3.3
3.4
Flow Charts ................................................................................................. 9
4.1
4.2
5.1
5.2
Operation with SM+................................................................................... 30
CONTENTS