Microchip Technology

PIC16F628-04I/SO - 8-bit 4MHz Flash MCU 3.5KB | Microchip

MPN: PIC16F628-04I/SO ✗ End of Life
In Stock Ships in 1-3 business days
3.0 V to 5.5 V (industrial "I" grade operating range) Vdss SOIC-18 (SO), 7.50 mm body, 1.27 mm pitch, gull-wing Package 4 MHz (04 speed grade) Speed Flash Memory
From $2.3 USD / Unit
MOQ: 1 |
Price updated: 2026-09-20
Volume Pricing
Qty Unit Price Extended
1 $3.95 $3.95
10 $3.45 $34.50
100 $2.85 $285.00
500 $2.55 $1,275.00
1,000 $2.3 $2,300.00
ℹ️ All prices are in USD

PIC16F628-04I/SO Overview

The Microchip Technology PIC16F628-04I/SO is an 8-bit PIC® mid-range flash-based microcontroller running at 4 MHz, packaged in an 18-pin SOIC (SO) outline and qualified for the industrial -40°C to +85°C temperature range. According to the Microchip product page and DigiKey listing, the device integrates 3.5 KB (2K x 14) of flash program memory, 224 bytes of SRAM, 128 bytes of EEPROM, and 16 digital I/O pins with high-current sink/source capability for direct LED drive.

What is a PIC16 mid-range flash microcontroller? The PIC16 family is Microchip's classic 8-bit RISC architecture designed around a 14-bit instruction word, 35 single-word instructions and 200 ns instruction execution. Within the broader taxonomy it sits below 16-bit PIC24/dsPIC parts and 32-bit PIC32 SAM devices, and it targets cost-sensitive, deterministic embedded control where ARM Cortex-M0/M0+ is unnecessary. The 04I speed grade ("-04") denotes a 4 MHz oscillator maximum and the "I" suffix denotes industrial temperature grade.

Key features include two analog comparators with a programmable on-chip voltage reference, a USART module for asynchronous serial communication, a capture/compare/PWM (CCP) peripheral, two 8-bit timers plus one 16-bit timer, and 10-bit resolution PWM. The flash program memory is in-circuit serial programmable (ICSP) via two pins, allowing field firmware updates without removing the device from the board. Power-on reset, brown-out reset, watchdog timer and power-saving SLEEP mode are all on-chip.

The PIC16F628 architecture uses a Harvard-design RISC core with separate program and data buses, internal 4 MHz oscillator and an external oscillator option. The device replaces the older PIC16F84 footprint-compatible parts while adding hardware USART, comparators and a wider instruction set, making it a popular upgrade for legacy designs.

Typical applications include remote control transmitters, HVAC thermostat controls, small appliance controllers, sensor signal conditioning, battery chargers and automotive interior accessories. The 16 I/O count and SOIC-18 footprint also make it a fit for hand-held instrumentation where PCB area is constrained.

When designing, ensure the Vdd range of 3.0 V to 5.5 V and adequate bulk decoupling; place a 100 nF ceramic close to Vdd and a 10 µF electrolytic on the supply rail. For ICSP programming, reserve pins RB6 and RB7 and do not load them with low-impedance circuitry that prevents in-circuit programming.

This page synthesizes distributor pricing, drop-in alternatives, and practical design notes not found in the manufacturer datasheet alone.

Drop-in alternatives for PIC16F628-04I/SO — same package, pin-to-pin compatible. Different-package parts requiring PCB rework are excluded.

Variants in this series

Same-series models that are drop-in compatible with PIC16F628-04I/SO (same form factor and footprint) — differing in Operating Temperature, Package, I/O Pins, Internal Oscillator, Analog Comparators.

