Microchip Technology

PIC16LF628-04I/P - 4MHz 8-bit Flash MCU, 18-PDIP | Microchip

MPN: PIC16LF628-04I/P ✓ Active
In Stock Ships in 1-3 business days
2.0 V to 5.5 V Vdss 18-pin PDIP (P) Package 4 MHz Speed 3.5 KB (2K x 14) Memory
From $1.95 USD / Unit
MOQ: 1 |
Price updated: 2026-09-25
Volume Pricing
Qty Unit Price Extended
1 $3.65 $3.65
10 $3.28 $32.80
100 $2.78 $278.00
500 $2.45 $1,225.00
1,000 $2.18 $2,180.00
3,000 $1.95 $5,850.00
ℹ️ All prices are in USD

PIC16LF628-04I/P Overview

The Microchip Technology PIC16LF628-04I/P is an 8-bit Flash-based CMOS microcontroller from the mid-range PIC16 family, packaged in a 18-pin PDIP (through-hole) tube format. It features 3.5 KB (2K x 14) of Flash program memory, 224 bytes of RAM, and 128 bytes of EEPROM data memory, all driven by a RISC architecture executing 35 single-word instructions in 200 ns. Operating at 4 MHz maximum clock speed, the LF variant supports a wide 2.0V to 5.5V supply range suited to battery-powered and 3.3V designs, while offering 16 digital I/O pins with individual direction control and high-current sink/source for direct LED drive.

A microcontroller (MCU) is a single-chip computer integrating a processor core, program memory, data memory, and programmable I/O peripherals. The PIC16LF628 sits within Microchip's mid-range 14-bit PIC family, which sits hierarchically inside the broader 8-bit PIC architecture, itself a subset of the broader microcontroller category of embedded computing ICs. The integrated EEPROM and Flash allow field-upgradeable firmware storage without external memory.

Key features include a Power-on Reset (POR), Power-up Timer (PWRT) and Oscillator Start-up Timer (OST), Brown-out Detect (BOD) for safe low-voltage operation, and a Watchdog Timer (WDT) with its own on-chip RC oscillator for reliable operation. Two analog comparators with a programmable on-chip voltage reference and input multiplexing enable signal-conditioning tasks without external analog ICs. The device also offers an internal 4 MHz RC oscillator, programmable weak pull-ups on PORTB, and a multiplexed MCLR pin.

The PIC16LF628 is fabricated on a low-power CMOS process, with nanoWatt-style power management extending battery life in standby. Program memory endurance is rated for typical Flash write/erase cycles per Microchip specifications, while EEPROM endurance supports separate write-cycle ratings. The instruction set is fully compatible with the PIC16 mid-range family, easing code portability to larger pin-count siblings.

Typical applications include industrial control logic, appliance controls, sensor signal conditioning, low-power remote controls, battery-powered instrumentation, and small consumer electronics where a small through-hole footprint is desirable for hand-prototyping or service-replaceable modules. Designers often choose the PDIP package for development boards and field-replaceable modules where socketed installation simplifies firmware iteration.

When designing with this device, allocate pins carefully: the ICSP clock and data pins are multiplexed with PORTB, so any in-circuit programmer must be considered when laying out ISP headers. Confirm the LF voltage range covers your battery's end-of-life voltage, and budget decoupling capacitance near VDD. This page synthesizes distributor pricing, drop-in alternatives, and practical design notes not found in the manufacturer datasheet alone.

Drop-in alternatives for PIC16LF628-04I/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 PIC16LF628-04I/P (same form factor and footprint) — differing in Operating Temperature, Package, Analog Comparators, Core Architecture, Internal Oscillator.

Microchip Technology
Operating Temperature: -40 C to +85 C (I-grade)
Analog Comparators: 2
Core Architecture: PIC16F RISC, 14-bit instruction word, Harvard
Microchip Technology
Operating Temperature: -40 C to +85 C (Industrial)
Package: 18-pin PDIP (Plastic DIP)
Core Architecture: PIC16 (8-bit RISC, 14-bit instruction word)
Microchip Technology
Operating Temperature: -40 C to +85 C (Industrial)
Package: 18-pin PDIP (0.300 inch, 7.62mm)
Analog Comparators: 2 with programmable reference

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

