Freescale Semiconductor Microcontrollers User Manual

Page 305

Advertising
background image

HC08 Full Chip Simulation

Configuration Procedure

305

Microcontrollers Debugger Manual

• Flag polling

• Interrupt enabled mode of operation.

FCS mode uses the simulated port inputs to trigger the input capture on a given timer
channel. To define an input state of the specific port, use the INPUT<x> <n> command
in the Command line window. The <x> represents the corresponding I/O port, while <n>
stands for the input value to write to this port. At the same time, use the INPUTS
command to display the Simulated Port Inputs for all general I/O ports. It displays the
current simulated values for all applicable input ports. See the documentation for the
command INPUT<x>/INPUTS for more information about the various forms of this
command.

Figure 11.51 Simulated Port Inputs Dialog Box

Use the Simulated Port Inputs dialog box to reconfigure the input value to any I/O port.
Depending on whether the input capture is set for rising/falling edge, to trigger the event,
first set the port inputs to high or low and then invert the inputs to an opposite value. Once
the Input Capture event takes place, the CHxF can be observed in the Channel Status and
Control register in the Memory window.

Figure 11.52 Memory Component Window

Advertising