Skip to main content

PIC16F628A 8-bit PIC Microcontroller

PIC16F628A is a CMOS FLASH-based mid-range8位微控制器这带有一个18针包,其中16个销钉可以用作I/O引脚。该微控制器具有4 MHz的内部振荡器,带有128个字节的EEPROM数据存储器,并带有单个捕获/比较/PWM和一个带有2个比较器的USART模块。低电压编程由此微控制器单元支持。

PIC16F628A引脚配置

Pin Number

Pin Name

描述

1

RA2/AN2/VREF

双向I/O端口的双向2or Analog comparator input channel 2 or Analog Voltage Reference output

2

RA3/AN3/CMP1

双向I/O端口或模拟比较器输入或比较器1输出。

3

RA4/T0CKI/CMP2

Bidirectional I/O pin of port A bit 4 or timer 0 clock input or comparator channel 2 output.

4

RA5/MCLR/VPP

输入端口或主电压或编程电压输入。当配置为MCLR时,此引脚是该设备的主动 - 低重置,主要用于编程或端口5 PIN。

5

VSS

动力接地销。

6

RB0/INT

Bidirectional I/O pin of port B bit 0 or External interrupt pin.

7

RB1/RX/DT

Bidirectional I/O pin of port B bit 1 or USART Recieve pin or synchronous data I/O.

8

RB2/TX/CK

Bidirectional I/O pin of port B bit 2 or USART Transmit pin or synchronous clock I/O.

9

RB3/CCP1

端口B位3的双向I/O引脚或捕获比较PWM I/O。

10

RB4/PGM

Bidirectional I/O pin of port B bit 4 orLow voltage Programming pin.

11

RB5

端口B位5的双向I/O引脚。

12

RB6/T1OSC/T1CKI/PGC

Bidirectional I/O pin of port B bit 6 or Timer1 Oscillator output or Timer1 Clock input orICSP Programming clock mainly used for Programming purposes.

13

RB7/T1OSI/PGD

Bidirectional I/O pin of port B bit 7 or Timer1 Oscillator input orICSP Programming data mainly used for Programming purposes.

14

VDD

Positive Power Pin.

15

RA6/OSC2/CLKOUT

Bidirectional I/O pin of port A bit 6 or Oscillator crystal output or Clock out in RC/INTOSC

16

RA7/OSC1/CLKIN

端口的双向I/O PIN位7或振荡器晶体输入或外部时钟输入

17

RA0/AN0

Bidirectional I/O pin of port A bit 0 or Analog comparator input channel 0.

18

RA1/AN1

端口的双向I/O PIN位1或模拟比较器输入通道1

Features and Specification of the PIC16F628A Microcontroller

PIC16F628A - Simplified Features and Specification

中央处理器

中档8位

引脚数

18

操作电压(V)

2-5.5 V

Number of I/O pins

16

ADC Module

Timer Module

3

Comparators

2

DAC模块

通信外围设备

UART(1)

外部振荡器

Yes

内部振荡器

4 MHz

Program Memory (KB)

3.5 KB

CPU速度(MIPS)

5

RAM Bytes

224字节

数据EEPROM

128 bytes

不te:完整的技术细节可以在PIC16F628A数据表linked at the bottom of this page.

Alternative for PIC16F628A

Alternative products for PIC16F628A microcontroller are listed below-

  1. PIC12F629
  2. PIC12F683
  3. PIC16F505
  4. PIC12F508
  5. PIC16F676
  6. PIC16F72
  7. PIC16F873A
  8. PIC16F876A
  9. PIC16F886
  10. PIC16F252

其他8位微控制器

PIC16F1503

Introduction to PIC16F628A

PIC16F628A is a CMOS FLASH-based mid-range 8-bit microcontroller that comes with an 18-Pin package, out of which, 16 pins can be used as I/O pins. This microcontroller has 4 Mhz of internal oscillator with 128 bytes of EEPROM data memory, packed with a single Capture/Compare/PWM, and a USART module with 2 comparators. Low voltage programming is supported by this microcontroller unit.

PIC16F628A microcontroller also has two 8-bit and one 16-bit timer suitable for timing-related mid-range applications where different timers are required.

PIC16F628A works with 2V to 5.5V operations, thus it is suitable for 3.3V and 5.0V logic level applications. Brow-out Reset, Power-on Reset, Watchdog timer with an independent oscillator, Power-saving sleep modes are also supported by the PIC16F628A microcontroller. PIC16F628A pin mapping is shown below-

PIC16F628A的详细功能

PIC16F628A - 详细功能

中央处理器

中距离8-位

Architecture

8-位

Program Memory Size (Kbytes)

3.5 KB

RAM(字节)

224字节

EEPROM/HEF

128 bytes

Pin Count

18

Max. CPU Speed (MHz)

20 MHz

Peripheral Pin Select (PPS)

内部振荡器

4 MHz

比较数

2

数字Operational Amplifier

数字ADC channels

最大ADC分辨率(位)

-

ADC with Computation

DAC转换器的数量

Max DAC resolution

-

内部电压参考

2-5.5V

零交叉检测

8位计时器

2

数字16-bit Timers

1

信号测量计时器

硬件Limit Timer

数字PWM outputs

1

最大PWM分辨率

1024

角度计时器

Math Accelerator

数字UART模块

1

SPI模块数

数字I2C module

数字USB Module

Windowed Watchdog Timer (WWDT)

CRC/Scan

Numerically Controlled Oscillator

帽。触摸通道

细分液晶

最低工作温度(*C)

-40°C

最高工作温度(*C)

125°C

Minimum Operating Voltage (V)

2 v

Maximum Operating Voltage (V)

5.5V

High Voltage Capable

编程图片微控制器

PIC微控制器可以使用市场上可用的不同软件进行编程。有些人仍然使用集会语言对PIC MCUS进行编程。以下详细信息是针对Microchip本身开发的最先进和常见的软件和编译器。

为了对PIC MicroController进行编程,我们将需要一个IDE(集成开发环境),在此进行编程。一个编译器,我们的程序将转换为MCU可读表格,称为HEX文件。IPE(集成的编程环境),用于将我们的十六进制文件转移到我们的PIC MCUS中。

IDE:MPLABX v3.35

IPE:Mplab IPE v3.35

Compiler:XC8

Microchip免费提供了所有这三个软件。可以直接从其官方页面下载。我还为您提供了链接。下载后,将它们安装在计算机上。如果您有任何问题,则可以在下面的评论中发布它们。

要将代码转储或将代码上传到图片中,我们将需要一个称为的设备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 3程序员/调试器是开发工程师工具套件不可或缺的一部分。PIC16F628的基本编程电路如下所示。

PIC16F28A Programming Circuit

除此之外,我们还将需要其他硬件,例如完美板或面包板,焊接站,PIC IC,水晶振荡器,电容器等。

Components Associated with PIC

PICkit3,图片开发委员会,晶体振荡器,Capacitors, 12V Adapter,7805电压调节器.

Application of PIC16F628A

This is a basic Mid-range 8-bit microcontroller unit that can be used in the following applications-

1.输入输出操作

2.控制应用程序

3.Analog data Processing

4.Sensors integration and data logging

5.小规模,低成本嵌入式申请的生产

2D模型

The dimensions of the PIC16F628A are shown below-

PIC16F28A Dimensions

Component Datasheet

Related Post



加入20k+订户

We will never spam you.

*indicates required

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

Baidu