anbarsystem@ZAZ.COM.BR wrote: > I did this and doesn't work. > movlw b'11100001' > movwf TRISB > call dly ;aprox. 10ms > movf PORTB,w > movwf TEMP > Yet doesn't work correct. Why? Well of course there, you *haven't* set your RP0 between accessing PORTB and TRISB, have you? -- Cheers, Paul B. ICQ 6945856