Microchip Technology

PIC16F628-04E/P - 8-Bit 4MHz PIC MCU, 3.5KB Flash | Microchip

MPN: PIC16F628-04E/P ✓ Active
In Stock Ships in 1-3 business days
3.0 V to 5.5 V Vdss 18-pin PDIP (P), through-hole Package 4 MHz / 4 MIPS (DC = 4 MHz) Speed 3.5 KB (2K x 14) Memory
From $2.55 USD / Unit
MOQ: 1 |
Price updated: 2026-09-20
Volume Pricing
Qty Unit Price Extended
1 $3.85 $3.85
10 $3.51 $35.10
100 $3.18 $318.00
500 $2.84 $1,420.00
1,000 $2.55 $2,550.00
ℹ️ All prices are in USD

PIC16F628-04E/P Overview

The Microchip Technology PIC16F628-04E/P is a FLASH-based 8-bit CMOS microcontroller from the PIC16F62X family, delivering up to 4 MIPS performance in an 18-pin PDIP through-hole package. The device integrates 3.5KB (2K x 14 words) of program Flash, 224 bytes of RAM, and 128 bytes of EEPROM data memory, all in a 35-instruction RISC core with only 35 single-word instructions to learn.

An 8-bit microcontroller (MCU) is a single-chip computer built around an 8-bit data path, optimized for embedded control tasks such as sensor reading, actuator driving, and protocol handling. Within the broader semiconductor taxonomy, MCUs belong to the microcontroller family -> embedded processor -> integrated circuit. The PIC16F62X mid-range family sits between Microchip's baseline PIC10/12/16 architectures and its enhanced PIC18 devices, providing a balance of low cost, deterministic interrupt handling, and easy migration across 6-to-100 pin packages.

Key features of the PIC16F628-04E/P include 16 programmable digital I/O pins, two analog comparators, a USART module, an internal 4 MHz RC oscillator, and a Capture/Compare/PWM (CCP) module. The on-chip peripherals reduce BOM cost and PCB area by eliminating external timing, communication, and comparator components. Brown-out Detect (BOD), Power-on Reset (POR), Power-up Timer (PWRT), Oscillator Start-up Timer (OST), and a Watchdog Timer (WDT) with its own dedicated RC oscillator ensure reliable operation in electrically noisy environments and during power transients.

The architecture uses a Harvard-design RISC core with separate program and data buses, allowing simultaneous instruction fetch and operand access. The wide operating voltage range of 3.0V to 5.5V (the "-04E" extended temperature grade spans -40C to +125C) makes the device suitable for industrial, automotive aftermarket, and consumer products where supply rails vary and temperature swings are wide.

Typical applications include HVAC thermostat control, small appliance motor control, remote sensor nodes, lighting controllers, security keypads, and low-cost industrial sensor interfaces. The combination of on-chip EEPROM and USART allows engineers to add calibration data storage and wired serial communication without an external EEPROM or transceiver IC.

When designing with this part, ensure the MCLR pin is tied to VDD through the recommended 10 kohm pull-up if hardware reset is not required, and verify that the chosen 4 MHz instruction rate (DC = 4 MHz spec; the "04" suffix) matches the timing budget; the "20" speed-grade variant runs up to 20 MHz / 5 MIPS for time-critical loops.

This page synthesizes distributor pricing, drop-in 18-PDIP alternatives (same package, pin-to-pin compatible), and practical design notes not consolidated on the manufacturer datasheet or single distributor listing.

Drop-in alternatives for PIC16F628-04E/P — 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/P (same form factor and footprint) — differing in Core Architecture, I/O Pins, Operating Temperature, Package, RoHS Status.

Microchip Technology
Core Architecture: 8-bit PIC RISC, Harvard
I/O Pins: 11
Operating Temperature: -40C to +125C (/E industrial extended grade)
Microchip Technology
Core Architecture: PIC16 enhanced mid-range 8-bit RISC
Operating Temperature: 0C to +70C (commercial)
Package: 18-pin PDIP (DIP-18)
Microchip Technology
I/O Pins: 16 digital I/O
Operating Temperature: -40°C to +85°C (industrial)
Package: 18-pin SOIC (SO)
Microchip Technology
Core Architecture: PIC16 RISC, 8-bit, Harvard
I/O Pins: 16 (PORTA + PORTB)
Operating Temperature: -40C to +85C (industrial), 0C to +70C (commercial)
Microchip Technology
Core Architecture: 8-bit PIC16 mid-range RISC
I/O Pins: 16
Operating Temperature: -40C to +125C (E suffix)

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

