Actually I intend to design a DLL interface for serial communication supporting MARK and SPACE mode. When the data from outside come, I wish the simulation to put them into the registers of the 8051. However, as mentioned before, the SBUF seems of little use, and I have tried SIN, which I assumed that the value in SBUF would change with it accordingly but found that it was of no help. What should I do to get the data into the registers? Thanks!
I think writing that DLL was a waste of time. uVision2 can already establish a virtual connection between the simulated 8051's serial port and a physical COM port of your PC without it. See the "ASSIGN" command in the "uVision2 Debug Commands" manual.