PIC16F628-04I/SO

Microchip Technology

Microchip Technology PIC16F628-04I/SO
Download datasheet (PDF)
[IN STOCK] In Stock: 2 pcs
$8.18/ pc

Volume pricing

Buy Now

MOQ 1 · Tube · RoHS · EIA-481 · DAP/DDP · T/T

Technical specifications

PIC16F628-04I/SO specifications
Parameter / AttributeSpecification / Value
SeriesPIC® 16F
MountingSurface Mount
Oscillator typeInternal
Program memory typeFLASH
Voltage - supply (Vcc (Vdd))3V ~ 5.5V
Operating temperature-40°C~85°C(TA)
Speed4MHz
PackageTube
RAM size224 x 8
Core size8-Bit
EEPROM size128 x 8
PeripheralsBrown-out Detect/Reset, POR, PWM, WDT
ConnectivityUART/USART
Number of i (O)16
Core processorPIC
Case18-SOIC (0.295\", 7.50mm Width)
Program memory size3.5KB (2K x 14)
100% Footprint Match · Solder-Ready (No PCB Redesign Needed)

Need Stock or a Drop-in Second-Source for PIC16F628-04I/SO?

Package: PDIP-18 / SOIC-18 · Pin-compatible replacements with immediate Shenzhen spot stock

Footprint Match 94%
Supply Chain & Allocation Reality:

The PIC16F84A is the microcontroller that taught a generation of designs: an 18-pin workhorse in chargers, timers, industrial retrofits and ten thousand hobby classics, still demanded by field repairs long after new designs moved on. Its living successor is the PIC16F628A - the same 18-pin footprint, a factory-calibrated internal 4MHz oscillator the original never had, USART, PWM and twice the program memory - requiring exactly two kinds of work: two firmware lines that every migration guide names (comparators off, bank layout), and hardware that mostly stays put. Buying this part in 2026 means the aftermarket: date codes, pulls and re-marked stock are the sourcing question, not availability on paper.

Verified Pin-Compatible Replacements (3 verified alternatives)

PIC16F628A Microchip PDIP-18 / SOIC-18
Pin-to-Pin (Minor Clock/Init Tuning)
Availability & Target Pricing:

The Documented Successor - Same 18 Pins

Shenzhen Spot Stock (24-48h Dispatch)

Electrical & Core Specs:

Pin-for-pin the same 18-pin body with the crystal staying on RA6/RA7 if the design uses one - plus a 4MHz internal oscillator the 16F84A never had, USART, CCP/PWM and two extra timers for free.

2V to 5.5V operating range against the older part narrow window - the supply side is a relaxation, not a risk.

Compatibility & Drop-In Notes: The migration checklist from every guide ever written: set CMCON = 0x07 on startup so RA0-RA3 act as digital I/O (they default to comparator inputs), fix absolute RAM addressing (general registers start at 0x20, not 0x0C), and audit interrupt routines for the new bank reality. It is a recompile-and-patch, not a hex drop-in.
Package & Solder Footprint: Same footprint; config fuses to XT/HS keep external clocks unchanged - the internal oscillator is an option, not an automatic takeover.
Shenzhen Warehouse Stock & MOQ: Continuous production at Microchip and second sources; the quote comes with date-code photos.
PIC16F648A Microchip PDIP-18 / SOIC-18
Pin-to-Pin (Minor Clock/Init Tuning)
Availability & Target Pricing:

The Four-Times-Memory Branch

Shenzhen Spot Stock (24-48h Dispatch)

Electrical & Core Specs:

The same 628A architecture with 4K words of program memory - the branch to take when a rescued 16F84A program already overflowed the 1K original and the 2K of the plain 628A.

Same 2V to 5.5V operating envelope.

Compatibility & Drop-In Notes: Identical porting notes to the 628A; the extra 2K of program space costs nothing at runtime and removes the code-size ceiling that traps growing retrofits.
Package & Solder Footprint: Pin-compatible within the 627A/628A/648A line.
Shenzhen Warehouse Stock & MOQ: Stocked; the safe memory headroom choice.
PIC16F627A Microchip PDIP-18 / SOIC-18
Pin-to-Pin (Minor Clock/Init Tuning)
Availability & Target Pricing:

The 1K Cost-Down Member

Shenzhen Spot Stock (24-48h Dispatch)

Electrical & Core Specs:

The smallest member of the same 18-pin line at 1K words of program memory - the drop-in for programs that never outgrew the original 16F84A code space.

Same 2V to 5.5V envelope and the same peripherals set.

Compatibility & Drop-In Notes: The sibling trap is mild but real: 627A, 628A and 648A share a datasheet and a footprint, and differ in program memory - verify the binary size before choosing the cheapest member.
Package & Solder Footprint: Shared 18-pin layout across the line.
Shenzhen Warehouse Stock & MOQ: Stocked; the volume-price member of the family.
Buyer & Quality Checklist for Sourcing Alternatives
  • Hardware stays, firmware moves: the 16F628A line is pin-for-pin in the 18-pin body with the crystal untouched - all the migration work lives in two lines of init and a bank-layout audit.
  • The first line of every successful migration: CMCON = 0x07. Without it, RA0-RA3 power up as comparator inputs, and a port that reads as if it stopped working is the most common 84-to-628 support thread in existence.
  • Bank arithmetic changed: general-purpose RAM starts at 0x20 instead of 0x0C, EEADR and EEDATA moved to Bank 1, and EEIE and EEIF moved to PIE1 and PIR1 - registers are not mirrored, so interrupt routines written for the 16F84A addressing style break silently.
  • Config fuses to revisit: _LVP_OFF frees RB4 (the programming-voltage pin), and BOD settings deserve the same explicit choice the original design never had to make.
  • The internal 4MHz oscillator is an option: with a crystal fitted, configure XT/HS exactly as the old design did - the new clock source does not grab the pins unless told to.
  • Sourcing in the aftermarket era: the 16F84A is a repair-market part now, and pulls and re-marked stock circulate. Date codes, packaging photos and a program-and-verify step on receipt are the discipline - we ship photos before dispatch for exactly this class.
Frequently Asked Technical Questions

Q: Can a PIC16F628A directly replace a PIC16F84A?

A: Hardware yes - same 18-pin footprint, same crystal pins - software no: the program must be recompiled with CMCON = 0x07, corrected bank and RAM assumptions, and updated config fuses. It is a documented migration, not a hex swap.

Q: Why do RA0 to RA3 read wrong after migrating a 16F84A program?

A: Because on the 16F628A those pins power up as comparator inputs. Setting CMCON = 0x07 in initialization switches them to digital I/O - this one line fixes the classic migration symptom.

Q: Is the PIC16F84A still in production?

A: It has been superseded for new designs for years and lives now in legacy equipment and aftermarket stock - which is exactly the channel where date codes and provenance matter. The 627A/628A/648A line is the production path.

PIC16F628-04I/SO
[ALLOC] verified
Quote