sush
Member level 4

adc problem in pic16f877
hi frndz
m working on adc of pic16f877. m using two analog inputs .
when i give inputs at both the pins i.e (either 5 volts to both or ground to both)then the value comes correct but if i give input to one of the pin as 5 volts and other as ground then the adc shows absurd value.
the one on which i give 5 volts shows me 348 decimal and the other one shows 0 .
please help me how can i make it correct
hi frndz
m working on adc of pic16f877. m using two analog inputs .
when i give inputs at both the pins i.e (either 5 volts to both or ground to both)then the value comes correct but if i give input to one of the pin as 5 volts and other as ground then the adc shows absurd value.
the one on which i give 5 volts shows me 348 decimal and the other one shows 0 .
please help me how can i make it correct