Hi,my English isnÂ't perfect but I will try to explain the best way. I have an application and I use uVsion 3. I know to send data to serial input with Sin='a' or Sin=0x09. But I try to send a string for example Sin='hello friends' and it fails. I need to simulate my program with different strings. I would like to see you give me advice. Thanks.
.
" I try to send a string for example Sin='hello friends' and it fails."
Did you see any documentation anywhere to suggest that it should "work"?
It can't do what you want, because SIN is a single, 8-bit register - so you can only load one character into it at a time.
And you need to ensure that the previous character has gone before you load the next.
To do this in the Simulator, you will need a Debug Function: http://www.keil.com/support/man/docs/uv3/uv3_debug_functions.htm
The normal way to do it is to make use of a delay, and have the debugger send the bytes at a fixed frequency. Just as in real life, it will be up to the application to receive each character fast enough.
Another way of sending data to the processor is to connect the serial port of the simulated processor with a serial console in the debugger. Then you can directly read text sent by the program, or write text to be sent to the program.