"SERIN portx,N2400,[“Chip1”],Var,
Will Var always only be one character in length?
So if my string sent was say chip1AZ would var just have the A and ignore the Z"
IMO without testing it, it depend if your VAR is a WORD or BYTE. If is a BYTE only A will be stored in. WORD size AZ will be stored. IF you want to receive more than one character i suggest you.
SERIN portx,N2400,[“Chip1”],Var1,Var2,Var3....
or you can use this also:
SERIN portx,N2400,[“Chip1”]
n=0
While Var !="z"
SERIN portx,N2400,ToBeStore
DataReceive[n]=ToBeStore
n=n+1
wend
this will allow you to store everything you want (depending of the PIC memory space) in a same variable DataReceive.
Last edited by mister_e; - 27th October 2004 at 13:24.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks