Skip to main content

PIC16F877A微控制器

PIC16F877A微控制器PINOUT配置

Pin Number

Pin Name

描述

1

MCLR/Vpp

MCLR在编程过程中使用,主要是连接到程序员像pickit

2

RA0/AN0

Analog pin 0或0thPorta的针

3

RA1/AN1

Analog pin 1或1stPorta的针

4

ra2/an2/vref-

Analog pin 2或2ndPorta的针

5

RA3/AN3/VREF+

Analog pin 3或3rdPorta的针

6

RA4/T0CKI/C1out

4thPorta的针

7

RA5/AN4/SS/C2OUT

Analog pin 4或5thPorta的针

8

RE0/RD/AN5

Analog pin 5或0thPorte的针

9

RE1/WR/AN6

Analog pin 6或1stPorte的针

10

RE2/CS/AN7

7thPorte的针

11

VDD

Ground pinof MCU

12

VSS

Positive pinof MCU (+5V)

13

OSC1/CLKI

外部振荡器/clock input pin

14

OSC2/CLKO

外部振荡器/时钟输出引脚

15

RC0/T1OSO/T1CKI

0th端口C

16

RC1/T1OSI/CCP2

1stPOCTC的销钉or计时器/PWM别针

17

RC2/CCP1

2ndPOCTC的销钉or计时器/PWM别针

18

RC3/SCK/SCL

3rdPOCTC的销钉

19

RD0/PSP0

0thPOCTD的针

20

RD1/PSPI

1stPOCTD的针

21

RD2/PSP2

2ndPOCTD的针

22

RD3/PSP3

3rdPOCTD的针

23

RC4/SDI/SDA

4thPOCTC的销钉or Serial Data in pin

24

RC5/SDO

5thPOCTC的销钉or Serial Data Out pin

25

RC6/Tx/CK

6thPOCTC的销钉or发射机销微控制器

26

RC7/RX/DT

7thPOCTC的销钉orReceiver pin微控制器

27

RD4/PSP4

4thPOCTD的针

28

RD5/PSP5

5thPOCTD的针

29

RD6/PSP6

6thPOCTD的针

30

RD7/PSP7

7thPOCTD的针

31

VSS

Positive pinof MCU (+5V)

32

VDD

Ground pinof MCU

33

RB0/INT

0thPOCTB的销钉or外部中断别针

34

RB1

1stPOCTB的销钉

35

工程师在

2ndPOCTB的销钉

36

RB3/PGM

3rdPOCTB的销钉or连接到程序员

37

RB4

4thPOCTB的销钉

38

RB5

5thPOCTB的销钉

39

RB6/PGC

6thPOCTB的销钉or连接到程序员

40

RB7/PGD

7thPOCTB的销钉or连接到程序员

PIC16F877A功能

PIC16F877A–Simplified Features

中央处理器

8-bit PIC

引脚数

40

操作电压(V)

2 to 5.5 V

Number of I/O pins

33

ADC模块

8ch, 10-bit

计时器模块

8-bit(2), 16-bit(1)

Comparators

2

DAC模块

通信外围设备

UART(1), SPI(1), I2C(1), MSSP(SPI/I2C)

外部振荡器

Up to 20Mhz

内部振荡器

程序内存类型

闪光

Program Memory (KB)

14KB

CPU速度(MIPS)

5 mips

RAM Bytes

368

数据EEPROM

256字节

不te:Complete technical details can be found in thePIC16F877ADatasheetlinked at the bottom of this page.

其他PIC MCU的

PIC12F508,PIC12F629,PIC12F683,PIC16F505,PIC16F628A, PIC16F676, PIC16F72, PIC16F873A, PIC16F876A, PIC16F886, PIC18F252, PIC18F25520,PIC18F452, PIC18F4520

PIC16F877A

这个功能强大的(200纳秒指令执行)却易于编程(只有35个单词指令)CMOS基于闪光灯的8位微控制器包装Microchip的功能PIC®架构中的40个软件包,与PIC16C5X,PIC12CXXX和PIC16C7X和PIC16C7X和PIC16C7X和PIC16C7X和PIC16C7X和PIC16C7X设备。PIC16F877A具有256个字节的EEPROM数据存储器,自我编程,一个ICD,2个比较器,8个10位类似物到数字的通道(A/D)转换器,2个捕获/比较/PWM函数被配置为3线串行外围界面(SPI™)或2-Wire Intergetrated电路(I²C™)总线和通用异步接收器发射器(USART)。

