Keil™, An ARM® Company

Technical Support

DSCOPE: SIMULATOR CLOCK SPEED


Information in this article applies to:

  • C166 Version 3.12
  • C166 Version 4.03
  • C251 Version 2.14
  • C51 Version 5.50
  • C51 Version 6.00 Beta
  • C51 Version 6.00

SYMPTOMS

How do I tell dScope or the debugger/simulator the clock speed of my target board?

CAUSE

Use the XTAL command in dScope or the CLOCK command in µVision.

RESOLUTION

In the command window in dScope, type the following:

XTAL = 20000000

to set the simulated clock speed to 20 MHz.

In the command window in the µVision Debugger, type the following:

CLOCK = 20000000

to set the simulated clock speed to 20 MHz.

The speed you enter defines the internal speed of the oscillator. On some of the C16x/ST10 devices, clock doubling and tripling circuitry is included on-chip. For that reason, the external clock fequency is NOT the same as the internal clock speed. The XTAL/CLOCK command sets the internal clock speed.

Note that due to pipelining effects, the real execution speed (in your hardware) may be faster than the simulation speed calculated by the debugger.

Last Reviewed: Saturday, May 08, 2004


Did this article provide the answer you needed?
 
Yes
No
Not Sure