|
|||||||||||
Technical Support Support Resources
Product Information |
µVISION DEBUGGER: Using The SIN VTREGInformation in this article applies to:
QUESTIONWhat is the SIN/SIN0/SIN1 VTReg and how do I use it? ANSWERWhen 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 SIN, SIN0, and SIN1 VTREGs represent the inputs to the on-chip serial port of the MCU. The SINx form is used for MCUs with multiple serial ports. So, if you have configured a serial port, the following commands (typed in the debugger's Command Window) input a value into the serial stream. Note that you may also use the Serial Window in the µVision Debugger to input characters for the serial port. The following command injects the letter A into the simulated serial input. SIN = 'A' The following command injects the 9-bit value 19Ex into the simulated serial input. SIN1 = 0x019E Many of the VTREGs for a microcontroller are listed in the Keil online Device Database. Go to the Device Database, select the microcontroller, look under 'Simulated Features' and select the peripheral in question. The VTREGs for that peripheral are listed at the end of the peripheral simulation details window. For example, some microcontrollers may use the SxIN VTREG instead of the SINx VTREG. SEE ALSO
Last Reviewed: Sunday, February 7, 2021 | ||||||||||
|
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.