Application Note
78K0S/Kx1+
Sample Program (16-bit Timer/Event Counter 00)
External Event Counter
This document describes an operation overview of the sample program and how to use it, as well as how to set and use
the external event counter function of 16-bit timer/event counter 00. In the sample program, the LED output is reversed
every fixed time the falling edge of the external pulse input is detected, by using the external event counter function of
16-bit timer/event counter 00.
Target devices
78K0S/KA1+ microcontroller
78K0S/KB1+ microcontroller
78K0S/KU1+ microcontroller
78K0S/KY1+ microcontroller
Document No.
U18888EJ1V0AN00 (1st edition)
Date Published December 2007 N
Printed in Japan
2007
CHAPTER 1 OVERVIEW....................................................................................... 3
1.1
1.2
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 Charts ................................................................................................. 8
4.1
Counter 00 ................................................................................................. 9
5.1
5.2
Operation with SM+................................................................................... 23
CONTENTS