AREF
Posted: 25 Feb 2024 11:08
Internal reference
I want to use the internal reference on the atmega328p, but I can't seem to get it to work. I used:
ADC_Init_Advanced(_ADC_INTERNAL_REF)
If I connect AREF to an external voltage, via a resistor and a 2.2V zener diode, then I can read the voltage on PC0, otherwise I always get the value 1023.
Any hint?
I want to use the internal reference on the atmega328p, but I can't seem to get it to work. I used:
ADC_Init_Advanced(_ADC_INTERNAL_REF)
If I connect AREF to an external voltage, via a resistor and a 2.2V zener diode, then I can read the voltage on PC0, otherwise I always get the value 1023.
Any hint?