Link to home
Start Free TrialLog in
Avatar of watersidedesigns
watersidedesigns

asked on

Byte information

Dear Sirs,

I have read a single byte from a serial port and the value is &H89

This byte contains two bits of information (the first four bits contain the first part the last four bits contain the other value)  How can I seperate these two pieces of data from this single byte?

Many thanks
ASKER CERTIFIED SOLUTION
Avatar of ElrondCT
ElrondCT
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Grr, replace txtIn.Text with strInput. I was copying from my test code and forgot to adjust that. Sorry!
Avatar of watersidedesigns
watersidedesigns

ASKER

Hi ElrondCT,

Thats most helpful - thanks.