Aart wrote: > > > PORTE will be in ANALOG mode. > > > > Change the ADCON1 register to make it work in digital mode. > > > > bsf STATUS,RP0 > > movlw 6h ; all analog pins = digital > > movwf ADCCON1 > > bcf STATUS,RP0 > > > > > > Make sure the unused pins on the other ports are set as outputs. > >Tony Try adding this... movlw B'00000000' ; RA0-5 = outputs movwf TRISA movlw B'00000000' ; RB0-7 = outputs movwf TRISB movlw B'00000000' ; RC0-7 = outputs movwf TRISC -- Best regards Tony mICros http://www.bubblesoftonline.com mailto:sales@picnpoke.com -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body