PIC16LF877-04/PT - 8-Bit 4MHz MCU 14KB Flash 44-TQFP | Microchip
料号: PIC16LF877-04/PT ✓ 量产中| 数量 | 单价 | 小计 |
|---|---|---|
| 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 概述
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.
直接替换替代料: PIC16LF877-04/PT ——相同封装,引脚兼容。需要 PCB 改动的不同封装料号已排除。
本系列中的变体
可与以下型号直接替换的同系列型号: PIC16LF877-04/PT (相同外形与封装尺寸) ——差异在于 Timers, Package, Operating Temperature, Core, Core Architecture.
快速对比工具——选择替代料号进行并排对比:
PIC16LF877-04I/PT
✅ 直接替换✓ 有现货
$6.05 / 个
查看数据手册 →PIC16LF877T-04/PT
✅ 直接替换✓ 有现货
$7.95 / 个
查看数据手册 →PIC16LF877-04/P
✅ 直接替换✓ 有现货
$5.45 / 个
查看数据手册 →PIC16LF877-04/L
✅ 直接替换✓ 有现货
$5.85 / 个
查看数据手册 →PIC16LF874-04/PT
✅ 直接替换✓ 有现货
$5.97 / 个
查看数据手册 →PIC16F877-04/PT
✅ 直接替换✓ 有现货
$5.2 / 个
查看数据手册 →PIC16LF877-04/PT 最大额定值与电气特性
| 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 |
| 封装 | 44-pin TQFP (PT), 10x10 mm |
| 工作温度 | 0C to +70C (commercial) |
| 安装类型 | Surface Mount |
| ICSP Programming | Yes (In-Circuit Serial Programming via RB6/RB7) |
| RoHS 状态 | Compliant |
PIC16LF877-04/PT 引脚配置
| 引脚 1 | RA0/AN0 — PORTA bit 0 / Analog input channel 0 |
| 引脚 2 | RA1/AN1 — PORTA bit 1 / Analog input channel 1 |
| 引脚 3 | RA2/AN2 — PORTA bit 2 / Analog input channel 2 |
| 引脚 4 | RA3/AN3/VREF- — PORTA bit 3 / Analog input channel 3 / ADC VREF- |
| 引脚 5 | RA4/T0CKI — PORTA bit 4 / Timer0 clock input |
| 引脚 6 | RA5/AN4/SS — PORTA bit 5 / Analog input channel 4 / SPI slave select |
| 引脚 7 | RE0/RD/AN5 — PORTE bit 0 / Parallel slave read / Analog input channel 5 |
| 引脚 8 | RE1/WR/AN6 — PORTE bit 1 / Parallel slave write / Analog input channel 6 |
| 引脚 9 | RE2/CS/AN7 — PORTE bit 2 / Parallel slave chip select / Analog input channel 7 |
| 引脚 10 | VDD — Positive supply voltage (2.0V to 5.5V) |
| 引脚 11 | VSS — Ground reference |
| 引脚 12 | OSC1/CLKIN — External oscillator input / external clock input |
| 引脚 13 | OSC2/CLKOUT — External oscillator output / clock output |
| 引脚 14 | RC0/T1OSO/T1CKI — PORTC bit 0 / Timer1 oscillator output / Timer1 clock input |
| 引脚 15 | RC1/T1OSI/CCP2 — PORTC bit 1 / Timer1 oscillator input / CCP2 PWM output |
| 引脚 16 | RC2/CCP1 — PORTC bit 2 / CCP1 PWM output |
| 引脚 17 | RC3/SCK/SCL — PORTC bit 3 / SPI clock / I2C clock |
| 引脚 18 | RD0/PSP0 — PORTD bit 0 / Parallel slave port data bit 0 |
| 引脚 19 | RD1/PSP1 — PORTD bit 1 / Parallel slave port data bit 1 |
| 引脚 20 | RD2/PSP2 — PORTD bit 2 / Parallel slave port data bit 2 |
| 引脚 21 | RD3/PSP3 — PORTD bit 3 / Parallel slave port data bit 3 |
| 引脚 22 | RC4/SDI/SDA — PORTC bit 4 / SPI data in / I2C data |
| 引脚 23 | RC5/SDO — PORTC bit 5 / SPI data out |
| 引脚 24 | RC6/TX/CK — PORTC bit 6 / USART async transmit or sync clock |
| 引脚 25 | RC7/RX/DT — PORTC bit 7 / USART async receive or sync data |
| 引脚 26 | RD4/PSP4 — PORTD bit 4 / Parallel slave port data bit 4 |
| 引脚 27 | RD5/PSP5 — PORTD bit 5 / Parallel slave port data bit 5 |
| 引脚 28 | RD6/PSP6 — PORTD bit 6 / Parallel slave port data bit 6 |
| 引脚 29 | RD7/PSP7 — PORTD bit 7 / Parallel slave port data bit 7 |
| 引脚 30 | VSS — Ground reference |
| 引脚 31 | VSS — Ground reference |
| 引脚 32 | RB0/INT — PORTB bit 0 / External interrupt input |
| 引脚 33 | RB1 — PORTB bit 1 |
| 引脚 34 | RB2 — PORTB bit 2 |
| 引脚 35 | RB3/PGM — PORTB bit 3 / Low-voltage programming input |
| 引脚 36 | RB4 — PORTB bit 4 |
| 引脚 37 | RB5 — PORTB bit 5 |
| 引脚 38 | RB6/PGC — PORTB bit 6 / ICSP clock input |
| 引脚 39 | RB7/PGD — PORTB bit 7 / ICSP data input/output |
| 引脚 40 | VDD — Positive supply voltage (2.0V to 5.5V) |
| 引脚 41 | VDD — Positive supply voltage (2.0V to 5.5V) |
| 引脚 42 | RB7/PGD — PORTB bit 7 / ICSP data (alternate location) |
| 引脚 43 | RB6/PGC — PORTB bit 6 / ICSP clock (alternate location) |
| 引脚 44 | RB3/PGM — PORTB bit 3 / Low-voltage programming (alternate location) |
典型应用
PIC16LF877-04/PT 适用于 7 应用s: 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.
推荐
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.
推荐
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.
推荐
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.
推荐
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.
推荐
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.
推荐
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.
推荐
推荐产品汇总
工程参考数据: PIC16LF877-04/PT ——对比、设计指导和合规信息。
选型指南
与替代料对比
| 参数 | 本产品 | 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 |
关键差异点
- Extended low-voltage operation down to 2.0 V (对比 PIC16F877-04/PT)
- 44-pin TQFP package for maximum peripheral access (对比 PIC16LF876 series)
- Higher Flash and RAM than lower-tier 874 variant (对比 PIC16LF874-04/PT)
设计说明
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.
合规信息
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.