OK, well I figured out why I was getting weird readings on the logic analyzer... I was looking at the wrong (duplicate) channels, which is why I thought they (h1 and h2 and v1 and v2) were in phase instead of 180 degrees out of phase. So they work fine. Now, I think my only problem is that the chip cannot stop... It will wait for me to push the button on PORTB.5, but even after like 10 minutes, it will not stop (total time for transfer calculated to be about 2.5 minutes). Is there any reason why the loop structure would not be working?? Are the values to big for the stack (the counters i mean)? thanks again.