Free2Code
 
Time: 2008-11-21, 09:16pm
how to interface the serial port with vb6?
Subject: how to interface the serial port with vb6?  ·  Posted: 2006-08-21, 02:56am
Rank: ? (2)
Member #: 28242
hie hie,

anyone can teach me how to use the mscomm icon in vb6 to interface with microcontroller? it will be better if you can teach me how to do the handshaking protocol.

please reply asap...

your help and advice is very much appreciated... thanks!!!!

 
  Reply to this ·  Post link ·  Top
Subject: Re: how to interface the serial port with vb6?  ·  Posted: 2006-09-26, 05:33pm
Rank: ? (3)
Member #: 28625
Hi,
Below is the code to connect serial port


MSComm1.CommPort = 1
MSComm1.Settings = "19200,N,8,1"
MSComm1.InputLen = 0
MSComm1.Handshaking = comNone

MSComm1.PortOpen = True




where
Line 1 ----- Port Number
Line 2 -----19200 is speed, N is Priority (N means None)
Line 3 -----Intial input len =0

Masood

 
  Reply to this ·  Post link ·  Top

Pages: 1

Please login or register to post a reply.

icons