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

Page 451

Advertising
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<x> Command

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

Syntax

>INPUT<x> <n>

Where:

<x>

is the letter representing corresponding port

<n>

is an eight-bit simulated value for port <x>

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.

Advertising