manuals.online logo
Brands
  1. Home
  2. •
  3. Brands
  4. •
  5. Renesas
  6. •
  7. Microcontroller
  8. •
  9. Renesas RL78/G23 User manual

Renesas RL78/G23 User manual

Application Note
R01AN5615EJ0200 Rev.2.00 Page 1 of 42
Mar.24.22
RL78/G23
ELCL Multiple Parameter Monitoring Function
Introduction
This application note describes how to monitor multiple input signals (parameters) using the logic and event
link controller (ELCL). By using ELCL, it is possible to reduce the resources (external parts, ROM, RAM, etc.)
because the functions realized by external parts or software can be realized by hardware.
Target Device
RL78/G23
When applying the sample program covered in this application note to another microcomputer, modify the
program according to the specifications for the target microcomputer and conduct an extensive evaluation of
the modified program.
RL78/G23 ELCL Multiple Parameter Monitoring Function
R01AN5615EJ0200 Rev.2.00 Page 2 of 42
Mar.24.22
Contents
1. Specifications ..........................................................................................................................4
2. Conditions for Operation Confirmation Test.............................................................................6
3. Hardware.................................................................................................................................7
3.1 Example of Hardware Configuration .......................................................................................................7
3.2 Used Pins ................................................................................................................................................ 7
4. Software..................................................................................................................................8
4.1 Overview of the sample program ............................................................................................................8
4.2 Folder Configuration..............................................................................................................................11
4.3 Option Byte Settings..............................................................................................................................12
4.4 Constants ..............................................................................................................................................12
4.5 Variables................................................................................................................................................13
4.6 Functions...............................................................................................................................................13
4.7 Function Specifications .........................................................................................................................14
4.8 Flow Charts ...........................................................................................................................................16
4.8.1 Main Process.......................................................................................................................................16
4.8.2 Channel change process for TAU0.....................................................................................................17
4.8.3 TAU0 reset process.............................................................................................................................18
4.8.4 ELCL interrupt process........................................................................................................................19
4.8.5 ELCL flip-flop reset process................................................................................................................19
4.8.6 INTP0 interrupt process ......................................................................................................................20
4.8.7 Wait process........................................................................................................................................21
4.8.8 TAU0 channel 7 interrupt process.......................................................................................................21
5. Application example...............................................................................................................22
5.1 Setting up the ELCL components..........................................................................................................22
5.2 r01an5615_elcl_parameter.scfg............................................................................................................24
5.2.1 Clocks..................................................................................................................................................26
5.2.2 System.................................................................................................................................................26
5.2.3 r_bsp....................................................................................................................................................26
5.2.4 Config_LVD0.......................................................................................................................................26
5.2.5 Config_INTC........................................................................................................................................26
5.2.6 Config_TAU0_0、Config_TAU0_1、Config_TAU0_2、Config_TAU0_3...........................................26
5.2.7 Config_TAU0_7...................................................................................................................................26
5.2.8 Config_MultipleParameterMonitoring..................................................................................................27
5.2.9 Config_PORT......................................................................................................................................27
5.3 Component “ELCL multiple parameter monitoring”...............................................................................28
5.3.1 Setting the ELCL Register...................................................................................................................32
RL78/G23 ELCL Multiple Parameter Monitoring Function
R01AN5615EJ0200 Rev.2.00 Page 3 of 42
Mar.24.22
5.3.2 Example of using four ports with no external interrupt function as interrupts .....................................37
5.3.3 How to Make Inputs Negative Logic....................................................................................................38
6. Sample Code.........................................................................................................................39
7. Reference..............................................................................................................................39
Revision History............................................................................................................................40
RL78/G23 ELCL Multiple Parameter Monitoring Function
R01AN5615EJ0200 Rev.2.00 Page 4 of 42
Mar.24.22
1. Specifications
This application note describes an example of linking an output signal generated by ORing four input
signals using ELCL to a specific peripheral function.
Figure 1-1 shows the ELCL configuration and Figure 1-2 shows the timing chart.
Link the four input signals (INPUT A, INPUT B, INPUT C, INPUT D) to the three ORs (L1L0, L1L1, L2L0),
and link the generated signal to OUTPUT E. In addition, link the four input signals to the flip-flops (L2F0,
L2F1, L3F0, L3F1), and link the output of the flip-flops to the monitor register (ELOMONI). Thereby it is
possible to confirm the state of the input signal by reading the monitor register.
For example, link four ports (P20 to P23) that do not have an external interrupt function to INPUT A to
INPUT D, and set the link destination of OUTPUT E to event link interrupt (INTELCL). As a result, INTELCL
is generated when any one of P20 to P23 changes, and the port without external interrupt function can be
treated as an interrupt.
Figure 1-1 ELCL Configuration
L2F0
L3F1 L3F0 L2F1
L1L0
ELCL
L2L0
ELL2T
30EN
ELL3T
30EN ELL2T
31EN
ELL3T
31EN
L1L1
ELOMONI7ELOMONI6ELOMONI5ELOMONI4ELOMONI3ELOMONI2ELOMONI1ELOMONI0
INPUT A
INPUT B
INPUT C
INPUT D
OUTPUT E
ELOMONI
RL78/G23 ELCL Multiple Parameter Monitoring Function
R01AN5615EJ0200 Rev.2.00 Page 5 of 42
Mar.24.22
Figure 1-2 Timing chart
OUTPUT E
INPUT A
INPUT B
INPUT C
INPUT D
ELOMONI3
ELOMONI4
ELOMONI5
ELOMONI6
RL78/G23 ELCL Multiple Parameter Monitoring Function
R01AN5615EJ0200 Rev.2.00 Page 6 of 42
Mar.24.22
2. Conditions for Operation Confirmation Test
The sample code with this application note runs properly under the condition below.
Table 2-1 Operation Confirmation Conditions
Items
Contents
MCU
RL78/G23 (R7F100GLG)
Operating frequencies
•High-speed on-chip oscillator clock: 32 MHz
•
CPU/peripheral hardware clock: 32 MHz
Operating voltage
•3.3V
•LVD0 operations (VLVD0) : Reset mode
Rising edge TYP.1.90V
Falling edge TYP.1.86V
Integrated development environment (CS+)
CS+ for CC V8.07.00 from Renesas Electronics Corp.
C compiler (CS+)
CC-RL V1.11 from Renesas Electronics Corp.
Integrated development environment
(e
2
studio)
e2studio 2022-01 (22.01.0) from Renesas Electronics Corp.
C compiler (e2studio)
CC-RL V1.11 from Renesas Electronics Corp.
Integrated development environment (IAR)
IAR Embedded Workbench for Renesas RL78 v4.21.1 from
IAR Systems
C compiler (IAR)
Smart Configurator
V.1.2.0
Board support package (r_bsp)
V.1.13
Emulator
CS
+
, e2studio: COM port
IAR: E2 Emulator Lite
Board
RL78/G23 Fast Prototyping Board
(RTK7RLG230CLG000BJ)
RL78/G23 ELCL Multiple Parameter Monitoring Function
R01AN5615EJ0200 Rev.2.00 Page 7 of 42
Mar.24.22
3. Hardware
3.1 Example of Hardware Configuration
Figure 3-1 shows an example of the hardware configuration in this application.
Figure 3-1 Hardware Configuration
RL78/G23
EV
DD
V
DD
V
SS
EV
SS
RESET
REGC
V
DD
V
DD
P53
LED1EV
DD
P137 SW1
V
DD
P40/TOOL0
P11/TOOLRxD
P12/TOOLTxD PC(via USB)
Caution 1. This simplified circuit diagram was created to show an overview of connections only. When
actually designing your circuit, make sure the design includes sufficient pin processing and meets
electrical characteristic requirements. (Connect each input-only port to VDD or VSS through a
resistor.)
Caution 2. Connect the EVSS pin to VSS and the EVDD pin to VDD.
Caution 3. VDD must be held at not lower than the reset release voltage (VLVD0) that is specified as LVD.
3.2 Used Pins
Table 3-1 shows list of used pins and assigned functions.
Table 3-1 List of Pins and Functions
Pin Name
Input/Output
Function
P53
Output
LED1 lights (Low Active)
P137
Input
SW1 (Low Active)
Caution. In this application note, only the used pins are processed. When actually designing your circuit,
make sure the design includes sufficient pin processing and meets electrical characteristic
requirements.
RL78/G23 ELCL Multiple Parameter Monitoring Function
R01AN5615EJ0200 Rev.2.00 Page 8 of 42
Mar.24.22
4. Software
4.1 Overview of the sample program
In this sample code, four timer (TAU0 channel 0, TAU0 channel 1, TAU0 channel 2 and TAU0 channel 3)
are operated in interval timer mode. ELCL ORs the four timer completion interrupt (INTTM00, INTTM01,
INTTM02 and INTTM03) as input signals and outputs the result as INTELCL. When INTELCL occurs, the
output of the port (P53) is inverted and LED1 turns on or off. Since the combination of four timer outputs
changes each time SW1 is pressed, the lighting interval of LED1 changes accordingly.
Table 4-1 shows operation overview. The operations from No. (1) to (10) are repeated by pressing SW1.
Table 4-1 Operation overview (Combination of timers)
No.
g_timer_mode
SW1
TAU0
LED1
Channel 0
Channel 1
Channel 2
Channel 3
(1)
0
‐
STOP
STOP
STOP
STOP
OFF
(2)
1
Press
STOP
STOP
STOP
STOP
OFF
(3)
1
‐
Count
STOP
STOP
STOP
Blink
(About 2s
intervals)
(4)
2
Press
STOP
STOP
STOP
STOP
OFF
(5)
2
‐
Count
Count
STOP
STOP
Blink
(About 1s
intervals)
(6)
3
Press
STOP
STOP
STOP
STOP
OFF
(7)
3
‐
Count
Count
Count
STOP
Blink
(About 0.5s
intervals)
(8)
4
Press
STOP
STOP
STOP
STOP
OFF
(9)
4
‐
Count
Count
Count
Count
Blink
(About 0.25s
intervals)
(10)
0
Press
STOP
STOP
STOP
STOP
OFF
Figure 4-1 shows operation overview, Figure 4-2 shows timing chart.
RL78/G23 ELCL Multiple Parameter Monitoring Function
R01AN5615EJ0200 Rev.2.00 Page 9 of 42
Mar.24.22
Figure 4-1 Operation overview
SW1 ON
SW1 ON
SW1 ON
SW1 ON
SW1 ON
g_timer_mode = 0
The LED1 OFF
ALL TAUmn STOP
g_timer_mode = 1
The LED1 is blinked at
INTTM00 intervals
g_timer_mode = 2
The LED1 is blinked at
INTTM00 and INTTM01
ORed intervals
g_timer_mode = 3
The LED1 is blinked at
INTTM00, INTTM01 and
INTTM02 ORed intervals
g_timer_mode = 4
The LED1 is blinked at
INTTM00, INTTM01,
INTTM02 and INTTM03
ORed intervals
Reset release
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
Figure 4-2 Timing chart of the sample code
INTTM01
INTTM00
INTTM03
INTTM02
INTELCL
SW1
LED1
g_timer_mode
= 0g_timer_mode
= 4
g_timer_mode
= 3
g_timer_mode
= 1g_timer_mode
= 2
RL78/G23 ELCL Multiple Parameter Monitoring Function
R01AN5615EJ0200 Rev.2.00 Page 10 of 42
Mar.24.22
Figure 4-3 shows the system configuration of the sample code.
Select INTTM00, INTTM01, INTTM02 and INTTM03 as the ELCL input signal and INTELCL as the ELCL
output signal.
Figure 4-3 System configuration of the sample code
L2F0L3F1 L3F0 L2F1
L1L0
ELCL
L2L0
ELL2T
30EN
ELL3T
30EN ELL2T
31EN
ELL3T
31EN
L1L1
ELOMONI7ELOMONI6ELOMONI5ELOMONI4ELOMONI3ELOMONI2ELOMONI1ELOMONI0
ELOMONI
INTTM00
INTTM01
INTTM02
INTTM03
Interrupt
Control
circuit
CPU
P53 P53 (LED1)
P137 (SW1)
TAU0
INTELCL
RL78/G23 ELCL Multiple Parameter Monitoring Function
R01AN5615EJ0200 Rev.2.00 Page 11 of 42
Mar.24.22
4.2 Folder Configuration
Table 4-2 shows folder configuration of source file and header files using by sample code except the files
generated by integrated development environment and the files in the bsp environment.
Table 4-2 Folder configuration (1/2)
Folder/File configuration
Outline
Created by
Smart
configurator
¥r01an5615_elcl_parameter<DIR>
Root folder of this sample code
¥src<DIR>
Folder for program source
main.c
Sample code source file
support_functions.c
Source file for functions
support_functions.h
Header file for functions
¥smc_gen<DIR>
Folder created by Smart Configurator
√
¥Config_INTC<DIR>
Folder for interrupt program
√
Config_INTC.c
Source file for INTP0 (SW1)
√
Config_INTC.h
Header file for INTP0
√
Config_INTC_user.c
Interrupt source file for INTP0
√Note 2
¥Config_MultipleParameterMonitor
ing<DIR>
Folder for ELCL program
√
Config_MultipleParameterMoni
toring.c
Source file for ELCL
√
Config_MultipleParameterMoni
toring.h
Source file for ELCL
√
Config_MultipleParameterMoni
toring_user.c
Interrupt source file for ELCL
√Note 2
¥Config_PORT<DIR>
Folder for PORT program
√
Config_PORT.c
Source file for PORT
√
Config_PORT.h
Header file for PORT
√
Config_PORT_user.c
Interrupt source file for PORT
√Note 1
¥Config_TAU0_0<DIR>
Folder for TAU0 channel 0 program
√
Config_TAU0_0.c
Source file for TAU0 channel 0
√
Config_TAU0_0.h
Header file for TAU0 channel 0
√
Config_TAU0_0_user.c
Interrupt source file for TAU0 channel 0
√Note 1
¥Config_TAU0_1<DIR>
Folder for TAU0 channel 1 program
√
Config_TAU0_1.c
Source file for TAU0 channel 1
√
Config_TAU0_1.h
Header file for TAU0 channel 1
√
Config_TAU0_1_user.c
Interrupt source file for TAU0 channel 1
√Note 1
¥Config_TAU0_2<DIR>
Folder for TAU0 channel 2 program
√
Config_TAU0_2.c
Source file for TAU0 channel 2
√
Config_TAU0_2.h
Header file for TAU0 channel 2
√
Config_TAU0_2_user.c
Interrupt source file for TAU0 channel 2
√Note 1
¥Config_TAU0_3<DIR>
Folder for TAU0 channel 3 program
√
Config_TAU0_3.c
Source file for TAU0 channel 3
√
Config_TAU0_3.h
Header file for TAU0 channel 3
√
Config_TAU0_3_user.c
Interrupt source file for TAU0 channel 3
√Note 1
Note. <DIR> means directory.
Note 1. Not used in this sample code.
Note 2. Added the interrupt handling routine to the file generated by the Smart Configurator.
RL78/G23 ELCL Multiple Parameter Monitoring Function
R01AN5615EJ0200 Rev.2.00 Page 12 of 42
Mar.24.22
Table 4-3 Folder configuration (2/2)
Folder/File configuration
Outline
Created by
Smart
configurator
¥r01an5615_elcl_parameter<DIR>Note 3
Root folder of this sample code
¥src<DIR>
Folder for program source
¥smc_gen<DIR>
Folder created by Smart Configurator
√
¥Config_TAU0_7<DIR>
Folder for TAU0 channel 7 program
√
Config_TAU0_7.c
Source file for TAU0 channel 7
√
Config_TAU0_7.h
Header file for TAU0 channel 7
√
Config_TAU0_7_user.c
Interrupt source file for TAU0 channel 7
√Note 2
¥general<DIR>
Folder for initialize or common program
√
¥r_bsp<DIR>
Folder for BSP program
√
¥r_config<DIR>
Folder for program
√
Note. <DIR> means directory.
Note 2. Added the interrupt handling routine to the file generated by the Smart Configurator.
Note 3. The IAR version of the sample code contains r01an5615_elcl_parameter.ipcf. For the ipcf file, refer
to "RL78 Smart Configurator User Guide: IAR (R20AN0581)".
4.3 Option Byte Settings
Table 4-4 shows the option byte settings.
Table 4-4 Option Byte Settings
Address
Setting Value
Contents
000C0H/040C0H
1110 1111B (EFH)
Operation of Watchdog timer is stopped
(counting is stopped after reset)
000C1H/040C1H
1111 1110B (FEH)
LVD0 operating mode: reset mode
Detection voltage: Rising edge 1.90V
Falling edge 1.86V
000C2H/040C2H
1110 1000B (E8H)
Flash operating mode: HS mode
High-speed on-chip oscillator clock: 32MHz
000C3H/040C3H
1000 0101B (85H)
On-chip debugging is enabled
4.4 Constants
Table 4-5 shows the constants that are used in this sample code.
Table 4-5 Constants used in the sample code
Constant Name
Setting Value
Contents
File
LED1
P5_bit.no3
P53
main.c
LED_ON
0
Setting value for turning on the LED
main.c
LED_OFF
1
Setting value for turning off the LED
main.c
CHATTA_WAIT
100
Chattering prevention time (100ms)
Config_INTC_user.c
RL78/G23 ELCL Multiple Parameter Monitoring Function
R01AN5615EJ0200 Rev.2.00 Page 13 of 42
Mar.24.22
4.5 Variables
Table 4-6 shows the global variables used in this sample code.
Table 4-6 Global variables used in the sample code
Type
Variable name
contents
Functions used in
volatile uint16_t
g_ms_timer
Count value of the wait process
r_ms_delay,
r_Config_TAU0_7_interrupt
volatile uint8_t
g_led_flag
INTELCL generation flag
Polling with the main function
and toggle the state of the LED
main
r_Config_MultipleParameterMon
itoring_interrupt
uint8_t
g_timer_mode
Timer operation mode
r_timer_update
r_Config_MultipleParameterMon
itoring_interrupt
4.6 Functions
Table 4-7 shows the functions used in the sample code. However, the unchanged functions generated by
the Smart Configurator are excluded.
Table 4-7 Functions
Function name
Outline
Source file
main
Main process
main.c
r_timer_update
Channel change process for TAU0
support_functions.c
r_timer_reset
TAU0 stop process
support_functions.c
r_Config_MultipleParameterMonitor
ing_interrupt
ELCL interrupt process
Config_MultipleParameterMon
itoring_user.c
r_elcl_reset_flipflop
ELCL flip-flop reset process
Config_MultipleParameterMon
itoring_user.c
r_Config_INTC_intp0_interrupt
INTP0 interrupt process
Config_INTC_user.c
r_ms_delay
Wait process to prevent chattering
Config_TAU0_7_user.c
r_Config_TAU0_7_interrupt
TAU0 channel 7 interrupt process
(For chattering prevention)
Config_TAU0_7_user.c
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.
RL78/G23 ELCL Multiple Parameter Monitoring Function
R01AN5615EJ0200 Rev.2.00 Page 15 of 42
Mar.24.22
[Function name] r_Config_INTC_intp0_interrupt
Outline
INTP0 interrupt process
Header
r_cg_macrodriver.h, r_cg_userdefine.h, Config_INTC.h, Config_TAU0_7.h
Declaration
#pragma interrupt r_Config_INTC_intp0_interrupt (vect=INTP0)
Description
Sets g_timer_mode to indicate the state of the timer.
Sets the INTP0 interrupt generation flag g_timer_flag to 1.
Execute the wait process to prevent chattering when pressing SW1.
Arguments
None
Return value
None
Remarks
None
[Function name] r_ms_delay
Outline
Wait process
Header
r_cg_macrodriver.h, r_cg_userdefine.h, Config_TAU0_7.h
Declaration
void r_ms_delay (uint16_t msec);
Description
This function waits for the time (ms) specified by the argument msec.
This function counts using channel 7.
Polls if g_ms_timer is less than CHATTA_WAIT, completes wait process if more than
CHATTA_WAIT.
Arguments
msec
Return value
None
Remarks
None
[Function name] r_Config_TAU0_7_interrupt
Outline
TAU0 channel 7 interrupt process
Header
r_cg_macrodriver.h, r_cg_userdefine.h, Config_TAU0_7.h
Declaration
#pragma interrupt r_Config_TAU0_7_interrupt (vect=INTTM07)
Description
This function is an interrupt process by INTTM07 on TAU0 channel 7.
Counts up g_ms_timer.
Arguments
None
Return value
None
Remarks
None
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 = ONLED1 = 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
RL78/G23 ELCL Multiple Parameter Monitoring Function
R01AN5615EJ0200 Rev.2.00 Page 17 of 42
Mar.24.22
4.8.2 Channel change process for TAU0
Figure 4-5 shows flowchart of the channel change process for TAU0.
Figure 4-5 Channel change process for TAU0 (1/2)
r_timer_update()
Disable outputs of TAU00,
TAU01, TAU02 and TAU03
RETI
g_timer_mode = 0
g_timer_mode = 1
g_timer_mode = 2
g_timer_mode = 3
g_timer_mode = 4
A B C D
A’B’C’D’
TOE0L = 00H
LED1 = OFF
STOP & Reset TAU0
R_TAU0_Set_PowreOff()
Initialization of TAU00
R_Config_TAU0_0_Create
Enable outputs of TAU00
A B
A’B’
g_timer_mode = 1g_timer_mode = 2
TAU00 count start
Initialization of TAU00
R_Config_TAU0_0_Create
Initialization of TAU01
R_Config_TAU0_1_Create
Enable outputs of TAU00 and
TAU01
TAU00 and TAU01 count start
TOE0L = 01H
TS0 = 01H
TOE0L = 03H
TS0 = 03H
RL78/G23 ELCL Multiple Parameter Monitoring Function
R01AN5615EJ0200 Rev.2.00 Page 18 of 42
Mar.24.22
Figure 4-6 Channel change process for TAU0 (2/2)
CD
C’D’
g_timer_mode = 3 g_timer_mode = 4
Initialization of TAU00
R_Config_TAU0_0_Create
Initialization of TAU01
R_Config_TAU0_1_Create
Enable outputs of TAU00,
TAU01 and TAU02
TAU00, TAU01 and TAU02
count start
Initialization of TAU00
R_Config_TAU0_0_Create
Initialization of TAU01
R_Config_TAU0_1_Create
Enable outputs of TAU00,
TAU01, TAU02 and TAU03
TAU00, TAU01, TAU02 and
TAU03 count start
Initialization of TAU02
R_Config_TAU0_2_Create
Initialization of TAU03
R_Config_TAU0_3_Create
Initialization of TAU02
R_Config_TAU0_2_Create
TOE0L = 07H
TS0 = 07H
TOE0L = 0FH
TS0 = 0FH
4.8.3 TAU0 reset process
Figure 4-7 shows flowchart of TAU0 reset process.
Figure 4-7 TAU0 reset process
r_timer_reset()
STOP TAU0 Clock
R_TAU0_Set_PowreOff()
Reset TAU0
R_TAU0_Set_Reset()
Release Reset
R_TAU0_Release_Reset()
START TAU0 Clock
R_TAU0_Set_PowerOn()
RETI
RL78/G23 ELCL Multiple Parameter Monitoring Function
R01AN5615EJ0200 Rev.2.00 Page 19 of 42
Mar.24.22
4.8.4 ELCL interrupt process
Figure 4-8 shows flowchart of ELCL interrupt process.
Figure 4-8 ELCL interrupt process
r_Config_MultipleParameterM
onitoring_interrupt()
return
g_led_flag = 1
4.8.5 ELCL flip-flop reset process
Figure 4-9 shows flowchart of ELCL flip-flop reset process.
Figure 4-9 ELCL flip-flop reset process
r_elcl_reset_flipflop()
return
ELL2CTL.ELL2T3xEN = 0
ELL2CTL.ELL2T3xEN = 1
Reset flip-flop
in block L2
ELL3CTL.ELL3T3xEN = 0
ELL3CTL.ELL3T3xEN = 1
Reset flip-flop
in block L3
RL78/G23 ELCL Multiple Parameter Monitoring Function
R01AN5615EJ0200 Rev.2.00 Page 20 of 42
Mar.24.22
4.8.6 INTP0 interrupt process
Figure 4-10, shows flowchart of INTP0 interrupt process.
Figure 4-10 INTP0 interrupt process
No Yes
r_Config_INTC_intp0_interrupt()
5 == (++g_timer_mode)
g_timer_mode = 0
g_timer_flag = 1
Wait
r_ms_delay(CHATTA_WAIT)
Enable interrupt
EI()
PIF0 = 0
return

