External Interrupt (IRQ) Module

In Full Chip Simulation (FCS) mode, this module simulates the input, flag polling and interrupt functionality of the External Interrupt (IRQ) module. FCS mode uses the INPUTS command and let you monitor and change the simulated value of the IRQ input pin state. Once you enter the INPUTS command into the command line prompt, the Simulated Port Inputs window appears. Refer the INPUT<x> Command for more information about the various forms of this command. In addition, the state of the IRQ pin can be modified directly using the IRQ<n> command (documented below).

Figure 1. Simulated Port Inputs Dialog Box
Simulated Port Inputs Dialog Box

An IRQ event occurrence sets the appropriate flag in the corresponding IRQ register. You can poll the IRQ flag if the Polling Mode is simulated. In the Interrupt Mode, the simulator branches to an appropriate interrupt subroutine as long as the IRQ interrupt vector is properly configured.

Note: For more information on IRQ configuration, refer to the Freescale user manual for your microprocessor.

Following the IRQ event, you can observe the IRQ Flag being set in the IRQ Status and Control register.

Figure 2. Memory Component Window
Memory Component Window