PIC16LF877-04/L - 8-Bit 4MHz PIC MCU 14KB Flash 44-PLCC | Microchip
MPN: PIC16LF877-04/L ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $9.21 | $9.21 |
| 10 | $8.45 | $84.50 |
| 100 | $7.18 | $718.00 |
| 500 | $6.42 | $3,210.00 |
| 1,000 | $5.85 | $5,850.00 |
PIC16LF877-04/L Overview
An MCU (microcontroller unit) is a single-chip computer that integrates a CPU core, non-volatile program memory, working RAM, and a rich set of peripherals (ADC, timers, communication ports, I/O) into one IC. The PIC16F family is Microchip's mid-range 8-bit line, sitting between the baseline PIC10/12/16 families and the enhanced PIC18 family in the broader microcontroller hierarchy: MCU -> 8-bit MCU -> PIC mid-range -> PIC16F. PIC16LF variants use a "low-power (LF)" process that supports operation down to 2.0 V.
Key features include 35 single-word instructions, an internal oscillator option, two 8-bit and one 16-bit timers, a Watchdog Timer with its own on-chip RC oscillator, 14 interrupt sources, USART, MSSP (SPI/I2C), and capture/compare/PWM modules. The 44-PLCC package supports through-hole or socketed mounting, easing prototyping and field replacement, while the industrial operating range of 0C to +70C suits commercial and light-industrial enclosures.
Typical applications include sensor signal conditioning with on-chip ADC, simple motor control via PWM, embedded control panels with USART-managed LCDs, and battery-powered instrumentation where the LF 2.0 V minimum extends runtime. The device also supports in-circuit serial programming (ICSP) for field updates.
Designers should note the 04 speed grade denotes 4 MHz; for higher throughput the -10 (10 MHz) or -20 (20 MHz) variants are recommended. Code compatibility across the PIC16F87x family allows migration to the PIC16F887, which Microchip recommends for new designs.
This page consolidates distributor pricing, pin-compatible PIC16LF877 family alternatives, and design notes not found in the manufacturer datasheet alone, giving engineers a single source for sourcing, substitution, and board bring-up decisions.
Drop-in alternatives for PIC16LF877-04/L — 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 PIC16LF877-04/L (same form factor and footprint) — differing in Package, Timers, Core, Operating Temperature, ADC.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC16LF877-04I/L
✅ Drop-In✓ In Stock
$6.35 / Unit
View Datasheet →PIC16LF877-10/L
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16LF877-20/L
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16LF877A-I/L
✅ Drop-In✓ In Stock
$4.31 / Unit
View Datasheet →PIC16F877-04/L
✅ Drop-In✓ In Stock
$3.82 / Unit
View Datasheet →PIC16LF877-04/L Maximum Ratings & Electrical Characteristics
| Core | PIC16 |
| Data Bus Width | 8 bit |
| Maximum Clock Frequency | 4 MHz |
| Program Memory Size | 14 KB (8K x 14) FLASH |
| Data RAM Size | 368 B |
| ADC Resolution | 10 bit |
| Number of I/Os | 33 |
| Operating Supply Voltage | 2.0 V to 5.5 V |
| Minimum Operating Temperature | 0 C |
| Maximum Operating Temperature | +70 C |
| Package | 44-PLCC (16.59 x 16.59 mm) |
| Mounting Style | SMD/SMT (PLCC socket-compatible) |
| Instruction Set | 35 single-word instructions |
| Instruction Execution Time | 200 ns |
| RoHS Status | Compliant (per distributor listings) |
| Speed Grade | 04 (4 MHz) |
PIC16LF877-04/L Pin Configuration
| Pin 1 | MCLR/VPP — Master Clear (reset) input or ICSP programming voltage |
| Pin 2 | RA0/AN0 — PORTA bit 0 / Analog input channel 0 |
| Pin 3 | RA1/AN1 — PORTA bit 1 / Analog input channel 1 |
| Pin 4 | RA2/AN2 — PORTA bit 2 / Analog input channel 2 |
| Pin 5 | RA3/AN3/VREF+ — PORTA bit 3 / Analog input channel 3 / Positive reference voltage |
| Pin 6 | RA4/T0CKI — PORTA bit 4 / Timer 0 clock input |
| Pin 7 | RA5/AN4/SS — PORTA bit 5 / Analog input channel 4 / SPI slave select |
| Pin 8 | RE0/RD/AN5 — PORTE bit 0 / Parallel port read / Analog input channel 5 |
| Pin 9 | RE1/WR/AN6 — PORTE bit 1 / Parallel port write / Analog input channel 6 |
| Pin 10 | RE2/CS/AN7 — PORTE bit 2 / Parallel port chip select / Analog input channel 7 |
| Pin 11 | VDD — Positive supply voltage (2.0 V to 5.5 V) |
| Pin 12 | VSS — Ground reference |
| Pin 13 | OSC1/CLKI — Oscillator crystal input / External clock input |
| Pin 14 | OSC2/CLKO — Oscillator crystal output / Clock output |
| Pin 15 | RC0/T1OSO/T1CKI — PORTC bit 0 / Timer1 oscillator output / Timer1 clock input |
| Pin 16 | RC1/T1OSI/CCP2 — PORTC bit 1 / Timer1 oscillator input / CCP2 PWM/capture |
| Pin 17 | RC2/CCP1 — PORTC bit 2 / CCP1 PWM/capture/compare |
| Pin 18 | RC3/SCK/SCL — PORTC bit 3 / SPI clock / I2C clock |
| Pin 19 | RD0/PSP0 — PORTD bit 0 / Parallel Slave Port bit 0 |
| Pin 20 | RD1/PSP1 — PORTD bit 1 / Parallel Slave Port bit 1 |
| Pin 21 | RD2/PSP2 — PORTD bit 2 / Parallel Slave Port bit 2 |
| Pin 22 | RD3/PSP3 — PORTD bit 3 / Parallel Slave Port bit 3 |
| Pin 23 | RC4/SDI/SDA — PORTC bit 4 / SPI data in / I2C data |
| Pin 24 | RC5/SDO — PORTC bit 5 / SPI data out |
| Pin 25 | RC6/TX/CK — PORTC bit 6 / USART async transmit / USART sync clock |
| Pin 26 | RC7/RX/DT — PORTC bit 7 / USART async receive / USART sync data |
| Pin 27 | RD4/PSP4 — PORTD bit 4 / Parallel Slave Port bit 4 |
| Pin 28 | RD5/PSP5 — PORTD bit 5 / Parallel Slave Port bit 5 |
| Pin 29 | RD6/PSP6 — PORTD bit 6 / Parallel Slave Port bit 6 |
| Pin 30 | RD7/PSP7 — PORTD bit 7 / Parallel Slave Port bit 7 |
| Pin 31 | VSS — Ground reference |
| Pin 32 | VDD — Positive supply voltage (2.0 V to 5.5 V) |
| Pin 33 | RB0/INT — PORTB bit 0 / External interrupt |
| Pin 34 | RB1 — PORTB bit 1 |
| Pin 35 | RB2 — PORTB bit 2 |
| Pin 36 | RB3/PGM — PORTB bit 3 / Low-voltage ICSP programming |
| Pin 37 | RB4 — PORTB bit 4 |
| Pin 38 | RB5 — PORTB bit 5 |
| Pin 39 | RB6/PGC — PORTB bit 6 / ICSP clock (programming/debug clock) |
| Pin 40 | RB7/PGD — PORTB bit 7 / ICSP data (programming/debug data) |
| Pin 41 | NC — Not connected (per datasheet) |
| Pin 42 | NC — Not connected (per datasheet) |
| Pin 43 | NC — Not connected (per datasheet) |
| Pin 44 | NC — Not connected (per datasheet) |
Typical Applications
PIC16LF877-04/L is suitable for 6 applications: Battery-Powered Sensor Node, Industrial Control Panel, Motor Speed Control (PWM), Educational / Hobbyist Development Platform, LCD Character Display Driver Board, Smart Home / IoT Edge Node.
Battery-Powered Sensor Node
The PIC16LF877-04/L's LF 2.0 V minimum supply and low-power CMOS process make it ideal for battery-powered sensor nodes powered from two AA cells or a single Li-primary cell. The integrated 10-bit ADC samples temperature, pressure, or humidity sensors with 8-channel mux support, while the 14 KB flash accommodates moderate firmware including filtering and Modbus or I2C protocols. Sleep current in the microamp range extends battery life to years in low-duty-cycle telemetry. The 200 ns instruction cycle at 4 MHz is more than adequate for 100 Hz sensor sampling with on-chip computation.
Recommended
Industrial Control Panel
The PIC16LF877-04/L's 33 digital I/O lines and 44-PLCC socket-friendly package suit industrial control panels driving relays, LEDs, keypads, and character LCDs. The USART manages RS-232/RS-485 communication with HMI terminals, while the MSSP peripheral handles SPI EEPROM or I2C RTC expansion. PWM outputs from the Capture/Compare module drive motor speed or solenoid valves. Commercial 0C to +70C range covers factory-floor enclosures, and ICSP enables field firmware updates via a 2-wire programming header without removing the MCU from the panel.
Recommended
Motor Speed Control (PWM)
The PIC16LF877-04/L's Capture/Compare/PWM (CCP) module delivers up to two PWM channels for DC motor speed control, with the 16-bit timer providing high-resolution PWM at low frequencies suitable for brushed DC or small stepper drivers. The 10-bit ADC reads back tachogenerator or Hall-sensor feedback for closed-loop control. The 4 MHz clock supports PWM frequencies up to ~20 kHz (above audible range), and the 44-PLCC package's thermal dissipation handles modest motor-driver gate-driving loads without external heatsinking.
Recommended
Educational / Hobbyist Development Platform
The PIC16LF877-04/L's 44-PLCC socket-compatible package makes it ideal for educational labs and hobbyist prototyping where parts are repeatedly swapped and replaced. The 14 KB flash holds substantial student projects (sensor reading, display driving, communication), and the 35-instruction PIC16 instruction set is widely taught. MPLAB X IDE, XC8 compiler, and the PICKit programmer ecosystem provide free learning tools. The 10-bit ADC, multiple timers, and 33 I/O pins cover typical introductory embedded curricula including robotics, data acquisition, and IoT prototyping.
Recommended
LCD Character Display Driver Board
The PIC16LF877-04/L frequently serves as the controller in HD44780-compatible character LCD interface boards, using its 8-bit PORTD to drive LCD data lines and PORTE for RS/RW/E control. The 14 KB flash holds multi-page menu logic, while 368 B RAM buffers display strings. The USART accepts commands from a host system, and the 4 MHz instruction rate provides more than enough throughput for 60 Hz display refresh. The LF 2.0-5.5 V supply matches both 3.3 V and 5 V LCD modules.
Recommended
Smart Home / IoT Edge Node
The PIC16LF877-04/L acts as an edge MCU in IoT gateways, where its LF 2.0 V operation and 14 KB flash handle local sensor fusion before handing off to a higher-tier ESP32 or wireless module via UART. The 33 I/O lines interface with multiple sensor types simultaneously, and the MSSP peripheral drives SPI environmental sensors (BME280, MAX6675) while USART bridges to the radio module. The 44-PLCC package's socket compatibility eases field replacement when nodes fail, critical for distributed IoT deployments.
Recommended
Recommended Products Summary
Engineering reference data for PIC16LF877-04/L — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC16LF877-04I/L | PIC16LF877-10/L | PIC16LF877-20/L | PIC16LF877A-I/L | PIC16F877-04/L |
|---|---|---|---|---|---|---|
| Package | 44-PLCC (L) - 16.59 x 16.59 mm | 44-PLCC (L) - same | 44-PLCC (L) - same | 44-PLCC (L) - same | 44-PLCC (L) - same | 44-PLCC (L) - same |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Max Clock Frequency | 4 MHz | 4 MHz | 10 MHz | 20 MHz | 20 MHz | 4 MHz |
| Operating Voltage | 2.0 V to 5.5 V (LF) | 2.0 V to 5.5 V (LF) | 2.0 V to 5.5 V (LF) | 2.0 V to 5.5 V (LF) | 2.0 V to 5.5 V (LF) | 4.0 V to 5.5 V (F) |
| Program Memory | 14 KB Flash | 14 KB Flash | 14 KB Flash | 14 KB Flash | 14 KB Flash | 14 KB Flash |
| RAM | 368 B | 368 B | 368 B | 368 B | 368 B | 368 B |
| ADC Resolution | 10-bit | 10-bit | 10-bit | 10-bit | 10-bit | 10-bit |
| Operating Temperature | 0C to +70C (commercial) | -40C to +85C (industrial) | 0C to +70C (commercial) | 0C to +70C (commercial) | -40C to +85C (industrial) | 0C to +70C (commercial) |
| Pin Count | 44 | 44 | 44 | 44 | 44 | 44 |
Key Differentiators
- Low-voltage (LF) 2.0 V minimum supply (vs PIC16F877-04/L)
- 44-PLCC socket-compatible package (vs PIC16F877-04/PT (TQFP))
- Mature PIC16 mid-range instruction set (vs PIC16F887 (newer recommended part))
Design Notes
Place a 100 nF decoupling capacitor as close as possible to each VDD/VSS pair (pins 11/12 and 31/32). Add a bulk 10-100 uF electrolytic or tantalum at the board's power entry. The LF variant operates down to 2.0 V; verify your LDO or battery source can hold up under worst-case transient load (e.g., 33 I/O all sourcing 20 mA simultaneously). Estimated: at 5 V, 33 outputs active, transient current may reach 660 mA peak.
The 44-PLCC package's 1.27 mm pin pitch requires careful trace routing. Use 0.15-0.20 mm trace widths between PLCC pads to maintain manufacturability. Place a PLCC socket (e.g., 3M 44-pin PLCC) for prototype work to enable easy MCU swap and ICSP programming without soldering each board. Keep oscillator traces (OSC1/OSC2) short and surrounded by ground to minimize EMI.
Do NOT confuse the LF (2.0-5.5 V) variant with the F (4.0-5.5 V) variant when designing 3.3 V systems - the F variant will not operate below 4.0 V. When migrating PIC16LF877-04 to PIC16F887 (recommended by Microchip for new designs), note that the A-silicon revision changes peripheral addresses and interrupt vectors - firmware must be recompiled with the new header file. Do not exceed 5.5 V on VDD even for LF variants.
Compliance Information
RoHS compliance per Microchip product family standard. Not AEC-Q100 qualified (commercial-grade 0C to +70C); for automotive designs migrate to PIC16F877-I/P or PIC18F family with AEC-Q100.