Microchip Technology

PIC16F628-04E/SO - 8-bit 4MHz Flash MCU, 3.5KB, 18-SOIC | Microchip

MPN: PIC16F628-04E/SO ✗ End of Life
In Stock Ships in 1-3 business days
4.5 V to 5.5 V Vdss 18-pin SOIC (SO) Package 4 MHz (200 ns instruction cycle) Speed 3.5 KB Flash (2K x 14 words) Memory
From $1.78 USD / Unit
MOQ: 1 |
Price updated: 2026-09-20
Volume Pricing
Qty Unit Price Extended
1 $2.95 $2.95
10 $2.66 $26.60
100 $2.32 $232.00
500 $2.05 $1,025.00
1,000 $1.78 $1,780.00
ℹ️ All prices are in USD

PIC16F628-04E/SO Overview

The Microchip Technology PIC16F628-04E/SO is an 8-bit flash-based CMOS microcontroller from the PIC® 16F family, running up to 4MHz internal instruction execution and packaged in an 18-pin SOIC (SO). It integrates 3.5KB (2K x 14 words) of flash program memory, 224 bytes of RAM, and 128 bytes of EEPROM data memory in a single chip, with 16 digital I/O lines that can sink or source enough current to drive LEDs directly.

A microcontroller (MCU) is a single-chip computer containing a CPU core, program and data memory, programmable I/O peripherals, and supporting analog or communication blocks. The PIC16F628 sits inside the broader PIC16 mid-range family, which in turn belongs to the 8-bit microcontroller category that includes competitors such as the Atmel AVR ATtiny series and the 8051 family; these MCUs occupy the entry-level tier of the embedded system hierarchy (MCU -> microcontroller -> embedded processor -> semiconductor IC).

Key features include an internal 4MHz RC oscillator with calibration, programmable brown-out detect (BOD), a watchdog timer (WDT) with its own on-chip RC oscillator for reliable operation, power-on reset (POR), power-up timer (PWRT) and oscillator start-up timer (OST), an analog comparator module with programmable on-chip voltage reference and programmable input multiplexing, programmable weak pull-ups on PORTB, in-circuit serial programming (ICSP), and low-voltage programming support. The 'E' suffix denotes an extended automotive temperature grade of -40C to +125C.

The PIC16F628 uses Microchip's enhanced mid-range 8-bit RISC architecture with only 35 single-word instructions, allowing most instructions to execute in a single instruction cycle (200 ns at 20 MHz, 1 us at 4 MHz). Its Harvard architecture separates program and data buses, and the device supports both internal and external oscillator modes plus software-selectable low-speed clock operation.

Typical applications include automotive body and chassis electronics, appliance controls, industrial sensor interfaces, low-end remote controls, and hobbyist/educational projects that benefit from the PIC's mature toolchain (MPLAB X IDE, XC8 compiler, PICkit programmers). The internal RC oscillator and on-chip EEPROM simplify BOM by eliminating external timing and non-volatile storage parts.

When designing with this device, note that the 'E' temperature grade makes it suitable for -40C to +125C environments but the '04' speed grade limits operation to 4 MHz; for 20 MHz designs choose the PIC16F628-20/SO. Always reserve the MCLR pin or use the internal MCLR configuration, and follow Microchip AN529 for migration paths to PIC16F628A or PIC16F18444 if extended peripherals or longer product life are required.

This page synthesizes distributor pricing, drop-in same-package alternatives, and practical design notes that go beyond a raw restatement of the manufacturer datasheet, helping engineers select, source, and qualify the PIC16F628-04E/SO for production.

Drop-in alternatives for PIC16F628-04E/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-04E/SO (same form factor and footprint) — differing in Operating Temperature, Package, Analog Comparators, MSL Level, Internal Oscillator.

