Initially i am selecting channel 1 that is pin no.39 of atmega16 by setting mux1 of ADMUX register but still the value is getting displayed only if I give input to pin 40 that is ADC channel 0…
I have tried many ways but still ADC channel 0 is getting selected all the time…plz help…!!!