I'm going to be using a 10-bit ADC on a PIC to measure voltages between 3.5 and below. I'm trying to calculate what value the PIC would return for various inputs assuming my reference voltages are +5V and 0V. If I understand correctly, in this situation 1 bit = 4.89mV. I got this from:
\(Resolution = \frac{Vref_{high}-Vref_{low}}{1024}\)
And if I wanted to know what value would be returned when measuring 3.5V it would be:
\(Value = \frac{3.5}{5} * 1023\)
In this case 716.1, so the ADC would return 716. Using the same equation for 3V (using the above equation) I get 613.8, so the ADC would return 614. Are my calculations correct? If not, what am I missing? Thanks in advance.
\(Resolution = \frac{Vref_{high}-Vref_{low}}{1024}\)
And if I wanted to know what value would be returned when measuring 3.5V it would be:
\(Value = \frac{3.5}{5} * 1023\)
In this case 716.1, so the ADC would return 716. Using the same equation for 3V (using the above equation) I get 613.8, so the ADC would return 614. Are my calculations correct? If not, what am I missing? Thanks in advance.