On 10/19/06, Genome wrote: > Is there some function in the win32 sdk that can tell a standard comm driver > that I'm not connected to a modem... > > I'm using simple createfile functions to open and close the port and > read/writefile functions to send/receive data to the pic... I found the > EscapeCommFunction that can directly acces the dtr and rts pins but dont > know how it will effect the port drivers operation as it automatically set > and unset this pins when you try to send and receive data... You need to look at the DCB field in the COMMCONFIG structure. See GetCommConfig() and SetCommConfig(). You should be able to have DTR behave anyway you want! Orin. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist