I do something similar, but I output a b'10101010' so I can really tell if the pins are responding and not just shorted. Josh -- A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools. -Douglas Adams "A.J. Tufgar" wrote: > > I usually setup a pic I know that's working with a simple program like > this: > > movlw 0 > tris PORTA > tris PORTB > CLRF PORTA > CLRF PORTB > > MOVLW b'11111111' > MOVWF PORTA > MOVWF PORTB > > loop > goto loop > -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.