Shtdwn command, Input/output (i/o) ports module – Freescale Semiconductor Microcontrollers User Manual

Page 265

Advertising
background image

HC08 Full Chip Simulation

Configuration Procedure

265

Microcontrollers Debugger Manual

SHTDWN Command

When you enable the Shutdown pin in the High Resolution PWM Control Register
(HRPCTRL), you can use this command to change the state of the SHTDWN pin. The
Shutdown pin then takes on this state after the simulator executes the next step. If
interrupts are enabled, issuing a SHTDWN 0 command triggers an interrupt that is cleared
until the SHTIF bit is cleared in the HRPCTRL and a SHUTDWN 1 command is issued.
Note that this interrupt is both edge and level sensitive.

If the SHTDWN pin is not enabled in the HRPCTRL, this command has no effect.

Syntax

>SHTDWN <n>

Where:

<n> = 1 or 0, representing the state of the SHTDWN pin on the next simulated
clock cycle.

Example

>SHTDWN 0

Change the state of the SHTDWN pin to 0.

Input/Output (I/O) Ports Module

In Full Chip Simulation Mode (FCS), this option lets you simulate all input and output
functionality of the Input/Output (I/O) Ports module. FCS mode uses a set of designated
commands to simulate the input and output activity on corresponding I/O port pins. To
define an input state of the specific port, write the INPUT <x> <n> command in the
Command line window. The <x> represents the corresponding I/O port, while the <n>
stands for the input value to write to this port. At the same time, you can use the INPUTS
command to bring up the Simulated Port Inputs for all general I/O ports. It displays the
current simulated values to all applicable input ports. See

Input/Output Ports Commands

for more information about the various forms of this command.

Advertising