External interrupt module, Irq commands – Freescale Semiconductor Microcontrollers User Manual

Page 268

Advertising
background image

HC08 Full Chip Simulation

Configuration Procedure

268

Microcontrollers Debugger Manual

Example

>INPUTS

Show I/O port input values.

External Interrupt Module

In Full Chip Simulation (FCS) Mode, this option lets you simulate the input, flag polling
and interrupt functionality of the External Interrupt (IRQ) module. The FCS Mode uses
the INPUTS command to let the user monitor and change the simulated value of the IRQ
input pin state. See the documentation for

Keyboard Interrupt Commands

for more

information about the various forms of this command. When the user enters the INPUTS
command into the command line prompt, the Simulated Port Inputs window appears. In
addition, the user can directly modify the state of the IRQ pin using the IRQ <n>
command (documented below).

The occurrence of the IRQ event sets the appropriate flag in the corresponding IRQ
register. The user 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. 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 going up in the IRQ Status and
Control register.

Figure 11.18 Memory Component Window

IRQ Commands

The following interrupt request commands are available in FCS mode on the HC08
processor.

Advertising