beautypg.com

Input command, Inputs command, Keyboard interrupt commands – Freescale Semiconductor Microcontrollers User Manual

Page 451

background image

HCS08 Full Chip Simulation

Peripheral Modules Commands

451

Microcontrollers Debugger Manual

The user can poll the KBI Interrupt Pending flag if the Polling Mode is simulated. In
Interrupt Mode, the simulator branches to an appropriate interrupt subroutine as long as
the KBI interrupt vector is properly configured. For more information on KBI
configuration, refer to the Freescale user manual for your microprocessor.

Keyboard Interrupt Commands

The following Keyboard interrupt commands are available during full chip simulation on
the HCS08.

INPUT Command

The INPUT command sets the simulated inputs to port . The CPU reads this
input value when port is set as an input port.

Syntax

>INPUT

Where:

is the letter representing corresponding port

is an eight-bit simulated value for port

Example

>INPUTA AA

Simulate the input AA on port A.

INPUTS Command

In FCS and CPU-Only Simulation mode, the INPUTS command opens the Simulated Port
Inputs dialog box shown in

Figure 18.24

. The user may then use this box to specify the

input states of port pins and IRQ.