i'm trying to get the adc work, but for some reason i don't get and i don't really understand it.
when i use the internal ref of 2.56v.
ADMUX will be: ADMUX = (1<<7)|(1<<6);. since MUX0...MUX4 = 0, ADC0 is my input.
if i understand this correctly then, when i put 2v on ADC0, some leds will burn because i read both ADCL and ADCH and make them visible on the leds.
- do i understand the working of the ADC correctly?
- do i have to make PORTA an input because i use ADC0 as input for the voltage?