PIC16F628-04/P

✅ Drop-In
Microchip Technology
📦 18-pin PDIP
PIC16 enhanced mid-range 8-bit RISC · 35 single-word instructions · 3.5 KB Flash (2K x 14 words) · 224 bytes · 128 bytes · 4 MHz · 200 ns at 4 MHz · 3.0 V to 5.5 V (typical 4.5 V to 5.5 V at full speed)

✓ In Stock

$2.35 / Unit

View Datasheet →

PIC16F628-04I/P

✅ Drop-In
Microchip Technology
📦 18-pin PDIP
PIC16 (8-bit RISC) · 3.5 KB (2K x 14) Flash · 224 bytes · 128 bytes · 4 MHz · 3.0 V to 5.5 V · 16 · 1 x 8-bit (Timer0), 1 x 16-bit (Timer1), 1 x 8-bit (Timer2)

✓ In Stock

$2.16 / Unit

View Datasheet →

PIC16F628-20/P

✅ Drop-In
Microchip Technology
📦 18-pin PDIP
PIC16 RISC, 8-bit, Harvard · 20 MHz · 200 ns · 3.5 KB (2K x 14) · 224 bytes · 128 bytes · 16 (PORTA + PORTB) · 3.0 V to 5.5 V

✓ In Stock

$1.96 / Unit

View Datasheet →

PIC16F628-04/SO

✅ Drop-In
Microchip Technology
📦 18-pin SOIC
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-04E/P

✅ Drop-In ⚠️ 参数待验证
Microchip Technology
📦 18-pin PDIP
8-bit PIC RISC, Harvard · PIC16F62X (PIC16F627/628/648) · 1.75 KB Flash (1K x 14) · 224 bytes · 128 bytes · 14-bit · 35 · 200 ns at 20 MHz (4 MHz oscillator at /04 speed grade)

✓ In Stock

$1.85 / Unit

View Datasheet →

PIC16F628-04E/P Maximum Ratings & Electrical Characteristics

Core Architecture PIC16 RISC, 8-bit Harvard
Instruction Set Width 14-bit
Number of Instructions 35 single-word
Program Memory (Flash) 3.5 KB (2K x 14)
RAM 224 bytes
EEPROM Data Memory 128 bytes
Maximum CPU Speed 4 MHz / 4 MIPS (DC = 4 MHz)
Operating Voltage Range 3.0 V to 5.5 V
I/O Pins 16 programmable
Operating Temperature Range (E suffix) -40 C to +125 C (extended)
Package 18-pin PDIP (P), through-hole
On-chip Peripherals USART, 2x analog comparators, 1x CCP, internal 4 MHz oscillator
Reset / Brown-out POR, PWRT, OST, BOD, WDT with dedicated RC oscillator
RoHS Status Compliant
Tube Quantity 25 per tube

PIC16F628-04E/P Pin Configuration

