HCS08 Full Chip Simulation
Peripheral Modules Commands
463
Microcontrollers Debugger Manual
the user steps through the code. To determine the exact amount of cycles over which the
event occurs, one can either observe the cycle display in the Register window or use the
built in simulation commands. To display the current number of cycles in the Command
window, use the CYCLES command. To change the number of cycles in the cycle counter,
use CYCLES <n>, where <n> is the new cycle value. If the event has a pre-calculated
number of cycles, use CYCLE 00 to reset the number of cycles and GOTOCYCLE <n> to
run through the code until you reach the expected event.
Figure 18.38 Register Window With Cycles Display

Timer Module Commands

The following timer module commands are available for use with the HCS08.
CYCLES Command
The CYCLES command changes the value of the cycles counter. The cycles counter
counts the number of the processor cycles that have passed during execution. The Cycles
Window shows the cycle counter. The cycle count can be useful for timing procedures.
Syntax
>CYCLES <n>
Where:
<n> Integer value for the cycles counter
Examples
>CYCLES 0
Reset cycles counter
>CYCLES 1000
Set cycle counter to 1000.