Microcontroller › AVR › problem with adc conversion code in atmega 16 › Hi ShivamThe code thing seems
December 14, 2016 at 4:39 pm
#14272
GANEEV SINGH
Participant
Hi Shivam
The code thing seems to be fine. One reason could be that you might have not given a proper voltage to Aref pin (pin 32). It is used to provide a reference voltage for A to D conversions, generally we connect this pin to +5 V.
This might work