DIP-18 Package Pinout Diagram DIP-18 18-pin dual inline, 7.62mm pitch, JEDEC MS-001. 1 18 2 17 3 16 4 15 5 14 6 13 7 12 8 11 9 10 DIP-18
Pin 1 RA2/AN2/CVREF — Digital I/O port A bit 2 / analog comparator reference / VREF output
Pin 2 RA3/AN3/C1OUT — Digital I/O port A bit 3 / comparator 1 output
Pin 3 RA4/AN4/TOCKI — Digital I/O port A bit 4 / Timer0 clock input (open-drain)
Pin 4 MCLR/VPP — Master Clear reset input / programming voltage input
Pin 5 VSS — Ground reference
Pin 6 RB0/INT — Digital I/O port B bit 0 / external interrupt
Pin 7 RB1/RX/DT — Digital I/O port B bit 1 / USART RX or data
Pin 8 RB2/TX/CK — Digital I/O port B bit 2 / USART TX or clock
Pin 9 RB3/CCP1 — Digital I/O port B bit 3 / CCP1 module
Pin 10 RB4/PGM — Digital I/O port B bit 4 / LVP programming
Pin 11 RB5 — Digital I/O port B bit 5
Pin 12 RB6/T1OSO/T1CKI — Digital I/O port B bit 6 / Timer1 oscillator output or clock input
Pin 13 RB7/T1OSI — Digital I/O port B bit 7 / Timer1 oscillator input
Pin 14 VDD — Positive supply voltage (3.0 V to 5.5 V)
Pin 15 OSC2/CLKOUT — Oscillator crystal output / CLKOUT
Pin 16 OSC1/CLKIN — Oscillator crystal input / external clock input
Pin 17 RA0/AN0 — Digital I/O port A bit 0 / analog comparator channel 0
Pin 18 RA1/AN1 — Digital I/O port A bit 1 / analog comparator channel 1

Typical Applications

PIC16F628-04E/P is suitable for 6 applications: HVAC Thermostat Control, Small Appliance Motor Control, Lighting Controller / DMX Receiver, Security Keypad / Access Control, Industrial Sensor Interface / 4-20 mA Transmitter, Remote Sensor Node / Battery Logger.

🏭

HVAC Thermostat Control

The PIC16F628-04E/P fits HVAC thermostat control because its 4 MHz instruction rate, 16 digital I/O, and extended -40 C to +125 C temperature grade cover wall-mounted thermistor inputs, relay drivers, and 7-day scheduling without external ADC. The internal 4 MHz RC oscillator eliminates an external crystal, while 128 B of EEPROM stores user setpoints and calibration across power cycles. Brown-out Detect and the Power-up Timer prevent relay chattering during brown-out events common to HVAC wiring. Compared with newer PIC16F1xxx, the PIC16F628-04E/P provides the proven mid-range core many HVAC firmware libraries are written for, simplifying code reuse.

Small Appliance Motor Control

The PIC16F628-04E/P suits small appliance motor control thanks to its CCP (Capture/Compare/PWM) module, two analog comparators for current sensing, and 16 I/O for H-bridge enable, brake, and tachometer feedback. The 1 MIPS instruction rate comfortably drives brushed-DC commutation at typical small-appliance RPMs while keeping EMI low versus a 20 MHz core. The 3.0 V to 5.5 V supply range lets the same PCB work from 4x AA or rectified mains-derived 5 V rails. Combined with Watchdog Timer and Brown-out Detect, the device recovers cleanly from supply droops caused by motor inrush, ensuring appliance longevity.

💡

Lighting Controller / DMX Receiver

The PIC16F628-04E/P integrates a hardware USART that runs DMX-512 at 250 kbaud with negligible CPU overhead, freeing the 4 MIPS core for scene logic. Its 16 programmable I/O can drive multiple LED channels via shift registers while monitoring zero-cross detectors for TRIAC dimming. The 128-byte EEPROM allows user-defined scenes and dim curves to persist across power cycles without an external memory IC. The extended -40 C to +125 C temperature grade supports outdoor architectural lighting installations and stage lighting cabinets. Compared with bit-banged DMX on lower-end MCUs, the PIC16F628-04E/P's USART eliminates jitter and dropped frames.

🎥

Security Keypad / Access Control

The PIC16F628-04E/P is well suited to security keypad and access control products because its 128-byte EEPROM stores PIN codes and audit logs non-volatilely, and its 16 I/O scan up to a 4x4 matrix without external logic. The internal 4 MHz RC oscillator trims BOM cost versus a crystal, while POR/PWRT/BOD guard against code execution from corrupted memory after power tampering. The USART enables Wiegand or RS-485 connection to a central access panel. The extended -40 C to +125 C temperature grade lets the same keypad firmware serve indoor office and outdoor gate-mount installations, with the same firmware binary.

🏭

Industrial Sensor Interface / 4-20 mA Transmitter

