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
"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.