RL78/G23
ELCL Multiple Parameter Monitoring Function
R01AN5615EJ0200 Rev.2.00
Page 14 of 42
Mar.24.22
4.7 Function Specifications
This part describes function specifications of the sample code.
[Function name] main
Outline
Main process
Header
r_smc_entry.h, support_functions.h
Declaration
void main (void);
Description
This function initializes ELCL, sets ELCL output, and sets interrupts.
Every time it returns from INTELCL, P53 is inverted and LED1 turns ON/OFF.
Set the flag of ELCL interrupt generation g_led_flag to 0.
Arguments
None
Return value
None
Remarks
None
[Function name] r_timer_update
Outline
TAU0 operation channel change process
Header
r_smc_entry.h, support_functions.h
Declaration
void timer_update (void);
Description
Depending on the value of g_timer_mode, the combination of channels of the TAU to
be operated is changed, and the TAU is started and stopped.
Arguments
None
Return value
None
Remarks
None
[Function name] r_timer_reset
Outline
TAU0 reset process
Header
r_smc_entry.h, support_functions.h
Declaration
void timer_reset (void);
Description
Stop TAU0, reset the counter, and wait for the start state.
Arguments
None
Return value
None
Remarks
None
[Function name] r_Config_MultipleParameterMonitoring_interrupt
Outline
ELCL interrupt process
Header
platform.h
Declaration
#pragma interrupt r_Config_MultipleParameterMonitoring_interrupt (vect=INTELCL)
Description
This function sets the flag of ELCL interrupt generation g_led_flag to 1.
Arguments
None
Return value
None
Remarks
None
[Function name] r_elcl_reset_flipflop
Outline
ELCL flip-flop reset process
Header
platform.h
Declaration
void r_elcl_reset_flipflop (void);
Description
This function resets the flip-flops to reset the ELOMONI flag.
Arguments
None
Return value
None
Remarks
Flip-flops are reset when bit 6 and bit 7 of ELLnCTL are set to 0.