The PIC16F628-04E/P works as the brain of a loop-powered 4-20 mA transmitter: its two analog comparators sense loop current, its 16-bit CCP plus timer chain synthesizes the loop current via PWM-filtered DAC, and its 128 B EEPROM holds calibration constants. The wide 3.0 V to 5.5 V supply range lets the same design operate from a 24 V loop with on-board regulation. The extended -40 C to +125 C temperature grade supports industrial sensor field cabinets. Compared with 32-bit ARM Cortex-M0 alternatives, the PIC16F628-04E/P's 35-instruction RISC core is easier to verify for functional-safety pre-qualification in sensor applications.

🔋

Remote Sensor Node / Battery Logger

The PIC16F628-04E/P supports remote battery-powered sensor logging with sleep current below 1 uA (SLEEP mode, WDT active), 128 B EEPROM for non-volatile sample history, and USART for wake-on-serial data dumps. The internal 4 MHz RC avoids a power-hungry external crystal oscillator, extending battery life in field-deployed loggers. The 3.0 V to 5.5 V range supports 2x AA (3 V) or lithium-thionyl-chloride (3.6 V) primary cells without boost converter. The extended -40 C to +125 C grade enables outdoor weather stations and refrigerated-chain cold loggers from the same firmware binary.

Recommended Products Summary

