English
Language : 

PIC18F23K22 Datasheet, PDF (291/492 Pages) Microchip Technology – 28/40/44-Pin, Low-Power, High-Performance Microcontrollers with nanoWatt XLP Technology
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 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
5
CHS<4:0>
FVR BUF2
CTMU
Reserved
AN28(1)
AN27(1)
11111
11110
11101
11100
11011
AN5(1)
AN4
AN3
AN2
AN1
AN0
00101
00100
00011
00010
00001
00000
10-Bit ADC
2
PVCFG<1:0>
AVDD
VREF+/AN3
FVR BUF2
Reserved
00
01
10
11
2
NVCFG<1:0>
ADCMD
ADON
GO/DONE
10
ADFM
0 = Left Justify
1 = Right Justify
10
ADRESH ADRESL
AVSS
00
VREF-/AN2
01
Reserved
10
Reserved
11
Note: Additional ADC channels AN5-AN7 and AN20-AN27 are only available on PIC18(L)F4XK22 devices.
 2010 Microchip Technology Inc.
Preliminary
DS41412B-page 291