PIC16LF628A-I/P

✅ Drop-In
Microchip Technology
📦 18-PDIP
8-bit PIC RISC · 35 single-word instructions · 3.5 KB Flash (2K x 14) · 224 bytes · 128 bytes · 20 MHz · 200 ns · 2.0 V to 5.5 V

✓ In Stock

$1.84 / Unit

View Datasheet →

PIC16LF628-04/P

✅ Drop-In
📦 18-PDIP
same die, same 18-PDIP package, commercial temperature range 0C to +70C vs -40C to +85C industrial (10-20% narrower temp range)

📋 Reference alternative (not in catalog)

PIC16LF627-04I/P

✅ Drop-In
Microchip Technology
📦 18-PDIP
PIC16F RISC, 14-bit instruction word, Harvard · 1.75 KB (1K x 14) · 224 bytes · 128 bytes · 4 MHz (04 speed variant) · 2.0 V to 3.6 V (LF process) · 16 · 10-bit, multiplexed with I/O

✓ In Stock

$1.23 / Unit

View Datasheet →

PIC16LF627A-I/P

✅ Drop-In
Microchip Technology
📦 18-PDIP
PIC16 (8-bit RISC, 14-bit instruction word) · Flash · 1.75 KB (1K x 14 words) · 224 bytes · 128 bytes · 20 MHz (200 ns instruction cycle) · 4 MHz (selectable, calibrated) · 2.0 V to 5.5 V

✓ In Stock

$2 / Unit

View Datasheet →

PIC16F628-04I/P

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

PIC16LF628-04I/P Maximum Ratings & Electrical Characteristics

Product Type 8-bit Microcontroller (MCU)
Series PIC16LF628
Architecture PIC RISC (mid-range 14-bit)
Program Memory (Flash) 3.5 KB (2K x 14)
RAM 224 bytes
EEPROM 128 bytes
Maximum Clock Speed 4 MHz
Instruction Execution Time 200 ns
Instruction Set 35 single-word instructions
Supply Voltage (VDD) 2.0 V to 5.5 V
Number of I/O Pins 16
Analog Comparators 2 (with programmable VREF)
Package 18-pin PDIP (P)
Mounting Type Through-Hole
Operating Temperature -40C to +85C (Industrial)
Brown-out Detect (BOD) Yes
Watchdog Timer (WDT) Yes (with dedicated on-chip RC oscillator)
In-Circuit Serial Programming (ICSP) Yes
RoHS Status Compliant

PIC16LF628-04I/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/VREF — Port A bit 2 / analog input / voltage reference
Pin 2 RA3/AN3/CMP1 — Port A bit 3 / analog input / comparator 1 output
Pin 3 RA4/T0CKI/CMP2 — Port A bit 4 / Timer 0 clock input / comparator 2 output
Pin 4 RA5/MCLR/VPP — Port A bit 5 / master clear (reset) / programming voltage
Pin 5 VSS — Ground reference
Pin 6 RB0/INT — Port B bit 0 / external interrupt
Pin 7 RB1/RX/DT — Port B bit 1 / USART RX / data
Pin 8 RB2/TX/CK — Port B bit 2 / USART TX / clock
Pin 9 RB3/CCP1 — Port B bit 3 / Capture/Compare/PWM 1
Pin 10 RB4/PGM — Port B bit 4 / low-voltage programming
Pin 11 RB5 — Port B bit 5
Pin 12 RB6/PGC — Port B bit 6 / ICSP clock
Pin 13 RB7/PGD — Port B bit 7 / ICSP data
Pin 14 VDD — Positive supply voltage (2.0V to 5.5V)
Pin 15 OSC2/CLKOUT — Oscillator output / clock out
Pin 16 OSC1/CLKIN — Oscillator input / clock in
Pin 17 RA0/AN0 — Port A bit 0 / analog input 0
Pin 18 RA1/AN1 — Port A bit 1 / analog input 1

