PIC16LF877-04/PT - 8-Bit 4MHz MCU 14KB Flash 44-TQFP | Microchip
MPN: PIC16LF877-04/PT ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $9.1 | $9.10 |
| 10 | $8.42 | $84.20 |
| 100 | $7.55 | $755.00 |
| 500 | $6.85 | $3,425.00 |
| 1,000 | $6.2 | $6,200.00 |
PIC16LF877-04/PT Overview
Background: A microcontroller (MCU) is a single-chip computer containing a CPU core, non-volatile program memory, RAM, and integrated peripherals such as timers, ADC, and communication interfaces. The PIC16F family is one of Microchip's mid-range 8-bit architectures using a 14-bit instruction word and a RISC-style instruction set with only 35 single-word instructions, allowing most instructions to execute in a single instruction cycle (200 ns at 20 MHz, 1 us at 4 MHz). Within the broader hierarchy, the PIC16LF877 sits between 8-bit MCU -> 8-bit PIC mid-range -> PIC16F sub-family -> PIC16F877 peripheral-rich tier, and belongs to the semiconductor category of integrated circuits.
Key features include the 10-bit 8-channel ADC with input multiplexing for multi-sensor sampling, a hardware USART supporting RS-232/RS-485 asynchronous and synchronous serial communication, a Master Synchronous Serial Port (MSSP) configurable for SPI or I2C master/slave operation, two PWM channels via the CCP module, and a Parallel Slave Port for external microprocessor bus expansion. The In-Circuit Serial Programming (ICSP) interface via RB6/RB7 enables in-system firmware updates without removing the MCU from the board.
Typical applications include industrial control and instrumentation (sensor interfacing via the 8-channel ADC), consumer appliances (washing machines, microwave ovens using PWM motor control), automotive body electronics, low-power remote sensor nodes, and educational/legacy embedded designs where the 44-pin TQFP package and classic PIC16F877 peripheral set are required. The 2.0 V minimum supply voltage also makes it suitable for two-cell battery systems.
When designing with this MCU, ensure adequate decoupling (100 nF ceramic plus 10 uF bulk) close to VDD/VSS pairs, reserve OSC1/OSC2 for the external crystal or resonator (or use the internal RC oscillator to save pins), and note that the 04 speed grade limits the clock to 4 MHz maximum - if higher throughput is required, choose the -10 or -20 speed grade variant instead. Watchdog Timer, Brown-out Reset, and Power-on Reset should be configured per Microchip application notes for robust operation.
Drop-in alternatives for PIC16LF877-04/PT — 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/PT (same form factor and footprint) — differing in Timers, Package, Core, Operating Temperature, Program Memory Size.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
PIC16LF877-04I/PT
✅ Drop-In✓ In Stock
$6.05 / Unit
View Datasheet →PIC16LF877T-04/PT
✅ Drop-In✓ In Stock
$7.95 / Unit
View Datasheet →PIC16LF877-04/P
✅ Drop-In✓ In Stock
$5.45 / Unit
View Datasheet →PIC16LF877-04/L
✅ Drop-In✓ In Stock
$5.85 / Unit
View Datasheet →PIC16LF874-04/PT
✅ Drop-In✓ In Stock
$5.97 / Unit
View Datasheet →PIC16F877-04/PT
✅ Drop-In✓ In Stock
$5.2 / Unit
View Datasheet →PIC16LF877-04/PT Maximum Ratings & Electrical Characteristics
| Core Architecture | PIC 8-bit RISC (mid-range, 14-bit instruction word) |
| Program Memory Type | Flash |
| Program Memory Size | 14 KB (8K x 14 words) |
| RAM Size | 368 bytes |
| EEPROM Size | 256 bytes |
| Maximum Clock Speed | 4 MHz (04 speed grade) |
| Instruction Cycle Time | 1 us at 4 MHz |
| Supply Voltage (VDD) | 2.0 V to 5.5 V |
| I/O Pins | 33 digital I/O |
| ADC | 10-bit, 8 channels |
| Timers | 2x 8-bit + 1x 16-bit (TMR0, TMR1, TMR2) |
| CCP/PWM Modules | 2 (10-bit PWM) |
| Communication Interfaces | MSSP (SPI/I2C), USART (RS-232/RS-485), PSP |
| Package | 44-pin TQFP (PT), 10x10 mm |
| Operating Temperature | 0C to +70C (commercial) |
| Mounting Type | Surface Mount |
| ICSP Programming | Yes (In-Circuit Serial Programming via RB6/RB7) |
| RoHS Status | Compliant |
PIC16LF877-04/PT Pin Configuration
| Pin 1 | RA0/AN0 — PORTA bit 0 / Analog input channel 0 |
| Pin 2 | RA1/AN1 — PORTA bit 1 / Analog input channel 1 |
| Pin 3 | RA2/AN2 — PORTA bit 2 / Analog input channel 2 |
| Pin 4 | RA3/AN3/VREF- — PORTA bit 3 / Analog input channel 3 / ADC VREF- |
| Pin 5 | RA4/T0CKI — PORTA bit 4 / Timer0 clock input |
| Pin 6 | RA5/AN4/SS — PORTA bit 5 / Analog input channel 4 / SPI slave select |
| Pin 7 | RE0/RD/AN5 — PORTE bit 0 / Parallel slave read / Analog input channel 5 |
| Pin 8 | RE1/WR/AN6 — PORTE bit 1 / Parallel slave write / Analog input channel 6 |
| Pin 9 | RE2/CS/AN7 — PORTE bit 2 / Parallel slave chip select / Analog input channel 7 |
| Pin 10 | VDD — Positive supply voltage (2.0V to 5.5V) |
| Pin 11 | VSS — Ground reference |
| Pin 12 | OSC1/CLKIN — External oscillator input / external clock input |
| Pin 13 | OSC2/CLKOUT — External oscillator output / clock output |
| Pin 14 | RC0/T1OSO/T1CKI — PORTC bit 0 / Timer1 oscillator output / Timer1 clock input |
| Pin 15 | RC1/T1OSI/CCP2 — PORTC bit 1 / Timer1 oscillator input / CCP2 PWM output |
| Pin 16 | RC2/CCP1 — PORTC bit 2 / CCP1 PWM output |
| Pin 17 | RC3/SCK/SCL — PORTC bit 3 / SPI clock / I2C clock |
| Pin 18 | RD0/PSP0 — PORTD bit 0 / Parallel slave port data bit 0 |
| Pin 19 | RD1/PSP1 — PORTD bit 1 / Parallel slave port data bit 1 |
| Pin 20 | RD2/PSP2 — PORTD bit 2 / Parallel slave port data bit 2 |
| Pin 21 | RD3/PSP3 — PORTD bit 3 / Parallel slave port data bit 3 |
| Pin 22 | RC4/SDI/SDA — PORTC bit 4 / SPI data in / I2C data |
| Pin 23 | RC5/SDO — PORTC bit 5 / SPI data out |
| Pin 24 | RC6/TX/CK — PORTC bit 6 / USART async transmit or sync clock |
| Pin 25 | RC7/RX/DT — PORTC bit 7 / USART async receive or sync data |
| Pin 26 | RD4/PSP4 — PORTD bit 4 / Parallel slave port data bit 4 |
| Pin 27 | RD5/PSP5 — PORTD bit 5 / Parallel slave port data bit 5 |
| Pin 28 | RD6/PSP6 — PORTD bit 6 / Parallel slave port data bit 6 |
| Pin 29 | RD7/PSP7 — PORTD bit 7 / Parallel slave port data bit 7 |
| Pin 30 | VSS — Ground reference |
| Pin 31 | VSS — Ground reference |
| Pin 32 | RB0/INT — PORTB bit 0 / External interrupt input |
| Pin 33 | RB1 — PORTB bit 1 |
| Pin 34 | RB2 — PORTB bit 2 |
| Pin 35 | RB3/PGM — PORTB bit 3 / Low-voltage programming input |
| Pin 36 | RB4 — PORTB bit 4 |
| Pin 37 | RB5 — PORTB bit 5 |
| Pin 38 | RB6/PGC — PORTB bit 6 / ICSP clock input |
| Pin 39 | RB7/PGD — PORTB bit 7 / ICSP data input/output |
| Pin 40 | VDD — Positive supply voltage (2.0V to 5.5V) |
| Pin 41 | VDD — Positive supply voltage (2.0V to 5.5V) |
| Pin 42 | RB7/PGD — PORTB bit 7 / ICSP data (alternate location) |
| Pin 43 | RB6/PGC — PORTB bit 6 / ICSP clock (alternate location) |
| Pin 44 | RB3/PGM — PORTB bit 3 / Low-voltage programming (alternate location) |
Typical Applications
PIC16LF877-04/PT is suitable for 7 applications: Industrial Control and Instrumentation, Consumer Appliance Control, Battery-Powered Remote Sensor Nodes, Automotive Body Electronics, Educational and Legacy Embedded Development, LCD Display and HMI Controllers, Data Acquisition and Logging Systems.
Industrial Control and Instrumentation
The PIC16LF877-04/PT fits industrial control panels and sensor instrumentation because its 8-channel 10-bit ADC handles multi-sensor scanning without external multiplexing, and the USART plus MSSP (SPI/I2C) connect directly to RS-485 transceivers or sensor modules. Operating at up to 4 MHz with a 1 us instruction cycle, the device executes closed-loop PID logic and HMI scan routines comfortably; the 14 KB Flash holds substantial control firmware while 368 bytes RAM supports moderate data buffering. The 2.0 V to 5.5 V range tolerates industrial 24 V rails after step-down conversion, and the 44-pin TQFP footprint provides ample I/O (33 pins) for keypad, display, and actuator interfacing in production-line controllers.
Recommended
Consumer Appliance Control
Washing machines, microwave ovens, dishwashers, and air-conditioner control boards commonly use the PIC16LF877-04/PT because its two CCP/PWM channels drive motor speed and heating-element power control directly through MOSFET drivers, and the 8-channel ADC reads temperature sensors, water-level switches, and rotary encoders. The 14 KB Flash accommodates full state-machine firmware with menu logic, while 256 bytes EEPROM stores user settings and fault history across power cycles. Compared with newer Cortex-M MCUs the 4 MHz clock is sufficient for slow electromechanical sequencing, and Microchip's longevity program guarantees long-term availability for consumer production runs.
Recommended
Battery-Powered Remote Sensor Nodes
The LF designation (2.0 V to 5.5 V) makes the PIC16LF877-04/PT ideal for two-AA-battery sensor nodes where operation continues down to 2.0 V cell voltage, extending usable battery life by 30-50% compared with 4 V minimum parts. Sleep current draws microamps when the WDT or external interrupt wakes the device, and the 10-bit ADC samples environmental sensors (temperature, humidity, light) on a duty-cycled schedule. The USART links to low-power RF modules like the MRF89XA for wireless telemetry, while the SPI MSSP drives external EEPROM or SPI sensors; the 256-byte on-chip EEPROM stores calibration constants without external memory.
Recommended
Automotive Body Electronics
Within automotive body controllers (window lifters, seat controllers, mirror adjusters, HVAC panels), the PIC16LF877-04/PT is a legacy workhorse because of its 33 I/O pins that interface directly with switch matrices, LED drivers, and LIN bus transceivers. The 8-channel ADC monitors battery voltage, current sensing, and temperature, while two PWM channels drive DC motor speed for window/seat actuators. Note that for AEC-Q100 automotive qualification Microchip recommends the PIC16F877A-I/PT or PIC16F887 industrial variants; the LF877/04PT is typically used in non-safety automotive accessory modules where commercial temperature grade is acceptable.
Recommended
Educational and Legacy Embedded Development
The PIC16LF877-04/PT is widely used in university embedded systems courses and hobbyist designs thanks to its 44-pin TQFP breakout boards, ICD2/ICD3/PICKit programmer compatibility, and the mature MPLAB X IDE plus XC8 compiler ecosystem. With 14 KB Flash and 368 bytes RAM the device supports nontrivial student projects (robotics, data loggers, signal generators) while remaining simple enough to teach assembly language fundamentals. The PIC16 mid-range instruction set is only 35 instructions, making it a tractable teaching platform. For new designs the PIC16F18875 is recommended, but the LF877 remains preferred for courses maintaining decade-old lab infrastructure.
Recommended
LCD Display and HMI Controllers
The PIC16LF877-04/PT serves as a stand-alone HMI controller for character LCDs (HD44780-compatible) and small graphic LCDs because its 33 I/O pins provide ample parallel data bus (PORTD as 8-bit data, plus PORTE control lines) and the MSSP can drive SPI-based OLED displays. The 14 KB Flash holds full menu structures and string tables for multi-language UIs, while the 256-byte EEPROM retains user preferences. The 8-channel ADC reads up to 8 buttons via resistor-ladder networks, eliminating matrix-scanning firmware. Compared with dedicated LCD controller ICs, the LF877 offers programmability for custom fonts, animations, and touch-panel integration in point-of-sale terminals and medical-device front panels.
Recommended
Data Acquisition and Logging Systems
Stand-alone data loggers for environmental monitoring, energy metering, and laboratory instruments use the PIC16LF877-04/PT because its 8-channel 10-bit ADC samples multiple transducers simultaneously, while 256 bytes EEPROM plus 14 KB Flash buffer logged data before transmission. The USART outputs to RS-232/RS-485 or radio modems, and the MSSP interfaces to SD cards (via SPI) for high-capacity storage expansion. The ICSP programming port allows firmware updates in the field without disassembly. Compared with 32-bit data loggers the LF877 has lower throughput, but its low cost and low power (sleep current microamps) make it ideal for solar-powered remote loggers that sample slowly over months.
Recommended
Recommended Products Summary
Engineering reference data for PIC16LF877-04/PT — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | PIC16LF877-04I/PT | PIC16LF877T-04/PT | PIC16LF877-04/P | PIC16LF877-04/L | PIC16LF874-04/PT | PIC16F877-04/PT |
|---|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 44-pin TQFP (PT) | 44-pin TQFP (PT) - same | 44-pin TQFP (PT) - same | 40-pin PDIP (P) - different | 44-pin PLCC (L) - different | 44-pin TQFP (PT) - same | 44-pin TQFP (PT) - same |
| Program Memory | 14 KB Flash | 14 KB Flash | 14 KB Flash | 14 KB Flash | 14 KB Flash | 7 KB Flash | 14 KB Flash |
| RAM | 368 bytes | 368 bytes | 368 bytes | 368 bytes | 368 bytes | 192 bytes | 368 bytes |
| Max Clock Speed | 4 MHz | 4 MHz | 4 MHz | 4 MHz | 4 MHz | 4 MHz | 4 MHz |
| 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 | 2.0 V to 5.5 V | 4.0 V to 5.5 V |
| Operating Temperature | 0C to +70C | -40C to +85C (industrial) | 0C to +70C | 0C to +70C | 0C to +70C | 0C to +70C | 0C to +70C |
| I/O Pins | 33 | 33 | 33 | 33 | 33 | 33 | 33 |
| ADC | 10-bit, 8-channel | 10-bit, 8-channel | 10-bit, 8-channel | 10-bit, 8-channel | 10-bit, 8-channel | 10-bit, 8-channel | 10-bit, 8-channel |
| EEPROM | 256 bytes | 256 bytes | 256 bytes | 256 bytes | 256 bytes | 128 bytes | 256 bytes |
Key Differentiators
- Extended low-voltage operation down to 2.0 V (vs PIC16F877-04/PT)
- 44-pin TQFP package for maximum peripheral access (vs PIC16LF876 series)
- Higher Flash and RAM than lower-tier 874 variant (vs PIC16LF874-04/PT)
Design Notes
Decouple VDD/VSS pairs with a 100 nF ceramic capacitor placed within 5 mm of each supply pin and a single 10 uF bulk tantalum or aluminum electrolytic capacitor on the main VDD rail. The PIC16LF877 has multiple VDD/VSS pins (pin 10/11, pin 30/31, pin 40/41) that must all be connected for proper operation. For battery-powered designs using the LF variant, ensure VDD does not drop below 2.0 V during ADC acquisition or Flash programming operations - otherwise unexpected resets or EEPROM corruption may occur.
Keep the crystal or resonator (or external clock trace) within 1 cm of the OSC1/OSC2 pins to minimize stray capacitance. The ICSP pins RB6/PGC and RB7/PGD should be routed to a 6-pin header with no series resistors; if in-circuit debugging is required, ensure the MCLR pin (active-low reset) is pulled to VDD through a 10 kohm resistor and has a capacitor to ground for proper reset timing. Place analog reference pins (RA3/VREF-) and AVSS with separate analog ground traces if ADC accuracy is critical.
The -04 speed grade suffix means a maximum 4 MHz oscillator frequency - do not use this part with a 20 MHz crystal because instruction execution and ADC timing will be out of specification. The LF variant requires 2.0 V minimum VDD, but Flash self-programming/ICSP requires VDD >= 4.5 V; ensure supply is within this range during firmware updates. The Watchdog Timer, Brown-out Reset, and Power-up Timer must be configured in the configuration words (register 0x2007) per Microchip application note TB008; leaving them at default can cause intermittent resets in noisy environments.
Compliance Information
RoHS compliant per Microchip product page. Not AEC-Q100 qualified - choose PIC16F877A-I/PT for automotive-grade applications. Halogen-free status not explicitly stated in retrieved data.