没有合适的资源?快使用搜索试试~ 我知道了~
PIC16F887数据手册 用于PIC16F887的学习
需积分: 0 1 下载量 18 浏览量
2022-03-17
16:19:13
上传
评论
收藏 5.99MB PDF 举报
温馨提示
试读
322页
PIC16F887数据手册 用于PIC16F887的学习
资源详情
资源评论
资源推荐
2006-2015 Microchip Technology Inc. DS40001291H-page 1
PIC16F882/883/884/886/887
High-Performance RISC CPU
• Only 35 Instructions to Learn:
- All single-cycle instructions except branches
• Operating Speed:
- DC – 20 MHz oscillator/clock input
- DC – 200 ns instruction cycle
• Interrupt Capability
• 8-Level Deep Hardware Stack
• Direct, Indirect and Relative Addressing modes
Special Microcontroller Features
• Precision Internal Oscillator:
- Factory calibrated to ±1%
- Software selectable frequency range of
8 MHz to 31 kHz
- Software tunable
- Two-Speed Start-up mode
- Crystal fail detect for critical applications
- Clock mode switching during operation for
power savings
• Power-Saving Sleep mode
• Wide Operating Voltage Range (2.0V-5.5V)
• Industrial and Extended Temperature Range
• Power-on Reset (POR)
• Power-up Timer (PWRT) and Oscillator Start-up
Timer (OST)
• Brown-out Reset (BOR) with Software Control
Option
• Enhanced Low-Current Watchdog Timer (WDT)
with On-Chip Oscillator (software selectable
nominal 268 seconds with full prescaler) with
software enable
• Multiplexed Master Clear with Pull-up/Input Pin
• Programmable Code Protection
• High Endurance Flash/EEPROM Cell:
- 100,000 write Flash endurance
- 1,000,000 write EEPROM endurance
- Flash/Data EEPROM retention: > 40 years
• Program Memory Read/Write during run time
• In-Circuit Debugger (on board)
Low-Power Features
• Standby Current:
- 50 nA @ 2.0V, typical
• Operating Current:
-11A @ 32 kHz, 2.0V, typical
-220A @ 4 MHz, 2.0V, typical
• Watchdog Timer Current:
-1A @ 2.0V, typical
Peripheral Features
• 24/35 I/O Pins with Individual Direction Control:
- High current source/sink for direct LED drive
- Interrupt-on-Change pin
- Individually programmable weak pull-ups
- Ultra Low-Power Wake-up (ULPWU)
• Analog Comparator Module with:
- Two analog comparators
- Programmable on-chip voltage reference
(CV
REF) module (% of VDD)
- Fixed Voltage Reference (0.6V)
- Comparator inputs and outputs externally
accessible
- SR Latch mode
- External Timer1 Gate (count enable)
• A/D Converter:
- 10-bit resolution and 11/14 channels
• Timer0: 8-bit Timer/Counter with 8-bit
Programmable Prescaler
• Enhanced Timer1:
- 16-bit timer/counter with prescaler
- External Gate Input mode
- Dedicated low-power 32 kHz oscillator
• Timer2: 8-bit Timer/Counter with 8-bit Period
Register, Prescaler and Postscaler
• Enhanced Capture, Compare, PWM+ Module:
- 16-bit Capture, max. resolution 12.5 ns
- Compare, max. resolution 200 ns
- 10-bit PWM with 1, 2 or 4 output channels,
programmable “dead time”, max. frequency
20 kHz
- PWM output steering control
• Capture, Compare, PWM Module:
- 16-bit Capture, max. resolution 12.5 ns
- 16-bit Compare, max. resolution 200 ns
- 10-bit PWM, max. frequency 20 kHz
• Enhanced USART Module:
- Supports RS-485, RS-232, and LIN 2.0
- Auto-Baud Detect
- Auto-Wake-Up on Start bit
• In-Circuit Serial Programming
TM
(ICSP
TM
) via Two
Pins
• Master Synchronous Serial Port (MSSP) Module
supporting 3-wire SPI (all 4 modes) and I
2
C™
Master and Slave Modes with I
2
C Address Mask
28/40/44-Pin Flash-Based, 8-Bit CMOS Microcontrollers
PIC16F882/883/884/886/887
DS40001291H-page 2 2006-2015 Microchip Technology Inc.
PIC16F882/883/884/886/887 Family Types
Device
Program
Memory
Data Memory
I/O
10-bit A/D
(ch)
ECCP/
CCP
EUSART MSSP Comparators
Timers
8/16-bit
Flash
(words)
SRAM
(bytes)
EEPROM
(bytes)
PIC16F882 2048 128 128 24 11 1/1 1 1 2 2/1
PIC16F883 4096 256 256 24 11 1/1 1 1 2 2/1
PIC16F884 4096 256 256 35 14 1/1 1 1 2 2/1
PIC16F886 8192 368 256 24 11 1/1 1 1 2 2/1
PIC16F887 8192 368 256 35 14 1/1 1 1 2 2/1
2006-2015 Microchip Technology Inc. DS40001291H-page 3
PIC16F882/883/884/886/887
Pin Diagrams – PIC16F882/883/886, 28-Pin PDIP, SOIC, SSOP
10
11
2
3
4
5
6
1
8
7
9
12
13
14
15
16
17
18
19
20
23
24
25
26
27
28
22
21
PIC16F882/883/886
RE3/MCLR/VPP
RA0/AN0/ULPWU/C12IN0-
RA1/AN1/C12IN1-
RA2/AN2/V
REF-/CVREF/C2IN+
RA3/AN3/V
REF+/C1IN+
RA4/T0CKI/C1OUT
RA5/AN4/SS
/C2OUT
V
SS
RA7/OSC1/CLKIN
RA6/OSC2/CLKOUT
RC0/T1OSO/T1CKI
RC1/T1OSI/CCP2
RC2/P1A/CCP1
RC3/SCK/SCL
RB7/ICSPDAT
RB6/ICSPCLK
RB5/AN13/T1G
RB4/AN11/P1D
RB3/AN9/PGM/C12IN2-
RB2/AN8/P1B
RB1/AN10/P1C/C12IN3-
RB0/AN12/INT
V
DD
VSS
RC7/RX/DT
RC6/TX/CK
RC5/SDO
RC4/SDI/SDA
PIC16F882/883/884/886/887
DS40001291H-page 4 2006-2015 Microchip Technology Inc.
TABLE 1: 28-PIN PDIP, SOIC, SSOP ALLOCATION TABLE (PIC16F882/883/886)
I/O
28-Pin PDIP/SOIC/SSOP
Analog
Comparators
Timers
ECCP
EUSART
MSSP
Interrupt
Pull-up
Basic
RA0 2 AN0/ULPWU C12IN0- — — — — — — —
RA1 3 AN1 C12IN1- — — — — — — —
RA2 4 AN2 C2IN+ — — — — — — VREF-/CVREF
RA3 5 AN3 C1IN+ — — — — — —
V
REF+
RA4 6 — C1OUT T0CKI — — — — — —
RA5 7 AN4 C2OUT — — — SS
—— —
RA6 10 — — — — — — — — OSC2/CLKOUT
RA7 9 — — — — — — — — OSC1/CLKIN
RB0 21 AN12 — — — — — IOC/INT Y —
RB1 22 AN10 C12IN3- — P1C — — IOC Y —
RB2 23 AN8 — — P1B — — IOC Y —
RB3 24 AN9 C12IN2- — — — — IOC Y PGM
RB4 25 AN11 — — P1D — — IOC Y —
RB5 26 AN13 — T1G
— — — IOC Y —
RB6 27 — — — — — — IOC Y ICSPCLK
RB7 28 — — — — — — IOC Y ICSPDAT
RC0 11 — — T1OSO/T1CKI — — — — — —
RC1 12 — — T1OSI CCP2 — — — — —
RC2 13 — — — CCP1/P1A — — — — —
RC3 14 — — — — — SCK/SCL — — —
RC4 15 — — — — — SDI/SDA — — —
RC5 16 — — — — — SDO — — —
RC6 17 — — — — TX/CK — — — —
RC7 18 — — — — RX/DT — — — —
RE3 1 — — — — — — — Y
(1)
MCLR/VPP
—20 — — — — — — — — VDD
— 8 — — — — — — — — VSS
—19 — — — — — — — — VSS
Note 1: Pull-up activated only with external MCLR configuration.
2006-2015 Microchip Technology Inc. DS40001291H-page 5
PIC16F882/883/884/886/887
Pin Diagrams – PIC16F882/883/886, 28-Pin QFN
16
2
7
1
3
6
5
4
15
21
19
20
17
18
22
28
26
27
23
24
25
14
8
10
9
13
12
11
PIC16F882/883/886
RA1/AN1/C12IN1-
RA0/AN0/ULPWU/C12IN0-
RE3/MCLR
/VPP
RB7/ICSPDAT
RB6/ICSPCLK
RB5/AN13/T1G
RB4/AN11/P1D
RC0/T1OSO/T1CKI
RC1/T1OSI/CCP2
RC2/P1A/CCP1
RC3/SCK/SCL
RC4/SDI/SDA
RC5/SDO
RC6/TX/CK
RA2/AN2/VREF-/CVREF/C2IN+
RA3/AN3/V
REF+/C1IN+
RA4/T0CKI/C1OUT
RA5/AN4/SS
/C2OUT
V
SS
RA7/OSC1/CLKIN
RA6/OSC2/CLKOUT
RB3/AN9/PGM/C12IN2-
RB2/AN8/P1B
RB1/AN10/P1C/C12IN3-
RB0/AN12/INT
VDD
VSS
RC7/RX/DT
剩余321页未读,继续阅读
Andyxzq_main
- 粉丝: 61
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0