> org 0 > call Start goto start > Init Bank1 > movlw b'11110000' ;0,1,2,3 of porta are output > movwf TRISA > Bank0 ;bank 0 > movlw b'00001010' ;all porta low > movwf PORTA and you need to set the Analogue-Digital mix for PortA. See F877 manual for other A-D combos movlw 0x07 ;assuming all digital movwf cmcon > retlw 0 -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics