This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

One more question

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!

Parents
  • As previously noted, uVision can already use the PC's COM port(s) for simulator serial IO.

    The problem is the uVision is unable to simulate the serial transmission in MARK or SPACE mode, so I have to write my own DLL to realize it.

    Have you verified that your 8051 code works with the standard uVision COM port interface?If your 8051 code works with the standard uVision COM port interface, then the fault must lie in your DLL.


    I have successfully write the data from COM2 into SIN, which could be watched in the debugger, and nothing happened to the internal registers and variables located in the memory.

    Have you actually tried the example program & DLL in the AGSI Application Note?
    Do you mean the A/D and Timer? I have tried them.

Reply
  • As previously noted, uVision can already use the PC's COM port(s) for simulator serial IO.

    The problem is the uVision is unable to simulate the serial transmission in MARK or SPACE mode, so I have to write my own DLL to realize it.

    Have you verified that your 8051 code works with the standard uVision COM port interface?If your 8051 code works with the standard uVision COM port interface, then the fault must lie in your DLL.


    I have successfully write the data from COM2 into SIN, which could be watched in the debugger, and nothing happened to the internal registers and variables located in the memory.

    Have you actually tried the example program & DLL in the AGSI Application Note?
    Do you mean the A/D and Timer? I have tried them.

Children
No data