PIC16F877-04I/PQ - 8-Bit 4MHz 14KB Flash MCU 44-MQFP | Microchip
MPN: PIC16F877-04I/PQ ✓ 啟用中PIC16F877-04I/PQ 概覽
An 8-bit microcontroller (MCU) is a single-chip computer that integrates a CPU, non-volatile program memory, working RAM, peripheral set, and I/O on one die. The PIC16F family uses Microchip's enhanced Harvard RISC architecture and occupies the mid-range tier of the PIC line, sitting between the baseline PIC10/12/16 and the high-performance PIC18/PIC24 families. Mid-range MCUs are widely used in embedded control where deterministic timing, low power, and simple peripheral sets are more important than raw MIPS - typical roles include sensor conditioning, user-interface driving, and protocol bridging.
Key features include five built-in peripherals: a 10-bit 8-channel Analog-to-Digital Converter (ADC), two 8-bit timers plus one 16-bit timer, a Universal Synchronous Asynchronous Receiver Transmitter (USART), a Master Synchronous Serial Port (MSSP) supporting both SPI and I2C, and a Capture/Compare/PWM (CCP) module. The device operates from 2.0 V to 5.5 V and provides 25 mA source/sink per I/O, supporting direct LED driving. Only 35 single-word instructions simplify code development, while the 14-bit wide instruction word keeps the program counter at 8K address depth.
The 44-pin MQFP (PQ) package exposes the full peripheral set, including two analog comparators and a parallel slave port, which are absent on the 28-pin PIC16F876. The 200 ns instruction cycle enables deterministic interrupt response suitable for motor-control and power-conversion loops. Brown-out Reset (BOR), Power-on Reset (POR), and a Watchdog Timer (WDT) protect against lock-ups in industrial environments.
Typical applications include industrial automation controllers, HVAC and building-control systems, automotive body electronics, data-acquisition front ends, and consumer appliances. The 4 MHz speed grade is well matched to UART bridges, sensor hubs, and human-machine interface (HMI) key-scan matrices. The I-grade temperature range covers outdoor and factory-floor installations.
Design consideration: pair the MCU with a 20 MHz resonator only if the -20 speed variant is selected; the -04 grade uses a 4 MHz crystal or resonator. In-Circuit Serial Programming (ICSP) requires dedicated RB6/RB7 pins, so do not repurpose them for outputs without isolating the programmer during field updates. The MQFP package needs a thermal pad copper pour for production wave-solder reliability.
This page consolidates distributor pricing, same-family drop-in alternatives, and field-tested design notes that go beyond what the manufacturer datasheet alone provides, helping sourcing, design, and obsolescence teams evaluate the PIC16F877-04I/PQ in context.
直接替換替代品,適用於 PIC16F877-04I/PQ — 相同封裝,腳位對腳位相容。需重新設計 PCB 的不同封裝零件不列入。
此系列的變體
與下列產品可直接替換的同系列型號: PIC16F877-04I/PQ (相同外形與佔位) — 差異在於 Core Architecture, Package, Operating Temperature, Timers, ADC.
PIC16F877-04E/PQ
✅ 直接替換聯絡詢價
查看資料表 →PIC16F874-04I/PQ
✅ 直接替換聯絡詢價
查看資料表 →PIC16F877-04/PQ
✅ 直接替換聯絡詢價
查看資料表 →PIC16F874-04/PQ
✅ 直接替換聯絡詢價
查看資料表 →PIC16F877-04I/PQ 最大額定值與電氣特性
| Architecture | 8-bit PIC Mid-Range Harvard RISC |
| Core | PIC16 |
| Family | PIC 16F |
| 最大時脈頻率 | 4 MHz |
| Instruction Execution Time | 200 ns |
| Program Memory Type | FLASH |
| Program Memory Size | 14 KB (8K x 14 words) |
| Data RAM | 368 bytes |
| EEPROM | 256 bytes |
| I/O Pins | 33 |
| Supply Voltage Range | 2.0 V to 5.5 V |
| 工作溫度範圍 | -40 C to +85 C (Industrial) |
| ADC | 10-bit, 8 channels |
| Timers | 2 x 8-bit + 1 x 16-bit |
| Communication Interfaces | USART, MSSP (SPI / I2C) |
| CCP Module | Yes (Capture / Compare / PWM) |
| 封裝 | 44-pin MQFP (10 x 10 mm) |
| 安裝類型 | Surface Mount |
| Speed Grade Suffix | -04 (4 MHz) |
| Temperature Grade Suffix | I (Industrial) |
| Package Suffix | /PQ (44-MQFP) |
PIC16F877-04I/PQ /pq (44-mqfp) 腳位配置指南
PIC16F877-04I/PQ(/pq (44-mqfp) 封裝)的腳位配置。 此數位 IC 包含 GPIO、通訊介面(UART、SPI、I2C)與電源腳位。替代腳位功能與配置選項請參閱製造商資料表。對嵌入式系統設計與 PCB 佈局至關重要。
無詳細腳位定義資料: PIC16F877-04I/PQ.
請參閱 資料表 以查看完整腳位配置。
典型應用
PIC16F877-04I/PQ 適用於 6 應用s: Industrial Automation Controllers, HVAC and Building Control, Data Acquisition Front Ends, Automotive Body Electronics, User Interface / Keypad Controllers, Consumer Appliance Control Boards.
Industrial Automation Controllers
The PIC16F877-04I/PQ's 4 MHz CPU, 33 I/O pins, and integrated 10-bit 8-channel ADC map cleanly onto PLC I/O modules and small machine controllers. The industrial -40 C to +85 C temperature grade covers factory-floor installations, while the on-chip USART and MSSP (SPI/I2C) provide native links to RS-485 transceivers and industrial sensor buses. Its 200 ns instruction cycle keeps deterministic loop times for sequencing and PWM-driven actuator control.
推薦
HVAC and Building Control
HVAC controllers leverage the PIC16F877-04I/PQ's 10-bit ADC to read thermistors, pressure transducers, and airflow sensors, while its CCP module generates PWM outputs for damper and valve actuation. The 256 B of EEPROM stores calibration constants and user set-points across power cycles. Industrial temperature operation and brown-out reset ensure reliable startup across unstable building-supply conditions.
推薦
Data Acquisition Front Ends
Multi-channel data loggers use the PIC16F877-04I/PQ's 8-channel 10-bit ADC, 256 B of EEPROM, and MSSP to stream digitized sensor data to an external SD card or EEPROM. The 4 MHz instruction rate comfortably handles ADC sampling at the 8-channel scan rate, and the USART forwards telemetry to a host computer. Industrial -40 C to +85 C support covers outdoor and indoor remote-monitoring installations.
推薦
Automotive Body Electronics
Non-safety automotive modules such as seat controllers, mirror adjusters, and lighting drivers fit naturally inside the PIC16F877-04I/PQ's capabilities. The 33 I/O pins drive relays, LEDs, and switches, while the CCP module handles PWM dimming. Its operating voltage range (2.0 V to 5.5 V) tolerates 12 V automotive battery cranking transients when paired with external TVS protection. The industrial temperature range covers cabin-environment operation.
推薦
User Interface / Keypad Controllers
Human-machine interface (HMI) panels use the PIC16F877-04I/PQ's PORTB interrupt-on-change feature for keypad scanning without CPU polling, plus its 33 I/O pins to drive 7-segment or character LCDs. The 4 MHz CPU sustains smooth menu navigation while the USART relays user input to a host processor. EEPROM stores menu configuration and last-known state across power cycles.
推薦
Consumer Appliance Control Boards
Washing machines, microwave ovens, and small kitchen appliances depend on the PIC16F877-04I/PQ's robust I/O set, ADC channels for sensing temperature and water level, and PWM via the CCP module for motor and heater regulation. Industrial -40 C to +85 C support handles appliance interior temperature rise, and the 256 B EEPROM stores cycle state and error logs. Proven PIC mid-range firmware tools accelerate consumer-product certification timelines.
推薦
推薦產品摘要
工程參考資料,適用於 PIC16F877-04I/PQ — 比較、設計指引及合規資訊。
選型指南
與替代品比較
| 參數 | 本產品 | PIC16F877-04E/PQ | PIC16F874-04I/PQ | PIC16F877-04/PQ | PIC16F874-04/PQ |
|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 44-MQFP (10x10 mm) | 44-MQFP (10x10 mm) - same | 44-MQFP (10x10 mm) - same | 44-MQFP (10x10 mm) - same | 44-MQFP (10x10 mm) - same |
| Program Memory (Flash) | 14 KB (8K x 14) | 14 KB | 7 KB | 14 KB | 7 KB |
| RAM / EEPROM | 368 B / 256 B | 368 B / 256 B | 368 B / 256 B | 368 B / 256 B | 368 B / 256 B |
| Maximum Clock Frequency | 4 MHz | 4 MHz | 4 MHz | 4 MHz | 4 MHz |
| Operating Temperature Range | -40 C to +85 C (Industrial) | -40 C to +125 C (Extended) | -40 C to +85 C (Industrial) | 0 C to +70 C (Commercial) | 0 C to +70 C (Commercial) |
| ADC | 10-bit, 8 channels | 10-bit, 8 channels | 10-bit, 8 channels | 10-bit, 8 channels | 10-bit, 8 channels |
| I/O Pins | 33 | 33 | 33 | 33 | 33 |
| Communication Interfaces | USART + MSSP (SPI/I2C) | USART + MSSP (SPI/I2C) | USART + MSSP (SPI/I2C) | USART + MSSP (SPI/I2C) | USART + MSSP (SPI/I2C) |
主要差異化特點
- Largest Flash memory at the 44-MQFP footprint (對比PIC16F874-04I/PQ)
- Industrial temperature grade for harsh environments (對比PIC16F877-04/PQ)
- Full peripheral set on 44-MQFP (對比PIC16F876 (28-pin SOIC/SPDIP))
設計說明
Power the PIC16F877-04I/PQ from a regulated 2.0 V to 5.5 V supply. Place a 100 nF decoupling capacitor close to each VDD/VSS pair (the device has two pairs on this 44-MQFP package). For best ADC accuracy, drive AVDD from a low-noise regulator; even a few millivolts of ripple will couple into analog conversions.
Place the 4 MHz crystal or resonator within a few millimeters of OSC1/OSC2 (pins 13/14) and route grounds symmetrically. Keep the clock traces short and shielded by a ground pour to avoid coupling noise into the ADC inputs. The MCLR/VPP pin (pin 1) requires a 10 kohm pull-up and a 100 nF cap for in-circuit serial programming (ICSP).
Do not exceed 25 mA source or sink per I/O pin, and never exceed the 200 mA total package dissipation budget. The PORTB interrupt-on-change feature must be configured carefully - any mismatch between RBIF and the corresponding IOC flag will leave interrupts masked. The MSSP module needs correct direction (TRIS) settings before enabling I2C mode, otherwise the SDA/SCL lines will fight each other and damage ports.
Estimated: at 4 MHz, 5 V supply, full I/O loading and typical industrial ambient, power dissipation is well under 100 mW - the 44-MQFP package handles this comfortably without thermal relief. Even at 85 C ambient, junction temperature remains safely below the 150 C absolute maximum. No heatsink or thermal pad copper pour is required for the MQFP package at this power level.
合規資訊
RoHS and REACH compliance status not explicitly stated in the verified web data. Microchip is QS-9000 / ISO 9001 certified at its Chandler and Tempe facilities. AEC-Q100 is not applicable for general industrial / consumer MCU parts; choose a Q-graded variant for automotive safety-critical systems. Lead-free is implied by the Microchip modern packaging - reclaimed from platform note that Microchip QS-9000 quality system applies to this PICmicro line.