PIC16LF877-04I/PQ - 8-Bit 4MHz MCU 14KB Flash 44-MQFP | Microchip
MPN: PIC16LF877-04I/PQ ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $7.4 | $7.40 |
| 10 | $6.65 | $66.50 |
| 100 | $5.55 | $555.00 |
| 500 | $4.95 | $2,475.00 |
| 1,000 | $4.45 | $4,450.00 |
| 3,000 | $3.95 | $11,850.00 |
PIC16LF877-04I/PQ Overview
A microcontroller (MCU) is a single-chip computer that integrates a CPU, memory (Flash/RAM/EEPROM), and peripherals (ADC, timers, communication interfaces) onto one die. The PIC16LF877 belongs to the mid-range PIC family, which sits between the baseline PIC10/12/16/17 families and the high-performance PIC18/PIC24/dsPIC families. The LF variant runs from a reduced-voltage rail (2.0-5.5V), making it a low-power derivative of the standard PIC16F877 aimed at battery-powered systems.
Key features of this device include 33 digital I/O lines, 8 channels of 10-bit Analog-to-Digital Conversion (ADC), 2 analog comparators, a Capture/Compare/PWM (CCP) module plus an Enhanced CCP module, 3 timers, a USART with addressable SPI/I2C mode, and a parallel slave port. CMOS technology ensures low static and dynamic power consumption across the full industrial temperature range.
Architecturally, the device uses a Harvard RISC core with separate program and data buses. Code executes in a single cycle (excluding branches), and the 35-instruction set is common across the PIC16 mid-range family, allowing code reuse across 6- to 100-pin variants. The LF voltage range (2.0-5.5V) lowers quiescent current versus the standard F variant (4.0-5.5V).
Typical applications include industrial control panels, sensor data acquisition, low-power battery monitoring, motor control interfaces, and embedded instrumentation. The combination of 10-bit ADC, multiple timers, and PWM outputs allows direct drive of mixed-signal subsystems with minimal external components.
When designing, note the 4 MHz maximum oscillator frequency at 2.0V supply (10 MHz at 5V). The "-04" speed suffix indicates the 4 MHz grade. Designers should verify timer and ADC clocking against VDD to avoid speed-related timing violations.
This page synthesizes distributor pricing, drop-in same-brand and cross-brand alternatives, and practical design notes beyond the manufacturer datasheet summary. The MQFP-44 package and pinout match the PIC16F877 and PIC16F877A, enabling direct PCB layout reuse.
Drop-in alternatives for PIC16LF877-04I/PQ — 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-04I/PQ (same form factor and footprint) — differing in Package, Timers, Operating Temperature, ADC, Core Architecture.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC16LF877-04I/L
✅ Drop-In✓ In Stock
$6.35 / Unit
View Datasheet →PIC16LF877-04I/PT
✅ Drop-In✓ In Stock
$6.05 / Unit
View Datasheet →PIC16LF877-04/PQ
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16LF877-04/PT
✅ Drop-In✓ In Stock
$6.2 / Unit
View Datasheet →PIC16LF874-04I/PQ
✅ Drop-In📋 Reference alternative (not in catalog)
PIC16LF877-04I/PQ Maximum Ratings & Electrical Characteristics
| Core Architecture | PIC16 8-bit RISC |
| Program Memory | 14 KB (8K x 14) FLASH |
| RAM | 368 bytes |
| Data EEPROM | 256 bytes |
| Maximum CPU Clock | 4 MHz (200 ns instruction cycle) |
| Supply Voltage (Vdd) | 2.0 V to 5.5 V |
| I/O Pins | 33 |
| ADC Channels | 8 channels x 10-bit |
| Comparators | 2 |
| PWM Modules | 1 CCP + 1 Enhanced CCP |
| Timers | 3 (Timer0, Timer1, Timer2) |
| Communication | USART (SPI/I2C master mode), PSP |
| Operating Temperature | -40 C to +85 C (Industrial) |
| Package | 44-pin MQFP (10x10 mm) |
| Mounting Type | Surface Mount |
| RoHS Status | Compliant |
| MSL Level | 3 (168 hours) |
PIC16LF877-04I/PQ Pin Configuration
| Pin 1 | OSC1/CLKIN — Oscillator input / external clock |
| Pin 2 | OSC2/CLKOUT — Oscillator output |
| Pin 3 | MCLR/VPP — Reset input / programming voltage |
| Pin 4 | RA0/AN0 — PORTA bit 0 / analog input 0 |
| Pin 5 | RA1/AN1 — PORTA bit 1 / analog input 1 |
| Pin 6 | RA2/AN2/VREF- — PORTA bit 2 / analog input 2 / ADC Vref- |
| Pin 7 | RA3/AN3/VREF+ — PORTA bit 3 / analog input 3 / ADC Vref+ |
| Pin 8 | RA4/T0CKI — PORTA bit 4 / Timer0 clock input |
| Pin 9 | RA5/AN4/SS — PORTA bit 5 / analog input 4 / SPI slave select |
| Pin 10 | RA6/OSC2 — PORTA bit 6 / alternate OSC2 (HS mode) |
| Pin 11 | RB0/INT — PORTB bit 0 / external interrupt |
| Pin 12 | RB1 — PORTB bit 1 |
| Pin 13 | RB2 — PORTB bit 2 |
| Pin 14 | RB3/PGM — PORTB bit 3 / LVP programming |
| Pin 15 | RB4 — PORTB bit 4 |
| Pin 16 | RB5 — PORTB bit 5 |
| Pin 17 | RB6/PGC — PORTB bit 6 / ICSP clock |
| Pin 18 | RB7/PGD — PORTB bit 7 / ICSP data |
| Pin 19 | VSS — Ground |
| Pin 20 | VDD — Positive supply |
| Pin 21 | RC0/T1OSO/T1CKI — PORTC bit 0 / Timer1 oscillator out / clock in |
| Pin 22 | RC1/T1OSI/CCP2 — PORTC bit 1 / Timer1 oscillator in / CCP2 |
| Pin 23 | RC2/CCP1 — PORTC bit 2 / CCP1 PWM output |
| Pin 24 | RC3/SCK/SCL — PORTC bit 3 / SPI clock / I2C clock |
| Pin 25 | RC4/SDI/SDA — PORTC bit 4 / SPI data in / I2C data |
| Pin 26 | RC5/SDO — PORTC bit 5 / SPI data out |
| Pin 27 | RC6/TX/CK — PORTC bit 6 / USART TX / clock |
| Pin 28 | RC7/RX/DT — PORTC bit 7 / USART RX / data |
| Pin 29 | RE0/RD/AN5 — PORTE bit 0 / read strobe / analog input 5 |
| Pin 30 | RE1/WR/AN6 — PORTE bit 1 / write strobe / analog input 6 |
| Pin 31 | RE2/CS/AN7 — PORTE bit 2 / chip select / analog input 7 |
| Pin 32 | VSS — Ground |
| Pin 33 | VDD — Positive supply |
| Pin 34 | RD0/PSP0 — PORTD bit 0 / parallel slave port |
| Pin 35 | RD1/PSP1 — PORTD bit 1 / parallel slave port |
| Pin 36 | RD2/PSP2 — PORTD bit 2 / parallel slave port |
| Pin 37 | RD3/PSP3 — PORTD bit 3 / parallel slave port |
| Pin 38 | RD4/PSP4 — PORTD bit 4 / parallel slave port |
| Pin 39 | RD5/PSP5 — PORTD bit 5 / parallel slave port |
| Pin 40 | RD6/PSP6 — PORTD bit 6 / parallel slave port |
| Pin 41 | RD7/PSP7 — PORTD bit 7 / parallel slave port |
| Pin 42 | VSS — Ground |
| Pin 43 | VDD — Positive supply |
| Pin 44 | NC — Not connected (per datasheet) |
Typical Applications
PIC16LF877-04I/PQ is suitable for 6 applications: Industrial Sensor Data Acquisition, Battery-Powered Remote Monitoring, HVAC Control Panel Interface, Educational Embedded Development, Low-Speed Motor Control, Automotive Body Electronics (Non-Safety).
Industrial Sensor Data Acquisition
The PIC16LF877-04I/PQ fits industrial sensor data acquisition thanks to its 8 channels of 10-bit ADC (12-bit equivalent accuracy achievable with oversampling) and 2.0V-5.5V supply range. The 33 I/O lines accept parallel sensor arrays and digital switch inputs, while the USART streams readings to a host PLC or HMI. At 4 MHz CPU clock, conversion-to-transmission latency stays below 100 us per channel, enabling 1 kHz aggregate sample rates for vibration and pressure monitoring. Compared to a discrete ADC + MCU solution, the integrated ADC reduces BOM count by 6+ components.
Recommended
Battery-Powered Remote Monitoring
The 2.0V-5.5V Vdd range of the PIC16LF877-04I/PQ makes it ideal for battery-powered remote monitoring nodes running directly from 2x AA alkaline or 1x lithium-thionyl chloride cells. The CMOS core draws under 1 mA active and microamps in sleep, enabling multi-year battery life when duty-cycling the ADC and USART. The 256-byte EEPROM stores calibration data without external memory, and the integrated 10-bit ADC samples battery voltage and sensor inputs directly. This avoids the need for an external ADC IC, saving board space and cost in remote deployments.
Recommended
HVAC Control Panel Interface
The PIC16LF877-04I/PQ suits HVAC control panel applications where its 33 I/O lines drive keypad scanning, LCD interfacing, relay outputs, and temperature sensors. The 2 analog comparators support thermostat input without external comparator ICs, while the ECCP module generates PWM for variable-speed fan motors. Industrial -40C to +85C temperature grade handles unconditioned equipment-room environments. At 4 MHz CPU clock with 200 ns instruction cycle, the firmware loop runs comfortably under 10 ms, leaving ample headroom for user-interface response.
Recommended
Educational Embedded Development
The PIC16LF877-04I/PQ is widely used in educational embedded development thanks to the free MPLAB X IDE and XC8 compiler support, plus the common 35-instruction PIC16 mid-range set that teaches fundamental RISC concepts. The 14 KB FLASH accommodates student projects of meaningful complexity, while the 44-MQFP package has standardized development boards (PICDEM 17, ICD2/ICD3 headers) and is breadboard-friendly via PLCC-to-DIP adapters. Universities use it to teach ADC sampling, PWM generation, I2C/SPI master mode, and interrupt-driven firmware patterns.
Recommended
Low-Speed Motor Control
The PIC16LF877-04I/PQ handles low-speed motor control through its Enhanced CCP (ECCP) module, which drives MOSFET bridges for brushed DC and small BLDC motors at switching frequencies up to 20 kHz. The 8-channel ADC samples back-EMF and current-sense signals for closed-loop torque control, while the 33 I/O lines handle direction, brake, and fault inputs. The 2.0V-5.5V supply range enables direct operation from 2-cell Li-Ion battery packs in cordless tools. Quadrature encoder inputs via Timer0/Timer1 enable position feedback for stepper motor sequencing.
Recommended
Automotive Body Electronics (Non-Safety)
The PIC16LF877-04I/PQ is used in non-safety automotive body electronics such as interior lighting controllers, seat-position memories, and accessory timers. The -40C to +85C industrial temperature grade covers cabin environments, and the 33 I/O lines interface with switches, relays, and LIN bus via the USART. EEPROM stores user preferences across battery disconnects. For safety-critical or under-hood applications, designers select the PIC16F877A-I/PQ automotive-qualified variant instead, since the LF variant lacks AEC-Q100 qualification.
Recommended
Recommended Products Summary
Engineering reference data for PIC16LF877-04I/PQ — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC16LF877-04I/L | PIC16LF877-04I/PT | PIC16LF877-04/PQ | PIC16LF874-04I/PQ |
|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 44-MQFP (10x10 mm) | 44-PLCC | 44-TQFP | 44-MQFP (10x10 mm) | 44-MQFP (10x10 mm) |
| Program Memory | 14 KB FLASH | 14 KB FLASH | 14 KB FLASH | 14 KB FLASH | 7 KB FLASH |
| RAM | 368 bytes | 368 bytes | 368 bytes | 368 bytes | 192 bytes |
| Data EEPROM | 256 bytes | 256 bytes | 256 bytes | 256 bytes | 128 bytes |
| Max CPU Clock | 4 MHz | 4 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 |
| Operating Temperature | -40 C to +85 C (Industrial) | -40 C to +85 C (Industrial) | -40 C to +85 C (Industrial) | 0 C to +70 C (Commercial) | -40 C to +85 C (Industrial) |
| ADC Channels | 8 x 10-bit | 8 x 10-bit | 8 x 10-bit | 8 x 10-bit | 8 x 10-bit |
| I/O Pins | 33 | 33 | 33 | 33 | 33 |
Key Differentiators
- 2.0V-5.5V low-voltage operation for direct battery power (vs PIC16F877-04/PQ)
- Same-die drop-in across MQFP/PLCC/TQFP packages (vs PIC16F877-04I/L (PLCC))
- Industrial temperature range for harsh environments (vs PIC16LF877-04/PQ)
Design Notes
Estimated: at 4 MHz CPU clock with Vdd = 3.3V, the PIC16LF877-04I/PQ draws approximately 1.2 mA active and 1 uA in sleep (per Microchip nanoWatt technology figures). For battery-powered designs, use the SLEEP instruction with watchdog-timer wake-up to drop average current below 10 uA. Brown-out reset (BOR) should be enabled in CONFIG words to prevent code execution at unsafe Vdd below 2.0V. Always include a 100 nF decoupling capacitor within 5 mm of each Vdd pin (pins 20, 33, 43).
The 44-MQFP (10x10 mm) package has 0.8 mm pitch leads, which require careful PCB layout: use solder mask-defined (SMD) pads to prevent tombstoning during reflow, and keep traces at least 0.2 mm away from pad edges to avoid solder bridging. For prototypes, consider migrating to the 44-TQFP (PIC16LF877-04I/PT) which has finer 0.8 mm pitch but smaller 10x10 mm footprint with better thermal dissipation. Signal traces under the package should be avoided to prevent ground-bounce coupling into the analog ADC inputs.
Three common pitfalls when designing with this part: (1) Exceeding the 4 MHz oscillator frequency at Vdd < 4.0V causes unreliable ADC sampling - either raise Vdd to 4.5V+ or drop to a 2 MHz crystal; (2) Using the ICSP pins (RB6/RB7) as outputs without isolating them in hardware can lock out in-circuit programming - add a 4.7 kohm pull-up to MCLR; (3) Forgetting to disable the analog inputs (ANSEL/ADCON1) on unused PORTA pins causes floating-input current drain - configure all unused analog-capable pins as digital outputs.
Compliance Information
RoHS and REACH compliant per Microchip product page. Not AEC-Q100 qualified - select automotive-grade variants for under-hood or safety applications. Lead-free and halogen-free per Microchip green-compound declaration.