Datasheet

Table Of Contents
© 2008 Microchip Technology Inc. DS41262E-page 107
PIC16F631/677/685/687/689/690
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 be
either internally generated or externally supplied.
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
Note: The ADC module applies to PIC16F677/
PIC16F685/PIC16F687/PIC16F689/
PIC16F690 devices only.
VDD
VREF
ADON
GO/DONE
VCFG = 1
VCFG = 0
CHS
V
SS
RA0/AN0/C1IN+/ICSPDAT/ULPWU
RA1/AN1/C12IN0-/V
REF/ICSPCLK
RA2/AN2/T0CKI/INT/C1OUT
RA4/AN3/T1G
/OSC2/CLKOUT
RC0/AN4/C2IN+
RC1/AN5/C12IN1-
RC2/AN6/C12IN2-/P1D
(1)
RC3/AN7/C12IN3-/P1C
(1)
RC6/AN8/SS
(2)
RC7/AN9/SDO
(2)
RB4/AN10/SDI/SDA
(2)
RB5/AN11/RX/DT
(2)
CVREF
VP6 Reference
Note 1: P1C and P1D available on PIC16F685/PIC16F690 only.
2: SS, SDO, SDA, RX and DT available on PIC16F677/PIC16F687/PIC16F689/PIC16F690 only.
3: ADC module applies to the PIC16F677/PIC16F685/PIC16F687/PIC16F689/PIC16F690 devices only.
ADRESH ADRESL
10
10
ADFM
0 = Left Justify
1 = Right Justify
ADC