PIC16F877-04/PQ - 4MHz 8-Bit 14KB Flash MCU | Microchip | 44-MQFP
Артикул: PIC16F877-04/PQ ✗ Снят с производства| Кол-во | Цена за ед. | Итого |
|---|---|---|
| 1 | $9.5 | $9,50 |
| 10 | $8.55 | $85,50 |
| 100 | $7.6 | $760,00 |
| 500 | $6.65 | $3.325,00 |
| 1.000 | $5.7 | $5.700,00 |
PIC16F877-04/PQ Обзор
An 8-bit microcontroller is a single-chip processor with an 8-bit data path, on-chip program and data memory, and integrated peripherals, used to read sensors, drive actuators, and orchestrate real-time control loops in embedded systems. The PIC16F877 belongs to the hierarchy: microcontroller -> 8-bit MCU -> mid-range PIC16 family -> FLASH-based PIC16F8XX sub-family -> peripheral-rich PIC16F87X series, sitting beneath 16-bit dsPIC/PIC24 and 32-bit PIC32 devices in Microchip's MCU portfolio. Its RISC architecture executes one instruction per 200 ns internal clock cycle, simplifying deterministic real-time code while keeping the instruction set to 35 single-word opcodes.
Key features include 14 KB self-programmable FLASH, 256 bytes of EEPROM for non-volatile data storage, a 10-bit ADC with up to 8 channels, two PWM modules, two analog comparators, three timers (Timer0/Timer1/Timer2), and the PIC16 synchronous/asynchronous serial port (USART/SCI) plus an MSSP module that supports both SPI master/slave and I2C master/slave. The 33 I/O pins can each source/sink up to 25 mA, suitable for LED driving and small relays, and the device supports in-circuit serial programming (ICSP) via two pins for field upgrades.
Architecturally, the PIC16F877 uses a Harvard bus with separate program and data paths, an 8-bit ALU, and a 14-bit instruction word. The 4 MHz external crystal yields a 1 MHz instruction rate (Fosc/4), and the part is specified for the commercial 0C to +70C range. Compared to the newer PIC16F877A revision, the original PIC16F877 uses 14-bit core instructions, while the 'A' revision adds a wider instruction set and faster ADC - which is why Microchip recommends the PIC16F887 as the modern drop-in successor.
Typical applications include industrial automation controllers, HVAC sensor nodes, automotive body electronics, educational development boards, smart-card readers, and embedded data-acquisition front-ends. The PIC16F877-04/PQ specifically is the 44-pin MQFP surface-mount variant of the family. According to the Microchip PIC16F877 datasheet, it is recommended for designs where 4 MHz operation, FLASH reprogrammability, and a large 44-pin QFP footprint are required.
When designing with this part, allocate adequate decoupling (100 nF ceramic plus 10 uF bulk) on VDD/AVDD/VSS/AVSS, and follow Microchip's Emulation/ICSP header layout if you plan to debug in-circuit. Watch out for the brown-out reset (BOR) configuration fuse - leaving it disabled can produce erratic starts on slow-rising supplies. Designers considering migration should evaluate the PIC16F877A-I/PQ or PIC16F887-I/PQ, which are pin-compatible upgrades.
This page synthesizes distributor pricing from DigiKey and Mouser, drop-in same-package alternatives, and practical design notes not collected on any single manufacturer page.
Аналоги без доработки для PIC16F877-04/PQ — тот же корпус, pin-to-pin совместимость. Компоненты в других корпусах, требующие переработки PCB, исключены.
Варианты в этой серии
Модели той же серии, совместимые без доработки с PIC16F877-04/PQ (тот же форм-фактор и посадочное место) — отличается по Package, Timers, Core Architecture, ADC, Program Memory Size.
Инструмент быстрого сравнения — выберите альтернативные компоненты для сравнения бок о бок:
PIC16F877-04I/PQ
✅ Прямая замена✓ В наличии
$4.35 / шт.
Открыть даташит →PIC16F877-04E/PQ
✅ Прямая замена✓ В наличии
$5.72 / шт.
Открыть даташит →PIC16F874-04/PQ
✅ Прямая замена✓ В наличии
$5.9 / шт.
Открыть даташит →PIC16F877A-I/PQ
✅ Прямая замена📋 Справочный аналог (нет в каталоге)
PIC16F887-I/PQ
✅ Прямая замена📋 Справочный аналог (нет в каталоге)
PIC16F877-04/PQ Максимальные параметры и электрические характеристики
| Core Architecture | 8-bit PIC16 RISC (Harvard) |
| Instruction Set Width | 14-bit |
| Max CPU Frequency | 4 MHz |
| Instruction Execution Time | 200 ns |
| Program Memory (FLASH) | 14 KB (8K x 14) |
| Data RAM | 368 bytes |
| Data EEPROM | 256 bytes |
| I/O Pins | 33 |
| ADC | 10-bit, up to 8 channels |
| Timers | 3 (Timer0, Timer1, Timer2) |
| PWM Channels | 2 |
| Comparators | 2 analog |
| Serial Interfaces | USART/SCI + MSSP (SPI/I2C) |
| Корпус | 44-pin MQFP (10x10 mm), PQ suffix |
| Рабочая температура | 0C to +70C (commercial) |
| Тип монтажа | Surface Mount |
Конфигурация выводов PIC16F877-04/PQ
| Контакт 1 | MCLR/VPP — Master Clear (reset) input / programming voltage |
| Контакт 2 | RA0/AN0 — PORTA bit 0 / analog input 0 |
| Контакт 3 | RA1/AN1 — PORTA bit 1 / analog input 1 |
| Контакт 4 | RA2/AN2 — PORTA bit 2 / analog input 2 |
| Контакт 5 | RA3/AN3/VREF- — PORTA bit 3 / analog input 3 / ADC VREF- |
| Контакт 6 | RA4/T0CKI — PORTA bit 4 / Timer0 clock input |
| Контакт 7 | RA5/AN4/SS — PORTA bit 5 / analog input 4 / SPI slave select |
| Контакт 8 | RE0/RD/AN5 — PORTE bit 0 / parallel-port read / analog input 5 |
| Контакт 9 | RE1/WR/AN6 — PORTE bit 1 / parallel-port write / analog input 6 |
| Контакт 10 | RE2/CS/AN7 — PORTE bit 2 / parallel-port chip-select / analog input 7 |
| Контакт 11 | VDD — Positive supply (digital) |
| Контакт 12 | VSS — Ground (digital) |
| Контакт 13 | OSC1/CLKIN — Oscillator crystal input / external clock in |
| Контакт 14 | OSC2/CLKOUT — Oscillator crystal output / clock out |
| Контакт 15 | RC0/T1OSO/T1CKI — PORTC bit 0 / Timer1 oscillator output / T1 clock in |
| Контакт 16 | RC1/T1OSI/CCP2 — PORTC bit 1 / Timer1 oscillator input / CCP2 PWM |
| Контакт 17 | RC2/CCP1 — PORTC bit 2 / CCP1 PWM output |
| Контакт 18 | RC3/SCK/SCL — PORTC bit 3 / SPI clock / I2C clock |
| Контакт 19 | RD0/PSP0 — PORTD bit 0 / parallel slave port bit 0 |
| Контакт 20 | RD1/PSP1 — PORTD bit 1 / parallel slave port bit 1 |
| Контакт 21 | RD2/PSP2 — PORTD bit 2 / parallel slave port bit 2 |
| Контакт 22 | RD3/PSP3 — PORTD bit 3 / parallel slave port bit 3 |
| Контакт 23 | RC4/SDI/SDA — PORTC bit 4 / SPI data in / I2C data |
| Контакт 24 | RC5/SDO — PORTC bit 5 / SPI data out |
| Контакт 25 | RC6/TX/CK — PORTC bit 6 / USART transmit / USART clock |
| Контакт 26 | RC7/RX/DT — PORTC bit 7 / USART receive / USART data |
| Контакт 27 | RD4/PSP4 — PORTD bit 4 / parallel slave port bit 4 |
| Контакт 28 | RD5/PSP5 — PORTD bit 5 / parallel slave port bit 5 |
| Контакт 29 | RD6/PSP6 — PORTD bit 6 / parallel slave port bit 6 |
| Контакт 30 | RD7/PSP7 — PORTD bit 7 / parallel slave port bit 7 |
| Контакт 31 | VSS — Ground (digital) |
| Контакт 32 | VDD — Positive supply (digital) |
| Контакт 33 | RB0/INT — PORTB bit 0 / external interrupt |
| Контакт 34 | RB1 — PORTB bit 1 |
| Контакт 35 | RB2 — PORTB bit 2 |
| Контакт 36 | RB3/PGM — PORTB bit 3 / low-voltage programming |
| Контакт 37 | RB4 — PORTB bit 4 |
| Контакт 38 | RB5 — PORTB bit 5 |
| Контакт 39 | RB6/PGC — PORTB bit 6 / ICSP clock |
| Контакт 40 | RB7/PGD — PORTB bit 7 / ICSP data |
| Контакт 41 | NC — Not connected (per datasheet) |
| Контакт 42 | NC — Not connected (per datasheet) |
| Контакт 43 | NC — Not connected (per datasheet) |
| Контакт 44 | NC — Not connected (per datasheet) |
Типичное применение
PIC16F877-04/PQ подходит для 6 применениеs: Industrial Automation Controllers, HVAC Sensor and Actuator Nodes, Educational Microcontroller Boards, Automotive Body Electronics, Embedded Data-Acquisition Front-Ends, Smart-Card and RFID Reader Modules.
Industrial Automation Controllers
The PIC16F877-04/PQ is well-suited to industrial automation controllers where deterministic 200 ns instruction execution and 33 robust 25 mA I/O pins drive relays, solenoids, and sensor networks. The 4 MHz CPU clock is adequate for PID loop rates up to several kHz, and the 14 KB FLASH holds ladder-logic-equivalent C code for typical machine-control state machines. The 10-bit ADC with up to 8 channels reads process variables (temperature, pressure, flow) directly, while the two PWM channels drive proportional valves or motor speed references. The MQFP-44 surface-mount package supports reflow assembly onto SMC carrier boards typical in PLC and HMI subsystems. Compared to newer Cortex-M0 parts, the PIC16F877-04/PQ trades raw MIPS for predictable interrupt latency and a 35-instruction RISC core that is easy to certify for industrial control code.
Рекомендуется
HVAC Sensor and Actuator Nodes
In HVAC sensor and actuator nodes the PIC16F877-04/PQ's 14 KB FLASH and 368-byte RAM comfortably run Modbus or BACnet-lite stacks over the on-chip USART, while the 10-bit ADC samples multiple thermistor and pressure-sensor channels. The two analog comparators can implement over-temperature safety cutoffs without external op-amps, and the three timers handle PWM-driven damper and valve actuators with millisecond resolution. The 4 MHz CPU and 33 I/O pins support up to 5 fan-speed PWM channels via software multiplexing when needed. The MQFP-44 footprint is convenient for the small surface-mount PCBs that mount inside air-handler units, and the PIC's low-power SLEEP mode draws microamps for battery-backed thermostat duty.
Рекомендуется
Educational Microcontroller Boards
The PIC16F877-04/PQ has been a workhorse on educational microcontroller boards for two decades, prized for its 35-instruction RISC core that students can master in one lab session. The 14 KB FLASH holds substantial C code for course projects, the 33 I/O pins drive 7-segment displays, keypads, and character LCDs directly, and the ICSP programming interface enables in-circuit programming on soldered boards without UV erasure. The 44-pin MQFP-44 variant fits standard 0.1" breakout adapters used in academic labs. The PIC's deterministic timing is ideal for teaching real-time scheduling concepts, and the device's wide third-party toolchain support (MPLAB X, XC8, third-party C compilers) keeps the learning curve gentle for undergraduates.
Рекомендуется
Automotive Body Electronics
Although Microchip recommends newer devices for new automotive programs, the PIC16F877-04/PQ remains in legacy body-electronics modules such as central-locking controllers, mirror-adjustment units, and interior-lighting drivers. Its 25 mA per-pin drive handles small automotive relays and LED strings without external buffers, and the MSSP peripheral manages I2C communication with door-modules and seat controllers. The 4 MHz core is sufficient for body-control task rates in the 100 Hz range. Designers maintaining these legacy designs should note that the automotive-grade temperature option is the PIC16F877-04I/PQ or PIC16F877-04E/PQ variant - the commercial-temperature PQ suffix shown here is intended for industrial or hobby retrofits rather than under-hood automotive duty.
Рекомендуется
Embedded Data-Acquisition Front-Ends
In embedded data-acquisition front-ends the PIC16F877-04/PQ provides a complete 8-channel, 10-bit ADC plus USART (RS-232/RS-485) data uplink in a single chip, reducing the bill of materials for low-channel-count sensor aggregators. The 14 KB FLASH accommodates linearization tables for thermocouples and load cells, and the 256-byte EEPROM stores calibration coefficients that persist across power cycles. The two PWM outputs can drive excitation sources for resistive sensors or low-power transducers. The 4 MHz CPU samples at the ADC's conversion rate (tens of kSPS) and forwards blocks over the serial port to a higher-tier controller. The MQFP-44 surface-mount package suits compact front-end PCBs that fan into larger process-control racks.
Рекомендуется
Smart-Card and RFID Reader Modules
The PIC16F877-04/PQ is a proven controller in legacy smart-card and 125 kHz RFID reader modules, where its MSSP peripheral drives synchronous serial cards at 3.57 MHz (T=0/T=1) and its USART talks to the host. The 14 KB FLASH fits ISO 7816-3 ATR/PPS handling routines, the 33 I/O pins connect to the card socket's presence switches and indicator LEDs, and the two analog comparators detect card insertion. The 4 MHz core handles ATR parsing and T=0 protocol stacks within the card-insertion latency budget. The MQFP-44 surface-mount package is convenient for the compact reader PCBs used in access-control panels, and the 256-byte EEPROM stores per-card keys or access logs in battery-backed door controllers.
Рекомендуется
Сводка рекомендуемых товаров
Справочные инженерные данные для PIC16F877-04/PQ — сравнение, рекомендации по проектированию и информация о соответствии.
Руководство по выбору
Сравнение с аналогами
| Параметр | Этот товар | PIC16F877-04I/PQ | PIC16F877-04E/PQ | PIC16F874-04/PQ | PIC16F877A-I/PQ | PIC16F887-I/PQ |
|---|---|---|---|---|---|---|
| Package | MQFP-44 (PQ) | MQFP-44 - same | MQFP-44 - same | MQFP-44 - same | MQFP-44 - same | MQFP-44 - same |
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| FLASH Program Memory | 14 KB | 14 KB | 14 KB | 8 KB | 14 KB | 14 KB (+ 256 B data FLASH) |
| Data RAM | 368 bytes | 368 bytes | 368 bytes | 192 bytes | 368 bytes | 368 bytes |
| Max CPU Clock | 4 MHz | 4 MHz | 4 MHz | 4 MHz | 20 MHz | 20 MHz |
| I/O Pins | 33 | 33 | 33 | 33 | 33 | 36 |
| Operating Temperature | 0C to +70C | -40C to +85C | -40C to +125C | 0C to +70C | -40C to +85C | -40C to +85C |
| Lifecycle Status | NRND | NRND | NRND | NRND | Active | Active |
Ключевые отличия
- Largest FLASH in the original PIC16F87X family (против PIC16F874-04/PQ)
- Commercial temperature grade at the lowest tier price (против PIC16F877-04I/PQ)
- Pin-compatible modern successor available with active lifecycle (против PIC16F877-04/PQ (this product, NRND) vs PIC16F877A-I/PQ (Active))
Заметки по проектированию
Place a 100 nF ceramic decoupling capacitor as close as physically possible to each VDD/VSS pin pair (pins 11/12 and 31/32 on the MQFP-44), and add a single 10 uF bulk tantalum or aluminum on the supply rail. The PIC16F877-04/PQ can source/sink 25 mA per pin, but the total VDD current budget across all I/O is limited - keep the aggregate below 200 mA to avoid triggering internal current-limit behavior. For noise-sensitive analog paths (ADC + VREF), separate analog VDD/VSS routing is recommended even though the '04/PQ does not expose separate AVDD/AVSS pins - use ferrite beads from the digital rail.
Route the 4 MHz crystal traces (OSC1 pin 13, OSC2 pin 14) as short as possible and guard them with a ground pour to prevent the crystal oscillator from coupling into adjacent analog or I/O lines. The MQFP-44 has a 0.8 mm lead pitch - if you are hand-soldering, use a hot-air station rather than a soldering iron to avoid bridges. Pin 1 is identified by the chamfered corner on the package outline; orient your PCB silkscreen accordingly. Reserve space for a 6-pin ICSP header (MCLR/VPP, VDD, VSS, RB6/PGC, RB7/PGD) on every prototype board - debugging PIC16F877-04/PQ without ICSP is impractical.
The PIC16F877-04/PQ brown-out reset (BOR) configuration fuse is disabled by default - leaving it disabled on a slow-rising supply (battery-backed systems, long power-cable runs) can cause the part to start executing code at indeterminate VDD levels, corrupting EEPROM or FLASH writes. Always enable BOR in the CONFIG word for production firmware. Do not exceed the absolute maximum VDD of 6.5 V or the ICSP VPP of 13.5 V. When migrating code from PIC16F84 to PIC16F877-04/PQ, note that the I/O ports have different analog/digital capabilities and the interrupt-on-change is only available on PORTB (RB4-RB7) - not all pins as on some PIC18 parts.
When driving the MSSP peripheral in I2C mode, install pull-up resistors of 4.7 kohm to 10 kohm on SCL (RC3) and SDA (RC4) - the PIC16F877-04/PQ has open-drain outputs on these pins in I2C mode. For SPI master at 4 MHz instruction rate, the maximum SCK frequency is 1 MHz (Fosc/4), so plan clock-divider settings accordingly. The USART can generate framing errors if the baud-rate divisor quantization places the receiver more than +/- 2% off the incoming bit rate; use BRGH=1 with the 4 MHz crystal or move to a 20 MHz crystal on the PIC16F877A-I/PQ for higher baud rates.
Информация о соответствии
RoHS and lead-free status marked unknown because the Microchip PIC16F877-04/PQ product page does not publish a current compliance certificate for the original (non-A) revision. The PIC16F877 family is marked NRND by Microchip; compliance certifications are typically listed only for the active PIC16F887 successor.