Keil Logo

µVISION DEBUGGER: Using the STIME VTReg


Information in this article applies to:

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

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

Last Reviewed: Sunday, February 7, 2021


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.