Author Options:

What is the input value on an atTiny85 Answered

I am programming an atTiny with Arduino as the ISP and am wondering if an analogRead will come out between 0 and 1023 like arduino or a different value such as exact voltage or a different reference.

2 Replies

steveastrouk (author)2012-07-08

It'll be a digit, just like any other ADC reads. The reference volts is actually in your control to some extent too.

Select as Best AnswerUndo Best Answer

frollard (author)steveastrouk2012-07-09

I think he's asking how many bits of resolution the adc has -

which according to digikey


the attiny8 (8-dip) has
4x10bit adc

so it gives a value of 0-1023 for 0-5 volts. not sure if it has an external reference voltage.

Select as Best AnswerUndo Best Answer