Typical Applications

PIC16LF628-04I/P is suitable for 6 applications: Industrial Control Logic, Battery-Powered Sensor Modules, Appliance and HVAC Controls, Remote Control and Consumer Handhelds, Educational and Prototyping Boards, Automotive Interior Accessories.

🏭

Industrial Control Logic

The PIC16LF628-04I/P fits industrial control logic applications thanks to its 16 bidirectional I/O pins with high-current sink/source and 2.0V-5.5V operation, enabling direct interfacing with 24V industrial sensors via external protection resistors. The two on-chip analog comparators with programmable VREF handle threshold detection for limit switches and analog process signals without an external comparator IC. Its 3.5 KB Flash and 128-byte EEPROM support real-time control loops plus calibration storage. Brown-out detect and watchdog timer with dedicated on-chip RC oscillator ensure reliable operation in electrically noisy factory environments. The through-hole 18-PDIP package also simplifies field-replacement in legacy machinery.

📱

Battery-Powered Sensor Modules

The LF variant's 2.0V to 5.5V operating range makes the PIC16LF628-04I/P ideal for battery-powered sensor modules powered by 2xAA cells, single Li-ion, or coin-cell packs. The on-chip 4 MHz RC oscillator eliminates external crystal cost and quiescent current, while 224 bytes RAM and 128 bytes EEPROM provide storage for sensor calibration coefficients and last-known-state retention across battery swaps. Brown-out detect ensures predictable shutdown before lockup, critical in battery end-of-life scenarios. The 16 I/O pins interface directly with low-power sensors and radios, while nanoWatt-style idle modes extend operational life in duty-cycled wake-and-transmit applications common in wireless sensor networks.

🏭

Appliance and HVAC Controls

The PIC16LF628-04I/P is well-suited for appliance and HVAC control subsystems where its 16 high-current I/O pins can directly sink LED indicators, relay coils, and triac drivers without buffer transistors. Two analog comparators enable thermostat input signal conditioning from thermistor bridges, with programmable on-chip VREF replacing external zener-diode reference circuits. The 3.5 KB Flash holds state-machine firmware for compressor sequencing, defrost timing, and user-interface handling, while 128 bytes EEPROM preserves user setpoints across power cycles. Industrial temperature range (-40C to +85C) supports garage, basement, and outdoor appliance environments, and the 18-PDIP package fits legacy through-hole control board layouts.

🎧

Remote Control and Consumer Handhelds

The PIC16LF628-04I/P serves compact remote control and consumer handheld designs, leveraging its 2.0V-5.5V operation for direct battery drive and on-chip RC oscillator for low-cost BOM. Its 16 I/O pins interface directly to key matrices, IR LEDs, and low-power RF modules, while the two analog comparators can demodulate IR receiver modules without external circuitry. The 35-instruction RISC core executes user-button decoding, IR protocol generation, and RF packet handling within the 3.5 KB Flash budget. EEPROM storage retains pairing codes and user preferences, and the industrial temperature range tolerates automotive cabin and outdoor environments typical of universal remote controls.

🔧

Educational and Prototyping Boards

The PIC16LF628-04I/P's 18-pin PDIP through-hole package is well-matched to educational and prototyping boards, where DIP sockets simplify device insertion, removal, and reuse across student labs. The ICSP interface via RB6/RB7 enables in-circuit programming without removing the chip from the breadboard, accelerating firmware iteration. With 3.5 KB Flash, 224 bytes RAM, and 35 single-word instructions, the device offers a manageable complexity tier for teaching embedded C and assembly concepts. Brown-out detect, watchdog timer, and interrupt handling cover core MCU pedagogy topics, while the 2.0V-5.5V range lets students experiment with both 3.3V and 5V logic levels on the same board.

🚗

Automotive Interior Accessories