PIC16F628-04I/P Industrial temp variant for indoor thermostats Used in: HVAC Thermostat Control, Lighting Controller / DMX Receiver, Security Keypad / Access Control, Industrial Sensor Interface / 4-20 mA Transmitter, Remote Sensor Node / Battery Logger PIC16F628-20/P Microchip Technology Used in: HVAC Thermostat Control, Small Appliance Motor Control, Security Keypad / Access Control, Remote Sensor Node / Battery Logger PIC16F88-I/P 10-bit ADC variant for analog tachometer feedback Used in: Small Appliance Motor Control PIC16F628-04/P Microchip Technology Used in: Lighting Controller / DMX Receiver, Industrial Sensor Interface / 4-20 mA Transmitter
What is the program memory size of the PIC16F628-04E/P?
The PIC16F628-04E/P integrates 3.5 KB (2K x 14 words) of Flash program memory on-chip. According to the Microchip PIC16F62X datasheet, the device also provides 224 bytes of SRAM and 128 bytes of EEPROM for non-volatile data storage. This memory mix is typical of mid-range PIC16F62X MCUs and is sufficient for small control loops, sensor conditioning, and serial-protocol firmware.
What is the maximum CPU clock and instruction execution rate of PIC16F628-04E?
The "-04" suffix designates a 4 MHz / 4 MIPS maximum instruction rate; each instruction executes in 4 oscillator clocks, so a 4 MHz oscillator yields 1 MIPS, and the internal 4 MHz RC provides up to 1 MIPS. For timing-critical loops, the PIC16F628-20 speed-grade variant supports 20 MHz / 5 MIPS in the same 18-pin PDIP. Engineers select the -04 grade when cost and EMI matter more than instruction throughput.
What is the operating voltage and temperature range of PIC16F628-04E/P?
The PIC16F628-04E/P operates from 3.0 V to 5.5 V across an extended industrial temperature range of -40 C to +125 C, indicated by the "E" suffix. Per the Microchip PIC16F62X datasheet, the wide voltage range simplifies designs powered by unregulated supplies such as 4x AA batteries or rectified 5 V rails. The "I" suffix variant has the same VDD range but is rated -40 C to +85 C (industrial).
Where can I buy the PIC16F628-04E/P online?
The PIC16F628-04E/P can be purchased from major franchised distributors including DigiKey, Mouser, Arrow, and Microchip Direct. According to distributor listings as of 2026-09-21, distributor inventory fluctuates because the part is mature; lead time for non-stocked quantities is typically 6-10 weeks through Microchip Direct. Always verify lot date code and country of origin when sourcing through independent brokers.
What is the price of PIC16F628-04E/P in 100-piece quantity?
As of 2026-09-21, the PIC16F628-04E/P lists for approximately USD 3.18 in 100-piece quantity on DigiKey and Mouser, with a 1-piece unit price around USD 3.85 and 1,000-piece pricing near USD 2.55. Volume pricing through Microchip Direct can be lower for production schedules above 5,000 pieces. Pricing is subject to change; request a fresh quote before placing a PO.
What is the lead time for PIC16F628-04E/P?
Lead time for the PIC16F628-04E/P is typically 6-10 weeks from Microchip Direct when not stocked at franchised distributors (as of 2026-09-21). The PIC16F62X family remains in active production but is no longer a recommended new-design part for cost-sensitive designs; lead times are longer than for the PIC16F1xxx successor family. For prototype work, distributors may ship from shelf stock same-day.
Is the PIC16F628-04E/P in stock at distributors?
Stock status for the PIC16F628-04E/P varies; franchised distributors such as DigiKey and Mouser typically carry several thousand pieces, but availability fluctuates because the device is a mature 8-bit part. Per distributor inventory as of 2026-09-21, lead time on non-stocked orders is 6-10 weeks via Microchip Direct. For production volumes, place orders through Microchip Direct with a scheduled release.
What is the difference between PIC16F628-04E/P and PIC16F628-04/P?
The PIC16F628-04E/P and PIC16F628-04/P share the same die, 18-pin PDIP package, 3.5 KB Flash, 4 MHz instruction rate, and pinout. The "E" suffix denotes the extended operating temperature grade of -40 C to +125 C; the standard (no E, no I) variant typically rates 0 C to +70 C, and the "I" industrial variant rates -40 C to +85 C. Choose the "E" version for outdoor, automotive-aftermarket, or industrial-environment products.
What is the difference between PIC16F628-04E/P and PIC16F628-20/P?
Both parts share the same 3.5 KB Flash, 224 B RAM, and 18-pin PDIP pinout, but differ in maximum instruction rate: the PIC16F628-04E/P runs up to 4 MHz / 1 MIPS internally, while the PIC16F628-20 supports 20 MHz / 5 MIPS with an external crystal. Per Microchip datasheet, the -04 grade is firmware-compatible with the -20 grade, so you can prototype on -04 and migrate to -20 for production with no code change.
When should I choose PIC16F628 over PIC16F88 or PIC16F1xxx?
Choose the PIC16F628-04E/P for legacy maintenance, cost-sensitive designs, and environments needing the extended -40 C to +125 C temperature range without the cost of a newer part. Select the PIC16F88 if you need 10-bit ADC and nanoWatt technology; select the PIC16F1xxx family (e.g., PIC16F1829) for new designs requiring ADC, PWM, and active oscillator tuning with a familiar 18-pin footprint. The PIC16F628 remains drop-in for existing boards.
Is there a PIC16F628-04E/P equivalent from another manufacturer?
There is no cross-brand pin-compatible drop-in replacement for the PIC16F628-04E/P in the 18-pin PDIP footprint. Competing 8-bit MCUs such as the Atmel ATmega8 or NXP LPC810 require PCB rework (different package and pinout) and a different toolchain (AVR vs PIC vs ARM). For a true drop-in replacement, stay within the Microchip PIC16 family: PIC16F628-04/P, PIC16F628-04I/P, or PIC16F628-20/P share the same 18-pin PDIP footprint.
What is the best drop-in replacement for PIC16F628-04E/P?
The best drop-in replacements for the PIC16F628-04E/P in the same 18-pin PDIP footprint are the PIC16F628-04/P (standard temp grade, 0 C to +70 C), PIC16F628-04I/P (industrial, -40 C to +85 C), and PIC16F628-20/P (5 MIPS instead of 1 MIPS). All three share identical pinout, Flash size, RAM, and peripheral set; only the temperature grade or maximum clock differs. They are interchangeable firmware-wise.
Where to download the PIC16F628-04E/P datasheet PDF?
The official PIC16F628-04E/P datasheet is available as a free PDF download from the Microchip website. The datasheet covers the entire PIC16F62X family (PIC16F627 and PIC16F628) and includes electrical characteristics, timing diagrams, instruction set reference, and 18-pin PDIP/SSOP/SOIC package drawings. Microchip also publishes MPLAB XC8 compiler documentation and PICkit programmer compatibility notes alongside the datasheet.
Where to find the PIC16F628-04E/P pinout diagram?
The PIC16F628-04E/P pinout is documented in the Microchip PIC16F62X datasheet on page corresponding to the 18-pin PDIP package drawing. The standard pinout assigns RA0-RA7 to pins 1-8 and 17-18, RB0-RB7 to pins 8-13 (overlaps), with MCLR on pin 4, VDD on pin 14, and VSS on pin 5. For a printable diagram, refer to the datasheet or the XAIPART package-diagram asset bundled with this product page.
What are the key specifications of PIC16F628-04E/P that engineers should know?
The PIC16F628-04E/P is an 8-bit Microchip PIC16 RISC MCU featuring 3.5 KB Flash, 224 B RAM, 128 B EEPROM, 16 programmable I/O, two analog comparators, USART, CCP module, and an internal 4 MHz oscillator. It operates from 3.0 V to 5.5 V across -40 C to +125 C, delivers up to 4 MIPS at 4 MHz, and integrates POR/PWRT/OST/BOD/WDT for robust reset behaviour. All of this is packaged in an 18-pin PDIP with a 25-piece tube quantity for prototyping convenience.
Hey Google, what can replace PIC16F628-04E/P on the same PCB?
For same-PCB replacement of the PIC16F628-04E/P, stay in the Microchip PIC16F628 family because there is no cross-brand pin-compatible part in the 18-pin PDIP footprint. The PIC16F628-04/P (0 C to +70 C), PIC16F628-04I/P (-40 C to +85 C), and PIC16F628-20/P (5 MIPS) all share identical pinout, Flash, RAM, and peripherals. Programmed firmware runs on each without modification. Check temperature grade and clock rate before swapping.
What is the difference between PIC16F627 and PIC16F628?
The PIC16F627 and PIC16F628 share the same 35-instruction RISC core, 18-pin PDIP footprint, and peripheral set; the PIC16F628 doubles the program memory (3.5 KB Flash vs 1.75 KB Flash) and adds 128 bytes of EEPROM data memory. The PIC16F627 has 224 bytes RAM but no on-chip EEPROM. Both devices use the same datasheet (PIC16F62X) and are firmware-compatible. Choose PIC16F628 for designs that need EEPROM-backed parameter storage.

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

