English
Language : 

PIC16F631_08 Datasheet, PDF (109/306 Pages) Microchip Technology – 20-Pin Flash-Based, 8-Bit CMOS Microcontrollers with nanoWatt Technology
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).
Note:
The ADC module applies to PIC16F677/
PIC16F685/PIC16F687/PIC16F689/
PIC16F690 devices only.
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:
ADC BLOCK DIAGRAM
Figure 9-1 shows the block diagram of the ADC.
VREF
VDD
VCFG = 0
VCFG = 1
RA0/AN0/C1IN+/ICSPDAT/ULPWU
RA1/AN1/C12IN0-/VREF/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
CHS
GO/DONE
ADC
ADON
VSS
10
ADFM
0 = Left Justify
1 = Right Justify
10
ADRESH ADRESL
Note 1:
2:
3:
P1C and P1D available on PIC16F685/PIC16F690 only.
SS, SDO, SDA, RX and DT available on PIC16F677/PIC16F687/PIC16F689/PIC16F690 only.
ADC module applies to the PIC16F677/PIC16F685/PIC16F687/PIC16F689/PIC16F690 devices only.
© 2008 Microchip Technology Inc.
DS41262E-page 107