The PIC16LF628-04I/P supports non-safety automotive interior accessories such as interior lighting controllers, seat-position memories, and dashboard accessory switches. Its 16 I/O pins drive LED arrays and relay coils for lighting zones, while two analog comparators monitor voltage-divided sensor inputs from seat-position potentiometers. EEPROM stores driver preferences across battery disconnects, and the watchdog timer with dedicated on-chip RC oscillator maintains reliability across automotive electrical transients. While not AEC-Q100 qualified, the industrial -40C to +85C range and 2.0V-5.5V VDD tolerate 12V automotive bus variations after external regulation.

What is the program memory size of PIC16LF628-04I/P?
The PIC16LF628-04I/P includes 3.5 KB (2K x 14) of Flash program memory, organized as 2048 14-bit instruction words. According to Microchip datasheet 41196E, this is sufficient for moderate-sized embedded applications using the PIC16 mid-range instruction set, with 35 single-word instructions and 200 ns execution time at 4 MHz.
What is the operating voltage range of PIC16LF628-04I/P?
The PIC16LF628-04I/P operates from 2.0V to 5.5V on VDD, with the LF (low-voltage/F-grade) variant specifically designed for battery-powered and 3.3V designs. According to Microchip datasheet 41196E, brown-out detect thresholds and oscillator behavior are characterized across this range, making it compatible with 2xAA, single Li-ion, and 5V rails.
How many I/O pins does PIC16LF628-04I/P have?
The PIC16LF628-04I/P provides 16 digital I/O pins with individual direction control and high-current sink/source capability for direct LED drive. Per Microchip datasheet 41196E, PORTB features programmable weak pull-ups, and the MCLR pin is shared with a general-purpose input on this package variant.
Where can I buy PIC16LF628-04I/P online?
The PIC16LF628-04I/P is in stock at major authorized distributors including DigiKey (stock 364810), Mouser, and Microchip Direct as of 2026-09-25. Pricing starts around $3.65 per unit at qty 1, dropping to approximately $1.95 per unit at 3000-piece reels; the through-hole 18-PDIP format ships in anti-static tubes.
What is the price of PIC16LF628-04I/P?
The PIC16LF628-04I/P unit price is approximately $3.65 at qty 1, $3.28 at qty 10, $2.78 at qty 100, $2.45 at qty 500, $2.18 at qty 1000, and $1.95 at qty 3000 as of 2026-09-25. Authorized distributor pricing reflects Microchip's classic mid-range 8-bit pricing tier; the LF variant typically carries a small premium over the standard F variant.
What is the lead time for PIC16LF628-04I/P?
The PIC16LF628-04I/P ships immediately from DigiKey (DigiKey part 364810) and Mouser (Mouser product page confirms in-stock status) as of 2026-09-25. Lead time for factory-direct orders through Microchip is typically 6-10 weeks for tube quantities, while distributor stock supports prototype and small-volume production needs.
Is PIC16LF628-04I/P in stock?
Yes, the PIC16LF628-04I/P is currently in stock at DigiKey (product 364810), Mouser, Octopart-tracked distributors, and Microchip Direct as of 2026-09-25. Inventory is reported in tube quantities of the 18-PDIP package, supporting both engineering prototypes and small production runs.
PIC16LF628-04I/P vs PIC16F628-04I/P - which should I choose?
The PIC16LF628-04I/P operates from 2.0V to 5.5V, while the PIC16F628-04I/P operates from 3.0V to 5.5V (or wider). According to Microchip datasheet 41196E, the LF variant is the correct choice for battery-powered 3.3V or 2xAA designs; the F variant is preferred when 5V-only operation is acceptable and tighter 5V characterization is desired.
What is the difference between PIC16LF628-04I/P and PIC16LF628A-I/P?
The PIC16LF628-04I/P and PIC16LF628A-I/P share identical 3.5 KB Flash, 224 B RAM, 128 B EEPROM, and 18-PDIP package, but the 'A' revision silicon incorporates silicon-level errata fixes and improved analog comparator performance. Per Microchip product documentation, the 'A' revision is the recommended new design choice for production.
When should I choose PIC16LF628-04I/P over PIC16LF627-04I/P?
The PIC16LF628-04I/P adds 128 bytes of EEPROM data memory over the PIC16LF627, while both share 3.5 KB Flash, 224 B RAM, and the 18-PDIP footprint. Choose the LF628 when non-volatile data storage is needed (e.g., calibration constants, user settings); choose the LF627 to reduce cost when EEPROM is unnecessary.
What is the best drop-in replacement for PIC16LF628-04I/P?
The best drop-in replacement for PIC16LF628-04I/P is the PIC16LF628A-I/P, which is silicon-identical except for 'A' revision errata fixes in the same 18-PDIP package. According to Microchip documentation, the 'A' revision is pin-to-pin compatible, firmware-compatible, and recommended for new designs where the original is unavailable.
Where can I download the PIC16LF628-04I/P datasheet PDF?
The PIC16LF628-04I/P datasheet (Microchip document 41196E) is available as a free PDF download from Microchip's website at https://ww1.microchip.com/downloads/en/DeviceDoc/41196E.pdf. The datasheet covers electrical characteristics, memory organization, instruction set, and peripheral modules for the PIC16LF627/628 family.
Where to find PIC16LF628-04I/P pinout?
The PIC16LF628-04I/P pinout for the 18-PDIP package is documented on the datasheet's pinout diagram, with pin 1 marked near the package notch. The XAIPART product page renders a package SVG diagram (package_svg_key: dip-18) showing all 18 pins with their function names; the ICSP programming pins RB6 and RB7 are multiplexed with PORTB.
What are the key specifications of PIC16LF628-04I/P that engineers should know?
Engineers evaluating the PIC16LF628-04I/P should focus on: 3.5 KB Flash, 224 B RAM, 128 B EEPROM, 4 MHz maximum clock (200 ns instruction cycle), 2.0V to 5.5V VDD, 16 I/O pins, two analog comparators with programmable VREF, on-chip 4 MHz RC oscillator, and a Watchdog Timer with dedicated RC. According to Microchip datasheet 41196E, this combination suits battery-powered, mid-complexity embedded designs.

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

