I got it to work by leaving off the adcon.7 code, heres what I am using for 2 ADC, it works great, if I change the adcon.7 it wont even compile
Code:DEFINE ADC_BITS 10 ' A/D number of bits DEFINE ADC_CLOCK 1 ' Use A/D internal RC clock DEFINE ADC_SAMPLEUS 50 ' Set sampling time in us ADCON1 = %10000000 TRISA = %00000011 'PORTA 0&1 is input SETT Var Word ' A/D converter result in 10bit READT var word ' A/D converter result in 10bit AGAIN: ADCIN 0, READT ' Read Channel 0 data ADCIN 1, SETT ' Read Channel 1 data


 
			 
			 
			 
					
					

 Re: Help with multiple ADC inputs
 Re: Help with multiple ADC inputs
		 
				
				
				
				
			

Bookmarks