>To me, this code looks right, but it's just not working for me. Instead of >getting 6 loops of my code, I get heaps of them! Your code in *this section* appears ok. I would check your DELAY calls to make sure that your COUNTER value isn't being changed somehow. Perhaps you have it mirrored with another register in another bank and you're not switching banks properly, causing an errant change in your COUNTER register. Also check your ISRs for the same problems. --Andrew _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads