Main Content

Hardware Interrupt

R2026b

Trigger function-call subsystems in response to hardware interrupt events

Since R2026a

  • Hardware Interrupt block

Libraries:
Embedded Coder Support Package for Renesas RA Microcontrollers / Renesas RA6 Based

Description

The Hardware Interrupt block triggers a downstream function-call subsystem from an interrupt service routine. When the selected interrupt occurs, the block outputs a signal that activates the connected function-call subsystem.

You can select the appropriate interrupt service routine and define which events to handle, as well as the order in which they are executed. Additionally, you can assign a priority level to the downstream function-call subsystem to control its execution precedence.

Note

Before building the model, you must enable the interrupt group, callback name, and each event to serve in the RA Smart Configurator (RASC) project. If these are not configured in RASC, the generated code will not compile.

Examples

Ports

Output

expand all

The block outputs a function-call signal when the selected interrupt and event occur.

Parameters

expand all

Select the peripheral group whose interrupt you want to use. The available options depend on the Renesas RA device and configuration.

Programmatic Use

Block Parameter: ISRGroup

Specify the name of the interrupt name associated with the selected interrupt group.

Programmatic Use

Block Parameter: ISRName

Specify the name for the interrupt function name.

Programmatic Use

Block Parameter: ISRFunctionName

Select one or more events to service from the selected interrupt group. You can also select the execution order for each event. This parameter allows you to manage which interrupt events the block will handle and in what order.

  • Select Events:

    Each event listed under Events to serve parameter has a checkbox to select the event name, a list of event names, and an execution order.

    You can use the checkbox to select which events to handle.

    Use the Execution order drop-down list to specify the priority in which, each event should be handled. Lower numbers indicate higher priority; events with a lower execution order will be executed before those with a higher number.

    Events to serve

  • Filter table contents: The Filter table contents field allows you to quickly search for specific events. You can type either the event name or the execution order into this field. As shown in the image, entering a keyword, for example: ADC_1 filters the list to only show events that match the search term.

Dependencies

To enable the Output status parameter, set the Trigger mode parameter to either Trigger and read or Read results only.

Programmatic Use

Block Parameter: EventsList

Specify the priority of the downstream function-call subsystem. Lower values indicate higher priority. This controls the execution precedence of the function-call subsystem triggered by the interrupt.

Programmatic Use

Block Parameter: TaskPriority

Select to enable atomic execution of the interrupt service routine. When enabled, all other interrupts are blocked while the selected interrupt service routine is running.

Programmatic Use

Block Parameter: DisablePreemption

Version History

Introduced in R2026a