Port Configuration

The ADC can be used to convert both analog and digital signals. When converting analog signals, the I/O pin should be configured for analog by setting the associated TRIS and ANSEL bits. Refer to the "I/O Ports" section for more information.

Important: Analog voltages on any pin that is defined as a digital input may cause the input buffer to conduct excess current.