>=20 > With a PIC16F84A it works well but when I use a pic16f628, the leds > never be turned to ON in sequence. >=20 Question is: What=B4s wrong? Well... I'm not sure what you did so far (some code might be useful), but= =20 did you check the following: * Did you turn off the comparators? (movlw 0x07 movwf CMCON) * Did you make sure the registers start at 0x20 instead of the lower=20 location allowed in 16F84A? (Or better: made sure that the system=20 automatically alocates your registers?) * Did you make sure the oscillator settings are such that the proper=20 oscillator is used? (The 16F628 has an internal one which might run at a=20 different frequency than your external one) * Did you make sure to keep the RP0/RP1 bits set correctly, so they keep=20 pointing to the same register bank? Greetings, Maarten Hofman. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist