Tazntex,

In your first post you said

I understand how it repeats until i is equal to 7 then moves on but what does the [i] in PORTB.0[i] do?
Technically speaking, it repeats until I=8 then it exits the loop. Of course, it won't execute the line PORT[I]=0 for I=8.

Robert