You have ADCON1 set to use porta.3 as an input for a positive reference. Without a reference connected its floating
Change ADCON1 to this
then your references will be +Vref = vdd and -Vref = vss. Or you can connect porta.3 to +5v without changing adcon1Code:ADCON1 = %10000000
Bookmarks