On 3/7/07, Dario Greggio wrote: > I have this in my 16F628: > movlw 00000111b ; comparatori OFF > movwf CMCON > clrf TRISA ; TUTTE output (non uso MCLR, ma reset interno) When I add a clrf TRISA, its contents gets "cleared" to "00100000" which is correct, since RA5 can only be input, but when I try to move 11111000 to it, it gets 00111000. I must have missed something trivial, because I really don't understand what's going on here. Help? -- - Rikard. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist