首页 > 器件类别 > 嵌入式处理器和控制器 > 微控制器和处理器

PIC16LF873A-I/SS

8-bit Microcontrollers - MCU 7KB 192 RAM 22 I/O

器件类别:嵌入式处理器和控制器    微控制器和处理器   

厂商名称:Microchip(微芯科技)

厂商官网:https://www.microchip.com

器件标准:

下载文档
器件参数
参数名称
属性值
是否无铅
不含铅
是否Rohs认证
符合
厂商名称
Microchip(微芯科技)
零件包装代码
SSOP
包装说明
0.209 INCH, PLASTIC, MS-150, SSOP-28
针数
28
Reach Compliance Code
compliant
ECCN代码
EAR99
Factory Lead Time
15 weeks
Samacsys Description
8-bit Microcontrollers - MCU 7KB 192 RAM 22 I/O
具有ADC
YES
其他特性
OPERATES AT 2 V MINIMUM SUPPLY
地址总线宽度
位大小
8
CPU系列
PIC
最大时钟频率
10 MHz
DAC 通道
YES
DMA 通道
NO
外部数据总线宽度
JESD-30 代码
R-PDSO-G28
JESD-609代码
e3
长度
10.2 mm
湿度敏感等级
1
I/O 线路数量
22
端子数量
28
片上程序ROM宽度
14
最高工作温度
85 °C
最低工作温度
-40 °C
PWM 通道
YES
封装主体材料
PLASTIC/EPOXY
封装代码
SSOP
封装等效代码
SSOP28,.3
封装形状
RECTANGULAR
封装形式
SMALL OUTLINE, SHRINK PITCH
峰值回流温度(摄氏度)
260
电源
2.5/5 V
认证状态
Not Qualified
RAM(字节)
192
ROM(单词)
4096
ROM可编程性
FLASH
座面最大高度
1.98 mm
速度
10 MHz
最大压摆率
2 mA
最大供电电压
5.5 V
最小供电电压
3 V
标称供电电压
5 V
表面贴装
YES
技术
CMOS
温度等级
INDUSTRIAL
端子面层
Matte Tin (Sn)
端子形式
GULL WING
端子节距
0.65 mm
端子位置
DUAL
处于峰值回流温度下的最长时间
40
宽度
5.25 mm
uPs/uCs/外围集成电路类型
MICROCONTROLLER, RISC
文档预览
PIC16F87XA
28/40/44-Pin Enhanced Flash Microcontrollers
Devices Included in this Data Sheet:
• PIC16F873A
• PIC16F874A
• PIC16F876A
• PIC16F877A
Analog Features:
• 10-bit, up to 8-channel Analog-to-Digital
Converter (A/D)
• Brown-out Reset (BOR)
• Analog Comparator module with:
- Two analog comparators
- Programmable on-chip voltage reference
(V
REF
) module
- Programmable input multiplexing from device
inputs and internal voltage reference
- Comparator outputs are externally accessible
High-Performance RISC CPU:
• Only 35 single-word instructions to learn
• All single-cycle instructions except for program
branches, which are two-cycle
• Operating speed: DC – 20 MHz clock input
DC – 200 ns instruction cycle
• Up to 8K x 14 words of Flash Program Memory,
Up to 368 x 8 bytes of Data Memory (RAM),
Up to 256 x 8 bytes of EEPROM Data Memory
• Pinout compatible to other 28-pin or 40/44-pin
PIC16CXXX and PIC16FXXX microcontrollers
Special Microcontroller Features:
• 100,000 erase/write cycle Enhanced Flash
program memory typical
• 1,000,000 erase/write cycle Data EEPROM
memory typical
• Data EEPROM Retention > 40 years
• Self-reprogrammable under software control
• In-Circuit Serial Programming™ (ICSP™)
via two pins
• Single-supply 5V In-Circuit Serial Programming
• Watchdog Timer (WDT) with its own on-chip RC
oscillator for reliable operation
• Programmable code protection
• Power saving Sleep mode
• Selectable oscillator options
• In-Circuit Debug (ICD) via two pins
Peripheral Features:
• Timer0: 8-bit timer/counter with 8-bit prescaler
• Timer1: 16-bit timer/counter with prescaler,
can be incremented during Sleep via external
crystal/clock
• Timer2: 8-bit timer/counter with 8-bit period
register, prescaler and postscaler
• Two Capture, Compare, PWM modules
- Capture is 16-bit, max. resolution is 12.5 ns
- Compare is 16-bit, max. resolution is 200 ns
- PWM max. resolution is 10-bit
• Synchronous Serial Port (SSP) with SPI
(Master mode) and I
2
C™
(Master/Slave)
• Universal Synchronous Asynchronous Receiver
Transmitter (USART/SCI) with 9-bit address
detection
• Parallel Slave Port (PSP) – 8 bits wide with
external RD, WR and CS controls (40/44-pin only)
• Brown-out detection circuitry for
Brown-out Reset (BOR)
CMOS Technology:
• Low-power, high-speed Flash/EEPROM
technology
• Fully static design
• Wide operating voltage range (2.0V to 5.5V)
• Commercial and Industrial temperature ranges
• Low-power consumption
Device
MSSP
Data
EEPROM
10-bit
CCP
Timers
# Single Word SRAM (Bytes) I/O A/D (ch) (PWM)
Master USART 8/16-bit Comparators
Bytes
SPI
Instructions (Bytes)
I
2
C
7.2K
7.2K
4096
4096
8192
8192
192
192
368
368
128
128
256
256
22
33
22
33
5
8
5
8
2
2
2
2
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
2/1
2/1
2/1
2/1
2
2
2
2
Program Memory
PIC16F873A
PIC16F874A
PIC16F876A 14.3K
PIC16F877A 14.3K
2001-2013 Microchip Technology Inc.
DS39582C-page 1
PIC16F87XA
Pin Diagrams
28-Pin PDIP, SOIC, SSOP
MCLR/V
PP
RA0/AN0
RA1/AN1
RA2/AN2/V
REF
-/CV
REF
RA3/AN3/V
REF
+
RA4/T0CKI/C1OUT
RA5/AN4/SS/C2OUT
V
SS
OSC1/CLKI
OSC2/CLKO
RC0/T1OSO/T1CKI
RC1/T1OSI/CCP2
RC2/CCP1
RC3/SCK/SCL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
28
27
26
25
24
23
22
21
20
19
18
17
16
15
RB7/PGD
RB6/PGC
RB5
RB4
RB3/PGM
RB2
RB1
RB0/INT
V
DD
V
SS
RC7/RX/DT
RC6/TX/CK
RC5/SDO
RC4/SDI/SDA
PIC16F873A/876A
28-Pin QFN
RA2/AN2/V
REF
-/CV
REF
RA3/AN3/V
REF
+
RA4/T0CKI/C1OUT
RA5/AN4/SS/C2OUT
V
SS
OSC1/CLKI
OSC2/CLKO
1
2
3
4
5
6
7
28
27
26
25
24
23
22
21
20
19
18
17
16
15
RA1/AN1
RA0/AN0
MCLR/V
PP
RB7/PGD
RB6/PGC
RB5
RB4
PIC16F873A
PIC16F876A
44-Pin QFN
44
43
42
41
40
39
38
37
36
35
34
RC6/TX/CK
RC5/SDO
RC4/SDI/SDA
RD3/PSP3
RD2/PSP2
RD1/PSP1
RD0/PSP0
RC3/SCK/SCL
RC2/CCP1
RC1/T1OSI/CCP2
RC0/T1OSO/T1CKI
RB3/PGM
NC
RB4
RB5
RB6/PGC
RB7/PGD
MCLR/V
PP
RA0/AN0
RA1/AN1
RA2/AN2/V
REF
-/CV
REF
RA3/AN3/V
REF
+
12
13
14
15
16
17
18
19
20
21
22
RC7/RX/DT
RD4/PSP4
RD5/PSP5
RD6/PSP6
RD7/PSP7
V
SS
V
DD
V
DD
RB0/INT
RB1
RB2
1
2
3
4
5
6
7
8
9
10
11
PIC16F874A
PIC16F877A
33
32
31
30
29
28
27
26
25
24
23
OSC2/CLKO
OSC1/CLKI
V
SS
V
SS
V
DD
V
DD
RE2/CS/AN7
RE1/WR/AN6
RE0/RD/AN5
RA5/AN4/SS/C2OUT
RA4/T0CKI/C1OUT
DS39582C-page 2
RC0/T1OSO/T1CKI
RC1/T1OSI/CCP2
RC2/CCP1
RC3/SCK/SCL
RC4/SDI/SDA
RC5/SDO
RC6/TX/CK
8
9
10
11
12
13
14
RB3/PGM
RB2
RB1
RB0/INT
V
DD
V
SS
RC7/RX/DT
2001-2013 Microchip Technology Inc.
PIC16F87XA
Pin Diagrams (Continued)
40-Pin PDIP
MCLR/V
PP
RA0/AN0
RA1/AN1
RA2/AN2/V
REF
-/CV
REF
RA3/AN3/V
REF
+
RA4/T0CKI/C1OUT
RA5/AN4/SS/C2OUT
RE0/RD/AN5
RE1/WR/AN6
RE2/CS/AN7
V
DD
V
SS
OSC1/CLKI
OSC2/CLKO
RC0/T1OSO/T1CKI
RC1/T1OSI/CCP2
RC2/CCP1
RC3/SCK/SCL
RD0/PSP0
RD1/PSP1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
RB7/PGD
RB6/PGC
RB5
RB4
RB3/PGM
RB2
RB1
RB0/INT
V
DD
V
SS
RD7/PSP7
RD6/PSP6
RD5/PSP5
RD4/PSP4
RC7/RX/DT
RC6/TX/CK
RC5/SDO
RC4/SDI/SDA
RD3/PSP3
RD2/PSP2
PIC16F874A/877A
44-Pin PLCC
RA4/T0CKI/C1OUT
RA5/AN4/SS/C2OUT
RE0/RD/AN5
RE1/WR/AN6
RE2/CS/AN7
V
DD
V
SS
OSC1/CLKI
OSC2/CLKO
RC0/T1OSO/T1CK1
NC
RC6/TX/CK
RC5/SDO
RC4/SDI/SDA
RD3/PSP3
RD2/PSP2
RD1/PSP1
RD0/PSP0
RC3/SCK/SCL
RC2/CCP1
RC1/T1OSI/CCP2
NC
6
5
4
3
2
1
44
43
42
41
40
7
8
9
10
11
12
13
14
15
16
17
39
38
37
36
35
34
33
32
31
30
9
RB3/PGM
RB2
RB1
RB0/INT
V
DD
V
SS
RD7/PSP7
RD6/PSP6
RD5/PSP5
RD4/PSP4
RC7/RX/DT
44-Pin TQFP
44
43
42
41
40
39
38
37
36
35
34
2001-2013 Microchip Technology Inc.
NC
NC
RB4
RB5
RB6/PGC
RB7/PGD
MCLR/V
PP
RA0/AN0
RA1/AN1
RA2/AN2/V
REF
-/CV
REF
RA3/AN3/V
REF
+
12
13
14
15
16
17
18
19
20
21
22
RC7/RX/DT
RD4/PSP4
RD5/PSP5
RD6/PSP6
RD7/PSP7
V
SS
V
DD
RB0/INT
RB1
RB2
RB3/PGM
1
2
3
4
5
6
7
8
9
10
11
PIC16F874A
PIC16F877A
33
32
31
30
29
28
27
26
25
24
23
NC
RC0/T1OSO/T1CKI
OSC2/CLKO
OSC1/CLKI
V
SS
V
DD
RE2/CS/AN7
RE1/WR/AN6
RE0/RD/AN5
RA5/AN4/SS/C2OUT
RA4/T0CKI/C1OUT
RC1/T1OSI/CCP2
RC2/CCP1
RC3/SCK/SCL
RD0/PSP0
RD1/PSP1
RD2/PSP2
RD3/PSP3
RC4/SDI/SDA
RC5/SDO
RC6/TX/CK
NC
18
19
20
21
22
23
24
25
26
27
282
RA3/AN3/V
REF
+
RA2/AN2/V
REF
-/CV
REF
RA1/AN1
RA0/AN0
MCLR/V
PP
NC
RB7/PGD
RB6/PGC
RB5
RB4
NC
PIC16F874A
PIC16F877A
DS39582C-page 3
PIC16F87XA
Table of Contents
1.0 Device Overview ......................................................................................................................................................................... 5
2.0 Memory Organization................................................................................................................................................................ 15
3.0 Data EEPROM and Flash Program Memory ............................................................................................................................ 33
4.0 I/O Ports.................................................................................................................................................................................... 41
5.0 Timer0 Module .......................................................................................................................................................................... 53
6.0 Timer1 Module .......................................................................................................................................................................... 57
7.0 Timer2 Module .......................................................................................................................................................................... 61
8.0 Capture/Compare/PWM Modules ............................................................................................................................................. 63
9.0 Master Synchronous Serial Port (MSSP) Module..................................................................................................................... 71
10.0 Addressable Universal Synchronous Asynchronous Receiver Transmitter (USART) ............................................................ 111
11.0 Analog-to-Digital Converter (A/D) Module .............................................................................................................................. 127
12.0 Comparator Module ................................................................................................................................................................ 135
13.0 Comparator Voltage Reference Module ................................................................................................................................. 141
14.0 Special Features of the CPU .................................................................................................................................................. 143
15.0 Instruction Set Summary......................................................................................................................................................... 159
16.0 Development Support ............................................................................................................................................................. 167
17.0 Electrical Characteristics......................................................................................................................................................... 173
18.0 DC and AC Characteristics Graphs and Tables ..................................................................................................................... 197
19.0 Packaging Information ............................................................................................................................................................ 209
Appendix A: Revision History ............................................................................................................................................................ 219
Appendix B: Device Differences........................................................................................................................................................ 219
Appendix C: Conversion Considerations........................................................................................................................................... 220
Index ................................................................................................................................................................................................. 221
On-Line Support................................................................................................................................................................................ 229
Systems Information and Upgrade Hot Line ..................................................................................................................................... 229
Reader Response ............................................................................................................................................................................. 230
PIC16F87XA Product Identification System...................................................................................................................................... 231
TO OUR VALUED CUSTOMERS
It is our intention to provide our valued customers with the best documentation possible to ensure successful use of your Microchip
products. To this end, we will continue to improve our publications to better suit your needs. Our publications will be refined and
enhanced as new volumes and updates are introduced.
If you have any questions or comments regarding this publication, please contact the Marketing Communications Department via
E-mail at
docerrors@mail.microchip.com
or fax the
Reader Response Form
in the back of this data sheet to (480) 792-4150.
We welcome your feedback.
Most Current Data Sheet
To obtain the most up-to-date version of this data sheet, please register at our Worldwide Web site at:
http://www.microchip.com
You can determine the version of a data sheet by examining its literature number found on the bottom outside corner of any page.
The last character of the literature number is the version number, (e.g., DS30000A is version A of document DS30000).
Errata
An errata sheet, describing minor operational differences from the data sheet and recommended workarounds, may exist for current
devices. As device/documentation issues become known to us, we will publish an errata sheet. The errata will specify the revision
of silicon and revision of document to which it applies.
To determine if an errata sheet exists for a particular device, please check with one of the following:
• Microchip’s Worldwide Web site; http://www.microchip.com
• Your local Microchip sales office (see last page)
• The Microchip Corporate Literature Center; U.S. FAX: (480) 792-7277
When contacting a sales office or the literature center, please specify which device, revision of silicon and data sheet (include liter-
ature number) you are using.
Customer Notification System
Register on our Web site at
www.microchip.com/cn
to receive the most current information on all of our products.
DS39582C-page 4
2001-2013 Microchip Technology Inc.
PIC16F87XA
1.0
DEVICE OVERVIEW
This document contains device specific information
about the following devices:
PIC16F873A
PIC16F874A
PIC16F876A
PIC16F877A
The available features are summarized in Table 1-1.
Block diagrams of the PIC16F873A/876A and
PIC16F874A/877A devices are provided in Figure 1-1
and Figure 1-2, respectively. The pinouts for these
device families are listed in Table 1-2 and Table 1-3.
Additional information may be found in the PIC
®
Mid-
Range Reference Manual (DS33023), which may be
obtained from your local Microchip Sales Representative
or downloaded from the Microchip web site. The Refer-
ence Manual should be considered a complementary
document to this data sheet and is highly recommended
reading for a better understanding of the device architec-
ture and operation of the peripheral modules.
PIC16F873A/876A devices are available only in 28-pin
packages, while PIC16F874A/877A devices are avail-
able in 40-pin and 44-pin packages. All devices in the
PIC16F87XA family share common architecture with
the following differences:
• The PIC16F873A and PIC16F874A have one-half
of the total on-chip memory of the PIC16F876A
and PIC16F877A
• The 28-pin devices have three I/O ports, while the
40/44-pin devices have five
• The 28-pin devices have fourteen interrupts, while
the 40/44-pin devices have fifteen
• The 28-pin devices have five A/D input channels,
while the 40/44-pin devices have eight
• The Parallel Slave Port is implemented only on
the 40/44-pin devices
TABLE 1-1:
PIC16F87XA DEVICE FEATURES
PIC16F873A
DC – 20 MHz
POR, BOR
(PWRT, OST)
4K
192
128
14
Ports A, B, C
3
2
MSSP, USART
5 input channels
2
35 Instructions
28-pin PDIP
28-pin SOIC
28-pin SSOP
28-pin QFN
PIC16F874A
DC – 20 MHz
POR, BOR
(PWRT, OST)
4K
192
128
15
Ports A, B, C, D, E
3
2
MSSP, USART
PSP
8 input channels
2
35 Instructions
40-pin PDIP
44-pin PLCC
44-pin TQFP
44-pin QFN
PIC16F876A
DC – 20 MHz
POR, BOR
(PWRT, OST)
8K
368
256
14
Ports A, B, C
3
2
MSSP, USART
5 input channels
2
35 Instructions
28-pin PDIP
28-pin SOIC
28-pin SSOP
28-pin QFN
PIC16F877A
DC – 20 MHz
POR, BOR
(PWRT, OST)
8K
368
256
15
Ports A, B, C, D, E
3
2
MSSP, USART
PSP
8 input channels
2
35 Instructions
40-pin PDIP
44-pin PLCC
44-pin TQFP
44-pin QFN
Key Features
Operating Frequency
Resets (and Delays)
Flash Program Memory
(14-bit words)
Data Memory (bytes)
EEPROM Data Memory (bytes)
Interrupts
I/O Ports
Timers
Capture/Compare/PWM modules
Serial Communications
Parallel Communications
10-bit Analog-to-Digital Module
Analog Comparators
Instruction Set
Packages
2001-2013 Microchip Technology Inc.
DS39582C-page 5
查看更多>
结构体 位段
单片机的资源不是很多,在使用结构体的时候,除了考虑到结构体对齐的问题以外,结构体还有位段的方式,但是...
雪枫21 单片机
如何修理CRT显示器有扫描线问题
我有一台LG的CRT显示器,2002年买的,17纯平,到现在有了问题,总是有水平倾斜的淡灰色扫描线,...
hoohoo2002 嵌入式系统
SPI总线 SPI接口 SPI协议 SPI模式 SPI通讯
SPI interface SPI接口介绍 SPI是由美国摩托罗拉公司推出的一种同步串行...
hxqhit 单片机
open服务器进程第二版
本次将开发一个守护进程方式的open服务器进程。一个服务器进程处理所有客户进程的请求。 由于避免了使...
chenbingjy Linux与安卓
TM4C129 与MPU6050 通过IIC通信问题
///////////////////////////////////////////////...
swh267 微控制器 MCU
驱动钛丝(SMA)的可靠性设计(1) 钛丝的选型和适配
前言 形状记忆合金(Shape memory alloy, SMA),也叫形态记忆合金、镍钛记...
272151979 测试/测量
热门器件
热门资源推荐
器件捷径:
00 01 02 03 04 05 06 07 08 09 0A 0C 0F 0J 0L 0M 0R 0S 0T 0Z 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 1H 1K 1M 1N 1P 1S 1T 1V 1X 1Z 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 2G 2K 2M 2N 2P 2Q 2R 2S 2T 2W 2Z 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 3G 3H 3J 3K 3L 3M 3N 3P 3R 3S 3T 3V 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4M 4N 4P 4S 4T 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5E 5G 5H 5K 5M 5N 5P 5S 5T 5V 60 61 62 63 64 65 66 67 68 69 6A 6C 6E 6F 6M 6N 6P 6R 6S 6T 70 71 72 73 74 75 76 77 78 79 7A 7B 7C 7M 7N 7P 7Q 7V 7W 7X 80 81 82 83 84 85 86 87 88 89 8A 8D 8E 8L 8N 8P 8S 8T 8W 8Y 8Z 90 91 92 93 94 95 96 97 98 99 9A 9B 9C 9D 9F 9G 9H 9L 9S 9T 9W
需要登录后才可以下载。
登录取消