AnsweredAssumed Answered

Looking for sample ADC code for only AN7 as ADC output and rest AN0-4 as GPIO inputs

Question asked by Vasanta Tanna on Aug 31, 2010
Latest reply on Sep 7, 2010 by Rich Testardi

I am Looking for sample ADC code to read only AN7 continuosly for 12 times as ADC output and rest AN0-4 as GPIO inputs, select chip using AN0-4 and its output on AN7.

 

AN4   AN3  AN2   AN1 AN0             AN7

0        0       0         0        1                 ADC output

0        0       0         1        0                ADC output

0        0       0         1        1                 ADC output

0        0       1         0        0                 ADC output

 

 

my program able to read only once for first one, after that not getting correct readings, appreciated.

Outcomes