RL78/G23
ELCL Multiple Parameter Monitoring Function
R01AN5615EJ0200 Rev.2.00
Page 16 of 42
Mar.24.22
4.8 Flow Charts
4.8.1 Main Process
Figure 4-4 shows flowchart of main process.
Figure 4-4 Main process
main()
Initialization of ELCL
R_Config_MultipleParamete
rMonitoring_Start()
Enable interrupt
EI()
INTP0 Start
R_Config_INTC_INTP0_Sta
rt()
INTELCL occurred
INTP0 occurred
Wait for SW1 (INTP0) to be
pressed
1 == g_led_flag &&
0 != g_timer_mode
LED1 = OFF
LED1 = ON
LED1 = OFF
Flip-Flop reset
r_elcl_reset_flipflop()
ELCL output disable
R_Config_MultipleParamete
rMonitoring_Stop()
ELCL output enable
R_Config_MultipleParamete
rMonitoring_Start()
g_led_flag = 0
Yes
Yes
No
No
1 == g_timer_flag
Change timer
r_timer_update()
g_timer_flag = 0
Yes
No