Other manuals for RL78/G23

3

Other Renesas Microcontroller manuals

Renesas RX Series User manual

Renesas

Renesas RX Series User manual

Renesas mPD780343 User manual

Renesas

Renesas mPD780343 User manual

Renesas UPD789327 Series User manual

Renesas

Renesas UPD789327 Series User manual

Renesas RL78G14 Installation and operating instructions

Renesas

Renesas RL78G14 Installation and operating instructions

Renesas R-IN32M3 Series User manual

Renesas

Renesas R-IN32M3 Series User manual

Renesas R5F56307CDFN User manual

Renesas

Renesas R5F56307CDFN User manual

Renesas RX600 Series User manual

Renesas

Renesas RX600 Series User manual

Renesas RL78G14 User manual

Renesas

Renesas RL78G14 User manual

Renesas RL78/G23 User manual

Renesas

Renesas RL78/G23 User manual

Renesas R8C/18 Series User manual

Renesas

Renesas R8C/18 Series User manual

Renesas DA14706 PRO User manual

Renesas

Renesas DA14706 PRO User manual

Renesas RL78/G13 User manual

Renesas

Renesas RL78/G13 User manual

Renesas R-IN32M3-EC Installation and operation manual

Renesas

Renesas R-IN32M3-EC Installation and operation manual

