Datasheet
2012 Microchip Technology Inc. Preliminary DS41637B-page 167
PIC16(L)F1784/6/7
17.0 ANALOG-TO-DIGITAL
CONVERTER (ADC) MODULE
The Analog-to-Digital Converter (ADC) allows
conversion of a single-ended and differential analog
input signals to a 12-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 12-bit
binary result via successive approximation and stores
the conversion result into the ADC result registers
(ADRESH:ADRESL register pair). Figure 17-1 shows
the block diagram of the ADC.
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.
FIGURE 17-1: ADC BLOCK DIAGRAM
Reserved
VDD
VREF+
ADPREF =
01
ADPREF = 00
FVR Buffer1
Note 1: When ADON = 0, all multiplexer inputs are disconnected.
2: See ADCON0 register (Register 17-1) and ADCON2 register (Register 17-3) for detailed
analog channel selection per device.
3: PIC16(L)F1784/7 only.
ADON
(1)
GO/DONE
VSS
ADC
CHS<4:0>
(2)
AN0
AN1
V
REF-/AN2
AN4
AN5
(1)
AN6
(1)
AN7
(1)
VREF+/AN3
AN8
AN9
AN10
AN11
AN12
AN13
ADRESH ADRESL
16
ADFM
0 = Sign Magnitude
1 = 2’s Complement
Temperature Indicator
ADPREF = 11
Ref+ Ref-
ADNREF = 1
ADPNEF = 0
+
-
00000
00001
00010
00011
00100
00101
00111
00110
01000
01001
01010
01011
01100
01101
11110
11111
11101
CHSN<3:0>
0
1
10
12
ADRMD
AN21
(1)
10101