Hi, I'm using a PIC16f877 Is it possible to configure a pin as an analog input in ADCON1 yet use as an digital output by setting the appropriate bits in TRISB? I need two a/d lines but still want to use the other 4 lines as digital outputs. bsf STATUS, RP0 ; Select bank 1 movlw 0x021 ; RA5,0 inputs, 4-1 outputs, movwf TRISA movlw b'00000010' ; set all of port E movwf ADCON1 ; to Digital I/O, port A to analog -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body