Renesas 78K0/FF2 User manual

Renesas

Renesas 78K0/FF2 User manual

Renesas RAA604S00 Installation and operating instructions

Renesas

Renesas RAA604S00 Installation and operating instructions

Renesas G1X RL78G13 Series User manual

Renesas

Renesas G1X RL78G13 Series User manual

Renesas RL78 Series User manual

Renesas

Renesas RL78 Series User manual

Renesas RL78/G10 User manual

Renesas

Renesas RL78/G10 User manual

Renesas V850ES/IE2 User manual

Renesas

Renesas V850ES/IE2 User manual

Renesas 78K0R/KF3 User manual

Renesas

Renesas 78K0R/KF3 User manual

Renesas M16C/64A Series User manual

Renesas

Renesas M16C/64A Series User manual

Renesas H8S/2329 User manual

Renesas

Renesas H8S/2329 User manual

Renesas RL78/I1A User manual

Renesas

Renesas RL78/I1A User manual

Renesas Synergy Promotion Kit S5D9 User manual

Renesas

Renesas Synergy Promotion Kit S5D9 User manual

Popular Microcontroller manuals by other brands

NXP Semiconductors USB-KW38 quick start guide

NXP Semiconductors

NXP Semiconductors USB-KW38 quick start guide

COBHAM GR716-BOARD quick start guide

