And, based on your analog pin assignments;
If you change ADCON1=%10010111 to ADCON1=%10000100, that wouldCode:ANALOG1 VAR PORTA.0 'ANALOGNI VHOD1 ANALOG2 VAR PORTA.1 'ANALOGNI VHOD2 ANALOG3 VAR PORTA.3 'ANALOGNI VHOD3
set RA0, RA1 and RA3 up as analog inputs to match. Assuming analog Vref
is Vdd & Vss.
Bookmarks