User`s guide
C281x Hardware Interrupt
Purpose Interrupt Service Routine to handle hardware interrupt
Library ccslinklib_c281x in Embedded IDE Link CC
Description For many systems, an execution scheduling model based on a timer
interrupt is not sufficienttoensureareal-timeresponsetoexternal
events. The C281x Hardware Interrupt block addresses this problem
by allowing for the asynchronous processing of interrupts triggered
by events managed by other blocks in the C281x D SP Chip Support
Library.
The following C281x blocks that can generate an interrupt for
asynchronous processing are available fromTarget Support Package
TC2:
• C281x ADC
• C281x CAP
• C281x eCAN Receive
• C281x Timer
• C281x SCI Receive
• C281x SCI Transmit
• C281x SPI Receive
• C281x 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.
9-8