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

RTS,CTS,RI control under uv2....

How is possible control or read these lines with simulated processor? Rx and Tx data through SBUF and uv2's ASSIGN command is ok, but how to control assigned serial port RTS an other lines?
Roman

Parents
  • uVision simulates only the processor.
    If you have a processor with RTS,CTS,RI then the uVision documentation will describe whether it supports simulation of those features.

    If not, you will have to provide your own simulation support - there's an Application note that describes how to do it (AGSI?)

Reply
  • uVision simulates only the processor.
    If you have a processor with RTS,CTS,RI then the uVision documentation will describe whether it supports simulation of those features.

    If not, you will have to provide your own simulation support - there's an Application note that describes how to do it (AGSI?)

Children
  • Thank you Andy. In the AGSI documentation isn't information about serial ports. Is some way how to add my own support for these lines to existing native serial port module? (Of course through agsi library). How can I obtain opened serial port handler when I want to use EscapeCommFunction win32 api function from my own agsi.dll?
    Roman

  • "In the AGSI documentation isn't information about serial ports"

    There wouldn't be, would there?

    AGSI is the interface between uVision and your external Win32 code.
    Your Win32 code will access the PC's resurces in the normal Win32 ways!

    For Win32 programming, you need to find a Win32 forum.
    MSDN is also a good place to look.

    For serial stuff on Win32, you could try TurboPower - it's all now open-source:
    http://www.8052.com/forum/read.phtml?id=74667

  • I think I don't need to program serial interface betwen simulated 8051's SBUF register and PC's RS232 serial port. It's implemented in uv2 realy fair now.
    I need only create virtual connection butwen some simulated 8051's port pin and the same PC's serial port that is ASSIGN-ed in uv2 to SBUF.
    My only problem is how to obtain uv2's opened (ASSIGN-ed) serial port handler that I then use with win32 API calls. Exists some AGSI call function or structure that I can use for this?

  • "I need only create virtual connection butwen some simulated 8051's port pin and the same PC's serial port that is ASSIGN-ed in uv2 to SBUF."

    Hmm... I doubt that will work. :-(
    I doubt that Windows will allow both uVision and your code to simultaneously access the same COM: port - but I've never tried, so I could well be wrong...

    "Exists some AGSI call function or structure that I can use for this?"

    I don't know.
    If it's not documented, you'd have to ask Keil support direct...

  • I'll try to use one port for modem lines and another for uv2's communication and I join them physically... Maybe I'll be succeed.