Technical Support

µVISION DEBUGGER: USING THE STIME VTREG


Information in this article applies to:

  • C166 Version 4
  • C251 Version 3
  • C51 Version 6
  • µVision Version 2

QUESTION

What is the STIME/STIME0/STIME1 VTReg and how do I use it?

ANSWER

When simulating a target microcontroller, the Keil µVision Debugger provides Virtual Target Registers (VTRegs) to allow you to provide input to the pins of the simulated device.

The STIME, STIME0, and STIME1 VTRegs allow you to control the timing of the simulated serial port.

  • A value of 1 indicates that the serial port timing is identical to the target hardware. Use this value when you want to see the effects of baud rate on the serial port I/O.
  • A value of 0 indicates that all serial input and output occur instantaneously. Use this value when you don't care about any baud rate effects or when you want serial output to be fast.

For example:

STIME0 = 0   /* Set Serial 0 for FAST timing */
STIME0 = 1   /* Set Serial 0 for accurate timing */

SEE ALSO

FORUM THREADS

The following Discussion Forum threads may provide information related to this topic.

Last Reviewed: Thursday, December 15, 2005


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