Cycles command, Gotocycle command, Fcs timer – Freescale Semiconductor Microcontrollers User Manual

Page 307: Interface module commands, Fcs timer interface module commands

Advertising
background image

HC08 Full Chip Simulation

Configuration Procedure

307

Microcontrollers Debugger Manual

FCS Timer Interface Module Commands

The following FCS timer interface module commands are available for use with the HC08
processor.

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.

GOTOCYCLE Command

The GOTOCYCLE command executes the program in the simulator beginning at the
address in the program counter (PC). Execution continues until the cycle counter is equal
to or greater than the specified value, until a key or the Stop button on the toolbar is
pressed, until it reaches a break point, or until an error occurs.

Syntax

GOTOCYCLE <n>

Where:

<n> Cycle-counter value at which the execution stops

Example

>GOTOCYCLE 100

Execute the program until the cycle counter equals 100.

Advertising