Negative on the 12 bit resolution. To increase a-d resolution, apply a reference voltage of 2-2.5V to the Vref(+) pin. A simple voltage divider would work from your supply voltage. If precision is important, use a precision voltage reference by Microchip, TI, or whomever. Using one that divides by 1024 makes the multiplication easy, say 2.048V.
With the reference voltage supplied, you would set the Vref(+) pin as an input. After that, set the voltage reference VCFG (or?) bit in the a-d config register, like "Set VCFG On".
Stick a potentiometer between Vdd and Vss with the wiper on say AN0. You should watch the max value 'flip' over, or possibly give weird results, after less than half a turn.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
is there a way to get 12bit resolution on the AD?
Or adjust the range it reads from to get more points ex(between 0 - 2 volts)?
Negative on the 12 bit resolution. To increase a-d resolution, apply a reference voltage of 2-2.5V to the Vref(+) pin. A simple voltage divider would work from your supply voltage. If precision is important, use a precision voltage reference by Microchip, TI, or whomever. Using one that divides by 1024 makes the multiplication easy, say 2.048V.
With the reference voltage supplied, you would set the Vref(+) pin as an input. After that, set the voltage reference VCFG (or?) bit in the a-d config register, like "Set VCFG On".
Stick a potentiometer between Vdd and Vss with the wiper on say AN0. You should watch the max value 'flip' over, or possibly give weird results, after less than half a turn.