Microchip Technology MCP1631RD-MCC2 Data Sheet

Page of 338
 2006-2012 Microchip Technology Inc.
DS41291G-page 103
PIC16F882/883/884/886/887
9.0
ANALOG-TO-DIGITAL 
CONVERTER (ADC) MODULE
The Analog-to-Digital Converter (ADC) allows
conversion of an analog input signal to a 10-bit binary
representation of that signal. This device uses analog
inputs, which are multiplexed into a single sample and
hold circuit. The output of the sample and hold is
connected to the input of the converter. The converter
generates a 10-bit binary result via successive
approximation and stores the conversion result into the
ADC result registers (ADRESL and ADRESH).
The ADC voltage reference is software selectable to be
either internally generated or externally supplied.
The ADC can generate an interrupt upon completion of
a conversion. This interrupt can be used to wake-up the
device from Sleep.
 shows the block diagram of the ADC.
FIGURE 9-1:
ADC BLOCK DIAGRAM 
AN0
AN1
AN2
AN4
AV
DD
V
REF
+
ADON
GO/DONE
VCFG0 = 1
VCFG0 = 0
CHS<3:0>
V
SS
AN5
AN6
AN7
AN3
AN8
AN9
AN10
AN11
AN12
AN13
AV
SS
V
REF
-
VCFG1 = 1
VCFG1 = 0
CVREF
FixedRef
0000
0001
0010
0011
0100
0101
0111
0110
1000
1001
1010
1011
1100
1101
1110
1111
ADRESH ADRESL
10
10
ADFM
0 = Left Justify
1 = Right Justify
ADC