The event link controller (ELC) uses the event requests generated by various peripheral modules as source signals to connect (link) them to different modules, allowing direct cooperation between the modules without central processing unit (CPU) intervention. The conceptual diagram below illustrates a potential setup where a pin input triggers a timer which later triggers an ADC conversion. These tasks would be automatically handled without the need for polling or interrupt management.
In essence, the ELC is an array of multiplexers to route a wide variety of interrupt signals to a subset of peripheral functions. Events are linked by setting the multiplexer for the desired function to the desired signal (through R_ELC_LinkSet). The diagram below illustrates one peripheral output of the ELC. In this example, a conversion start is triggered for ADC120 Group A when the GPT0 counter overflows:
To manually link an event to a peripheral at runtime perform the following steps:
To disable the event, either use R_ELC_LinkBreak to clear the link for a specific event.
This module can be added to the Stacks tab via New Stack > System > Event Link Controller (r_elc).
Configuration | Options | Default | Description |
GPT/MTU3 Event Select > GPT00 Event Select > GPT00_0_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT00_0_INT4. |
GPT/MTU3 Event Select > GPT00 Event Select > GPT00_1_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT00_1_INT4. |
GPT/MTU3 Event Select > GPT00 Event Select > GPT00_2_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT00_2_INT4. |
GPT/MTU3 Event Select > GPT00 Event Select > GPT00_3_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT00_3_INT4. |
GPT/MTU3 Event Select > GPT00 Event Select > GPT00_4_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT00_4_INT4. |
GPT/MTU3 Event Select > GPT01 Event Select > GPT01_0_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT01_0_INT4. |
GPT/MTU3 Event Select > GPT01 Event Select > GPT01_1_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT01_1_INT4. |
GPT/MTU3 Event Select > GPT01 Event Select > GPT01_2_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT01_2_INT4. |
GPT/MTU3 Event Select > GPT01 Event Select > GPT01_3_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT01_3_INT4. |
GPT/MTU3 Event Select > GPT01 Event Select > GPT01_4_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT01_4_INT4. |
GPT/MTU3 Event Select > GPT02 Event Select > GPT02_0_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT02_0_INT4. |
GPT/MTU3 Event Select > GPT02 Event Select > GPT02_1_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT02_1_INT4. |
GPT/MTU3 Event Select > GPT02 Event Select > GPT02_2_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT02_2_INT4. |
GPT/MTU3 Event Select > GPT02 Event Select > GPT02_3_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT02_3_INT4. |
GPT/MTU3 Event Select > GPT02 Event Select > GPT02_4_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT02_4_INT4. |
GPT/MTU3 Event Select > GPT03 Event Select > GPT03_0_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT03_0_INT4. |
GPT/MTU3 Event Select > GPT03 Event Select > GPT03_1_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT03_1_INT4. |
GPT/MTU3 Event Select > GPT03 Event Select > GPT03_2_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT03_2_INT4. |
GPT/MTU3 Event Select > GPT03 Event Select > GPT03_3_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT03_3_INT4. |
GPT/MTU3 Event Select > GPT03 Event Select > GPT03_4_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT03_4_INT4. |
GPT/MTU3 Event Select > GPT04 Event Select > GPT04_0_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT04_0_INT4. |
GPT/MTU3 Event Select > GPT04 Event Select > GPT04_1_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT04_1_INT4. |
GPT/MTU3 Event Select > GPT04 Event Select > GPT04_2_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT04_2_INT4. |
GPT/MTU3 Event Select > GPT04 Event Select > GPT04_3_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT04_3_INT4. |
GPT/MTU3 Event Select > GPT04 Event Select > GPT04_4_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT04_4_INT4. |
GPT/MTU3 Event Select > GPT05 Event Select > GPT05_0_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT05_0_INT4. |
GPT/MTU3 Event Select > GPT05 Event Select > GPT05_1_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT05_1_INT4. |
GPT/MTU3 Event Select > GPT05 Event Select > GPT05_2_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT05_2_INT4. |
GPT/MTU3 Event Select > GPT05 Event Select > GPT05_3_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT05_3_INT4. |
GPT/MTU3 Event Select > GPT05 Event Select > GPT05_4_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT05_4_INT4. |
GPT/MTU3 Event Select > GPT06 Event Select > GPT06_0_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT06_0_INT4. |
GPT/MTU3 Event Select > GPT06 Event Select > GPT06_1_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT06_1_INT4. |
GPT/MTU3 Event Select > GPT06 Event Select > GPT06_2_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT06_2_INT4. |
GPT/MTU3 Event Select > GPT06 Event Select > GPT06_3_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT06_3_INT4. |
GPT/MTU3 Event Select > GPT06 Event Select > GPT06_4_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT06_4_INT4. |
GPT/MTU3 Event Select > GPT07 Event Select > GPT07_0_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT07_0_INT4. |
GPT/MTU3 Event Select > GPT07 Event Select > GPT07_1_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT07_1_INT4. |
GPT/MTU3 Event Select > GPT07 Event Select > GPT07_2_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT07_2_INT4. |
GPT/MTU3 Event Select > GPT07 Event Select > GPT07_3_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT07_3_INT4. |
GPT/MTU3 Event Select > GPT07 Event Select > GPT07_4_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT07_4_INT4. |
GPT/MTU3 Event Select > GPT08 Event Select > GPT08_0_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT08_0_INT4. |
GPT/MTU3 Event Select > GPT08 Event Select > GPT08_1_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT08_1_INT4. |
GPT/MTU3 Event Select > GPT08 Event Select > GPT08_2_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT08_2_INT4. |
GPT/MTU3 Event Select > GPT08 Event Select > GPT08_3_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT08_3_INT4. |
GPT/MTU3 Event Select > GPT08 Event Select > GPT08_4_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT08_4_INT4. |
GPT/MTU3 Event Select > GPT09 Event Select > GPT09_0_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT09_0_INT4. |
GPT/MTU3 Event Select > GPT09 Event Select > GPT09_1_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT09_1_INT4. |
GPT/MTU3 Event Select > GPT09 Event Select > GPT09_2_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT09_2_INT4. |
GPT/MTU3 Event Select > GPT09 Event Select > GPT09_3_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT09_3_INT4. |
GPT/MTU3 Event Select > GPT09 Event Select > GPT09_4_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT09_4_INT4. |
GPT/MTU3 Event Select > GPT09 Event Select > GPT09_5_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT09_5_INT4. |
GPT/MTU3 Event Select > GPT09 Event Select > GPT09_6_INT4 Event Select | MCU Specific Options | | GPT/MTU3 combined ELC event select for GPT09_6_INT4. |
Name | ELC instance name must be g_elc to match elc_cfg_t data structure created in elc_data.c | g_elc | Module name. Fixed to g_elc. |
Below is a basic example of minimal use of event linking in an application.