PIC16F882/883/884/886/887
9.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 9-1 shows the block diagram of the ADC.
FIGURE 9-1:
ADC BLOCK DIAGRAM
VCFG1 = 0
AVSS
VREF-
VCFG1 = 1
AVDD
VCFG0 = 0
VCFG0 = 1
VREF+
0000
AN0
AN1
0001
0010
0011
0100
0101
0110
0111
1000
1001
1010
1011
1100
1101
1110
1111
AN2
AN3
AN4
AN5
AN6
ADC
AN7
10
AN8
GO/DONE
AN9
0= Left Justify
1= Right Justify
AN10
AN11
AN12
AN13
CVREF
Fixed Ref
ADFM
ADON
10
ADRESH ADRESL
VSS
CHS<3:0>
© 2007 Microchip Technology Inc.
Preliminary
DS41291D-page 99