PIC16LF628T-04I/SO - 4MHz 8-bit PIC MCU, 3.5KB Flash | Microchip
MPN: PIC16LF628T-04I/SO ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $3.42 | $3.42 |
| 10 | $3.08 | $30.80 |
| 100 | $2.74 | $274.00 |
| 500 | $2.45 | $1,225.00 |
| 1,000 | $2.18 | $2,180.00 |
| 3,000 | $1.95 | $5,850.00 |
PIC16LF628T-04I/SO Overview
What is a PIC16 microcontroller? PIC16 is Microchip's mid-range 8-bit RISC microcontroller family built on a Harvard architecture with separate program and data buses. The 14-bit instruction word PIC16 core delivers deterministic instruction timing (most instructions execute in one instruction cycle), making PIC16 devices popular for cost-sensitive embedded control where predictable timing, low power, and small footprint outweigh the throughput of 32-bit cores.
Key features include 16 digital I/O pins with individually programmable direction, two analog comparators with a programmable on-chip voltage reference, a USART for asynchronous/synchronous serial communication, one 8-bit and one 16-bit timer/counter, a PWM module, and a 10-bit ADC. Brown-out Reset (BOR), Power-on Reset (POR), and a Watchdog Timer with its own on-chip RC oscillator provide three layers of system safety. nanoWatt-style power management includes a low-power SLEEP mode and multi-frequency internal oscillator to reduce external component BOM.
The PIC16LF628T-04 architecture pairs the mid-range CPU with Harvard-separated Flash and EEPROM, allowing in-application self-programming via ICSP. The internal comparator reference and dual analog comparators enable standalone signal conditioning without an external op-amp, while the USART, PWM, and capture/compare peripherals cover the classic embedded-control toolbox for motor, power-converter, and sensor-interface roles.
Typical applications include low-power sensor nodes, automotive body and interior subsystems, HVAC fan/valve controllers, appliance user-interface boards, battery chargers, smart LED lighting controllers, and industrial telemetry outstations. The wide 2.0V-5.5V supply range suits 3.3V and 5V mixed-rail designs alike.
When designing with the PIC16LF628T-04I/SO, reserve the OSC1/OSC2 pins carefully if you need an external crystal - the internal RC oscillator can free these pins for general I/O. Programming is via ICSP using PGEDT/RB7 and PGC/RB6; ensure these pins are not held low at reset or in-circuit programming is blocked.
This page synthesizes distributor pricing, same-family and cross-family drop-in alternatives, and design notes not found in the manufacturer datasheet, providing an at-a-glance comparison matrix for sourcing and migration decisions.
Drop-in alternatives for PIC16LF628T-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 PIC16LF628T-04I/SO (same form factor and footprint) — differing in Package, Timers, I/O Pins, Operating Temperature, Communication.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
No drop-in alternatives available for this product.
Request AlternativesPIC16LF628T-04I/SO Maximum Ratings & Electrical Characteristics
| Core Processor | PIC |
| Core Size | 8-bit |
| Core Family | PIC16F |
| Maximum CPU Speed | 4 MHz |
| Program Memory Type | Flash |
| Program Memory Size | 3.5 KB (2K x 14) |
| Data RAM | 224 bytes |
| Data EEPROM | 128 bytes |
| Supply Voltage (Vdd) | 2.0 V to 5.5 V |
| I/O Pins | 16 |
| Comparators | 2 analog comparators |
| Voltage Reference | Programmable on-chip VREF |
| Timers | 1x 8-bit + 1x 16-bit timer/counter |
| PWM | Yes (Capture/Compare/PWM module) |
| Communication | USART (UART/USART) |
| Package | 18-pin SOIC (SO, wide-body, 7.50 mm body, 1.27 mm pitch) |
| Mounting Type | Surface Mount |
| Operating Temperature | -40C to +85C (Industrial) |
| MSL Level | MSL1 (unlimited floor life per JEDEC J-STD-020) |
| RoHS Status | Compliant |
| Lead-Free | Yes |
PIC16LF628T-04I/SO Pin Configuration
| Pin 1 | RA2/AN2/VREF — GPIO RA2 / Analog input 2 / Voltage Reference output |
| Pin 2 | RA3/AN3/CMP1 — GPIO RA3 / Analog input 3 / Comparator 1 output |
| Pin 3 | RA4/T0CKI/CMP2 — GPIO RA4 / Timer0 clock input / Comparator 2 output (open-drain) |
| Pin 4 | RA5/MCLR/Vpp — GPIO RA5 / Master Clear (Reset, active-low) / Programming voltage |
| Pin 5 | VSS — Ground reference |
| Pin 6 | RB0/INT — GPIO RB0 / External interrupt source |
| Pin 7 | RB1/RX/DT — GPIO RB1 / USART RX / synchronous data |
| Pin 8 | RB2/TX/CK — GPIO RB2 / USART TX / synchronous clock |
| Pin 9 | RB3/CCP1 — GPIO RB3 / Capture-Compare-PWM 1 |
| Pin 10 | RB4/PGM — GPIO RB4 / Low-voltage ICSP programming |
| Pin 11 | RB5 — GPIO RB5 |
| Pin 12 | RB6/PGC — GPIO RB6 / ICSP clock (serial programming) |
| Pin 13 | RB7/PGD — GPIO RB7 / ICSP data (serial programming) |
| Pin 14 | VDD — Positive supply voltage |
| Pin 15 | OSC2/CLKOUT — Oscillator crystal output / clock output (Fosc/4) |
| Pin 16 | OSC1/CLKIN — Oscillator crystal input / external clock input |
| Pin 17 | RA0/AN0 — GPIO RA0 / Analog input 0 |
| Pin 18 | RA1/AN1 — GPIO RA1 / Analog input 1 |
Typical Applications
PIC16LF628T-04I/SO is suitable for 7 applications: Low-Power Wireless Sensor Node, Appliance User-Interface Board, Small DC Motor / Fan Speed Controller, Industrial Telemetry Outstation, Automotive Body Electronics, Smart LED Lighting Controller, Battery Charger / Power-Bank Controller.
Low-Power Wireless Sensor Node
The PIC16LF628T-04I/SO is well suited for battery-powered sensor nodes that transmit intermittently via a low-power RF module. Its 2.0V-5.5V supply range accepts a 2x AA alkaline pack directly, while the nanoWatt SLEEP mode keeps standby current below 1 uA. The 4 MHz CPU clock can wake, sample a sensor over the analog comparators, drive a UART-attached radio, and return to sleep within milliseconds. With 128 bytes of EEPROM available for trim/calibration constants and 224 bytes of SRAM for packet buffering, the device is engineered for years of battery life in remote monitoring, building automation, and agricultural telemetry.
Recommended
Appliance User-Interface Board
The PIC16LF628T-04I/SO can drive user-interface subsystems on white goods and small appliances, scanning 4x4 button matrices and 7-segment / LCD displays. Its 16 I/O pins are sufficient for keypad plus LED/relay control, and the on-chip analog comparator with programmable VREF enables direct button-press detection via resistive dividers. The 5.5V-tolerant inputs tolerate automotive load-dump events, while the PWM module controls buzzer tones and indicator dimming. Combined with industrial -40C to +85C operation and long-term Microchip supply continuity, the PIC16LF628 is an appliance-grade fit.
Recommended
Small DC Motor / Fan Speed Controller
The PIC16LF628T-04I/SO is appropriate for closed-loop speed control of small DC motors, fans, and pumps using its PWM module and analog comparator feedback. The Capture/Compare/PWM block delivers hardware-generated PWM at 4 MHz, freeing the CPU for soft-start and fault handling. The internal VREF and dual comparators enable zero-crossing or back-EMF detection without external op-amps, while EEPROM stores calibrated speed curves. Industrial temperature and 5.5V supply directly interface with 24V-rectified fan and pump systems via simple resistive dividers.
Recommended
Industrial Telemetry Outstation
The PIC16LF628T-04I/SO serves as a remote terminal unit (RTU) outstation for industrial telemetry, reading 4-20 mA sensors via the on-chip comparators and reporting back over UART/USART to a host PLC or gateway. The 3.5 KB Flash holds Modbus RTU framing libraries, and 128 bytes of EEPROM retains configuration registers across power cycles. Brown-out Reset and Power-on Reset guarantee defined startup, while the Watchdog Timer recovers from software faults in unattended deployments. The wide 2.0V-5.5V supply enables direct operation from 24V industrial rails through a low-cost linear regulator.
Recommended
Automotive Body Electronics
The PIC16LF628T-04I/SO is a fit for low-bandwidth automotive body and interior modules such as seat controllers, mirror adjusters, and ambient lighting drivers. Its 5.5V supply tolerance handles 12V battery transients through external clamping, and the industrial temperature grade operates reliably behind dashboards and door panels. The PWM and USART peripherals drive LIN-bus slaves via simple transceiver interfaces, and the integrated analog comparators monitor current-sense shunts for short-circuit detection. Microchip's PIC long-term supply program ensures multi-year continuity for automotive programs.
Recommended
Smart LED Lighting Controller
The PIC16LF628T-04I/SO controls addressable and dimmable LED strings in smart-lighting fixtures, combining PWM dimming with USART-driven digital protocols. The 16 I/O pins drive several LED channels and accept tactile or capacitive button inputs through the analog comparators, while the 4 MHz CPU handles DMX-512 or proprietary lighting protocols without external drivers. The 2.0V-5.5V supply range is compatible with both 3.3V digital logic and 5V analog stages, and the SOIC-18 package is friendly to high-density fixture PCBs.
Recommended
Battery Charger / Power-Bank Controller
The PIC16LF628T-04I/SO can implement a single- or dual-cell Li-ion / NiMH charger controller, using its analog comparators for voltage and current regulation and its PWM for switch-mode control or linear-regulation driving. The on-chip VREF provides a precision reference for end-of-charge detection, while EEPROM stores charge profiles and safety timers across power cycles. The 2.0V-5.5V supply is appropriate for direct connection to 1S Li-ion / 2x NiMH packs, and the wide industrial temperature supports in-pack thermal environments.
Recommended
Recommended Products Summary
Engineering reference data for PIC16LF628T-04I/SO — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC16LF628AT-I/SO | PIC16LF628A-I/SO | PIC16LF628-04I/SO | PIC16LF628-04I/SS | PIC16F628-04/SO |
|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 18-pin SOIC (wide-body, T&R) | 18-pin SOIC - same | 18-pin SOIC - same | 18-pin SOIC tube - same | 20-pin SSOP - family footprint | 18-pin SOIC - same |
| Maximum CPU Speed | 4 MHz | 20 MHz | 20 MHz | 4 MHz | 4 MHz | 4 MHz |
| Supply Voltage | 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 |
| 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 |
| Data EEPROM | 128 bytes | 128 bytes | 128 bytes | 128 bytes | 128 bytes | 128 bytes |
| I/O Pins | 16 | 16 | 16 | 16 | 16 | 16 |
| ADC | None (comparator-based) | 10-bit ADC | 10-bit ADC | None (comparator-based) | None (comparator-based) | None (comparator-based) |
| Temperature Grade | Industrial -40C to +85C | Industrial -40C to +85C | Industrial -40C to +85C | Industrial -40C to +85C | Industrial -40C to +85C | Industrial -40C to +85C |
| Packaging Format | Tape & Reel | Tape & Reel | Tube | Tube | Tube | Tube |
Key Differentiators
- Lowest-cost LF silicon in 18-pin SOIC (vs PIC16LF628A-I/SO)
- Pin-compatible migration path to higher-integration PIC16 (vs PIC16F628-04/SO)
- Industrial temperature grade in Tape & Reel (vs PIC16LF628-04I/SO)
Design Notes
The PIC16LF628T-04I/SO supports a 2.0V to 5.5V supply, so a single 3.3V LDO (e.g., MCP1700) or 2x AA alkaline cells directly power the device. Place a 100 nF decoupling capacitor within 5 mm of the VDD pin (pin 14), and add a 10 uF bulk capacitor at the supply entry. Brown-out Reset should be enabled in CONFIG to guarantee defined reset behavior during supply collapse; configure BOR voltage threshold (BORV) to match your minimum operating rail.
When using an external crystal or resonator on OSC1/OSC2 (pins 16, 15), keep the trace length under 5 mm and surround the oscillator area with a ground pour to minimize EMI pickup. If the internal 4 MHz RC oscillator is acceptable, configure the FOSC config bits to INTOSC and free OSC1/OSC2 as general-purpose I/O (RA7/RB6 remap on 18-pin parts - check datasheet errata). Always keep ICSP lines RB6/PGC and RB7/PGD accessible to retain in-circuit programming access.
Avoid using MCLR as a regular GPIO - the MCLR/Vpp pin (pin 4) is required for ICSP programming and reset; leaving it floating or driving it low unintentionally will block programming or trigger spurious resets. Tie MCLR to VDD through a 10 kohm resistor, or disable MCLR via the MCLRE config bit if you have an alternate reset strategy. Also remember PIC16LF628 has no ADC; if you need ADC functionality, migrate to PIC16LF628A-I/SO or PIC16LF628AT-I/SO instead.
Estimated: at 4 MHz CPU clock with internal RC oscillator, the USART can run reliably up to 9600 baud with < 1% error; for higher baud rates (e.g., 115200) use the PIC16LF628A-I/SO upgrade part with 20 MHz CPU. When interfacing to RS-485 transceivers, add a 120 ohm termination at the bus ends and a fail-safe bias network of 680 ohm pull-up to 5V and 680 ohm pull-down to GND on the differential pair. Series resistors (10-22 ohm) on PGC/PGD lines improve EMI immunity during ICSP programming.
Compliance Information
PIC16LF628T-04I/SO is supplied in lead-free matte-tin plating and is RoHS/REACH compliant per Microchip product environmental compliance documentation. This part is NOT AEC-Q100 qualified - for automotive applications requiring AEC-Q100 grade 1 or 2, select a PIC16F1xx automotive-grade part (e.g., PIC16F18455) instead.