The same board with running 16×2 LCD was used to try the ADC circuit. ADC actually turned out to be far too easy than i had thought. I could not find a good device to get Analog from (like LDR or NTC) so to start i put the 10K preset i had bought for LCD on the ADC Pin 0 - PORTA0. AREF and AVCC are both set to +5v and AGND to GND. Then the program did the rest. peanuts!
The ADC was displayed on the LCD and was showing exact position of the dial on the 10K preset ranging roughly between 0-1000. The reason that ADC on ATmega8535 is 10 bit resolution and come to this rough range.
The problem im facing right now is that ADc is set on Free running mode and my LCD cannot write that fast as the data keeps coming. I tried a lot to slow the loop but LCD never gets the display right. The worst part it that the LCD starts to display only whern i have my hand over the avr chip. This is real wierdo! no explanations yet.
Anyway I tried the NTC and i can’t get the mathematics right. The circuit is simple and NTC is giving a reading of ~400. i don’t know what temperature that is. and I saw lots of formulas which look greek to me. pardon me, im hopeless in mathematics. don’t ask why im here.
Will try to use the LDR the last in my the ADC training kit. The next is the baby i’be been really waiting for.
Interfacing with my computer using ATmega8535. The kit needed, max232, capacitors, wiring all done. good luck to myself!


