Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

com port: ft639 chip, formating output 1

Status
Not open for further replies.

trbrenke

Programmer
Dec 30, 1999
9
US
I need help formating the output to comport 1 to be read by the ft649 chip from FerretTronics.<br>
Commands are sent to the FT639 through a 2400 baud, 8 bit, no parity, 1 stop bit serial line. The commands are all one byte. Each command is one character sent over the 2400 baud serial line. <br>
I have tried many diferent types and none of them work:<br>
example com1.output= chr$(122), com1.output = 122, com1.output = &quot;122&quot;<br>
what I need to sent is a one byte command.<br>
ref <A HREF=" TARGET="_new">any insight you could give would be helpfull.<br>
Tony Brenke
 
To send binary data, you must pass a Variant which contains a byte array to the Output property.<br>
<br>
exactly how is this done?
 
I found it!<br>
send data as a byte then convert to a long and it will send.<br>
<br>
dim tx as byte<br>
dim pass as long<br>
'put the chip in active mode<br>
tx = 117<br>
pass = tx<br>
Com1.Output = Chr$(pass)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top