參數(shù)資料
型號: 16F630
廠商: Microchip Technology Inc.
英文描述: 14-Pin FLASH-Based 8-Bit CMOS Microcontrollers
中文描述: 14引腳基于閃存的8位CMOS微控制器
文件頁數(shù): 45/132頁
文件大小: 2651K
代理商: 16F630
2003 Microchip Technology Inc.
DS40039C-page 43
PIC16F630/676
7.0
ANALOG-TO-DIGITAL
CONVERTER (A/D) MODULE
(PIC16F676 ONLY)
The analog-to-digital converter (A/D) allows conversion
of an analog input signal to a 10-bit binary representa-
tion of that signal. The PIC16F676 has eight analog
inputs, multiplexed into one sample and hold circuit.
The output of the sample and hold is connected to the
input of the converter. The converter generates a
binary result via successive approximation and stores
the result in a 10-bit register. The voltage reference
used in the conversion is software selectable to either
V
DD
or a voltage applied by the V
REF
pin. Figure 7-1
shows the block diagram of the A/D on the PIC16F676.
FIGURE 7-1:
A/D BLOCK DIAGRAM
7.1
A/D Configuration and Operation
There are three registers available to control the
functionality of the A/D module:
1.
ADCON0 (Register 7-1)
2.
ADCON1 (Register 7-2)
3.
ANSEL (Register 7-3)
7.1.1
ANALOG PORT PINS
The ANS7:ANS0 bits (ANSEL<7:0>) and the TRISA
bits control the operation of the A/D port pins. Set the
corresponding TRISA bits to set the pin output driver to
its high impedance state. Likewise, set the correspond-
ing ANS bit to disable the digital input buffer.
7.1.2
CHANNEL SELECTION
There are eight analog channels on the PIC16F676,
AN0
through
AN7.
(ADCON0<4:2>) control which channel is connected to
the sample and hold circuit.
The
CHS2:CHS0
bits
7.1.3
VOLTAGE REFERENCE
There are two options for the voltage reference to the
A/D converter: either V
DD
is used, or an analog voltage
applied to V
REF
is used. The VCFG bit (ADCON0<6>)
controls the voltage reference selection. If VCFG is set,
then the voltage on the V
REF
pin is the reference;
otherwise, V
DD
is the reference.
7.1.4
CONVERSION CLOCK
The A/D conversion cycle requires 11 T
AD
. The source
of the conversion clock is software selectable via the
ADCS bits (ADCON1<6:4>). There are seven possible
clock options:
F
OSC
/2
F
OSC
/4
F
OSC
/8
F
OSC
/16
F
OSC
/32
F
OSC
/64
F
RC
(dedicated internal oscillator)
For correct conversion, the A/D conversion clock
(1/T
AD
) must be selected to ensure a minimum T
AD
of
1.6
μ
s. Table 7-1 shows a few T
AD
calculations for
selected frequencies.
RA0/AN0
ADC
RA1/AN1/V
REF
RA2/AN2
RC0/AN4
V
DD
V
REF
ADON
GO/DONE
VCFG = 1
VCFG = 0
CHS2:CHS0
ADRESH
ADRESL
10
10
ADFM
V
SS
RC1/AN5
RC2/AN6
RC3/AN7
RA4/AN3
Note:
Analog voltages on any pin that is defined
as a digital input may cause the input
buffer to conduct excess current.
相關PDF資料
PDF描述
16F84 CAT 5E CROSSOVER, BLUE 15 FT PATCH CABLE
16F84A CAT 5E CROSSOVER PATCH CORD CABLE BLUE 20 FT
16F871 CAT 5E CROSSOVER PATCH CORD CABLE GREEN 6 FT
16F872 CAT 5E CROSSOVER PATCH CORD CABLE GREEN 10 FT
16F876A 28/40-pin Enhanced FLASH Microcontrollers
相關代理商/技術參數(shù)
參數(shù)描述
16F684-I 制造商:Microchip Technology Inc 功能描述:
16F6H 制造商:EDAL 制造商全稱:EDAL 功能描述:Silicon High Voltage Assembly
16F6H1 制造商:EDAL 制造商全稱:EDAL 功能描述:Silicon High Voltage Assembly
16F7674 制造商:未知廠家 制造商全稱:未知廠家 功能描述:SMD TWEEZER HEAD
16F7676 制造商:未知廠家 制造商全稱:未知廠家 功能描述:CLIP KABELKIT