Calculate the step size for PIC18F4520 if the reference volt
Calculate the step size for PIC18F4520 if the reference voltage is 5 volt.
Solution
ADC use by PIC18F4520 is of 10 bit so 2^10 = 1024.
And no of step is equal to = Vref / (210) = Vref / 1024 = 5 / 1024 = 0.0048828125.
Note - I am little confuse about 2n - 1 vs 2n. As I have done this very long time ago you can check from example you have taught by your teacher. Or please consider other answer alongside it.
