PIC16F877-04/PT - 8-bit 4MHz 14KB Flash MCU | Microchip | 44-TQFP
部品番号: PIC16F877-04/PT ✓ 生産中| 数量 | 単価 | 小計 |
|---|---|---|
| 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 概要
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.
ドロップイン代替品: PIC16F877-04/PT — 同一パッケージでピン互換。PCBの作り直しが必要な異なるパッケージの部品は除外されています。
このシリーズのバリエーション
同一シリーズでドロップイン互換のモデル: PIC16F877-04/PT (同一形状・フットプリント) — 相違点: Package, ADC, Timers, Operating Temperature, Core Architecture.
クイック比較ツール — 並列比較する代替部品を選択:
PIC16F877-10/PT
✅ ドロップイン📋 参考代替品(カタログ未掲載)
PIC16F877-20/PT
✅ ドロップイン✓ 在庫あり
$6.72 / 個
データシートを見る →PIC16F877-04/PQ
✅ ドロップイン✓ 在庫あり
$5.7 / 個
データシートを見る →PIC16F877A-04/PT
✅ ドロップイン📋 参考代替品(カタログ未掲載)
PIC16F877A-10/PT
✅ ドロップイン📋 参考代替品(カタログ未掲載)
PIC16F877A-20/PT
✅ ドロップイン📋 参考代替品(カタログ未掲載)
PIC16F877-04/PT 最大定格&電気的特性
| 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 |
| 最大クロック周波数 | 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 |
| パッケージ | 44-pin TQFP (10x10 mm) |
| 実装タイプ | 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 |
PIC16F877-04/PT ピン構成
| ピン 1 | MCLR/VPP — Master Clear (Reset) input / Programming voltage input |
| ピン 2 | RA0/AN0 — PORTA bit 0 / Analog input channel 0 |
| ピン 3 | RA1/AN1 — PORTA bit 1 / Analog input channel 1 |
| ピン 4 | RA2/AN2/VREF- — PORTA bit 2 / Analog input channel 2 / ADC negative reference |
| ピン 5 | RA3/AN3/VREF+ — PORTA bit 3 / Analog input channel 3 / ADC positive reference |
| ピン 6 | RA4/T0CKI — PORTA bit 4 / Timer0 clock input |
| ピン 7 | RA5/AN4/SS — PORTA bit 5 / Analog input channel 4 / SPI slave select |
| ピン 8 | RE0/RD/AN5 — PORT E bit 0 / Read control for PSP / Analog input 5 |
| ピン 9 | RE1/WR/AN6 — PORT E bit 1 / Write control for PSP / Analog input 6 |
| ピン 10 | RE2/CS/AN7 — PORT E bit 2 / Chip select for PSP / Analog input 7 |
| ピン 11 | VDD — Positive power supply (2.0 V to 5.5 V) |
| ピン 12 | VSS — Ground reference |
| ピン 13 | OSC1/CLKIN — Oscillator crystal input / external clock input |
| ピン 14 | OSC2/CLKOUT — Oscillator crystal output / clock output (Fosc/4) |
| ピン 15 | RC0/T1OSO/T1CKI — PORTC bit 0 / Timer1 oscillator output / Timer1 clock input |
| ピン 16 | RC1/T1OSI/CCP2 — PORTC bit 1 / Timer1 oscillator input / CCP2 output |
| ピン 17 | RC2/CCP1 — PORTC bit 2 / CCP1 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 reference |
| ピン 32 | VDD — Positive power supply (2.0 V to 5.5 V) |
| ピン 33 | RB0/INT — PORTB bit 0 / External interrupt input |
| ピン 34 | RB1 — PORTB bit 1 |
| ピン 35 | RB2 — PORTB bit 2 |
| ピン 36 | RB3/PGM — PORTB bit 3 / Low-voltage programming input |
| ピン 37 | RB4 — PORTB bit 4 |
| ピン 38 | RB5 — PORTB bit 5 |
| ピン 39 | RB6/PGC — PORTB bit 6 / In-circuit debugger clock |
| ピン 40 | RB7/PGD — PORTB bit 7 / In-circuit debugger data |
| ピン 41 | VSS — Ground reference (TQFP thermal pad tied to VSS recommended) |
| ピン 42 | NC — Not connected (per datasheet - pin reserved on TQFP-44 footprint) |
| ピン 43 | NC — Not connected (per datasheet - pin reserved on TQFP-44 footprint) |
| ピン 44 | NC — Not connected (per datasheet - pin reserved on TQFP-44 footprint) |
主な用途
PIC16F877-04/PT の用途: 6 件s: 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.
おすすめ
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.
おすすめ
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.
おすすめ
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.
おすすめ
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.
おすすめ
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.
おすすめ
おすすめ製品の概要
エンジニアリング参考データ: PIC16F877-04/PT — 比較、設計ガイダンス、コンプライアンス情報。
選定ガイド
代替品との比較
| パラメータ | この製品 | 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) |
主な差別化要因
- 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))
設計ノート
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.
コンプライアンス情報
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.