User`s guide
C280x/C28x3x Hardware Interrupt
Purpose Interrupt Service Routine to handle hardware interrupt on
C280x/C28x3x processors
Library ccslinklib_c280x in Embedded IDE Link CC
Description For many systems, an execution scheduling model based on a timer
interrupt is not sufficienttoensureareal-timeresponsetoexternal
events. The C280x/C28x3x Hardware Interrupt block addresses this
problem by allowing asynchronous proces sing o f i nterrupts triggered
by events m anaged by other blocks in the C280x/C28x3x DSP Chip
Support Library.
The following C280x/C28x3x blocks that can generate an interrupt for
asynchronous processing are available in Ta rge t Support Package TC2.
• C280x ADC
• C280x eCAN Receive
• C280x SCI Receive
• C280x SCI Transmit
• C280x SPI Receive
• C280x SPI Transmit
Only one Hardware Interrupt block can be used in a model. To handle
multiple interrupts, p la c e a Demux block at the output of the Hardware
Interrupt block to direct function calls to the ap propriate f unction-call
subsystems.
Vectorized Output
The output of this block is a function call. The size of the function call
line equals the number of interrupts the block is set to handle. Each
interrupt is represen te d by four parameters shown on the dialog box of
the block. These parameters are a set of four vectors of equal length.
Each interrupt is represented b y one element from each parameter (four
elements total), one from the same position in each of these vectors.
9-2