Hardware Interrupt
Trigger downstream function-call subsystems from interrupt service routine
Since R2023a
Libraries:
C2000 Microcontroller Blockset /
F2838x /
M4
C2000 Microcontroller Blockset /
F28M35x /
M3
C2000 Microcontroller Blockset /
F28M36x /
M3
C2000 Microcontroller Blockset /
Scheduling
Description
Use the Hardware Interrupt block to create an interrupt service routine (ISR) automatically in the generated code of your model. 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.
Use the Hardware Mapping tool to configure the desired event or interrupt.
The Hardware Mapping tool allows you to configure the hardware interrupts tasks for the selected hardware board. With this tool, you can map the tasks in your software model to the available event sources and interrupts:
Manually select the task in Mapping Browser > Tasks >
CPU name
. Select the desired event or interrupt source. For more, see Configure Interrupts and Events Using Hardware Mapping
Ports
Input
Output
Parameters
Version History
Introduced in R2023a