Selection Guide

Choose the PIC16F628-04E/P when you need an 8-bit Microchip MCU in the proven PIC16F62X family with extended -40 C to +125 C temperature grade, internal 4 MHz RC oscillator, and 18-pin PDIP through-hole footprint. Pick the PIC16F628-04/P for commercial 0 C to +70 C products, the PIC16F628-04I/P for indoor industrial -40 C to +85 C, and the PIC16F628-20/P for 20 MHz / 5 MIPS throughput in timing-critical loops. For new designs requiring ADC, nanoWatt technology, or more peripherals, migrate to the PIC16F1xxx family (e.g., PIC16F1829). The PIC16F627-04E/P is a memory-reduced alternative when 1.75 KB Flash is sufficient and EEPROM is not needed.

Comparison with Alternatives

Parameter This Product PIC16F628-04/P PIC16F628-04I/P PIC16F628-20/P PIC16F628-04/SO PIC16F627-04E/P
Package 18-pin PDIP 18-pin PDIP - same 18-pin PDIP - same 18-pin PDIP - same 18-pin SOIC - same electrical, surface-mount 18-pin PDIP - same
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Program Flash 3.5 KB 3.5 KB 3.5 KB 3.5 KB 3.5 KB 1.75 KB (-50%)
Maximum Clock 4 MHz / 1 MIPS 4 MHz / 1 MIPS 4 MHz / 1 MIPS 20 MHz / 5 MIPS (+400%) 4 MHz / 1 MIPS 4 MHz / 1 MIPS
Operating Temperature -40 C to +125 C (E) 0 C to +70 C (commercial) -40 C to +85 C (industrial) -40 C to +85 C typical (industrial) -40 C to +125 C (E) typical -40 C to +125 C (E)
EEPROM 128 B 128 B 128 B 128 B 128 B 0 B (no EEPROM)
RAM 224 B 224 B 224 B 224 B 224 B 224 B
Operating Voltage 3.0 V to 5.5 V 3.0 V to 5.5 V 3.0 V to 5.5 V 3.0 V to 5.5 V 3.0 V to 5.5 V 3.0 V to 5.5 V
On-chip USART Yes Yes Yes Yes Yes Yes
RoHS Compliant Compliant Compliant Compliant Compliant Compliant

