Atmel atmega 8-bit devices include the analog comparator. I'm trying to find out what is the input voltage range for it when the chip is powered +5V. Thx.
It should be 0 to +5V, but you need to pull up the datasheet to verify this. All the answers to you question will be in the datasheet and supporting materials.
2nd. step/
Go to chapter 32. Electrical characteristic on page 365.
Find keyword: comparator
These params. found:
Analog Comparator Input Offset Voltage
Analog Comparator Input Leakage Current
Analog Comparator Propagation Delay
Analog Comparator Current vs. VCC
Still I'm not able to get the information what is the input voltage range for this comparator. For instance the LM393 datasheet contains the information: Input Common Mode Voltage Range: 0V min.; VCC-1.5V max.
It appears that Atmel does not provide this information in the datasheet. I found this chart in an old AT90S1200 datasheet. I am pretty sure that the process for the ATMEGA328 is better than the old AT90S parts but this might give you some confidence.
With 442 pages through which to search, it might be there but only indirectly mentioned. One I had a similar question about the comparator (maybe this same question) a very long time ago for a different AVR and was able to get an answer from the forum at http://www.avrfreaks.net/
Four years and three months to get an answer! This proves that the information is not in an obvious place! Just kidding. Thank you @Thomas Swan , better late than never, I’ll check it out as soon as I can get to a data sheet.
Any IC that has a 442 page data sheet is way more than I ever want to wade through.
My eyes would completely glaze over at about the 10th page.
Suppose that's why I stick with analog or small digital circuits.