COBHAM

COBHAM GR716-BOARD quick start guide

Cypress Semiconductor EZ-USB FX2LP quick start guide

Cypress Semiconductor

Cypress Semiconductor EZ-USB FX2LP quick start guide

Avago HDJD-JD01 Hardware user's guide

Avago

Avago HDJD-JD01 Hardware user's guide

PLX Technology PCI 9056RDK-LITE Hardware reference manual

PLX Technology

PLX Technology PCI 9056RDK-LITE Hardware reference manual

Cypress Semiconductor GX3 EEPROM Programming & user guide

Cypress Semiconductor

Cypress Semiconductor GX3 EEPROM Programming & user guide

Efinix Titanium user guide

Efinix

Efinix Titanium user guide

ITEAD Iteaduino Leonardo manual

ITEAD

ITEAD Iteaduino Leonardo manual

Abov MC97F60128 user manual

Abov

Abov MC97F60128 user manual

Sino Wealth SH61F83 manual

Sino Wealth

Sino Wealth SH61F83 manual

Espressif Systems ESP8266 SDK AT Instruction Set

Espressif Systems

Espressif Systems ESP8266 SDK AT Instruction Set

STMicroelectronics X-NUCLEO-IHM07M1 user manual

STMicroelectronics

STMicroelectronics X-NUCLEO-IHM07M1 user manual

NXP Semiconductors MPC5746R Hardware Design Guide

NXP Semiconductors

NXP Semiconductors MPC5746R Hardware Design Guide

Espressif Systems ESP8266EX Hardware user's guide

Espressif Systems

Espressif Systems ESP8266EX Hardware user's guide

Victron energy VE.Bus Smart Dongle manual

Victron energy

Victron energy VE.Bus Smart Dongle manual

Texas Instruments TMS320DM357 user guide

Texas Instruments

Texas Instruments TMS320DM357 user guide

Eurotech VIPER Quick start manual

Eurotech

Eurotech VIPER Quick start manual

Pololu A-Star 32U4 Series Schematic diagram

Pololu

Pololu A-Star 32U4 Series Schematic diagram

manuals.online logo
manuals.online logoBrands
  • About & Mission
  • Contact us
  • Privacy Policy
  • Terms and Conditions

Copyright 2025 Manuals.Online. All Rights Reserved.