主要内容

Hardware Interrupt

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.

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 callback function associated with the selected interrupt group.

Programmatic Use

Block Parameter: ISRName

Select to specify a new callback function name derived from the current callback.

Programmatic Use

Block Parameter: UseDerivedISRName

Specify the name for the derived callback function.

Dependencies

To enable this parameter, select the Derive current callback to new callback parameter.

Programmatic Use

Block Parameter: DerivedISRName

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.

  • Execution Order: Each event listed under Events to serve parameter has an execution order. You can 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.

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