Figure 2—This circuitry is common to all of the MC104P’s A/D inputs. It provides a low-impedance input to the A/D inputs. The PIC18F8722’s ADC for voltages from 0 to 5 V returns a digital value of 0 to 1023, respectively.