Microchip Technology
Operating Temperature: -40C to +85C (Industrial, 'I' suffix)
Package: 18-pin SOIC (300 mil, 'SO' suffix)
I/O Pins: 16 (bidirectional, with weak pull-ups on PORTB)
Microchip Technology
Operating Temperature: -40°C to +85°C (industrial)
Package: 18-pin SOIC (SO)
I/O Pins: 16 digital I/O
Microchip Technology
Operating Temperature: -40C to +125C (automotive / 'E' grade)
Package: 18-pin SOIC (SO)
I/O Pins: 16
Microchip Technology
Operating Temperature: -40C to +85C (industrial), 0C to +70C (commercial)
I/O Pins: 16 (PORTA + PORTB)
Microchip Technology
Operating Temperature: -40 °C to +85 °C (Industrial, 'I' suffix)
Package: 18-SOIC (0.295", 7.50 mm)
Internal Oscillator: 4 MHz (calibrated)
Microchip Technology
Operating Temperature: -40C to +85C (industrial)
Package: 18-pin SOIC (SO), wide body
Internal Oscillator: 4 MHz RC, factory calibrated
Microchip Technology
Operating Temperature: -40C to +85C (industrial, "I" grade)
Package: 18-pin SOIC (SO, wide-body 0.300 inch, 7.50 mm)
I/O Pins: 16 (PORTA[5] + PORTB[8] + PORTA additional)
Microchip Technology
Package: 18-SOIC (SO)
I/O Pins: 16 (multiplexed with peripherals)
Internal Oscillator: 4 MHz (selectable)

Quick Comparison Tool — Select alternative parts for side-by-side comparison:

PIC16F628A-I/SO

✅ Drop-In
Microchip Technology
📦 SOIC-18
PIC16F · 8-bit · 20 MHz · 3.5 KB (2K x 14) Flash · 224 bytes · 128 x 8 bytes · 16 · 4.5 V to 5.5 V

✓ In Stock

$2.32 / Unit

View Datasheet →

PIC16F628-04/SO

✅ Drop-In
Microchip Technology
📦 SOIC-18
PIC16 mid-range 8-bit RISC · 35 instructions, single-cycle (200 ns at 4 MHz) · 3.5 KB (2K x 14) Flash · 224 bytes · 128 bytes · 4 MHz · 3.3 V to 5.5 V (extended) / 4.5 V to 5.5 V (standard) · 16 digital I/O

✓ In Stock

$1.05 / Unit

View Datasheet →

PIC16F627-04I/SO

✅ Drop-In
Microchip Technology
📦 SOIC-18
PIC16 8-bit RISC · 1.75 KB Flash (1K x 14 words) · 224 bytes · 128 bytes · 4 MHz (4 MIPS, 200 ns instruction cycle) · 4.5 V to 5.5 V (-04 speed grade at 4 MHz) · -40C to +85C (Industrial, 'I' suffix) · 16 (bidirectional, with weak pull-ups on PORTB)

✓ In Stock

$1.59 / Unit

View Datasheet →

PIC16F648A-I/SO

✅ Drop-In ⚠️ 参数待验证
Microchip Technology
📦 SOIC-18
PIC16 RISC 8-bit · 7 KB (4K x 14) · 256 bytes · 256 bytes · 20 MHz · 200 ns · 35 single-word instructions · 16 (multiplexed with peripherals)

✓ In Stock

$2.1 / Unit

View Datasheet →

PIC16F88-I/SO

✅ Drop-In ⚠️ 参数待验证
📦 SOIC-18
same SOIC-18 footprint, adds 10-bit ADC and 7KB flash; pin-to-pin compatible with PIC16F628 footprint, peripheral remap required in firmware

📋 Reference alternative (not in catalog)

PIC16F628-04I/SO Maximum Ratings & Electrical Characteristics

Core Architecture PIC® 16-bit mid-range (8-bit data path, 14-bit instruction word)
Program Memory Type Flash
Program Memory Size 3.5 KB (2K x 14)
Data EEPROM 128 bytes
Data SRAM 224 bytes
Maximum Clock Frequency 4 MHz (04 speed grade)
Instruction Execution Time 200 ns @ 20 MHz / 1 µs @ 4 MHz
Supply Voltage (Vdd) 3.0 V to 5.5 V (industrial "I" grade operating range)
I/O Pins 16 (bidirectional, individually direction-controlled)
Timers 3 (Timer0 8-bit, Timer1 16-bit, Timer2 8-bit)
Analog Comparators 2 with programmable on-chip VREF
Communication Peripherals 1x USART (async/sync serial)
PWM Modules 1x CCP (10-bit resolution PWM)
Operating Temperature -40 °C to +85 °C (industrial, "I" suffix)
Package SOIC-18 (SO), 7.50 mm body, 1.27 mm pitch, gull-wing
Mounting Type Surface Mount
MSL Level 1 (unlimited floor life at <30 °C / 85 % RH)
RoHS Status Compliant (lead-free matte-tin)
ICSP Programming Yes (RB6/RB7 clock/data, low-voltage ICSP supported)
Brown-out Reset Yes (BOR, programmable trip)
Watchdog Timer Yes (WDT with on-chip 128 kHz LF oscillator)
Internal Oscillator 4 MHz precision internal RC (software-selectable)
AEC-Q100 Qualification Not qualified (industrial grade only)
Pin Count 18
Recommended New Design Part PIC16F15244 per Microchip product page

PIC16F628-04I/SO Pin Configuration

Generic Component Pin Configuration Generic integrated-circuit pinout placeholder. Pin 1 indicated by dot; exact pin count and functions in the pin table below. 1 N 2 N-1 3 N-2 4 N-3 Pin Configuration See pin table below for pin functions Package-specific diagram not available
Pin 1 RA2 — Bidirectional I/O / analog comparator C1OUT
Pin 2 RA3 — Bidirectional I/O / analog comparator C1IN+
Pin 3 RA4/T0CKI — Bidirectional I/O (open-drain) / Timer0 clock input
Pin 4 RA5/MCLR̅ — Bidirectional I/O / Master Clear (reset) input
Pin 5 GND — Ground reference
Pin 6 RB0/INT — Bidirectional I/O / external interrupt
Pin 7 RB1 — Bidirectional I/O / analog comparator C1IN-
Pin 8 RB2 — Bidirectional I/O
Pin 9 RB3 — Bidirectional I/O / analog comparator C2IN+CVREF
Pin 10 RB4 — Bidirectional I/O / interrupt-on-change
Pin 11 RB5 — Bidirectional I/O / interrupt-on-change
Pin 12 RB6/PGC — Bidirectional I/O / ICSP clock (serial programming)
Pin 13 RB7/PGD — Bidirectional I/O / ICSP data (serial programming)
Pin 14 VDD — Positive supply (3.0 V to 5.5 V)
Pin 15 OSC2/CLKOUT — Oscillator crystal output / 4 MHz clock out
Pin 16 OSC1/CLKIN — Oscillator crystal input / external clock input
Pin 17 RA6 — Bidirectional I/O / oscillator crystal output (XT mode)
Pin 18 RA7 — Bidirectional I/O / oscillator crystal input (XT mode)

Typical Applications

PIC16F628-04I/SO is suitable for 7 applications: Remote Control Transmitter, HVAC Thermostat Controller, Small Appliance Control (Coffee Maker, Toaster, Mixer), Battery Charger for Lead-Acid / NiMH, Automotive Interior Accessory (LED Driver, Lighting Module), Sensor Signal Conditioning / Data Logger, Hand-Held Test & Measurement Instrument.

📱

Remote Control Transmitter

The PIC16F628-04I/SO is well suited for handheld infrared / RF remote control transmitters where 16 I/O pins drive keypad matrix scanning and LED indicators, while the integrated USART supports newer bidirectional radio modules. The on-chip comparators and programmable VREF handle low-battery detection from a single CR2032 or 2× AA supply running 3.0 V to 5.5 V. Its 4 MHz maximum clock and industrial temperature range (-40 °C to +85 °C) comfortably cover the worst-case outdoor and automotive cabin environments. The 224-byte SRAM is sufficient for stack-based key-debounce and rolling-code buffers, and the 3.5 KB flash allows modest protocol stacks (e.g. RC5, NEC, simple proprietary protocols). Watchdog timer with internal LF oscillator ensures hang recovery without external components.

🏭

HVAC Thermostat Controller

In HVAC thermostat designs the PIC16F628-04I/SO reads temperature sensors via its two analog comparators (with on-chip programmable VREF replacing an external zener), drives a 16×2 LCD through parallel I/O, and switches relays via 25 mA I/O sink. The 200 ns instruction execution at 20 MHz (or 1 µs at 4 MHz) easily handles PID loops and debounced keypad input. Brown-out reset and watchdog timer protect against brownouts during compressor inrush. The 128-byte EEPROM stores setpoint schedules across power cycles, while the USART enables connection to a Wi-Fi or Modbus module for smart-thermostat features. Industrial temperature grade -40 °C to +85 °C handles attic and equipment-room mounting.

Small Appliance Control (Coffee Maker, Toaster, Mixer)

Small kitchen appliances benefit from the PIC16F628-04I/SO's 16 high-current I/O that can directly drive LED indicators, triac-trigger optos and buzzer elements. Its 3.5 KB flash holds menu UI logic for a coffee machine or blender while the 128-byte EEPROM saves user preferences. The two comparators detect zero-cross for triac phase-angle dimming and over-temperature conditions from an NTC. Industrial temperature rating supports the inside-housing thermal environment of toaster ovens and similar appliances. Combined with the PWM (CCP) channel, this part can also drive a low-cost BLDC or universal motor in low-end mixers.

Battery Charger for Lead-Acid / NiMH

The PIC16F628-04I/SO serves as the supervisor MCU in simple single/dual-stage chargers. Its two analog comparators with programmable VREF monitor battery voltage and current-shunt feedback, replacing discrete op-amps. The 16 I/O drive status LEDs, control a relay or MOSFET for charge/discharge switching and read a temperature sensor for safety cutoff. The 4 MHz internal RC oscillator eliminates the external crystal, reducing BOM cost, while the watchdog timer protects against firmware lockup. Industrial temperature grade -40 °C to +85 °C handles garage and outdoor-charging conditions. Flash memory holds CC/CV charge profile tables and EEPROM stores cycle-count data.

🚗

Automotive Interior Accessory (LED Driver, Lighting Module)

Although not AEC-Q100 qualified, the PIC16F628-04I/SO can drive interior 12 V accessories in non-safety automotive applications such as ambient LED strips, footwell lighting and trunk illumination. The PIC16F628-04I/SO has 16 high-current 25 mA I/O pins that directly drive LED strings through MOSFETs, while the comparators monitor over-current from a shunt and trigger protection. The CCP/PWM channel provides 10-bit dimming, and the USART enables CAN/LIN transceiver daughter boards for body-network communication. Note that AEC-Q100 qualified variants (e.g. PIC16F15244) are required for safety-critical automotive applications per Microchip guidance.

🧩

Sensor Signal Conditioning / Data Logger

For low-cost sensor signal conditioning and data logging, the PIC16F628-04I/SO reads analog signals through its two comparators with programmable VREF replacing external ADC front ends, then formats and transmits results via the integrated USART to a host PC or radio. The 224-byte SRAM supports short rolling buffers and the 128-byte EEPROM retains calibration constants and device-ID strings. Industrial temperature range accommodates outdoor and industrial sensors. The internal 4 MHz oscillator eliminates the external crystal for cost-sensitive remote sensor nodes, and the watchdog timer with on-chip LF oscillator ensures autonomous recovery from field-side faults.

🔧

Hand-Held Test & Measurement Instrument

Hand-held digital multimeters, continuity testers and simple oscilloscope front-ends use the PIC16F628-04I/SO for I/O expansion, range switching via relays and LCD segment driving. The 16 high-current I/O drive relay coils, range-indicator LEDs and rotary-switch decoder logic, while the USART interfaces to a Bluetooth module for wireless readout. The 3.5 KB flash holds calibration tables and user menus, and 128-byte EEPROM stores last-measurement and battery-state retention. Watchdog timer protects against battery brownout, and the SOIC-18 footprint is small enough for tight handheld enclosures. Industrial temperature range supports field-deployed use.

Recommended Products Summary

PIC16F628A-I/SO Microchip Technology Used in: Remote Control Transmitter, HVAC Thermostat Controller, Battery Charger for Lead-Acid / NiMH, Automotive Interior Accessory (LED Driver, Lighting Module), Sensor Signal Conditioning / Data Logger, Hand-Held Test & Measurement Instrument TSOP38238 38 kHz IR receiver module for receiving feedback Used in: Remote Control Transmitter MCP9700 Analog temperature sensor with 10 mV/°C output for comparator-based sensing Used in: HVAC Thermostat Controller PIC16F628-04E/SO Microchip Technology Used in: Small Appliance Control (Coffee Maker, Toaster, Mixer) MOC3021 Random-phase optoisolator for triac gate drive Used in: Small Appliance Control (Coffee Maker, Toaster, Mixer) MCP73831 Companion single-cell Li-ion charger IC for hybrid designs Used in: Battery Charger for Lead-Acid / NiMH MCP2551 CAN transceiver for body-network communication Used in: Automotive Interior Accessory (LED Driver, Lighting Module) MAX485 RS-485 transceiver for long-distance sensor telemetry Used in: Sensor Signal Conditioning / Data Logger MCP1700 3.3 V LDO regulator for handheld battery-powered operation Used in: Hand-Held Test & Measurement Instrument
What is the flash program memory size of the PIC16F628-04I/SO?
The PIC16F628-04I/SO contains 3.5 KB (2K × 14) of flash program memory according to the Microchip datasheet (DS40044G). This is paired with 224 bytes of data SRAM and 128 bytes of data EEPROM. The flash can be erased and reprogrammed in-circuit via the two-wire ICSP interface on pins RB6/RB7, supporting up to 100 K erase/write cycles typical.
What is the maximum clock frequency of the PIC16F628-04I/SO?
The "-04" speed grade limits the PIC16F628-04I/SO to 4 MHz maximum external oscillator, producing 1 µs instruction execution time. The "-20" speed grade variant supports up to 20 MHz / 200 ns. The device also has an internal 4 MHz precision RC oscillator that can replace an external crystal in space-constrained designs, selected via the OSCCON register.
How many I/O pins does the PIC16F628-04I/SO have?
The PIC16F628-04I/SO exposes 16 bidirectional digital I/O pins across ports A and B, each individually direction-controlled via TRISA/TRISB registers per Microchip datasheet (DS40044G). Per-pin source/sink is rated 25 mA, with a maximum total package dissipation limit. Two pins (RA4 and RA5) become digital-only or open-drain after reset, so designers should verify TRIS state in firmware.
What is the operating voltage range of the PIC16F628-04I/SO?
The PIC16F628-04I/SO operates from 3.0 V to 5.5 V across its industrial -40 °C to +85 °C temperature range, per the Microchip datasheet. Flash program writes require Vdd ≥ 4.5 V (typical 5 V), so battery-powered designs below 4.5 V must use a boost regulator for firmware updates. The "-04I" suffix denotes this industrial-grade window.
Where to buy PIC16F628-04I/SO online?
Authorized distributors including DigiKey, Mouser, LCSC and Newark stock PIC16F628-04I/SO. As of 2026-09-21, DigiKey list price starts around $3.95 for qty 1, dropping to roughly $2.30 at 1,000-piece reels. Mouser typically matches and offers reel-packaged stock. LCSC has tape-and-reel inventory from approximately $5.96 unit. Check each distributor live for current stock and lead time before placing an order.
What is the price of PIC16F628-04I/SO in 1,000-piece reels?
As of 2026-09-21, the PIC16F628-04I/SO prices at roughly $3.95 unit at qty 1, around $2.85 at qty 100, and approximately $2.30 at qty 1,000 reel-packaged. DigiKey, Mouser and Octopart report similar tiers. Distributors occasionally promote lower pricing on bulk tape-and-reel, so check distributor pages for the most current quote before procurement commits.
What is the lead time and stock status for PIC16F628-04I/SO?
Per Microchip's product page, PIC16F628 is marked "Not Recommended for new designs" with newer devices (e.g. PIC16F15244) suggested. As of 2026-09-21, distributor pages (DigiKey, Mouser, LCSC, Newark) show active stock with shipping today or next-day. Long-term supply is fragile - use a pin-compatible newer PIC16F1xxx or PIC16F628A-I/SO variant for production designs.
PIC16F628-04I/SO vs PIC16F628A-I/SO - which is better for new designs?
The PIC16F628A-I/SO is the better choice for new designs. It shares the same SOIC-18 footprint, 16 I/O, 3.5 KB flash, 224-byte SRAM and 128-byte EEPROM of the original PIC16F628, but adds nanoWatt technology for deeper low-power modes, more oscillator options, a 16-level hardware stack depth and improved ADC comparator specifications. For an exact legacy swap, the PIC16F628-04I/SO remains pin-compatible; for new layouts, prefer the 'A' revision.
Can PIC16F628A-I/SO replace PIC16F628-04I/SO directly?
Yes. The PIC16F628A-I/SO is functionally identical to the PIC16F628-04I/SO on the SOIC-18 footprint, with the same 16 I/O, 3.5 KB flash, 224-byte RAM, 128-byte EEPROM and same comparator/USART peripherals, per the Xecor comparison. Code written for PIC16F628 generally recompiles and runs on the 'A' revision unchanged, although the oscillator and ADC configuration registers differ slightly - check DS40044G for migration notes.
When should I choose PIC16F628-04I/SO over PIC16F628A-I/SO?
Choose PIC16F628-04I/SO only when maintaining or repairing an existing legacy board that already has this exact part on the BOM. For new designs, choose the PIC16F628A-I/SO because it adds nanoWatt power management, an extended 16-level stack and better oscillator flexibility, while remaining fully footprint-compatible. The '04' speed grade of the -04I/SO is also a hard ceiling at 4 MHz, which the -I/SO removes.
Is PIC16F628-04I/SO the same as PIC16F628-04I/P?
No, they differ in package. The PIC16F628-04I/SO is the SOIC-18 surface-mount version, while the PIC16F628-04I/P is the PDIP-18 through-hole version. Both are pin-for-pin compatible electrically and share identical silicon, so they are drop-in interchangeable electrically but NOT drop-in on the same PCB land pattern - moving from SO to P requires manual wiring or a new PCB layout.
What is the best drop-in replacement for PIC16F628-04I/SO?
The best drop-in replacement is the PIC16F628A-I/SO - same SOIC-18 package, same pinout, same flash/RAM/EEPROM sizes, same industrial -40 °C to +85 °C range, same USART and comparator peripherals. It is functionally equivalent with minor register changes that don't affect pin compatibility. The PIC16F628-04/SO (commercial 0-70 °C version) is also pin-compatible if the industrial temperature range is not required.
Where to download PIC16F628-04I/SO datasheet PDF?
Download the PIC16F628-04I/SO datasheet directly from Microchip at https://ww1.microchip.com/downloads/en/DeviceDoc/40044G.pdf (DS40044G). The document covers all PIC16F627/628/648 variants including SOIC, PDIP and SSOP packages, electrical characteristics, peripheral descriptions and programming specifications. Mirror sites such as Alldatasheet also host the same PDF for offline reference.
Where to find PIC16F628-04I/SO pinout diagram?
The PIC16F628-04I/SO pinout is documented in Section 1 of the Microchip datasheet (DS40044G). The 18-pin SOIC pinout assigns pin 1 to RA2, pin 2 to RA3, pin 3 to RA4/T0CKI, pin 4 to RA5, pin 5 to GND, pin 6 to RB0/INT, pin 7 to RB1, pin 8 to RB2, pin 9 to RB3, pin 10 to RB4, pin 11 to RB5, pin 12 to RB6/PGC, pin 13 to RB7/PGD, pin 14 to Vdd, pin 15 to OSC2, pin 16 to OSC1, pin 17 to RA6, and pin 18 to RA7. Pins 12 and 13 are the ICSP programming pins.
What are the key specifications of PIC16F628-04I/SO that engineers should know?
The PIC16F628-04I/SO combines 3.5 KB flash, 224 bytes SRAM, 128 bytes EEPROM, 16 I/O at 25 mA sink/source, 3 timers, 2 analog comparators with programmable VREF, a USART and 1 CCP/PWM channel - all in a 4 MHz industrial-grade SOIC-18 package. Per Microchip, the part operates 3.0 V to 5.5 V over -40 °C to +85 °C with 200 ns instruction execution at 20 MHz, ICSP, brown-out reset and watchdog timer. Lifecycle status is "Not Recommended for new designs" with PIC16F15244 as the suggested modern replacement.

Engineering reference data for PIC16F628-04I/SO — comparison, design guidance, and compliance information.

Selection Guide

Choose PIC16F628-04I/SO when you need a flash-based 8-bit PIC mid-range microcontroller in a SOIC-18 surface-mount package with industrial -40 °C to +85 °C temperature range, 3.5 KB flash, 224 bytes SRAM and 128 bytes EEPROM. Prefer PIC16F628A-I/SO for new designs because it adds nanoWatt low-power modes and removes the 4 MHz clock ceiling. Prefer PIC16F648A-I/SO when you need 7 KB flash and 256 bytes RAM in the same SOIC-18 footprint. Avoid PIC16F627-04I/SO for new designs unless 1 KB flash is sufficient. Per Microchip, the PIC16F628 is "Not Recommended for new designs"; the suggested modern replacement is the PIC16F15244 family. For AEC-Q100 automotive safety applications, do not use this part.

Comparison with Alternatives

Parameter This Product PIC16F628A-I/SO PIC16F628-04/SO PIC16F627-04I/SO PIC16F648A-I/SO PIC16F88-I/SO
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Package SOIC-18 SOIC-18 (same) SOIC-18 (same) SOIC-18 (same) SOIC-18 (same) SOIC-18 (same)
Program Memory (Flash) 3.5 KB 3.5 KB 3.5 KB 1 KB (-71%) 7 KB (+100%) 7 KB (+100%)
Data SRAM 224 bytes 224 bytes 224 bytes 128 bytes (-43%) 256 bytes (+14%) 368 bytes (+64%)
Data EEPROM 128 bytes 128 bytes 128 bytes 128 bytes 256 bytes (+100%) 256 bytes (+100%)
Max Clock Frequency 4 MHz 20 MHz 4 MHz 4 MHz 20 MHz 20 MHz
Operating Temperature -40 °C to +85 °C (Industrial) -40 °C to +85 °C (Industrial) 0 °C to +70 °C (Commercial) -40 °C to +85 °C (Industrial) -40 °C to +85 °C (Industrial) -40 °C to +85 °C (Industrial)
I/O Pins 16 16 16 16 16 16
nanoWatt Low-Power Modes No Yes No No Yes Yes

Key Differentiators

  • Legacy industrial-grade temperature qualification (vs PIC16F628-04/SO)
  • Significantly more flash and RAM than PIC16F627 family (vs PIC16F627-04I/SO)
  • Two analog comparators with programmable VREF replace external op-amp front ends (vs PIC16F88-I/SO)

Design Notes

Place a 100 nF ceramic decoupling capacitor as close as physically possible to the VDD pin (pin 14) of the PIC16F628-04I/SO, plus a 10 µF bulk capacitor on the same supply rail. The flash program memory erase/write cycle requires VDD ≥ 4.5 V - if the design runs below this threshold (e.g. battery-powered), use a small boost regulator for the ICSP programming step. The internal 4 MHz RC oscillator eliminates an external crystal, saving two GPIO and BOM cost in space-constrained designs.

Reserved pins RB6 and RB7 (pins 12 and 13) are shared with ICSP programming clock and data. Do not load these pins with low-impedance drivers (high-current LEDs, low-value pull-ups, or active drivers) that prevent the programmer from driving them during field updates. Also, the MCLR̅ pin (RA5/pin 4) requires a 10 kΩ pull-up to VDD for normal operation - leaving it floating prevents startup. The analog comparators on RA0/RA1/RA2/RA3 must be explicitly disabled in firmware if those pins are used as digital I/O.

The PIC16F628-04I/SO is a low-power CMOS part with typical active current around 2 mA at 4 MHz and 5 V, dropping below 1 µA in SLEEP mode. The SOIC-18 package has a thermal resistance of approximately 100 °C/W (θJA) - well above the dissipation budget of a typical digital design. No heatsink is required. For industrial -40 °C to +85 °C environments, ensure ambient airflow does not exceed 85 °C; derate oscillator frequency above 70 °C if the application is borderline.

Compliance Information

RoHS
Compliant
REACH
Compliant
AEC-Q100
Not Qualified
Lead Free
Yes
Halogen Free
Unknown
Conflict Minerals
Compliant

RoHS-compliant per Microchip product page and DigiKey listing. Industrial temperature grade -40 °C to +85 °C; not AEC-Q100 qualified (industrial only). Suggested modern replacement per Microchip is PIC16F15244.

Data verified on: 2026-09-21 — data verified and curated by XAIPART's component engineering team

Related Searches

PIC16F628-04I/SO PIC16F628-04I/SO datasheet Microchip PIC16F628 PIC16F628 SOIC-18 8-bit flash MCU PIC16F628A-I/SO replacement PIC16F628 vs PIC16F628A PIC16F628 industrial temperature PIC16F628 remote control application buy PIC16F628-04I/SO distributor PIC16F628 pinout SOIC-18 PIC16F628 ICSP programming PIC16F628 4MHz flash microcontroller PIC16F628 comparator programmable VREF PIC16F628A vs PIC16F628 compatibility what replaced PIC16F628

Related Components & Terms

Microchip Technology PIC16F628-04I/SO PIC16F628A-I/SO PIC16F628-04/SO PIC16F627-04I/SO PIC16F648A-I/SO PIC16F88-I/SO PIC16F15244 PIC® microcontroller PIC16 mid-range architecture 8-bit RISC Harvard architecture Flash memory EEPROM USART CCP/PWM ICSP SOIC-18 Industrial temperature grade AEC-Q100 RoHS REACH Watchdog timer Brown-out reset nanoWatt technology MPLAB PICkit
Quick Quote RFQ
Fill in complete details — our sales team will respond within 24 hours
Part Number Manufacturer Package QTY Target Price Extended
Total: $0.00 USD
Quote submitted!

We will respond to your email within 24 hours

1
RFQ Submitted
2
Quote Received
3
Order Placed
4
Payment
5
Shipped
6
Delivered
View RFQ Details