Selection Guide

Choose the PIC16LF628-04I/P when you need a low-voltage (2.0V-5.5V) 8-bit PIC16 mid-range microcontroller in a through-hole 18-PDIP package with 128-byte EEPROM for non-volatile storage. It is the right pick for battery-powered 3.3V or 2xAA designs, industrial-temperature environments, and educational/prototyping boards where DIP sockets simplify firmware iteration. Select the PIC16LF628A-I/P for new designs to gain silicon errata fixes at the same price tier. Choose the PIC16LF628-04/P only for indoor commercial-temperature (0C to +70C) applications to save cost. Pick the PIC16LF627-04I/P if EEPROM is unnecessary. Avoid the PIC16F628-04I/P for designs requiring operation below 3.0V - it lacks the LF variant's low-voltage support.

Comparison with Alternatives

Parameter This Product PIC16LF628A-I/P PIC16LF628-04/P PIC16LF627-04I/P PIC16LF627A-I/P PIC16F628-04I/P
Package 18-PDIP 18-PDIP - same 18-PDIP - same 18-PDIP - same 18-PDIP - same 18-PDIP - same
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Program Memory (Flash) 3.5 KB 3.5 KB 3.5 KB 3.5 KB 3.5 KB 3.5 KB
RAM 224 bytes 224 bytes 224 bytes 224 bytes 224 bytes 224 bytes
EEPROM 128 bytes 128 bytes 128 bytes None None 128 bytes
Supply Voltage (VDD) 2.0 V to 5.5 V 2.0 V to 5.5 V 2.0 V to 5.5 V 2.0 V to 5.5 V 2.0 V to 5.5 V 3.0 V to 5.5 V
Maximum Clock Speed 4 MHz 4 MHz 4 MHz 4 MHz 4 MHz 4 MHz
Operating Temperature -40C to +85C -40C to +85C 0C to +70C -40C to +85C -40C to +85C -40C to +85C

