> +----* > LED1 ---! !---------------------------------- > +-----+ > LED2 --------! !---------------------------- > +----+ > LED2 --------------! !----------------------- >=20 > Question is: What=B4s wrong? Looks like you aren't OR-ing the bits into the I/O ports. What you want, is to load values like this: $01 ;00000001 $03 ;00000011 $07 ;00000111 What you describe, looks like this: $01 ;00000001 $02 ;00000010 $04 ;00000100 --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist