| Contents | Index |
Block Library: idelinklib_ghsmulti
The block creates ISRs for three processor interrupts—External, Machine check and System reset. When you incorporate this block in your model, code generation results in ISRs on the processor that run the blocks downstream from this block. For more information about these interrupts, refer to your MPC7400 documentation.
When you enable more than one interrupt on the block dialog box, the block multiplexes the ISR outputs onto the output port on the block. To resolve the different ISRs, connect the output port IRQ to a Demux block. Connect the demultiplexed outputs to downstream blocks or subsystems. Refer to Examples to see the multiple interrupt configuration in a model.

Interrupt generated by an external system that asserts the intr pin of the 7400 microprocessor.
Enable the asynchronous, nonmaskable machine check exception provided by the processor. The exception responds to the conditions described in the MPC7400 documentation.
Enable the asynchronous, nonmaskable System interrupt exception provided by the processor. The exception responds to the conditions described in the MPC7400 documentation.
Select this option to have Simulink add an input port to the HW Interrupt block. This port receives input only during simulation. Connect one or more simulated interrupt sources to the input to drive the model interrupt processing.
The following model shows the HW Interrupt block triggering a subsystem. The interrupt block is configured to respond to external interrupts.

Here is the block mask.

When your peripherals assert the external interrupt pin on the processor, the code generated by the HW Interrupt block during the project build process accepts the interrupt and triggers the attached subsystem through an ISR.
When you select more than one interrupt, connect the output of the block to a Demux block to separate the ISRs, as shown in the following model:

Here is the block mask showing the external and Machine check interrupts selected.

To test your interrupt configuration in simulation, select Enable simulation input on the block dialog box and then input a signal to the block to simulate the external interrupt.
Idle Task, Memory Allocate, Memory Copy

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |