Re: Using Visual Basic 6 for PC - microcontroller communicat
I know only for control
DSR(DB9 pin 6) ,CTS(DB9 pin8)
Output such as DTR(DB9 pin 4) ,RTS(DB9 pin7)
Ex. VB code for off signal
MSComm1.DTREnable = False
MSComm1.RTSEnable = False
or On signal
MSComm1.DTREnable = True
MSComm1.RTSEnable = True
for input signal
Ex. VB code in check signal ,should be use condition .
' CTS(DB9 pin8)
If MSComm1.DSRHolding = True Then
............... your code
End If
DSR(DB9 pin 6)
If MSComm1.CTSHolding = True Then
................. your code
End If
-----------------------------------------------------------
My Favorite PC Interface
**broken link removed**