Searching \ for '[AVR:] Serin/Serout confusion' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/index.htm?key=serinserout+confusion
Search entire site for: 'Serin/Serout confusion'.

Exact match. Not showing close matches.
PICList Thread
'[AVR:] Serin/Serout confusion'
2003\10\03@235818 by John Pearson

flavicon
face
Below is from a mailing list for ARV Bascom.

I was hoping someone here could help me with this, using Bascom.

....................................................................

Okay, I guess I have this down to just trying to send any varibles larger than 1 byte. Strings work okay,( but how can I convert a 4 byte varible to a string and add a CR to the end? Suggestions welcome.)

So when I send a word, long, etc. the received result is equal to only the LS byte of the varible sent.

Dim X as long
X = &B110000000

Master:
Serout X, 4, B, 1, 300, 0, 8, 1

Slave:
Serin X, 4, B, 1, 300, 0, 8, 1

Print X   ( X prints out as 128, or &B10000000)

So there must be some data conversion problem I am not addressing. X seems to "point" to the LSbyte, intead of representing a long varible.

John


--
http://www.piclist.com hint: To leave the PICList
spam_OUTpiclist-unsubscribe-requestTakeThisOuTspammitvma.mit.edu

More... (looser matching)
- Last day of these posts
- In 2003 , 2004 only
- Today
- New search...