User`s guide

Hardware Interrupt
Processor Family Valid Interrupt Numbers
C5xxx
2, 3, 5-21, 23
C6xxx
4-15
The width of the block output signal corresponds to the number of
interrupt numbers specied here. Combined w ith the Simulink
task priorities that you enter and the preemption ag you
enter for each interrupt, these three values dene how the code
and processor handle interrupts during asynchronous scheduler
operations.
Simulink task priorities
Each output of the Hardw are Interrupt block drives a downstream
block (for example, a function call subsystem). Simulink software
task priority species the Simulink priority of the downstream
blocks. Specify an array of priorities corresponding to the
interrupt num bers entered in Inte rr upt numbers.
Simulink task priority values are required to generate the proper
rate transition code (refer to Rate Transitions and Asynchronous
Blocks). The task priority values are also required to ensure
absolute time integrity when the a synchro nou s task needs to
obtain real time from its base rate or its caller. Typically , you
assign priorities for these asynchronous tasks that are higher
than the priorities assigned to periodic tasks.
Preemption agspreemptable–1,non-preemptable–0
Higher priority interrupts can preempt interrupts that have lower
priority. To allow you to control preemption, use the preemption
ags to specify whether an interrupt can b e preempted.
Entering
1 indicates that the in terrupt can be preempted.
Entering
0 indicates the interrupt cannot be preempted. When
Interrupt num bers contains more than one interrupt priority,
you can assign different preempt io n ags to each interrupt by
entering a vector of ag values, corresponding to the order of
9-15