Microchip Technology
Operating Temperature: -40C to +85C (Industrial, 'I' suffix)
Package: 18-pin SOIC (300 mil, 'SO' suffix)
Analog Comparators: 2 with programmable on-chip reference
Microchip Technology
Operating Temperature: -40°C to +85°C (industrial)
Analog Comparators: 2 on-chip
Internal Oscillator: 4 MHz calibrated
Microchip Technology
Operating Temperature: -40C to +125C (Extended)
Package: 20-SSOP (5.30 mm)
MSL Level: 1 (Unlimited)
Microchip Technology
Operating Temperature: -40 °C to +85 °C (industrial, "I" suffix)
Package: SOIC-18 (SO), 7.50 mm body, 1.27 mm pitch, gull-wing
Analog Comparators: 2 with programmable on-chip VREF
Microchip Technology
Operating Temperature: -40C to +125C (Extended, 'E' suffix)
Package: 18-pin SOIC (SO), 300-mil body, tube
Analog Comparators: 2 (with programmable VREF)
Microchip Technology
Operating Temperature: -40 °C to +85 °C (Industrial, 'I' suffix)
Package: 18-SOIC (0.295", 7.50 mm)
MSL Level: 1
Microchip Technology
Operating Temperature: -40C to +85C (industrial)
Package: 18-pin SOIC (SO), wide body
Analog Comparators: 2 with programmable voltage reference
Microchip Technology
Operating Temperature: -40C to +125C (Extended, E grade)
Package: 20-SOIC (300 mil)
Analog Comparators: 2 (with programmable reference)

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

PIC16F628-04/SO

✅ Drop-In
Microchip Technology
📦 18-SOIC (SO)
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 →

PIC16F628-04I/SO

✅ Drop-In
Microchip Technology
📦 18-SOIC (SO)
PIC® 16-bit mid-range (8-bit data path, 14-bit instruction word) · Flash · 3.5 KB (2K x 14) · 128 bytes · 224 bytes · 4 MHz (04 speed grade) · 200 ns @ 20 MHz / 1 µs @ 4 MHz · 3.0 V to 5.5 V (industrial "I" grade operating range)

✓ In Stock

$2.3 / Unit

View Datasheet →

PIC16F628-20/SO

✅ Drop-In
📦 18-SOIC (SO)
20 MHz max clock (5x faster) vs 4 MHz, -40C-85C; pin-to-pin compatible

📋 Reference alternative (not in catalog)

PIC16F628A-I/SO

✅ Drop-In
Microchip Technology
📦 18-SOIC (SO)
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 →

PIC16F628A-E/SO

✅ Drop-In
📦 18-SOIC (SO)
'A' silicon + automotive -40C-125C + 20 MHz; pin-to-pin, software-compatible

📋 Reference alternative (not in catalog)

PIC16F627-04I/SO

✅ Drop-In
Microchip Technology
📦 18-SOIC (SO)
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 →

PIC16F628-04E/SO Maximum Ratings & Electrical Characteristics

Core Architecture PIC 8-bit RISC (mid-range enhanced)
Program Memory 3.5 KB Flash (2K x 14 words)
RAM 224 bytes
EEPROM Data Memory 128 bytes
Maximum Clock Speed 4 MHz (200 ns instruction cycle)
Instruction Set 35 single-word instructions, mostly single-cycle
I/O Pins 16
Supply Voltage (VDD) 4.5 V to 5.5 V
Operating Temperature -40C to +125C (automotive / 'E' grade)
Package 18-pin SOIC (SO)
Mounting Type Surface Mount
Internal Oscillator Yes, 4 MHz RC (calibrated)
Watchdog Timer Yes, with dedicated on-chip RC oscillator
Brown-Out Detect (BOD) Programmable
Analog Comparators 2 with programmable on-chip VREF module
Programming Interface ICSP (In-Circuit Serial Programming), low-voltage programming supported
MSL Level 1 (unlimited floor life at <=30C / 85% RH)
Lead-Free / RoHS Lead-free finish, RoHS compliant

PIC16F628-04E/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/AN2/VREF — Bidirectional I/O / analog channel 2 / VREF output
Pin 2 RA3/AN3/CMP1 — Bidirectional I/O / analog channel 3 / comparator-1 output
Pin 3 RA4/AN4/T0CKI — Bidirectional I/O / analog channel 4 / Timer0 clock input (open-drain)
Pin 4 MCLR/VPP — Master Clear reset input (active low) / programming voltage input
Pin 5 VSS — Ground reference
Pin 6 RB0/INT — Bidirectional I/O / external interrupt input
Pin 7 RB1/RX/DT — Bidirectional I/O / USART RX / data in async mode
Pin 8 RB2/TX/CK — Bidirectional I/O / USART TX / clock in sync mode
Pin 9 RB3/CCP1 — Bidirectional I/O / Capture/Compare/PWM channel 1
Pin 10 RB4/PGM — Bidirectional I/O / low-voltage programming input
Pin 11 RB5 — Bidirectional I/O
Pin 12 RB6/T1OSC1/PGC — Bidirectional I/O / Timer1 oscillator input / ICSP clock
Pin 13 RB7/T1OSC2/PGD — Bidirectional I/O / Timer1 oscillator output / ICSP data
Pin 14 VDD — Positive supply voltage (4.5 V to 5.5 V)
Pin 15 OSC1/CLKI — Crystal oscillator input / external clock input
Pin 16 OSC2/CLKO — Crystal oscillator output / clock output (Fosc/4)
Pin 17 RA0/AN0 — Bidirectional I/O / analog channel 0
Pin 18 RA1/AN1 — Bidirectional I/O / analog channel 1

Typical Applications

PIC16F628-04E/SO is suitable for 6 applications: Automotive Body and Chassis Electronics, Appliance Control Boards, Industrial Sensor Interface Nodes, Remote Control and Consumer IR Transmitters, Educational and Hobbyist Development Boards, Security and Access Control Panels.

🚗

Automotive Body and Chassis Electronics

The PIC16F628-04E/SO's extended -40C to +125C automotive temperature grade and internal 4 MHz RC oscillator make it a strong fit for body controllers, lighting modules, and sensor interfaces in vehicles. With 16 high-current I/O capable of directly driving LEDs and relays, the device eliminates external driver transistors in many lamp-control circuits, while the on-chip EEPROM provides 128 bytes of non-volatile storage for trim, calibration, or fault logs. Its 4 MHz instruction execution at 1 us per instruction is sufficient for body-control polling rates in the 1-10 ms range. The 18-SOIC package fits standard automotive PCB land patterns and survives typical under-hood thermal stress.

🏭

Appliance Control Boards

White-goods appliances (washers, dishwashers, refrigerators) commonly use 8-bit PIC MCUs in the PIC16F family, and the PIC16F628-04E/SO brings 3.5 KB of flash and 16 I/O to front-panel and motor-control boards. The internal oscillator removes the cost of an external crystal, while the two on-chip analog comparators with programmable VREF support direct interfacing with NTC temperature sensors and over-current shunt amplifiers without an external op-amp. Watchdog timer and brown-out detect protect against the brown-out and ESD events typical of motor-drive environments, and the 18-SOIC footprint remains compatible with hand-soldered rework and high-volume lead-free reflow profiles.

🏭

Industrial Sensor Interface Nodes

Distributed industrial sensor nodes need an inexpensive, deterministic MCU that can wake on analog change and poll several digital inputs - exactly the workload for which the PIC16F628-04E/SO was designed. The PIC16F628's 35-instruction RISC core delivers 200 ns deterministic response time at 20 MHz and 1 us at 4 MHz, ideal for time-multiplexed sensor polling. Its 16 I/O drive LEDs, opto-isolated inputs, and relay coils directly via the high-current sink/source capability, while the 224-byte RAM is sufficient for buffering 4-8 sensor samples before transmitting. The wide VDD tolerance (4.5-5.5 V) allows direct connection to industrial 5 V rails without additional regulation.

📱

Remote Control and Consumer IR Transmitters

Battery-powered handheld remote controls benefit from the PIC16F628-04E/SO's low sleep current, small 18-SOIC footprint, and 3.5 KB flash that comfortably fits IR protocol stacks (RC5, NEC, SIRC) plus manufacturer IDs. The internal 4 MHz oscillator eliminates the external resonator that would otherwise take board space and add cost, while the on-chip analog comparator can be reused for battery-voltage monitoring via a resistor divider. The 128-byte EEPROM is enough to store paired-device codes, and ICSP allows firmware updates through the existing IR LED test pads without disassembly.

🧩

Educational and Hobbyist Development Boards

The PIC16F family, especially the PIC16F628-04E/SO, remains a popular teaching platform because its 35-instruction RISC architecture is learnable in a single lab session and its free toolchain (MPLAB X IDE + XC8 compiler + PICkit 5 debugger) supports the entire family. The 18-SOIC variant has a standard 0.1 inch-compatible breakout footprint when socketed, and the internal 4 MHz oscillator removes the timing-section lab exercise. Students can experiment with the on-chip comparator, EEPROM emulation, and PORTB weak pull-ups without external components, and the automotive temperature grade survives accidental soldering mishaps without damage.

🎥

Security and Access Control Panels

Alarm panels, RFID readers, and electronic-lock controllers benefit from the PIC16F628-04E/SO's combination of EEPROM storage for access codes, watchdog timer for tamper resilience, and analog comparators for signal-level detection on wired sensor loops. The 16 I/O can directly multiplex a 4x4 keypad matrix and drive a piezo buzzer, while the on-chip VREF module provides a stable threshold for the analog comparator without external precision parts. Its small 18-SOIC footprint fits behind a wall keypad, and ICSP allows field firmware updates via a 5-pin header that doubles as the programming test point in production.

Recommended Products Summary

PIC16F628A-E/SO Faster 'A' silicon for new automotive designs Used in: Automotive Body and Chassis Electronics MCP2551 CAN transceiver companion for automotive networking Used in: Automotive Body and Chassis Electronics PIC16F18444-I/SO Microchip Technology Used in: Automotive Body and Chassis Electronics PIC16F628-04I/SO Microchip Technology Used in: Appliance Control Boards, Security and Access Control Panels MCP9700 Low-cost analog temperature sensor companion Used in: Appliance Control Boards PIC16F628A-I/SO Microchip Technology Used in: Industrial Sensor Interface Nodes, Educational and Hobbyist Development Boards MCP2515 Standalone CAN controller for industrial networking Used in: Industrial Sensor Interface Nodes TSAL6100 IR LED companion emitter for remote control Used in: Remote Control and Consumer IR Transmitters PIC16F628-04/SO Microchip Technology Used in: Remote Control and Consumer IR Transmitters PICkit 5 Microchip in-circuit debugger/programmer for development Used in: Educational and Hobbyist Development Boards MCP23S17 SPI I/O expander for larger keypad matrices Used in: Security and Access Control Panels
What is the program memory size of the PIC16F628-04E/SO?
The PIC16F628-04E/SO integrates 3.5 KB of flash program memory organized as 2K x 14-bit words, with 224 bytes of SRAM data memory and 128 bytes of EEPROM. According to the Microchip datasheet, the 14-bit wide instruction word is characteristic of the PIC16 mid-range family and yields 2048 single-word instructions of program space.
What is the maximum operating frequency of PIC16F628-04E/SO?
The PIC16F628-04E/SO is the '04' speed grade, rated for a maximum 4 MHz external oscillator (200 ns instruction cycle). If your design requires 20 MHz operation, the higher-speed sibling PIC16F628-20/SO must be used; the '04' and '20' grades are not interchangeable from a timing-margin perspective.
What is the operating temperature range of PIC16F628-04E/SO?
The 'E' suffix in PIC16F628-04E/SO designates the extended automotive temperature grade of -40C to +125C. This makes the part suitable for under-hood and industrial environments; the standard 'I' industrial grade PIC16F628-04I/SO only covers -40C to +85C, so check your application's worst-case ambient before substitution.
Where can I buy PIC16F628-04E/SO and what is the price?
PIC16F628-04E/SO is in stock at major franchised distributors including DigiKey (DigiKey part 509423) and Mouser, with tape-and-reel packaging in 42-unit tubes per manufacturer pack. Per DigiKey listing data, the unit price breaks down approximately as $2.95 at qty 1, $2.32 at qty 100, and $1.78 at qty 1000 as of 2026-09-21; order today for same-day shipment from DigiKey and Mouser inventory.
What is the lead time for PIC16F628-04E/SO?
The PIC16F628-04E/SO ships from DigiKey and Mouser stock with same-day dispatch when ordered before the cut-off; factory lead time is typically 6-10 weeks for production reels because the parent PIC16F628 family is in Not-Recommended-for-New-Design (NRND) status. For new designs, Microchip recommends migrating to PIC16F628A or PIC16F18444 with active lifecycle.
Is PIC16F628-04E/SO in stock right now?
Yes, as of 2026-09-21 the PIC16F628-04E/SO is in stock at DigiKey (DigiKey listing 509423) and Mouser with immediate shipment availability. Distributor stock is finite and decreasing since the underlying PIC16F628 family is NRND; verify real-time inventory on the distributor's product page before placing a production order.
What is the difference between PIC16F628-04E/SO and PIC16F628A-I/SO?
The PIC16F628-04E/SO is the original 04-speed, -40C-to-+125C automotive grade in 18-SOIC, while the PIC16F628A-I/SO is the 'A' revision silicon with 20 MHz operation and -40C-to-+85C industrial temperature. According to Microchip's migration document, the 'A' revision adds enhancements but is pin-compatible; the -20 grade also adds extended operating frequency while keeping the same 18-SOIC footprint.
What is the best drop-in replacement for PIC16F628-04E/SO?
The best drop-in replacements for PIC16F628-04E/SO in the same 18-SOIC footprint are PIC16F628-04I/SO (industrial temperature, identical specs) and PIC16F628A-I/SO (faster 'A' revision, software-compatible). For new designs with extended lifecycle, PIC16F18444-I/SO is the recommended modern replacement and offers significant on-board peripheral upgrades.
PIC16F628-04E/SO vs PIC16F628A-E/SO - which is better for automotive?
The PIC16F628-04E/SO and PIC16F628A-E/SO both target automotive with -40C to +125C operation, but the 'A' version runs up to 20 MHz and includes silicon revisions for improved ESD/EMC performance. For new automotive designs, PIC16F628A-E/SO is preferred for its speed headroom; however, both share the 18-SOIC package and pinout, allowing board-level substitution.
When should I choose PIC16F628-04E/SO over PIC16F628-04/SO?
Choose PIC16F628-04E/SO when your application operates above +85C, such as automotive under-hood, outdoor industrial, or any environment reaching +125C ambient. Choose the standard PIC16F628-04/SO for commercial/industrial applications limited to 0C to +70C ambient where the lower-grade part is sufficient and slightly cheaper; both share the identical 18-SOIC footprint.
Where can I download the PIC16F628-04E/SO datasheet PDF?
The official PIC16F628 datasheet is available as a free PDF from Microchip at https://ww1.microchip.com/downloads/en/devicedoc/41141f.pdf. The 41141f document covers the entire PIC16F627/628 family including all speed grades (04, 20), temperature grades (I, E), and package options (P, SO, SS, ML). Mirror copies also appear on DigiKey product page 509423 under the Datasheets tab.
Where do I find the PIC16F628-04E/SO pinout?
The PIC16F628-04E/SO pinout for the 18-SOIC package is documented in the manufacturer datasheet section 2 (pin descriptions) and reproduced on the DigiKey product detail page. Standard assignments place RA0-RA7 on pins 1-7 and 9-10 (PORTB shares pins 6-7 on this device), RB0-RB7 on pins 8-13, VDD on pin 14, VSS on pin 5, MCLR/VPP on pin 4, and OSC1/OSC2 on pins 15-16.
Hey Google, what can replace PIC16F628-04E/SO with the same footprint?
The PIC16F628-04E/SO in 18-SOIC can be directly replaced by PIC16F628-04I/SO (industrial temperature, same silicon), PIC16F628-20/SO (faster speed grade), PIC16F628A-I/SO (modernized silicon revision), and PIC16F628A-E/SO (automotive temperature, faster). All five devices share the same 18-pin SOIC footprint and pinout, making them drop-in alternatives at the PCB level.
Is PIC16F628-04E/SO the same as PIC16F628?
PIC16F628-04E/SO is a specific ordering code within the PIC16F628 family that decodes as: PIC16F628 (base family), 04 (4 MHz speed grade), E (-40C to +125C automotive temperature), SO (18-pin SOIC package). The plain 'PIC16F628' name on the Microchip product page covers the entire family; the '-04E/SO' suffix selects one specific variant out of about 8 ordering options in the family.
What are the key specifications of PIC16F628-04E/SO that engineers should know?
Key specifications for PIC16F628-04E/SO: 8-bit PIC mid-range RISC core, 3.5 KB flash, 224 B SRAM, 128 B EEPROM, 16 I/O pins, 4 MHz max clock, 4.5-5.5 V VDD, -40C to +125C operating range, 18-SOIC package, internal 4 MHz calibrated RC oscillator, two analog comparators with VREF, programmable BOD, watchdog timer with dedicated RC, and ICSP programming interface, per the Microchip 41141f datasheet.

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

Selection Guide

Choose the PIC16F628-04E/SO when you need an automotive-grade (-40C to +125C) 8-bit flash MCU in an 18-pin SOIC surface-mount package running up to 4 MHz, with on-chip EEPROM, programmable BOD, and an internal calibrated RC oscillator. This part is best for cost-sensitive automotive body controllers, sensor interface nodes, and industrial appliances where 4 MHz execution speed is sufficient. If your design runs above 4 MHz or requires a modernized silicon revision with active lifecycle, migrate to PIC16F628A-I/SO (industrial) or PIC16F628A-E/SO (automotive) - both share the same footprint. For new designs requiring extended lifecycle support, Microchip recommends PIC16F18444-I/SO as the modern replacement; the PIC16F628 family is now NRND with diminishing distributor stock.

Comparison with Alternatives

Parameter This Product PIC16F628-04/SO PIC16F628-04I/SO PIC16F628-20/SO PIC16F628A-I/SO PIC16F628A-E/SO PIC16F627-04I/SO
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Package 18-SOIC (SO) 18-SOIC (SO) - same 18-SOIC (SO) - same 18-SOIC (SO) - same 18-SOIC (SO) - same 18-SOIC (SO) - same 18-SOIC (SO) - same
Max Clock Speed 4 MHz 4 MHz 4 MHz 20 MHz 20 MHz 20 MHz 4 MHz
Program Memory 3.5 KB Flash 3.5 KB Flash 3.5 KB Flash 3.5 KB Flash 3.5 KB Flash 3.5 KB Flash 1.75 KB Flash
RAM 224 bytes 224 bytes 224 bytes 224 bytes 224 bytes 224 bytes 224 bytes
Operating Temperature -40C to +125C 0C to +70C -40C to +85C -40C to +85C -40C to +85C -40C to +125C -40C to +85C
Supply Voltage (VDD) 4.5 V to 5.5 V 4.5 V to 5.5 V 4.5 V to 5.5 V 4.5 V to 5.5 V 4.5 V to 5.5 V 4.5 V to 5.5 V 4.5 V to 5.5 V
I/O Pins 16 16 16 16 16 16 16
Lifecycle Status NRND NRND NRND NRND Active Active NRND

Key Differentiators

  • Automotive -40C to +125C temperature grade (vs PIC16F628-04I/SO)
  • Lowest-cost automotive PIC16 option (vs PIC16F628A-E/SO)
  • Full 3.5 KB program memory (vs PIC16F627-04I/SO)
  • Calibrated internal RC oscillator (vs PIC16F628-04E/P (PDIP variant))

Design Notes

The PIC16F628-04E/SO operates from a single 4.5 V to 5.5 V supply on VDD (pin 14) with VSS (pin 5) as ground. Place a 100 nF decoupling capacitor as close as possible to the VDD pin with a short trace to VSS, and add a 10 uF bulk capacitor at the board's supply entry. In noisy motor or relay environments, add a ferrite bead in series with VDD to suppress conducted noise; the on-chip POR, PWRT, and OST circuits require only that VDD rise monotonically and stay above 4.5 V within 72 ms for a clean reset.

When using an external crystal on pins 15 (OSC1) and 16 (OSC2), keep the traces short, symmetric, and surrounded by a ground pour to minimize stray capacitance. If the design uses the internal 4 MHz RC oscillator, leave OSC1/OSC2 as standard I/O (RA7/RB0 in some configurations) or float them with traces short to avoid coupling noise into the internal oscillator. Always provide a robust MCLR circuit - either a 10 kohm pull-up to VDD plus a 100 nF to ground for noise immunity, or use the internal MCLR configuration (CONFIG_MCLRE_OFF) to free the pin as RA3 input only.

Estimated: do not assume the '04' speed grade can be overclocked to 20 MHz - it is a tested spec at 4 MHz and timing violations above that are not characterized. Always set the configuration bits (FOSC, WDTE, PWRTE, BODEN, LVP) explicitly in source code; relying on factory defaults can leave LVP enabled and pin RB4 reserved for programming, blocking its use as general I/O. Finally, when migrating PIC16F628 firmware to PIC16F628A silicon, review Microchip migration document DS30292 because a few SFR addresses and interrupt vectors moved.

The PIC16F628-04E/SO's PORTB weak pull-ups (programmable individually) are typically rated at 50-400 uA - sufficient for switch debouncing but not for high-speed signal biasing. For analog comparator inputs (C1IN+/C1IN-), add a small RC filter (10 kohm + 100 pF) to reject RF interference above the comparator bandwidth. The USART pins (RB1/RB2) require their TRIS bits cleared for output or set for input; misconfigured TRIS is the most common cause of 'dead UART' symptoms on this device.

Compliance Information

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

RoHS compliant lead-free finish per Microchip product page. AEC-Q100 is a third-party automotive qualification; PIC16F628-04E/SO has an 'E' temperature grade (-40C to +125C) but Microchip does not separately certify this part to AEC-Q100 - it is 'automotive temperature grade' rather than 'automotive qualified'. Verify AEC-Q100 status separately for safety-critical automotive designs.

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

Related Searches

PIC16F628-04E/SO PIC16F628-04E/SO datasheet Microchip PIC16F628-04E/SO PIC16F628 automotive 8-bit MCU 18-SOIC PIC16 microcontroller PIC16F628 body control module PIC16F628-04E/SO vs PIC16F628A-I/SO PIC16F628-04E/SO drop-in replacement buy PIC16F628-04E/SO online PIC16F628 price qty 1000 what is the program memory of PIC16F628 PIC16F628 pinout 18-SOIC PIC16F628 ICSP programming PIC16F628 migration PIC16F628A automotive temperature grade MCU 8-bit

Related Components & Terms

Microchip Technology PIC16F628 PIC16F628-04E/SO PIC16F628A PIC16F627 PIC16F18444 PIC microcontroller 8-bit RISC core PIC16 mid-range family flash memory EEPROM data memory 18-SOIC SOIC package automotive temperature grade AEC-Q100 RoHS compliant lead-free finish ICSP in-circuit serial programming MPLAB X IDE XC8 compiler internal RC oscillator analog comparator module brown-out detect watchdog timer body control module appliance control
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