PIC12F683-E/MD MICROCHIP [Microchip Technology], PIC12F683-E/MD Datasheet - Page 63

no-image

PIC12F683-E/MD

Manufacturer Part Number
PIC12F683-E/MD
Description
8-Pin Flash-Based, 8-Bit CMOS Microcontrollers with nanoWatt Technology
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC12F683-E/MD
Manufacturer:
ZETEX
Quantity:
1 100
Part Number:
PIC12F683-E/MD
Manufacturer:
MICROCHIP原装
Quantity:
20 000
9.0
The
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).
FIGURE 9-1:
9.1
When configuring and using the ADC the following
functions must be considered:
• GPIO configuration
• Channel selection
• ADC voltage reference selection
• ADC conversion clock source
• Interrupt control
• Results formatting
9.1.1
The ADC can be used to convert both analog and digital
signals. When converting analog signals, the I/O pin
should be configured for analog by setting the associated
TRIS and ANSEL bits. See the corresponding GPIO
section for more information.
© 2007 Microchip Technology Inc.
Note:
Analog-to-Digital
ANALOG-TO-DIGITAL
CONVERTER (ADC) MODULE
ADC Configuration
GPIO CONFIGURATION
Analog voltages on any pin that is defined
as a digital input may cause the input
buffer to conduct excess current.
GP1/AN1/V
ADC BLOCK DIAGRAM
GP4/AN3
GP0/AN0
GP2/AN2
Converter
REF
(ADC)
CHS
V
REF
allows
V
DD
GO/DONE
VCFG = 0
VCFG = 1
The ADC voltage reference is software selectable to
either V
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.
9.1.2
The CHS bits of the ADCON0 register determine which
channel is connected to the sample and hold circuit.
When changing channels, a delay is required before
starting the next conversion. Refer to Section 9.2
“ADC Operation” for more information.
ADON
A/D
DD
or a voltage applied to the external reference
CHANNEL SELECTION
ADFM
ADRESH ADRESL
0 = Left Justify
1 = Right Justify
PIC12F683
10
10
DS41211D-page 61

Related parts for PIC12F683-E/MD