Hi Sean, I don't think you need to use RADIX for it. It doesn't seem to be your problem. Could you send the rest of your code then I could check it for you. Thanks Dinho -----Mensagem original----- De: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU] Em nome de Sean Alcorn - Avion Sydney Enviada em: sexta-feira, 1 de fevereiro de 2002 11:52 Para: PICLIST@MITVMA.MIT.EDU Assunto: Re: [PIC]: What have I done wrong? 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 -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads