English
Language : 

PIC18F25K20T-ISS Datasheet, PDF (265/456 Pages) Microchip Technology – 28/40/44-Pin Flash Microcontrollers with nanoWatt XLP Technology
PIC18F2XK20/4XK20
19.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 19-1 shows the block diagram of the ADC.
FIGURE 19-1:
ADC BLOCK DIAGRAM
VREF-
AVSS VCFG1 = 0
VCFG1 = 1
AVDD
VCFG0 = 0
VREF+
VCFG0 = 1
AN0
AN1
AN2
AN3
AN4
AN5
AN6
AN7
AN8
AN9
AN10
AN11
AN12
FVR
Unused
Unused
0000
0001
0010
0011
0100
0101
0110
0111
ADC
1000
1001 GO/DONE
10
1010
1011
1100
ADON
ADFM
0 = Left Justify
1 = Right Justify
10
1101
VSS
1110
ADRESH ADRESL
1111
CHS<3:0>
 2010 Microchip Technology Inc.
DS41303G-page 265