PIC16F871 Datasheet

  • PIC16F871

  • 28/40-Pin, 8-Bit CMOS FLASH Microcontrollers

  • 1755.40KB

  • 172页

  • Microchip   Microchip

扫码查看芯片数据手册

上传产品规格书

PDF预览

PIC16F870/871
10.0
ANALOG-TO-DIGITAL
CONVERTER (A/D) MODULE
The A/D module has four registers. These registers
are:
鈥?/div>
鈥?/div>
鈥?/div>
鈥?/div>
A/D Result High Register (ADRESH)
A/D Result Low Register (ADRESL)
A/D Control Register0 (ADCON0)
A/D Control Register1 (ADCON1)
The Analog-to-Digital (A/D) Converter module has five
inputs for the PIC16F870 and eight for the PIC16F871.
The analog input charges a sample and hold capacitor.
The output of the sample and hold capacitor is the
input into the converter. The converter then generates
a digital result of this analog level via successive
approximation. The A/D conversion of the analog input
signal results in a corresponding 10-bit digital number.
The A/D module has high and low voltage reference
input that is software selectable to some combination
of V
DD
, V
SS
, RA2 or RA3.
The A/D converter has a unique feature of being able to
operate while the device is in SLEEP mode. To operate
in sleep, the A/D clock must be derived from the A/D鈥檚
internal RC oscillator.
The ADCON0 register, shown in Register 10-1, con-
trols the operation of the A/D module. The ADCON1
register, shown in Register 10-2, configures the func-
tions of the port pins. The port pins can be configured
as analog inputs (RA3 can also be the voltage refer-
ence) or as digital I/O.
Additional information on using the A/D module can be
found in the PICmicro鈩?Mid-Range MCU Family Ref-
erence Manual (DS33023).
REGISTER 10-1: ADCON0 REGISTER (ADDRESS: 1Fh)
R/W-0
ADCS1
bit7
R/W-0
ADCS0
R/W-0
CHS2
R/W-0
CHS1
R/W-0
CHS0
R/W-0
GO/DONE
U-0
鈥?/div>
R/W-0
ADON
bit0
R = Readable bit
W = Writable bit
U = Unimplemented bit,
read as 鈥?鈥?/div>
- n = Value at POR reset
bit 7-6:
ADCS1:ADCS0: A/D Conversion Clock Select bits
00
= F
OSC
/2
01
= F
OSC
/8
10
= F
OSC
/32
11
= F
RC
(clock derived from an RC oscillation)
CHS2:CHS0:
Analog Channel Select bits
000
= channel 0, (RA0/AN0)
001
= channel 1, (RA1/AN1)
010
= channel 2, (RA2/AN2)
011
= channel 3, (RA3/AN3)
100
= channel 4, (RA5/AN4)
101
= channel 5, (RE0/AN5)
(1)
110
= channel 6, (RE1/AN6)
(1)
111
= channel 7, (RE2/AN7)
(1)
GO/DONE:
A/D Conversion Status bit
If ADON = 1
1
= A/D conversion in progress (setting this bit starts the A/D conversion)
0
= A/D conversion not in progress (This bit is automatically cleared by hardware when the A/D conversion is complete)
Unimplemented:
Read as '0'
ADON:
A/D On bit
1
= A/D converter module is operating
0
= A/D converter module is shutoff and consumes no operating current
bit 5-3:
bit 2:
bit 1:
bit 0:
Note 1:
These channels are not available on the PIC16F870.
1999 Microchip Technology Inc.
Preliminary
DS30569A-page 79

PIC16F871相关型号PDF文件下载

  • 型号
    版本
    描述
    厂商
    下载
  • 英文版
    8-Pin FLASH-Based 8-Bit CMOS Microcontrollers
    MICROCHIP
  • 英文版
    8-Pin, 8-Bit CMOS Microcontroller with EEPROM Data Memory
    MICROCHIP ...
  • 英文版
    8-Pin, 8-Bit CMOS Microcontroller with A/D Converter and EEP...
    MICROCHIP ...
  • 英文版
    8-Pin, 8-Bit CMOS Microcontrollers
    MICROCHIP ...
  • 英文版
    EPROM Memory Programming Specification
    MICROCHIP ...
  • 英文版
    8-Pin FLASH-Based 8-Bit CMOS Microcontrollers
    MICROCHIP ...
  • 英文版
    Microcontroller
    MICROCHIP
  • 英文版
    Microcontroller 
    Microchip
  • 英文版
    Microcontroller
    ETC
  • 英文版
    EPROM-Based 8-Bit CMOS Microcontroller
    MICROCHIP
  • 英文版
    8-Pin, 8-Bit CMOS Microcontrollers
    MICROCHIP
  • 英文版
    8-Pin, 8-Bit CMOS Microcontrollers
    MICROCHIP ...
  • 英文版
    ETC
  • 英文版
    EPROM Memory Programming Specification
    MICROCHIP
  • 英文版
    EPROM Memory Programming Specification
    MICROCHIP ...
  • 英文版
    28-Pin Programmable Mixed Signal Controller
    Microchip
  • 英文版
    EPROM Memory Programming Specification
    Microchip
  • 英文版
    Microcontroller
    ETC
  • 英文版
    Microcontroller
    ETC
  • 英文版
    EPROM/ROM-Based 8-Bit CMOS Microcontroller Series
    MICROCHIP

扫码下载APP,
一键连接广大的电子世界。

在线人工客服

买家服务:
卖家服务:

0571-85317607

客服在线时间周一至周五
9:00-17:30

关注官方微信号,
第一时间获取资讯。

建议反馈

联系人:

联系方式:

按住滑块,拖拽到最右边
>>
感谢您向阿库提出的宝贵意见,您的参与是维库提升服务的动力!意见一经采纳,将有感恩红包奉上哦!