Alright thats a general question but I'll try and answer.
first off choose a length of array and type of data.
nameofarray VAR unitsize[numberofunits]
lets say you want row one to be 12 bytes wide.
rowone var byte[12]
Now okay thats all fine and dandy right? Now you want to populate it.
There are two ways you can go one segment at a time like this.
rowone[0] = "b"
Or you can populate an array serially.
serin pin,baud,[ STR rowone\1]
this would wait until one byte is recieved and put it in the first position in the array. Lets say you wanted to put it in the second position.
serin pin,baud,[ STR rowone(1)\1]
This would take one byte serially, and transfer it into the second unit of the array.
ill give one more example this time using more then one byte.
serin pin,baud,[ STR rowone(6)\6]
Now this will take the first six bytes it recieves, and will put it in the array starting at the 7th byte, basically byte one will go in rowone[5], byte two rowone[6], all the way up to rowone[11]
Hopefully that helps.
Bookmarks