Contents Following The Main Loop - NEC 78K0S/K 1+ Series Application Note

Sample program (16-bit timer/event counter 00) interval timer
Hide thumbs Also See for 78K0S/K 1+ Series:
Table of Contents

Advertisement

1.2

Contents Following the Main Loop

The LEDs are blinked at fixed cycles by using the generation of a 16-bit timer/event counter 00 interrupt
(INTTM000), after completion of the initial settings.
An INTP1 interrupt is serviced when the falling edge of the INTP1 pin, which is generated by switch input, is
detected. Chattering is identified when INTP1 is at high level (switch is off), after 10 ms have elapsed since a fall of
the INTP1 pin was detected. The blinking cycle of the LEDs is changed in accordance with the number of switch
inputs when INTP1 is at low level (switch is on), after 10 ms have elapsed since an edge was detected.
Number of switch inputs: 3
<Output>
Blinks at cycles of
about 1/8 s.
LED
Note The blinking cycle from the zeroth switch input is repeated after the fourth switch input.
Caution For cautions when using the device, refer to the user's manual of each product (78K0S/KU1+,
78K0S/KY1+, 78K0S/KA1+, 78K0S/KB1+).
[Column] Chattering
Chattering is a phenomenon in which the electric signal repeats turning on and off due to a mechanical
flip-flop of the contacts, immediately after the switch has been pressed.
4
CHAPTER 1 OVERVIEW
Number of switch inputs: 0
Blinks at cycles of
Note
Switch input
Number of switch inputs: 2
Switch input
Blinks at cycles of
Application Note U18887EJ1V0AN
<Output>
about 1 s.
LED
Switch input
Switch input
<Output>
about 1/4 s.
LED
Number of switch inputs: 1
<Output>
Blinks at cycles of
about 1/2 s.
LED

Advertisement

Table of Contents
loading

This manual is also suitable for:

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

Table of Contents