Key Differentiators

  • Extended -40 C to +125 C operating temperature grade on the E suffix variant (vs PIC16F628-04/P)
  • Internal 4 MHz RC oscillator eliminates external crystal cost (vs PIC16F628-20/P)
  • Doubles program memory and adds 128-byte EEPROM vs PIC16F627 (vs PIC16F627-04E/P)

Design Notes

PIC16F628-04E/P brown-out reset (BOD) is configured via configuration bits at programming time; typical BOD threshold settings range from 2.0 V to 4.5 V. For designs powered from unregulated supplies (rectified mains or USB), enable BOD with a 4.0 V threshold to prevent code execution from corrupted memory below VDD(min). The PWRT adds a 72 ms nominal startup delay before code runs, allowing VDD to stabilize. Always verify the BOD threshold vs the minimum supply rail during power-cuts.

Never leave the MCLR pin floating; tie MCLR to VDD through a 10 kohm resistor (or direct connection if hardware reset is unused) and place a 100 nF decoupling capacitor close to the VDD pin (pin 14). Floating MCLR causes spurious resets in industrial installations with long PCB traces. Watchdog Timer must be disabled in configuration bits if unused, or software must periodically clear the WDT - otherwise the MCU will reset unexpectedly. Note that PORTB weak pull-ups must be enabled via the RBPU bit for matrix-keypad inputs to read high reliably.

Place a 100 nF decoupling capacitor within 5 mm of the VDD pin (14) and the VSS pin (5). For designs using an external crystal, keep crystal traces short (<10 mm) and surround with a ground pour. The 18-pin PDIP through-hole footprint accepts a 2.54 mm (0.1 inch) pitch pin header, simplifying hand-wired prototypes; the 18-pin SOIC equivalent saves PCB area but requires reflow soldering. For high-noise environments, add a ferrite bead between VDD and the decoupling capacitor to suppress switching regulator noise.

The PIC16F628-04E/P draws approximately 2 mA active at 4 MHz / 5 V and 1 uA in SLEEP mode (WDT disabled); thermal dissipation is negligible at these currents, and no thermal management is required. Estimated: at 5 V x 2 mA, power dissipation is ~10 mW, well within the 18-pin PDIP thermal envelope. Use SLEEP mode aggressively in battery-powered designs - a sensor logger waking once per minute reduces average current to under 100 uA, extending coin-cell battery life to multi-year timeframes.

Compliance Information

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

RoHS compliant per Microchip product page; lead-free 18-pin PDIP package. Not AEC-Q100 qualified - the PIC16F62X family pre-dates automotive-grade qualification programs. For automotive applications, use AEC-Q100-qualified PIC16F1xxx successors or contact Microchip for PPAP packages.

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

Related Searches

PIC16F628-04E/P PIC16F628-04E/P datasheet Microchip PIC16F628 8-bit PIC microcontroller 18-pin PDIP PIC16F628 3.5KB flash 224 RAM 128 EEPROM PIC16F628-04E/P extended temperature -40 to +125 PIC16F628 HVAC thermostat MCU PIC16F628 vs PIC16F627 PIC16F628-04E/P drop-in replacement PIC16F628 buy price 100 pieces what is the program memory size of PIC16F628 PIC16F628-04E/P lead time distributor PIC16F628 USART DMX receiver PIC16F62X family pinout diagram PIC16F628 industrial sensor node

Related Components & Terms

Microchip Technology PIC16F628 PIC16F628-04E/P PIC16F628-04/P PIC16F628-04I/P PIC16F628-20/P PIC16F627-04E/P PIC16F62X 8-bit microcontroller MCU RISC PIC16 core Flash memory EEPROM Harvard architecture CCP module USART analog comparator Brown-out Detect (BOD) Watchdog Timer (WDT) Power-on Reset (POR) PDIP-18 RoHS REACH HVAC thermostat DMX-512 4-20 mA transmitter
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