µVISION DEBUGGER: PRINTF DOES NOT PRINT THE LAST CHARACTER
Information in this article applies to:
I have the following line of code in my program:
When I step through my code to the line after the printf and I examine the serial window I see:
Why isn't it printing the last character?
The debugger is accurately simulating the baudrate of the microcontroller. As you step through code you will have to step through several more lines before the required delay has elapsed and the final character has been completely transmitted. The number of lines depends on your code and the baudrate.
You can turn off accurate simulation of the serial port timing by setting VTREG S0TIME (for serial port 0) to 0. You can do this by typing the following into the Command window:
S0TIME = 0
To turn it back on, set VTREG S0TIME to 1.
Last Reviewed: Tuesday, October 14, 2008
of your data.