PIC18F4520: Analog Inputs
From Mech
Analog-to-Digital Conversion (ADC) is a useful capability of many PIC microcontrollers. This ADC produces a digital value based on the supplied analog voltage, which can then be used with the digital logic of the rest of the PIC.
Available Pins
The PIC18F4520 has 13 pins that act as ADCs (shown below). The red pins can be used as analog inputs, while the grey are usually committed to communication or power.