Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Serial Communication Using VB

Status
Not open for further replies.

khansaab21

Advanced Member level 4
Full Member level 1
Joined
Apr 12, 2008
Messages
108
Helped
4
Reputation
8
Reaction score
2
Trophy points
1,298
Activity points
2,214
I m using VB6 to develop a software for serial communication with the controller.

I am quiet clear about how things go about in VB (as I have already taken a course of VB) but what i want to ask is how can i send A SINGLE BYTE IN HEX through the port??

Basically there are 4 instructions in hex which have their function defined in the controller software. And all 4 instructions are a single hex byte each.

1. 0xA3
2. 0xA5
3. 0xA6
4. 0xA7

These must not be sent as ASCII but hex only. How can i do that??
Plz help.
 

Hi...

send as mscomm1.output= &HA3

where 0xA3 will be sent as hex.... you can decode it inyour controller....


;)
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top