News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

DCB and RTS

Started by msmith, January 04, 2006, 02:06:09 AM

Previous topic - Next topic

msmith

Is there anything more to do than setting the fRtsControl bits of the fbits member of the DCB structure to get RTS handshaking to work?

My sequence is:

CreateFile
GetCommState
Set members of the DCB such as Baud Rate, fRtsControl, stop bits,etc.
SetCommState

Also, since I've seen some confusion on this board about which order the order of the bits, I am placing the fRtsControl bits into bits 12 and 13 of fBits. Is this right?

msmith

For anyone interested, the sequence and bits as described are correct. The problem was that RTS was jumpered to CTS inside the (sealed) connector. If it had been one of the home made types, I would have seen the problem.