Key Differentiators

  • Wide 2.0V-5.5V VDD range supports battery-powered designs (vs PIC16F628-04I/P)
  • 128-byte on-chip EEPROM for non-volatile data storage (vs PIC16LF627-04I/P)
  • Industrial -40C to +85C temperature range (vs PIC16LF628-04/P)
  • Through-hole 18-PDIP package for socketed prototyping (vs PIC16LF628-04I/SO (SOIC variant))

Design Notes

Place a 0.1 uF decoupling capacitor as close as possible to the VDD pin (pin 14) and a bulk capacitor (e.g., 10 uF tantalum or aluminum) on the same supply rail. For battery-powered designs targeting the LF variant's 2.0V low end, ensure your regulator or battery end-of-life voltage stays above the brown-out detect threshold to avoid unintended resets. The PIC16LF628-04I/P's nanoWatt-style sleep modes can drop quiescent current to microampere levels when the core is halted; verify peripheral leakage does not dominate by measuring with all I/O pins defined and unused peripherals disabled.

Route the ICSP clock (PGC, pin 12) and ICSP data (PGD, pin 13) traces with short, direct paths to the programming header. These pins are multiplexed with PORTB, so adding series resistors for isolation can interfere with ICSP unless bypassed. Keep the MCLR/VPP line (pin 4) free of large capacitive loads that would slow the rising edge during reset; a typical 10-47 kohm pull-up to VDD with optional diode to VDD for production programming is standard.

Do not leave OSC1 (pin 16) floating when using the on-chip 4 MHz RC oscillator; configure the OSCCON register properly or external oscillator mode will draw current through the floating pin. Watchdog timer disable sequence (CLRWDT) must be executed before the WDT postscaler overflows in long interrupt-disabled sections, otherwise the device resets unexpectedly. EEPROM write endurance is finite; use wear-leveling or only write when state changes to maximize the rated write-cycle lifetime.

The analog comparator inputs (RA0-RA3) share pins with digital I/O; switching nearby digital pins will inject noise into comparator thresholds via the pin capacitance. For sensitive analog measurements, configure the comparator pins as analog inputs (clear corresponding TRIS and ANSEL bits) and route them away from switching signals on the PCB. The programmable VREF module can supply a stable internal reference, but its settling time after configuration change should be respected before sampling comparator outputs.

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. Not AEC-Q100 qualified - for safety-critical automotive applications use Microchip's automotive-grade PIC16F equivalents. Lead-free and matte-tin finish per Microchip packaging specifications.

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

Related Searches

PIC16LF628-04I/P PIC16LF628-04I/P datasheet Microchip PIC16LF628 8-bit PIC microcontroller 3.5KB Flash 18-PDIP PIC16LF628-04I/P pinout 18-PDIP PIC16LF628 industrial control application PIC16LF628-04I/P vs PIC16F628-04I/P PIC16LF628 drop-in replacement PIC16LF628-04I/P buy price tube what is the supply voltage of PIC16LF628 low voltage PIC microcontroller 2V battery powered PIC16 mid-range 14-bit RISC core MCU PIC16LF628-04I/P lead time stock Microchip PIC16F628 equivalent LF variant PIC16LF627 vs PIC16LF628 difference

Related Components & Terms

Microchip Technology PIC16LF628 PIC16LF628-04I/P PIC16LF628A-I/P PIC16LF628-04/P PIC16LF627-04I/P PIC16LF627A-I/P PIC16F628-04I/P 8-bit microcontroller MCU PIC RISC architecture mid-range 14-bit instruction set Flash memory EEPROM SRAM 18-pin PDIP DIP-18 through-hole Brown-out Detect Watchdog Timer ICSP MCLR analog comparator nanoWatt technology RoHS PICkit programmer MPLAB X IDE
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