Opens in a new tab

PIC16F628A-I/P

8-bit PIC MCU, 1.75KB Flash, 16 I/O, DIP-18

23456

Effective Inventory

Image for reference only

Manufacturer Part:

PIC16F628A-I/P

Package:

PDIP-18 (23.5 x 6.35 x 5.0 mm, 300 mil)

Brand:

Quality Commitment

Shipping & Payment

Service & Packaging

Product Manual

Other recommendations you may be interested in.

Description

Product Overview

The PIC16F628A-I/P from Microchip Technology is an 8-bit PIC microcontroller with 1.75KB Flash, 224B RAM, 16 I/O, dual comparator, and DIP-18 package.

Key Specifications

Type 8-bit PIC Microcontroller
Max Frequency 20 MHz
Flash 1.75 KB (2048 words x 14 bits)
SRAM 224 bytes
EEPROM 128 bytes
I/O Pins 16
Timers 3 (Timer0, Timer1, Timer2)
Comparators 2
Communication 1x EUSART
Capture/Compare/PWM 1 (CCP module)
Supply Voltage 3.0V to 5.5V
Package DIP-18 (300 mil)
Operating Temperature -40C to +85C (I grade)

Features

  • 1.75KB Flash with 100,000 erase/write cycles
  • 128 bytes EEPROM data memory
  • Internal 4 MHz oscillator (no external crystal needed)
  • Dual comparator with internal voltage reference
  • DIP-18 package for prototyping and education
  • Low-cost entry point for PIC development

Applications

  • Educational and hobby projects
  • Simple control applications
  • Replacement for 555 timer circuits
  • Serial communication bridge
Product Introduction: PIC16F628A-I/P Product Introduction

The PIC16F628A-I/P from Microchip Technology is a classic 8-bit PIC microcontroller in a through-hole DIP-18 package, widely used in education, hobby electronics, and simple control applications. The 1.75KB Flash and 224 bytes SRAM provide adequate resources for small firmware projects. The 128-byte EEPROM enables non-volatile data storage. The internal 4 MHz oscillator eliminates the need for an external crystal for basic operation, while external clock options up to 20 MHz are supported. The dual comparator with an internal voltage reference enables analog monitoring without external components. The EUSART supports serial communication for debugging and data transfer. The CCP module provides capture, compare, and PWM functions for timing and motor control. The DIP-18 package makes this device ideal for breadboard prototyping, educational labs, and legacy through-hole designs.

Working Principle: PIC16F628A-I/P Working Principle

The PIC16F628A uses Microchip’s baseline 14-bit instruction word PIC core with an 8-level hardware stack. Most instructions execute in a single cycle at the clock rate (200 ns at 20 MHz). The 1.75KB Flash stores up to 2048 14-bit instructions. The 224 bytes of SRAM includes the special function registers (SFRs) and general-purpose registers. The internal oscillator runs at 4 MHz by default, configurable via the configuration register. The dual comparator module can compare external pin voltages against each other or against an internal 16-tap voltage reference. The CCP module can capture timer values on external events (capture mode), generate timed outputs (compare mode), or produce PWM waveforms (PWM mode). The EUSART implements asynchronous serial communication with configurable baud rate derived from the timer or oscillator. The 128-byte EEPROM uses a separate address space and requires special read/write sequences with a write completion flag.

Pin Description: PIC16F628A-I/P Pin Definition and Functions
Pin Name Type Function
1 RA2/AN2/VREF I/O Port A bit 2 / Comparator VREF
2 RA3/AN3/CMP1 I/O Port A bit 3 / Comparator 1 input
3 RA4/T0CKI/CMP2 I/O Port A bit 4 / Timer0 clock / CMP2
4 RA5/MCLR/VPP Input Master Clear (reset) / Programming
5 VSS Power Ground
6 RB0/INT I/O Port B bit 0 / External interrupt
7-13 RB1-RB7 I/O Port B bits 1-7 (shared with serial, CCP)
14 VDD Power Supply voltage (3.0-5.5V)
15-17 RA0-RA1/RA6 I/O Port A bits 0-1, 6
18 RA7/OSC1 I/O Port A bit 7 / Oscillator input
Application Scenarios: In which products and applications is PIC16F628A-I/P used
  • Educational lab: blinking LED, push-button debounce, and serial output on breadboard
  • 555 timer replacement: generating timed pulses with the CCP module
  • Serial-to-parallel converter using EUSART and shift register output
  • Battery monitor using dual comparators and internal VREF
Alternative Models: What chips are recommended as replacements for PIC16F628A-I/P
Manufacturer Part Number Package Notes
Microchip PIC16F648A-I/P DIP-18 4KB Flash upgrade, pin-compatible
Microchip PIC16F627A-I/P DIP-18 1KB Flash, lower cost
Microchip PIC16F887-I/P DIP-40 More I/O, more Flash, larger package
Microchip ATtiny2313A-PU DIP-20 AVR alternative, 2KB Flash
Microchip PIC16F18426-I/P DIP-14 Newer PIC, more features, fewer pins

Recommend Parts

IRFS4310ZTRLPBF

IRFS4310ZTRLPBF – 100V N-Channel HEXFET Power MOSFET, 7 mΩ RDS(on), D2PAK (TO-263AB)

Brand: infineon

Package: D2PAK (TO-263AB)

IN STOCK: 11137pcs

Cargo cycle: 3-7 Days

The minimum order is 1

MSASJ105BB5475MFNA01

4.7uF 6.3V X5R MLCC, 0402, Taiyo Yuden

Brand: gigadevice

Package: 0402 (1005 Metric, 1.0 x 0.5 x 0.5 mm)

IN STOCK: 9701pcs

Cargo cycle: 3-7 Days

The minimum order is 1

IRF3415PBF

150V N-channel power MOSFET, 43A, 41mΩ RDS(on), TO-220AB package

Brand: infineon

Package: TO-220AB

IN STOCK: 2940pcs

Cargo cycle: 3-7 Days

The minimum order is 1

105017-1001

USB Type-C receptacle connector, 24-pin, SMD

Brand: Amphenol

Package: SMD (8.9 x 7.3 x 3.2 mm, right angle)

IN STOCK: 5335pcs

Cargo cycle: 3-7 Days

The minimum order is 1

IRLB3034PBF

IRLB3034PBF – 40V N-Channel StrongIRFET Power MOSFET (Logic Level), 1.7 mΩ (max) @ 10V; 2.0 mΩ @ 4.5V RDS(on), TO-220AB

Brand: infineon

Package: TO-220AB

IN STOCK: 9724pcs

Cargo cycle: 3-7 Days

The minimum order is 1

XC6SLX75-2FGG484I

Spartan-6 LX75 FPGA, 74637 logic cells, 132 DSP, 3096KB BRAM, 408 I/O, FBGA-484 23x23mm, -2 speed, industrial -40~100C, AMD Xilinx

Brand: xilinx

Package: FGG484 (484-ball fine-pitch BGA, 23x23mm body, 1.0mm ball pitch, 22×22 ball array, 6 I/O banks, lead-free)

IN STOCK: 890pcs

Cargo cycle: 3-7 Days

The minimum order is 1