GPIO Interrupt Block¶
How this block appears in a Simulink model?¶
What can be configured?¶
|Configuration Parameter||Selectable Option/Value||Description|
|GPIO pin||0 to 15||Select GPIO pin to attach interrupt.|
|Trigger type||Rising edge--Falling edge--Both edges--Low level--High level||Select the interrupt trigger.|
|Interrupt priority level||Auto--Level 1--Level 2--Level 3||Select the priority level of the interrupt|
When to use this block?¶
This block can be used to set up an Interrupt Service Routine (ISR) that could be triggered by an input signal to one of the digital pins.
How does this block work?¶
Depending on the input trigger configuration, when the specified trigger conditions are met the block will output a logic ‘true’ signal that could activate a function call subsystem in Simulink.