954,193 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Sending hex over serial in QB

I need to write a program in Quickbasic that will send hex in 1 byte format over the serial port. They have a plasma display where my dad works, and since my dad hasn't coded in basic for years, he commissioned me to do it, but I have no experience in Hex. So basically, I just have to send 1 byte hex numbers over the serial port to control the display. Any help?

akela
Newbie Poster
1 post since Jun 2004
Reputation Points: 10
Solved Threads: 0
 
I need to write a program in Quickbasic that will send hex in 1 byte format over the serial port. They have a plasma display where my dad works, and since my dad hasn't coded in basic for years, he commissioned me to do it, but I have no experience in Hex. So basically, I just have to send 1 byte hex numbers over the serial port to control the display. Any help?

If you send a character, it doesnt matter whether it's hex or not.

Hex is just another numbering system. It can make a difference when sending
large numbers (like 8 bytes of information or so).
but,
Esc for example (escape) is 27 decimal, 1b hex but it's the same character.
either way and the same value either way.

Buff
Light Poster
40 posts since May 2004
Reputation Points: 11
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You