Hi,
When I checked ADC conversion using Atmega8 and Atmega328 with the same code, the output at serial window is stable for Atmega 328 while it is not that stable for Atmega8. Is it due to any differnce in the device or due to code?
No.
How are you testing it? Have you put a capacitor on the Aref pin to ground that will stablise the readings.
Do you have some circuit already ? The ADC is not stable when you have nothing connected to pin i think.
premkumar9:
Is it due to any differnce in the device or due to code?
No.