Microchip Technology MA160014 Data Sheet

Page of 560
 2010-2012 Microchip Technology Inc.
DS41412F-page 297
PIC18(L)F2X/4XK22
17.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
either V
DD
 or a voltage applied to the external reference
pins.
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 17-1:
ADC BLOCK DIAGRAM   
Note:  Additional ADC channels AN5-AN7 and AN20-AN27 are only available on PIC18(L)F4XK22 devices.
11111
11110
11101
11100
11011
FVR BUF2
DAC
CTMU
AN28
(1)
AN27
(1)
00101
00100
AN5
(1)
AN4
00011
00010
AN3
AN2
00001
00000
AN1
AN0
5
CHS<4:0>
10-Bit ADC
ADCMD
ADON
GO/DONE
10
0
 = Left Justify
1
 = Right Justify
ADFM
10
ADRESH
ADRESL
00
01
A
VDD
10
11
FVR BUF2
Reserved
V
REF
+/AN3
2
PVCFG<1:0>
00
01
A
VSS
10
11
Reserved
Reserved
V
REF
-/AN2
2
NVCFG<1:0>