Atmega168 and 328.
I program my Atmega328 with the option of ADC0 and ADC1. All works great as long as the chip is turned on. If I turn off the chip for more than 5 seconds. The ADC readings are sporadic. I compare the chips with the program sources, no errors? All are the same. These since I buy new chips. If the same program is put on my atmega168 dating 4 years, no problem !. When I had the problem with my 4 atmega168 of the same series. I order atmega328p and have my great suprise they do the same thing. I program under avrstudio4. I'm really discouraged. A +
Including my source program under Avr Studio 4 in Assembler