Henrik,

I really appreciate it. I haven't used arrays before, so this will be good learning for me.
So what is the $55 ?
I sort of understand how the loop is adding to the array in each pass. But assuming I use the 'myByteArray' for my 3 bytes I need to combine (Var1, Var2, Var3) that are already saved after reading the status of the 3 ports. How does the loop know to look at these 3 variables?
Second, question: If the 128 bits is coming in on PortB.1 how does the bottom loop know to read that?
Thank you very much.
Hylan