AVR-IO-M16 ADC HELP

Hi,

I’m trying to get my atmega 16 to perform an adc voltage reading. The purpose is to read this voltage and then given the limit voltage I input it will stop all of the tasks and open a relay. I’m using the internal reference voltage. The thing is that I don’t know what it is reading if it is reading anything at all. I assume that it is reading something since I put the condition “operate if the voltage read is larger than 0” and it worked. But, i really don’t know how to input my control voltage to match the one read by the ADC. Any suggestions on this?? The voltages I’m gonna be reading are in the order of mV up to 2V or so.

Thanks

Ricky

Have you got any code you can post. Maybe I can help if I see what you have so far.