Not exact code, but in the help there is some usefull data indexed under 'open com',telling you how to open the port to a specific rate. If handshake is disabled I think you may use PRINT# to send. If handshake is enabled and not ready I suppose PRINT# might cause a hang though I've no idea how to work round that. I've heard of cases where if the handshake lines are not tied up output goes into a hole. Input is harder, the INPUT$( characters,channel) function returns a set number of characters, unfortunately if that many characters are not waiting in the buffer it will hang until they arrive or you hit break. The LOC(channel) function seems to return the number of characters available, though this is not documented in the help (I think it might be in the QuickBasic manual). LOF does something I can't recall. INPUT$(LOC(channel),channel) seems to get however many characters are availiable, provided it is not called too often as too little time between calls seems to jam it. Oliver. ----- Original Message ----- From: Joe To: Sent: Friday, August 18, 2000 10:48 PM Subject: [OT]: rs232 input in qbasic > Hello, can anyone give me a code example for sending out data on the > transmit line and receiving it on the receive line on the same port for > testing in Qbasic. That way I won't have to have a circuit for interfacing > while I code. I don't want to use any control lines just transmit and > receive. > > Thanks, > > Joe > > visit my page - www.crosswinds.net/~joeh100 > e-mail me @ - joeh100@crosswinds.net > > -- > http://www.piclist.com hint: PICList Posts must start with ONE topic: > [PIC]: PIC only [EE]: engineering [OT]: off topic [AD]: advertisements > -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics