![Renesas RL78/G23 Скачать руководство пользователя страница 38](http://html1.mh-extra.com/html/renesas/rl78-g23/rl78-g23_manual_1440452038.webp)
RL78/G23
ELCL Multiple Parameter Monitoring Function
R01AN5615EJ0200 Rev.2.00
Page 38 of 42
Mar.24.22
5.3.3 How to Make Inputs Negative Logic
The component "ELCL multiple parameter monitoring" ORs four inputs with positive logic. The following
sample code shows how to change the input to negative logic.
Change the yellow part of the code output by the smart configurator as follows. When the program is
automatically generated by the Smart Configurator again, it will be overwritten with the output value of the
Smart Configurator (before the change). Please change the value each time you automatically generate the
program.
Function name
:
R_Config_MultipleParameterMonitoring_Create
change before
after change
void
R_Config_MultipleParameterMonitoring_Create
(void)
{
uint8_t p_isel0;
uint8_t p_isel1;
uint8_t p_isel2;
uint8_t p_isel3;
uint8_t p_isel2u;
uint8_t p_isel3u;
uint8_t p_osel0;
uint8_t p_osel1;
uint8_t p_osel2;
ELISEL6=0x16U;
p_isel0=0x07U;
ELISEL7=0x16U;
p_isel1=0x08U;
ELISEL8=0x16U;
p_isel2=0x09U;
p_isel2u=0x03U;
ELISEL9=0x16U;
p_isel3=0x0AU;
p_isel3u=0x04U;
ELL1SEL0=p_isel0;
ELL1SEL1=p_isel1;
ELL1SEL2=p_isel2;
ELL1SEL3=p_isel3;
ELL1LNK0=0x01U;
:
void
R_Config_MultipleParameterMonitoring_Create
(void)
{
uint8_t p_isel0;
uint8_t p_isel1;
uint8_t p_isel2;
uint8_t p_isel3;
uint8_t p_isel2u;
uint8_t p_isel3u;
uint8_t p_osel0;
uint8_t p_osel1;
uint8_t p_osel2;
ELISEL6=0x16U;
p_isel0=0x17U;
ELISEL7=0x16U;
p_isel1=0x18U;
ELISEL8=0x16U;
p_isel2=0x19U;
p_isel2u=0x03U;
ELISEL9=0x16U;
p_isel3=0x1AU;
p_isel3u=0x04U;
ELL1SEL0=p_isel0;
ELL1SEL1=p_isel1;
ELL1SEL2=p_isel2;
ELL1SEL3=p_isel3;
ELL1LNK0=0x01U;
: