Pages: [1]   Go Down
Author Topic: Re: Trying to read a serial data stream  (Read 567 times)
0 Members and 1 Guest are viewing this topic.
Global Moderator
Dallas
Online Online
Shannon Member
*****
Karma: 207
Posts: 12925
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


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.
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 302
Posts: 26313
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I hate it when the OP does that.
Logged

"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.

0
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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!
Logged

Pages: [1]   Go Up
Jump to: