Hello

In the formulae ADCIN0,Adval 'read ch0 into Adval
&Adval=Adval*/Quanta (using 18f4550)
where Quanta=1251 for 0-5v input
Adval returns 0-499 ie 4.99

However for a 10 bit result I require Aval to return 0-1023.
This appears to be about right when Quanta=2600

Question: Does anyone know what the correct value of Quanta should be or the formulae to calculate it accurately.

Thanks
Tom