on 2/2/02 12:15 AM, Jinx at joecolquitt@CLEAR.NET.NZ wrote: >> I eventually leave this loop, but after significantly more than >> 6 cycles. > How are you figuring it's more than 6 ? By measuring time ? I am toggling one of the Pins High and Low & driving an LED to test. > Are you sure the 500ms delay is correct ? Yes. Pretty close. I have used this code many times before, and I have the LED to test (count) > Have you tried running and monitoring it in MPLAB ? (with and > without the delay500 enabled) No. I have never had any success running in MPLAB! It takes far too long!!! > Is the RAM byte "Counter" being used in another part of the > program under a different name ? For example, have you > managed to assign the same address to two names ? No. Definitely not! So my RADIX DEC and MOVLW 6 is correct? 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