3.2
Internal Peripheral Functions to Be Used
The following internal peripheral functions of the microcontroller are used in this sample program.
• External event counter function: 16-bit timer/event counter 00
• V
< V
detection:
DD
LVI
• External pulse input:
• LED output:
Note TI000/INTP0/P30:
TI000/ANI0/TOH1/P20: 78K0S/KY1+ and 78K0S/KU1+ microcontrollers
3.3
Initial Settings and Operation Overview
In this sample program, initial settings including the setting of the low-voltage detection function, selection of the
clock frequency, setting of the I/O ports, setting of 16-bit timer/event counter 00 (external event counter function), and
setting of interrupts are performed.
The LED output is reversed every 10 times (11 times only for the first reversal) the falling edge of the external pulse
input is detected, by using the generation of a 16-bit timer/event counter 00 interrupt (INTTM000), after completion of
the initial settings.
6
CHAPTER 3 SOFTWARE
Low-voltage detector (LVI)
Note
TI000
P40 (output port)
78K0S/KA1+ and 78K0S/KB1+ microcontrollers
Application Note U18888EJ1V0AN