Spi commands – Freescale Semiconductor Microcontrollers User Manual

Page 458

Advertising
background image

HCS08 Full Chip Simulation

Peripheral Modules Commands

458

Microcontrollers Debugger Manual

Figure 18.32 SPI OUT Buffer Display

At any point, you can use the SPCLR command to flush the input and output SPI buffers.

After the SPI simulated input is received, the first queued value is passed from the data
buffer into the SPI data register. It can be observed in the Memory Window by displaying
the memory location corresponding to the SPI data register.

Figure 18.33 Memory Component Window

The user can also observe different SPI flags, in the Memory window. If the module is run
in the Flag Polling mode, poll the flag corresponding to the expected SPI event. If the SPI
interrupts are enabled, the FCS jumps to an appropriate subroutine as long as the SPI
channel interrupt vectors are properly defined.

To simulate the frequency of the SPI slave input clock, use the SPFREQ <n> command.
If the SPI is configured for slave mode, this command allows the user to enter the number
of cycles <n> in the period of the input clock. If the SPFREQ command is not used, then
clocking is set by the SPI control register.

For more information on how to configure the SPI module for desired operation, refer to
the Freescale user manual for your microprocessor.

SPI Commands

The following serial peripheral interface commands are available for the HCS08.

Advertising