You can serial in the data into an array. Use the serin2 command. Inside the brackets, skip the number of nubers, letters, ect that you don't want. Then place the following data into an array. Example:
here is the data stream you want to capture:
1,yyyyyyy,zzzzzzzz,xxxxxxxxxxxxxxxxxxxx, CR,LF
serin2,datapin,32,[wait "1",skip 9, str data/8,skip 1,str data1/20]
Just use the pic you are comfortable with. Run it faster than 4 mhz, I like 20 mhz but thats just me.
Travin
Bookmarks