> I still don't know what limits the counter to count binary > 000 to 111 and then restart at 000 does not continuously > count up. That hopefully will be something I can figure out > as I study what I have. The "incf portb" *could* be a problem. Try the following : In the CBLOCK add a new variable, let's say "portb_tmp". Then change : > clrf counter > again: incf portb ;"f" is default to : > clrf counter > again: incf portb_tmp, w > movwf portb > > Message[302] C:\16F876 PROJECTS\BINARYCOUNTER_876_V2.ASM 24 : > Register in operand not in bank 0. Ensure that bank bits are correct. Just a warning... > Message[305] C:\16F876 PROJECTS\BINARYCOUNTER_876_V2.ASM 49 : > Using default destination of 1 (file). The cause is here : > again: incf portb ;"f" is default Note that the comment says the same thing as the message :-) Regards Jan-Erik. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.