PIC16F877-04/PT - 8-bit 4MHz 14KB Flash MCU | Microchip | 44-TQFP
N.º da peça: PIC16F877-04/PT ✓ Ativo| Qtd. | Preço unitário | Total |
|---|---|---|
| 1 | $8.12 | $8,12 |
| 10 | $7.3 | $73,00 |
| 100 | $6.5 | $650,00 |
| 500 | $5.85 | $2.925,00 |
| 1.000 | $5.2 | $5.200,00 |
PIC16F877-04/PT Visão geral
A microcontroller (MCU) is a single-chip computer that integrates a CPU, memory (Flash program memory, RAM, and EEPROM), and configurable peripherals such as timers, communication interfaces, and analog inputs. Within the broader taxonomy, the PIC16F877-04/PT belongs to the 8-bit MCU class, which sits under the hierarchy of microcontrollers -> microprocessors -> digital ICs -> semiconductors. The 4MHz part suffix indicates the maximum oscillator frequency, while /PT denotes the TQFP-44 package. The device executes instructions in a 200ns single-cycle period and supports 35 single-word instructions, making it one of the most widely adopted mid-range 8-bit MCUs in legacy industrial and educational designs.
Key features include on-chip self-programming support, In-Circuit Debugger (ICD), two additional timers (Timer1 with dedicated 16-bit architecture, Timer2), two Capture/Compare/PWM (CCP) modules, and a Synchronous Serial Port (SSP) configurable as either 3-wire SPI or 2-wire I2C. The USART module enables asynchronous and synchronous serial communication. Together with the Parallel Slave Port, these peripherals give designers broad flexibility for embedded control.
Architecturally, the PIC16F877-04/PT is built on Microchip's enhanced mid-range 14-bit instruction set with a Harvard bus structure separating program and data paths, which allows simultaneous instruction fetch and operand access. Its 14-bit wide program memory word and 8-bit data path optimize both code density and execution determinism, making it well-suited for real-time control loops. The device operates across 2.0V to 5.5V and supports industrial temperature ranges.
Typical applications include industrial automation controllers, HVAC and building control systems, sensor signal conditioning nodes, motor control via the CCP/PWM outputs, and educational development boards. The 33 I/O pins and ample peripheral set also make it a frequent choice for prototype to production transitions where a stable, well-documented toolchain is required.
When designing with this device, ensure that the oscillator configuration matches the speed grade - the 04 suffix limits operation to 4MHz maximum, while higher-speed variants (e.g., PIC16F877-10/PT, PIC16F877-20/PT) support 10MHz and 20MHz respectively. For new designs, Microchip recommends the PIC16F887 as a modern functionally compatible successor.
This page synthesizes distributor pricing, drop-in same-package alternatives, and practical design notes not found in the manufacturer datasheet alone.
Alternativas drop-in para PIC16F877-04/PT — mesmo encapsulamento, compatível pino a pino. Peças de encapsulamento diferente que exigem retrabalho na PCB são excluídas.
Variantes desta série
Modelos da mesma série compatíveis como drop-in com PIC16F877-04/PT (mesmo formato e footprint) — diferindo em Package, ADC, Timers, Operating Temperature, Core Architecture.
Ferramenta de comparação rápida — selecione peças alternativas para comparação lado a lado:
PIC16F877-10/PT
✅ Drop-In📋 Alternativa de referência (fora do catálogo)
PIC16F877-20/PT
✅ Drop-In✓ Em estoque
$6.72 / unidade
Ver ficha técnica →PIC16F877-04/PQ
✅ Drop-In✓ Em estoque
$5.7 / unidade
Ver ficha técnica →PIC16F877A-04/PT
✅ Drop-In📋 Alternativa de referência (fora do catálogo)
PIC16F877A-10/PT
✅ Drop-In📋 Alternativa de referência (fora do catálogo)
PIC16F877A-20/PT
✅ Drop-In📋 Alternativa de referência (fora do catálogo)
PIC16F877-04/PT Classificações máximas e características elétricas
| Family | PIC16F8xx |
| Core | PIC 8-bit |
| Program Memory Size | 14 KB (8K x 14 word) |
| Program Memory Type | FLASH |
| RAM Size | 368 bytes |
| EEPROM Size | 256 bytes |
| Frequência máxima de clock | 4 MHz |
| Instruction Cycle Time | 200 ns |
| Operating Voltage Range | 2.0 V to 5.5 V |
| Number of I/O Pins | 33 |
| ADC | 10-bit, 8 channels |
| Timers | Timer0, Timer1 (16-bit), Timer2 |
| CCP Modules | 2 |
| Communication Interfaces | USART/SCI, SPI, I2C (via SSP), Parallel Slave Port |
| Encapsulamento | 44-pin TQFP (10x10 mm) |
| Tipo de montagem | Surface Mount |
| Instruction Set Size | 35 single-word instructions |
| Lead-Free / RoHS | Lead-free; RoHS compliant per Microchip product page |
| Speed Grade Suffix | -04 = 4 MHz maximum |
| In-Circuit Debug | ICD supported |
Configuração de pinos do PIC16F877-04/PT
| Pino 1 | MCLR/VPP — Master Clear (Reset) input / Programming voltage input |
| Pino 2 | RA0/AN0 — PORTA bit 0 / Analog input channel 0 |
| Pino 3 | RA1/AN1 — PORTA bit 1 / Analog input channel 1 |
| Pino 4 | RA2/AN2/VREF- — PORTA bit 2 / Analog input channel 2 / ADC negative reference |
| Pino 5 | RA3/AN3/VREF+ — PORTA bit 3 / Analog input channel 3 / ADC positive reference |
| Pino 6 | RA4/T0CKI — PORTA bit 4 / Timer0 clock input |
| Pino 7 | RA5/AN4/SS — PORTA bit 5 / Analog input channel 4 / SPI slave select |
| Pino 8 | RE0/RD/AN5 — PORT E bit 0 / Read control for PSP / Analog input 5 |
| Pino 9 | RE1/WR/AN6 — PORT E bit 1 / Write control for PSP / Analog input 6 |
| Pino 10 | RE2/CS/AN7 — PORT E bit 2 / Chip select for PSP / Analog input 7 |
| Pino 11 | VDD — Positive power supply (2.0 V to 5.5 V) |
| Pino 12 | VSS — Ground reference |
| Pino 13 | OSC1/CLKIN — Oscillator crystal input / external clock input |
| Pino 14 | OSC2/CLKOUT — Oscillator crystal output / clock output (Fosc/4) |
| Pino 15 | RC0/T1OSO/T1CKI — PORTC bit 0 / Timer1 oscillator output / Timer1 clock input |
| Pino 16 | RC1/T1OSI/CCP2 — PORTC bit 1 / Timer1 oscillator input / CCP2 output |
| Pino 17 | RC2/CCP1 — PORTC bit 2 / CCP1 output |
| Pino 18 | RC3/SCK/SCL — PORTC bit 3 / SPI clock / I2C clock |
| Pino 19 | RD0/PSP0 — PORTD bit 0 / Parallel Slave Port bit 0 |
| Pino 20 | RD1/PSP1 — PORTD bit 1 / Parallel Slave Port bit 1 |
| Pino 21 | RD2/PSP2 — PORTD bit 2 / Parallel Slave Port bit 2 |
| Pino 22 | RD3/PSP3 — PORTD bit 3 / Parallel Slave Port bit 3 |
| Pino 23 | RC4/SDI/SDA — PORTC bit 4 / SPI data in / I2C data |
| Pino 24 | RC5/SDO — PORTC bit 5 / SPI data out |
| Pino 25 | RC6/TX/CK — PORTC bit 6 / USART transmit / USART clock |
| Pino 26 | RC7/RX/DT — PORTC bit 7 / USART receive / USART data |
| Pino 27 | RD4/PSP4 — PORTD bit 4 / Parallel Slave Port bit 4 |
| Pino 28 | RD5/PSP5 — PORTD bit 5 / Parallel Slave Port bit 5 |
| Pino 29 | RD6/PSP6 — PORTD bit 6 / Parallel Slave Port bit 6 |
| Pino 30 | RD7/PSP7 — PORTD bit 7 / Parallel Slave Port bit 7 |
| Pino 31 | VSS — Ground reference |
| Pino 32 | VDD — Positive power supply (2.0 V to 5.5 V) |
| Pino 33 | RB0/INT — PORTB bit 0 / External interrupt input |
| Pino 34 | RB1 — PORTB bit 1 |
| Pino 35 | RB2 — PORTB bit 2 |
| Pino 36 | RB3/PGM — PORTB bit 3 / Low-voltage programming input |
| Pino 37 | RB4 — PORTB bit 4 |
| Pino 38 | RB5 — PORTB bit 5 |
| Pino 39 | RB6/PGC — PORTB bit 6 / In-circuit debugger clock |
| Pino 40 | RB7/PGD — PORTB bit 7 / In-circuit debugger data |
| Pino 41 | VSS — Ground reference (TQFP thermal pad tied to VSS recommended) |
| Pino 42 | NC — Not connected (per datasheet - pin reserved on TQFP-44 footprint) |
| Pino 43 | NC — Not connected (per datasheet - pin reserved on TQFP-44 footprint) |
| Pino 44 | NC — Not connected (per datasheet - pin reserved on TQFP-44 footprint) |
Aplicações típicas
PIC16F877-04/PT é adequado para 6 aplicaçãos: Industrial Automation Controllers, HVAC and Building Control Systems, Sensor Signal Conditioning Nodes, Motor Control via CCP/PWM Outputs, Educational Development Boards, Display and Keypad Interface Boards.
Industrial Automation Controllers
The PIC16F877-04/PT fits industrial automation controller designs thanks to its 33 I/O pins, 8-channel 10-bit ADC, and 2.0-5.5 V supply range that matches 24V-sourced industrial rails after regulation. Its 200ns deterministic instruction cycle supports real-time control loops for sensors and actuators. The 14 KB Flash and 256 bytes EEPROM allow on-site firmware updates and persistent parameter storage without external memory. Industrial temperature grade and the TQFP-44 package with exposed thermal pad provide robust mechanical reliability in factory environments. The CCP modules generate PWM outputs for proportional valve or motor speed control, and the USART interfaces to RS-485 transceivers for fieldbus connectivity. Compared to discrete logic, this single-chip integration reduces BOM cost and PCB area.
Recomendado
HVAC and Building Control Systems
The PIC16F877-04/PT is well suited to HVAC and building automation subsystems where 33 I/O lines interface with thermistors, damper actuators, and keypads while the 8-channel 10-bit ADC reads multiple temperature and humidity sensors. Its 4 MHz clock is sufficient for slow thermal control loops (typically <1 Hz bandwidth) and the 14 KB Flash holds complex scheduling tables. Brown-out Reset and Watchdog Timer provide reliable recovery from power glitches common in HVAC equipment. The I2C/SPI peripheral talks to digital temperature sensors and EEPROM for non-volatile setpoint storage. The TQFP-44 package supports reflow soldering in mass-produced control boards, and Microchip's MPLAB toolchain with ICD enables in-circuit firmware development.
Recomendado
Sensor Signal Conditioning Nodes
The PIC16F877-04/PT works as a sensor signal conditioning and bridge node thanks to its 8-channel 10-bit ADC and configurable I/O, ideal for thermocouples, RTDs, strain gauges, and 4-20 mA loop inputs. At 4 MHz it executes linearization and averaging algorithms with deterministic latency. The Flash self-programming feature enables field calibration updates without hardware rework. The USART or SPI peripheral streams conditioned data to a master controller or wireless module, and the PWM outputs can drive excitation currents. The TQFP-44 footprint is compact enough for distributed sensor PCBAs inside instrument enclosures. The wide 2.0-5.5 V supply accommodates battery-backed or solar-powered installations.
Recomendado
Motor Control via CCP/PWM Outputs
The PIC16F877-04/PT handles brushed DC motor speed control, stepper pulse generation, and small BLDC commutation through its two CCP modules and 16-bit Timer1. At 4 MHz with 20 MHz PWM resolution, it generates stable drive signals for H-bridges or stepper driver ICs. The 33 I/O pins accommodate limit switches, quadrature encoder feedback, and direction logic. Programmable dead-band and PWM duty control allow precise torque management. The SSP peripheral configures as SPI to talk to intelligent driver ICs such as the DRV8711. The Flash-based firmware supports closed-loop PID implementation in software. The TQFP-44 package fits on compact motor-control PCBs.
Recomendado
Educational Development Boards
The PIC16F877-04/PT is a staple on educational development boards and university embedded systems curricula due to its well-documented 35-instruction RISC architecture and abundant tutorial support. At 4 MHz, instruction execution is observable with a logic analyzer, making it ideal for teaching fetch-decode-execute cycles. Its 33 I/O pins and full peripheral suite (ADC, PWM, UART, SPI, I2C) cover nearly every topic in a typical embedded systems course. MPLAB X IDE with the PICkit programmer and ICD interface provides a free end-to-end toolchain. The 14 KB Flash fits complete teaching projects including bootloader experiments. The TQFP-44 package is more assembly-friendly than fine-pitch alternatives.
Recomendado
Display and Keypad Interface Boards
The PIC16F877-04/PT drives character LCDs and matrix keypads in instrument front panels, where its 33 I/O lines support both an 8-bit or 4-bit LCD interface and an 8x8 keypad matrix scan. At 4 MHz, the firmware debounces keys, manages menu state, and refreshes the LCD without flicker. The USART passes keystroke and display data to a host processor, while the I2C peripheral connects to a character LCD backpack. The 256-byte EEPROM stores user preferences and last-known state across power cycles. The 2.0-5.5 V supply is compatible with battery-backed RTC circuits. The TQFP-44 surface-mount package supports automated assembly of front-panel boards.
Recomendado
Resumo dos produtos recomendados
Dados de referência de engenharia para PIC16F877-04/PT — comparação, orientação de projeto e informações de conformidade.
Guia de seleção
Comparação com alternativas
| Parâmetro | Este produto | PIC16F877-10/PT | PIC16F877-20/PT | PIC16F877-04/PQ | PIC16F877A-04/PT | PIC16F877A-10/PT | PIC16F877A-20/PT |
|---|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | TQFP-44 (PT) | TQFP-44 (PT) - same | TQFP-44 (PT) - same | TQFP-44 (PQ) - same footprint | TQFP-44 (PT) - same | TQFP-44 (PT) - same | TQFP-44 (PT) - same |
| Max Clock Frequency | 4 MHz | 10 MHz | 20 MHz | 4 MHz | 4 MHz | 10 MHz | 20 MHz |
| Program Memory (Flash) | 14 KB | 14 KB | 14 KB | 14 KB | 14 KB | 14 KB | 14 KB |
| RAM | 368 bytes | 368 bytes | 368 bytes | 368 bytes | 368 bytes | 368 bytes | 368 bytes |
| EEPROM | 256 bytes | 256 bytes | 256 bytes | 256 bytes | 256 bytes | 256 bytes | 256 bytes |
| Number of I/O Pins | 33 | 33 | 33 | 33 | 33 | 33 | 33 |
| ADC Resolution x Channels | 10-bit x 8 | 10-bit x 8 | 10-bit x 8 | 10-bit x 8 | 10-bit x 8 (improved) | 10-bit x 8 (improved) | 10-bit x 8 (improved) |
| Silicon Revision | Original PIC16F877 | Original PIC16F877 | Original PIC16F877 | Original PIC16F877 | PIC16F877A (improved) | PIC16F877A (improved) | PIC16F877A (improved) |
Principais diferenciais
- Mature and stable silicon in active production (vs PIC16F887 (recommended successor))
- Wide compatibility ecosystem of same-package variants (vs PIC16F877-20/PT (20 MHz grade))
- Improved silicon revision available in same package (vs PIC16F877A-04/PT (A-suffix revision))
Notas de projeto
Decouple VDD pins (pins 11 and 32 on TQFP-44) with a 0.1 uF ceramic capacitor placed within 5 mm of each VDD pin, and add a bulk 10 uF tantalum or aluminum polymer capacitor on the same rail. The PIC16F877-04/PT has two VDD pins to reduce supply inductance for the internal Flash and ADC blocks; bypassing each separately prevents digital switching noise from coupling into the analog supply. Estimated: based on standard Microchip PIC16F87X decoupling recommendations; actual values may need adjustment based on board-level EMI testing.
Route the analog inputs (AN0-AN7) away from the OSC1/OSC2 crystal traces and the parallel slave port (RD/RE) digital switching lines to minimize ADC crosstalk. Use a ground guard ring around the analog input pins and connect the analog ground (VSS at pin 12) directly to the power supply ground star point rather than daisy-chaining through digital grounds. The PIC16F877-04/PT's 10-bit ADC is approximately 9.5 ENOB typical at 4 MHz; layout discipline preserves this in production.
Do not exceed 4 MHz oscillator frequency on the PIC16F877-04/PT - the -04 speed grade is locked at this maximum, and using a 20 MHz crystal will cause Flash read errors and erratic behavior. If more compute is needed, choose the PIC16F877-10/PT (10 MHz) or PIC16F877-20/PT (20 MHz) drop-in upgrade. Also ensure configuration bits (FOSC, WDTE, PWRTE, BOREN) are set correctly in the hex file - particularly the oscillator mode (HS vs XT vs LP) which must match the actual crystal used.
The PIC16F877-04/PT in TQFP-44 has a typical theta_JA of approximately 50-60 C/W on a 4-layer JEDEC EIA/JESD51 test board. At maximum 4 MHz operation, the core consumes roughly 5-10 mW, so thermal rise is negligible (well below 5 C). However, in sealed enclosures without airflow, ensure the TQFP thermal pad on pin 41 is soldered to a grounded copper pour to provide the heat-spreading path even at low power.
When using the USART at higher baud rates with long cable runs, add 100 ohm source termination on TX/CK lines (RC6, pin 25) to dampen reflections. For SPI bus above 2 MHz, keep traces under 50 mm and place a 33 ohm series resistor near the master SCK output (RC3, pin 18). The PIC16F877-04/PT's I/O drive strength is 20-25 mA typical; this is sufficient for short traces but not for backplanes.
Informações de conformidade
RoHS compliant per Microchip product page. Lead-free terminal finish. Not AEC-Q100 qualified (not automotive grade). Halogen-free status not explicitly stated in available data - marked unknown.