如何选择图片微控制器

Microchip provides a waste verity of Microcontrollers from PIC family. EachMCUhas its own advantage and disadvantage. There are many parameters that one has to consider before selecting a MCU for his project. The below points are just suggestions which might help one to select a MCU.

  • 如果您是一个正在学习图片的初学者,那么选择具有良好在线社区支持和广泛应用程序的MCU将是一个不错的选择。PIC16F877A和PIC18F4520是两个这样的MCUS
  • 考虑系统的操作电压。如果它们是5V,则选择一个5V MCU,某些传感器或设备在3.3V上可以使用3.3V MCU,可以选择3.3V
  • 如果尺寸和价格是一个限制,那么您可以选择像PIC12F508这样的小8针MCU。这些也相对便宜。
  • 根据项目中使用的传感器和执行器,请验证MCU可能需要的哪些模块。例如,您正在阅读许多模拟电压,然后确保PIC具有足够的ADC频道和支持性分辨率。所有模块的详细信息都在上表中给出。
  • 如果您的项目涉及诸如UART,SPI,I2C,CAN等的通信协议,请确保您的图片可以支持它们。一些MCU可以支持同一协议的多个模块

编程图片微控制器

PIC microcontrollercan be programmed with different software's that is available in the market. There are people who still use Assembly language to program PIC MCUs. The below details is for most advanced and common software and compiler that has been developed by Microchip itself.

In order to program the PIC microcontroller we will need an IDE (Integrated Development Environment), where the programming takes place. A compiler, where our program gets converted into MCU readable form called HEX files. An IPE (Integrated Programming Environment), which is used to dump our hex file into our PIC MCUs.

IDE:MPLABX v3.35

IPE:Mplab IPE v3.35

Compiler:XC8

Microchip has given all these three software for free. They can be downloaded directly from their official page. I have also provided the link for your convenience. Once downloaded install them on your computer. If you have any problem doing so you can post them on the comment below.

要将代码转储或将代码上传到图片中,我们将需要一个称为的设备PICkit 3.ThePICkit 3programmer/debugger is a simple, low-cost in-circuit debugger that is controlled by a PC running MPLAB IDE (v8.20 or greater) software on a Windows platform. ThePICkit 3programmer/debugger is an integral part of the development engineer's tool suite. In addition to this we will also need other hardware like Perf board or breadboard, Soldering station, PIC ICs, Crystal oscillators, capacitors etc.

Components associated with PIC

PICkit3,图片开发委员会,晶体振荡器,118bet金博宝 , 12V Adapter,7805电压调节器.

Detailed Features of PIC16F877A

PIC16F877A - 详细功能

中央处理器

8-bit PIC

Architecture

8

Program Memory Size (Kbytes)

14

RAM(字节)

368

EEPROM/HEF

256/hef

Pin Count

40

Max. CPU Speed (MHz)

20

Peripheral Pin select (PPS)

内部振荡器

比较数

2

操作数量放大器

0

不. Of ADC channels

14

最大ADC分辨率(位)

10

ADC with Computation

DAC转换器的数量

0

Max DAC resolution

0

内部电压参考

Yes

零交叉检测

8位计时器

2

不. Of 16-bit Timers

1

信号测量计时器

0

硬件Limit Timer

0

不. Of PWM outputs

0

最大PWM分辨率

10

角度计时器

Math Accelerator

UART模块编号

1

SPI模块数

1

不. Of I2C module

1

不. Of USB Module

0

Windowed Watchdog Timer (WWDT)

CRC/Scan

Numerically Controlled Oscillator

0

帽。触摸通道

11

细分液晶

0

最低工作温度(*C)

-40

最高工作温度(*C)

125

Minimum Operating Voltage (V)

2

Maximum Operating Voltage (V)

5.5

High Voltage Capable

Applications

  • 多个DIY项目
  • Very good choice if you are learning PIC
  • 需要多个I/O接口和通信的项目
  • Replacement for Arduino Module
  • 适用于汽车,工业,电器和消费者应用中更高级级别的A/D应用程序。
Component Datasheet

Related Post



加入20k+订户

We will never spam you.

*indicates required

成为我们不断发展的社区的一部分。