RL78/G23
ELCL Multiple Parameter Monitoring Function
R01AN5615EJ0200 Rev.2.00
Page 37 of 42
Mar.24.22
5.3.2 Example of using four ports with no external interrupt function as interrupts
The four ports that do not have external interrupt functions can be used as interrupts (INTELCL).
Figure 5-10 shows an example configuration.
Figure 5-10 ELCL Configuration
L2F0
L3F1
L3F0
L2F1
L1L0
ELCL
L2L0
ELL2T
30EN
ELL3T
30EN
ELL2T
31EN
ELL3T
31EN
L1L1
ELOMONI7
ELOMONI6
ELOMONI5
ELOMONI4
ELOMONI3
ELOMONI2
ELOMONI1
ELOMONI0
ELOMONI
P12
P50
P10
P51
Interrupt
Control
circuit
CPU
INTELCL
Note that the interrupt function realized in this configuration differs from the external interrupt function
(INTPx) in the following respects.
INTELCL is an ORed signal of the input pins, and an interrupt is generated when the ORed signal changes
from "Low" to "High".
If the code is output from the smart configurator as is, an interrupt will be generated on the rising edge of
the input pin. If you want to generate an interrupt on the falling edge, change the input logic to negative
logic when inputting the code to the OR circuit. For details, see Section 5.3.3, "How to Make Inputs
Negative Logic".
It is not possible to set both rising and falling edges for one input at the same time. Please set one of them.