Spclr command, Spdi command – Freescale Semiconductor Microcontrollers User Manual

Page 459

Advertising
background image

HCS08 Full Chip Simulation

Peripheral Modules Commands

459

Microcontrollers Debugger Manual

SPCLR Command

Use the SPCLR command to flush the input and output buffers for SPI simulation. This
resets the buffers and clears out all values. Notice that if the SPI is currently shifting a
value, this command does not prevent the SPI from finishing the transfer. See SPDI
command and SPDO command for accessing the input and output buffers of the SPI
interface.

Syntax

>SPCLR

Example

>SPCLR

Clear input and output buffer for SPI simulation

SPDI Command

The SPDI command allows the user to input data into the SPI. If a data parameter is given,
the value is placed into the next slot in the SPI input buffer. Otherwise, if no parameter is
given, a window is displayed with the input buffer values. Input values can be entered
while the window is open. An arrow points to the next input value to the SPI. The
maximum number of input values is 256 bytes.

Syntax

>SPDI [<n>]

Where:

<n> The value to be entered into the next location in the input buffer

Example

>SPDI $55

Set the next input value to the SPI to $55

>SPDI

Pull up the data window with all the input values.

Advertising