Spfreq command, Timer interface module – Freescale Semiconductor Microcontrollers User Manual
Page 461

HCS08 Full Chip Simulation
Peripheral Modules Commands
461
Microcontrollers Debugger Manual
SPFREQ Command
The SPFREQ command lets the user set the frequency of the SPI slave input clock. If the
SPI is configured for the slave mode, this command allows the user to enter the number of
cycles
is prompted for a value. If this command is not used, then the clocking is assumed to be set
by the SPI control register.
Syntax
>SPFREQ [
Where:
Example
>SPFREQ 8
Set the period of the input slave clock to 8 cycles (total shift = 8*8 cycles per bit =
64 cycles)
Timer Interface Module
In FCS, this module simulates all functionality of the Timer Interface module, including:
• Input capture/output compare
• Pulse width modulation
• Internal or external clock input
• Free running or modulo up count operation
• 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
in the Command line window. The
stands for the input value to write to this port. At the same time, you can use the INPUTS
command to display the Simulated Port Inputs for all general IO ports. It displays the
current simulated values to all applicable input ports. See the documentation for
for more information about the various forms of this command.