English
Language : 

PIC18F-LF1XK50 Datasheet, PDF (209/420 Pages) Microchip Technology – 20-Pin USB Flash Microcontrollers
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 VDD, 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.
Figure 17-1 shows the block diagram of the ADC.
FIGURE 17-1:
ADC BLOCK DIAGRAM
PIC18F/LF1XK50
NVCFG[1:0] = 00
AVSS
VREF-
NVCFG[1:0] = 01
AVDD
PVCFG[1:0] = 00
VREF+ PVCFG[1:0] = 01
FVR PVCFG[1:0] = 10
Unused
Unused
Unused
AN3
AN4
AN5
AN6
AN7
AN8
AN9
AN10
AN11
Unused
Unused
DAC
FVR
0000
0001
0010
0011
0100
0101
0110
0111
1000
1001 GO/DONE
1010
1011
1100
ADON
1101
VSS
1110
1111
ADC
10
ADFM
0 = Left Justify
1 = Right Justify
10
ADRESH ADRESL
CHS<3:0>
 2010 Microchip Technology Inc.
Preliminary
DS41350E-page 209