I forgot to metion, that you will probably see just a blur of LEDs on portB without some sort of delay routine, unless your clock speed is only a few hertz :-) -- Best regards Tony PicNPoke - Multimedia 16F84 Beginners PIC Tools. http://www.picnpoke.com Email picnpoke@cdi.com.au