on 2/2/02 12:15 AM, Drew Vassallo at snurple@HOTMAIL.COM wrote: >> 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. Checked that. > 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. This is a 12C508. No banks to worry about or ISRs :-( Regards, Sean -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads