PIC16LF628-04I/P - 4MHz 8-bit Flash MCU, 18-PDIP | Microchip
MPN: PIC16LF628-04I/P ✓ Active| 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 |
PIC16LF628-04I/P Overview
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.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC16LF628A-I/P
✅ Drop-In✓ In Stock
$1.84 / Unit
View Datasheet →PIC16LF628-04/P
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16LF627-04I/P
✅ Drop-In✓ In Stock
$1.23 / Unit
View Datasheet →PIC16LF627A-I/P
✅ Drop-In✓ In Stock
$2 / Unit
View Datasheet →PIC16F628-04I/P
✅ Drop-In✓ 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
| 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.
Recommended
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.
Recommended
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.
Recommended
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.
Recommended
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.
Recommended
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.
Recommended
Recommended Products Summary
Engineering reference data for PIC16LF628-04I/P — comparison, design guidance, and compliance information.
Selection Guide
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 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.