Go Down

Topic: Re: Trying to read a serial data stream (Read 862 times) previous topic - next topic

Coding Badly

An ASCII character is an eight bit value is a byte is binary.  It's all in how you, the programmer, decide to interpret the data.


"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Pete S

Sorry, me bad.

The problem turned out to be that I did not realize that the LCD print function trunkates leading zeros when it displays a  BIN number.  I had assumed that it printed all 8 digits, so I was not clearing the previously displayed value.  So when it displayed a small number, it just overwrote the first few bits of the previous entry and left the remaining bits displayed.   So the data read correctly.  Operator error!

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131