主要内容

Hardware Interrupt

Trigger downstream function-call subsystem from an interrupt service routine

Since R2022b

  • Hardware Interrupt block

Libraries:
Embedded Coder Support Package for Infineon AURIX TC4x Microcontrollers / AURIX TC4x
Embedded Coder Support Package for Infineon AURIX TC3x Microcontrollers / AURIX TC3x

Description

Use the Hardware Interrupt block to create an interrupt service routine (ISR) automatically in the generated code of your model to react to the events selected. The ISR executes the downstream function-call subsystem associated with event ports of the block.

The function call subsystem associated with the event output port run at same priority as that of ISR priority.

Using this block you can:

  • Create ISRs.

  • Set ISR priority.

  • Enable or disable interrupt preemption.

The Hardware Mapping tool allows you to configure the hardware interrupts tasks for the selected hardware board.

Ports

Input

expand all

The simulation-only message input acts as pass-through with the output emitted on the block in simulation.

Dependencies

To enable this port, select the Enable simulation port parameter.

Output

expand all

The output of this block is a function-call.

Parameters

expand all

The value you specify in this parameter sets the priority of the downstream function-call subsystem. The simulink task priority of the selected (ISR) is relative to the model base rate priority.

Select this parameter to block all other interrupts while executing the selected interrupt service routine.

Select this parameter to enable peripheral simulation capability.

Select this parameter to configure either the SoC compatible or the Simulink® signal based simulation ports to enable peripheral simulation capability.

Dependencies

To view this parameter, select the Enable simulation port parameter.

Version History

Introduced in R2022b