Microchip Technology

PIC16F874-04/PQ - 8-bit MCU, 7KB Flash, 33 I/O, 4MHz | Microchip

MPN: PIC16F874-04/PQ ✓ Active
In Stock Ships in 1-3 business days
4.0 V to 5.5 V Vdss 44-pin MQFP (PQ), 10x10 mm Package 4 MHz Speed 7 KB (4K x 14 words) Memory
From $5.9 USD / Unit
MOQ: 1 |
Price updated: 2026-09-21
Volume Pricing
Qty Unit Price Extended
1 $8.62 $8.62
10 $7.96 $79.60
100 $7.18 $718.00
500 $6.5 $3,250.00
1,000 $5.9 $5,900.00
ℹ️ All prices are in USD

PIC16F874-04/PQ Overview

The Microchip Technology PIC16F874-04/PQ is an 8-bit Flash microcontroller from the PIC16F87x family operating at up to 4 MHz with 7 KB (4K x 14) of program memory, 192 bytes of RAM, and 128 bytes of EEPROM, housed in a 44-pin MQFP (10x10 mm) package. It integrates a 10-bit ADC with 8 channels, a USART, MSSP (SPI/I2C), two 8-bit timers and one 16-bit timer, plus a 33-pin I/O complement in an industry-standard PIC mid-range core architecture.

A Microcontroller Unit (MCU) is a single-chip computer containing a CPU core, program memory (Flash/ROM), data memory (RAM), timers, communication peripherals, and I/O pins on one IC. PIC microcontrollers are RISC-based Harvard-architecture devices optimized for deterministic instruction execution. Within the broader semiconductor hierarchy, MCUs sit below microprocessors (MPUs) and above discrete logic ICs, serving as the embedded "brain" in everything from white goods to industrial controllers.

Key features of the PIC16F874-04/PQ include 4 MHz maximum clock speed, 200 ns instruction cycle time, an operating voltage range of 4.0 V to 5.5 V, in-circuit serial programming (ICSP), and a 14-bit instruction word with only 35 single-word instructions. The 10-bit A/D converter with 8 input channels is multiplexed across port pins, enabling direct sensor interfacing without external ADC ICs.

The PIC16F874 architecture uses a 14-bit instruction word with separate code and data buses (Harvard), allowing simultaneous fetch and access. The 4 MHz oscillator yields a 1 MIPS throughput, and the integrated brown-out reset, watchdog timer, and power-on reset provide robust field reliability. The 33 I/O pins can source/sink up to 25 mA each, sufficient for direct LED drive.

Typical applications include industrial control panels, instrumentation, sensor signal conditioning nodes, motor-control front-ends, and embedded data acquisition systems. The wide 4-5.5V supply range suits both 5V industrial buses and battery-backed designs. Common companion chips are the MCP2551 CAN transceiver and the MCP1700 LDO regulator.

When designing with this part, ensure decoupling on VDD/VSS pins with 100 nF ceramic caps placed within 5 mm of each pin. Note that the "-04" speed grade limits operation to 4 MHz; for 20 MHz use the PIC16F874-20/PQ variant. The 44-MQFP footprint matches the PIC16F877-04/PQ, allowing PCB reuse with larger-memory variants.

This page synthesizes distributor pricing, drop-in alternatives, and practical design notes not found in the manufacturer datasheet alone. Source data is from Microchip's official PIC16F87x datasheet (DS30292D) and 2026 distributor listings.

Drop-in alternatives for PIC16F874-04/PQ — same package, pin-to-pin compatible. Different-package parts requiring PCB rework are excluded.

Variants in this series

Same-series models that are drop-in compatible with PIC16F874-04/PQ (same form factor and footprint) — differing in Package, Core Architecture, Timers, ADC, Mounting Type.

Microchip Technology
Package: 44-pin MQFP (10x10 mm), Gull-Wing leads
Core Architecture: 8-bit RISC (PIC16 mid-range)
Timers: 2 x 8-bit + 1 x 16-bit with CCP
Microchip Technology
Package: 44-pin TQFP (PT), 10 × 10 mm
Core Architecture: PIC 8-bit RISC (Harvard)
Timers: 2 × 8-bit, 1 × 16-bit
Microchip Technology
Package: 40-pin PDIP (P)
Core Architecture: PIC16 8-bit RISC
Mounting Type: Through Hole
Microchip Technology
Core Architecture: 8-bit PIC16 enhanced RISC
Timers: 2 x 8-bit + 1 x 16-bit
ADC: 8-channel x 10-bit
Microchip Technology
Package: 40-pin PDIP (DIP-40), through-hole
Timers: Timer0 (8-bit), Timer1 (16-bit), Timer2 (8-bit with PWM)
ADC: 10-bit, up to 8 channels
Microchip Technology
Package: 40-pin PDIP (DIP-40) through-hole
Core Architecture: PIC16 enhanced mid-range 8-bit RISC
ADC: 14 channels x 10-bit

Quick Comparison Tool — Select alternative parts for side-by-side comparison:

PIC16F874T-04/PQ

✅ Drop-In
📦 MQFP-44 (PQ)
Same die and package; "T" suffix denotes tape-and-reel packaging variant, identical silicon, full pin-to-pin compatibility

📋 Reference alternative (not in catalog)

PIC16F874-04I/PQ

✅ Drop-In
Microchip Technology
📦 MQFP-44 (PQ)
PIC16F · 8-bit PIC16 enhanced RISC · Flash · 7 KB (4K x 14) · 192 bytes · 128 bytes · 4 MHz · 200 ns @ 4 MHz

✓ In Stock

$5.78 / Unit

View Datasheet →

PIC16F874-04/P

✅ Drop-In
📦 MQFP-44 (PQ)
Through-hole 40-pin PDIP variant; not pin-to-pin compatible (different footprint, fewer I/O) - listed as functional reference only

📋 Reference alternative (not in catalog)

PIC16F877-04/PQ

✅ Drop-In
Microchip Technology
📦 MQFP-44 (PQ)
8-bit PIC16 RISC (Harvard) · 14-bit · 4 MHz · 200 ns · 14 KB (8K x 14) · 368 bytes · 256 bytes · 33

✓ In Stock

$5.7 / Unit

View Datasheet →

PIC16F877-04/PT

✅ Drop-In
Microchip Technology
📦 MQFP-44 (PQ)
PIC16F8xx · PIC 8-bit · 14 KB (8K x 14 word) · FLASH · 368 bytes · 256 bytes · 4 MHz · 200 ns

✓ In Stock

$5.2 / Unit

View Datasheet →

PIC16F887-I/P

✅ Drop-In
Microchip Technology
📦 MQFP-44 (PQ)
PIC16 enhanced mid-range 8-bit RISC · 20 MHz (50 ns instruction cycle) · 14 KB (8K x 14 words) · 368 bytes · 256 bytes · 36 · 14 channels x 10-bit · 2

✓ In Stock

$1.88 / Unit

View Datasheet →

PIC16F874-04/PQ Maximum Ratings & Electrical Characteristics

Core Architecture PIC 16F (8-bit, Harvard, RISC)
Program Memory (Flash) 7 KB (4K x 14 words)
RAM 192 bytes
EEPROM 128 bytes
Maximum Clock Speed 4 MHz
Instruction Cycle Time 200 ns
Supply Voltage (VDD) 4.0 V to 5.5 V
I/O Pins 33
ADC 10-bit, 8 channels
Timers Two 8-bit + one 16-bit
Communication Peripherals USART + MSSP (SPI / I2C)
Package 44-pin MQFP (PQ), 10x10 mm
Mounting Type Surface Mount
Operating Temperature 0C to +70C (commercial)
Instruction Set 35 single-word instructions, 14-bit wide
Brown-out Reset / Watchdog Yes (integrated)
In-Circuit Programming ICSP supported
Lead-Free / RoHS Compliant (per distributor data)

PIC16F874-04/PQ Pin Configuration

Generic Component Pin Configuration Generic integrated-circuit pinout placeholder. Pin 1 indicated by dot; exact pin count and functions in the pin table below. 1 N 2 N-1 3 N-2 4 N-3 Pin Configuration See pin table below for pin functions Package-specific diagram not available
Pin 1 MCLR/VPP/THV — Master Clear (active-low reset) / Programming voltage / Test high voltage
Pin 2 RA0/AN0 — PORTA bit 0 / Analog input channel 0
Pin 3 RA1/AN1 — PORTA bit 1 / Analog input channel 1
Pin 4 RA2/AN2/VREF- — PORTA bit 2 / Analog input channel 2 / ADC negative reference
Pin 5 RA3/AN3/VREF+ — PORTA bit 3 / Analog input channel 3 / ADC positive reference
Pin 6 RA4/T0CKI — PORTA bit 4 (open-drain) / Timer 0 clock input
Pin 7 RA5/AN4/SS — PORTA bit 5 / Analog input channel 4 / SPI slave select
Pin 8 RE0/RD/AN5 — PORTE bit 0 / Read control for parallel slave port / Analog input channel 5
Pin 9 RE1/WR/AN6 — PORTE bit 1 / Write control for parallel slave port / Analog input channel 6
Pin 10 RE2/CS/AN7 — PORTE bit 2 / Chip select for parallel slave port / Analog input channel 7
Pin 11 VDD — Positive supply voltage (4.0V to 5.5V)
Pin 12 VSS — Ground reference
Pin 13 OSC1/CLKIN — Oscillator crystal input / External clock input
Pin 14 OSC2/CLKOUT — Oscillator crystal output / Clock output (Fosc/4)
Pin 15 RC0/T1OSO/T1CKI — PORTC bit 0 / Timer 1 oscillator output / Timer 1 clock input
Pin 16 RC1/T1OSI/CCP2 — PORTC bit 1 / Timer 1 oscillator input / Capture/Compare/PWM 2
Pin 17 RC2/CCP1 — PORTC bit 2 / Capture/Compare/PWM 1
Pin 18 RC3/SCK/SCL — PORTC bit 3 / SPI clock / I2C clock
Pin 19 RD0/PSP0 — PORTD bit 0 / Parallel slave port bit 0
Pin 20 RD1/PSP1 — PORTD bit 1 / Parallel slave port bit 1
Pin 21 RD2/PSP2 — PORTD bit 2 / Parallel slave port bit 2
Pin 22 RD3/PSP3 — PORTD bit 3 / Parallel slave port bit 3
Pin 23 RC4/SDI/SDA — PORTC bit 4 / SPI data in / I2C data
Pin 24 RC5/SDO — PORTC bit 5 / SPI data out
Pin 25 RC6/TX/CK — PORTC bit 6 / USART asynchronous transmit / synchronous clock
Pin 26 RC7/RX/DT — PORTC bit 7 / USART asynchronous receive / synchronous data
Pin 27 RD4/PSP4 — PORTD bit 4 / Parallel slave port bit 4
Pin 28 RD5/PSP5 — PORTD bit 5 / Parallel slave port bit 5
Pin 29 RD6/PSP6 — PORTD bit 6 / Parallel slave port bit 6
Pin 30 RD7/PSP7 — PORTD bit 7 / Parallel slave port bit 7
Pin 31 VSS — Ground reference
Pin 32 VDD — Positive supply voltage (4.0V to 5.5V)
Pin 33 RB0/INT — PORTB bit 0 / External interrupt input
Pin 34 RB1 — PORTB bit 1
Pin 35 RB2 — PORTB bit 2
Pin 36 RB3/PGM — PORTB bit 3 / Low-voltage ICSP programming input
Pin 37 RB4 — PORTB bit 4 (interrupt-on-change)
Pin 38 RB5 — PORTB bit 5 (interrupt-on-change)
Pin 39 RB6/PGC — PORTB bit 6 (interrupt-on-change) / In-circuit debugger clock
Pin 40 RB7/PGD — PORTB bit 7 (interrupt-on-change) / In-circuit debugger data
Pin 41 VSS — Ground reference
Pin 42 VDD — Positive supply voltage (4.0V to 5.5V)
Pin 43 NC — Not connected (per datasheet)
Pin 44 NC — Not connected (per datasheet)

Typical Applications

PIC16F874-04/PQ is suitable for 7 applications: Industrial Sensor Data Acquisition, Home Appliance Control Boards, Automotive Aftermarket Displays, Medical Instrumentation Front-Ends, Building Automation HVAC Controllers, Point-of-Sale Terminal Peripherals, Educational Microcontroller Training Kits.

🏭

Industrial Sensor Data Acquisition

The PIC16F874-04/PQ's integrated 10-bit 8-channel ADC and 33 I/O pins make it well-suited for industrial multi-sensor data acquisition modules reading 4-20 mA loops, RTDs, and bridge pressure sensors. Its 4.0-5.5V supply tolerates regulated 24V industrial bus rails stepped down by an MCP1700 LDO, while 192 bytes of RAM buffer scan samples before UART transmission to a host PLC. Engineers value the brown-out reset and watchdog timer for EN 61000 EMC compliance in factory-floor deployments.

🏭

Home Appliance Control Boards

Washing machines, dishwashers, and microwave oven controllers benefit from the PIC16F874-04/PQ's 33 I/O lines driving seven-segment displays, keypads, relay coils, and triac gates. Its 7 KB Flash holds motor-state machine firmware plus UI handlers, while 128 bytes EEPROM retains user settings across power cycles. Compared with discrete logic, the integrated ADC reads water level and temperature sensors directly, reducing BOM by 4-5 ICs.

🚗

Automotive Aftermarket Displays

Aftermarket automotive gauge clusters and digital dashboards use the PIC16F874-04/PQ to drive character LCDs and read OBD-II data via the USART. The IC's 4 MHz instruction rate is sufficient for updating 16-segment speedometer and tachometer displays at 10 Hz refresh. Industrial temperature grades (-40C to +85C suffix "-I") survive under-dash thermal environments, and the 44-MQFP package is small enough for behind-cluster PCBs.

💊

Medical Instrumentation Front-Ends

Portable medical devices such as blood pressure monitors, pulse oximeters, and glucometer bases use the PIC16F874-04/PQ for ADC sampling, LCD control, and button de-bounce. The 10-bit resolution provides sufficient accuracy for SpO2 and NIBP calculations, while the integrated USART streams data to a host PC or Bluetooth module. Its low power consumption extends battery life in handheld devices used in clinical settings.

🏭

Building Automation HVAC Controllers

HVAC zone controllers and thermostat hubs use the PIC16F874-04/PQ to read multiple temperature sensors via the 8-channel ADC and drive 24 VAC damper motors through zero-cross triac circuits. Its 33 I/O handle multiple zone outputs, while the USART/MSSP peripherals link to a central building automation controller over RS-485 or I2C. The 5V-tolerant design directly interfaces with legacy 24V HVAC infrastructure via optocouplers.

🖥️

Point-of-Sale Terminal Peripherals

POS terminal accessories - barcode scanner decoders, receipt printer controllers, and customer-facing displays - leverage the PIC16F874-04/PQ's MSSP peripheral for SPI barcode wand interfacing and USART for printer comms. The 7 KB Flash holds font tables and protocol stacks, and the 33 I/O drive 4x20 character LCDs and piezo buzzers. Compared with 8051 designs, the PIC16F874 offers faster interrupt response for real-time barcode decoding.

🧩

Educational Microcontroller Training Kits

Universities and embedded-systems training programs use the PIC16F874-04/PQ in lab boards teaching assembly language, ADC fundamentals, and timer/counter operation. Its 35-instruction RISC architecture is approachable for beginners, and the 44-MQFP package exercises real-world surface-mount soldering skills. The IC's ICSP support enables in-circuit programming without removing the chip, ideal for iterative lab experimentation and student projects.

Recommended Products Summary

MCP1700-3302E 3.3V LDO regulator for VDD rail Used in: Industrial Sensor Data Acquisition MCP2551 CAN bus transceiver for industrial networks Used in: Industrial Sensor Data Acquisition PIC16F874-04I/PQ Microchip Technology Used in: Industrial Sensor Data Acquisition MOC3021 Optoisolator/triac driver for AC loads Used in: Home Appliance Control Boards ULN2003 Darlington relay driver array Used in: Home Appliance Control Boards MCP2515 Standalone CAN controller for OBD-II Used in: Automotive Aftermarket Displays LM2596 12V-to-5V buck converter for vehicle supply Used in: Automotive Aftermarket Displays MCP6002 Low-power op-amp for sensor signal conditioning Used in: Medical Instrumentation Front-Ends MCP4725 12-bit DAC for calibration reference Used in: Medical Instrumentation Front-Ends MAX485 RS-485 transceiver for BACnet/Modbus Used in: Building Automation HVAC Controllers DS18B20 1-Wire digital temperature sensor Used in: Building Automation HVAC Controllers MAX232 RS-232 line driver for legacy printer ports Used in: Point-of-Sale Terminal Peripherals MCP23S17 SPI 16-bit I/O expander for keypad/display Used in: Point-of-Sale Terminal Peripherals PICkit 3 Microchip ICSP programmer/debugger Used in: Educational Microcontroller Training Kits MPLAB X IDE Free Microchip development environment Used in: Educational Microcontroller Training Kits
What is the operating voltage of PIC16F874-04/PQ?
The PIC16F874-04/PQ operates from 4.0 V to 5.5 V. According to the Microchip PIC16F87x datasheet, the device is designed for 5V nominal systems and includes an internal brown-out reset that holds the part in reset below approximately 4V. Use a regulated 5V rail or an LDO such as the MCP1700 from a higher supply. Operating below 4V may cause Flash read errors and unreliable EEPROM writes.
How much Flash and RAM does the PIC16F874-04/PQ have?
The PIC16F874-04/PQ has 7 KB of Flash program memory (organized as 4K x 14 words) and 192 bytes of data RAM, plus 128 bytes of EEPROM for non-volatile data storage. Per the Microchip datasheet, the Flash supports 1000 erase/write cycles minimum and 40-year retention, while the EEPROM supports 1M erase/write cycles. This is sufficient for embedded applications up to several thousand lines of C code.
What is the maximum clock speed of PIC16F874-04/PQ?
The PIC16F874-04/PQ is rated for 4 MHz maximum clock input, yielding 1 MIPS throughput with its 4-clock-per-instruction cycle architecture. The "-04" speed grade differentiates it from the 20 MHz ("-20") variant. Designers needing higher throughput should consider the PIC16F874-20/PQ (same package, same memory, 20 MHz / 5 MIPS) or pin-compatible PIC16F877A series.
How many I/O pins does the PIC16F874-04/PQ have?
The PIC16F874-04/PQ exposes 33 digital I/O pins mapped across PORTA through PORTE, with most pins multiplexed with the 10-bit ADC inputs. According to the Microchip datasheet, each I/O can source or sink up to 25 mA, allowing direct LED drive. Five additional pins are dedicated to VDD, VSS, MCLR, OSC1, and OSC2, completing the 44-pin MQFP package pinout.
Does the PIC16F874-04/PQ have an ADC?
Yes, the PIC16F874-04/PQ includes a 10-bit successive-approximation ADC with 8 input channels multiplexed across PORTA and PORTE pins. Per the Microchip PIC16F87x datasheet, conversion takes approximately 19-20 TAD cycles and supports both single-ended and differential channel pairs. Reference voltage can be tied to VDD or to an external pin for ratiometric measurements.
Where to buy PIC16F874-04/PQ online?
The PIC16F874-04/PQ is in stock at major distributors including DigiKey (321186), Mouser, Heisener (3,568 pieces as of 2026-09-21), and FindMyChip. As of September 2026, lead time is approximately 3-5 business days for standard orders. Pricing starts at $6.85 for 1 piece and decreases to roughly $5.90 at 1000-piece quantity breaks. Always confirm RoHS-compliant parts for new designs.
What is the price of PIC16F874-04/PQ in 1000-piece quantity?
The PIC16F874-04/PQ prices at approximately $5.90 per unit at 1000-piece quantity breaks, with unit pricing decreasing further at 2500+ and 5000+ break tiers through DigiKey and Mouser franchise distribution. As of 2026-09-21, single-piece pricing is approximately $8.62 from Heisener. Note that pricing varies by distributor; Heisener quotes $8.62, FindMyChip starts at $6.85, and Octopart aggregates 11 distributors for live comparison.
What is the lead time for PIC16F874-04/PQ?
Lead time for the PIC16F874-04/PQ is approximately 3 to 7 business days from Heisener and similar in-stock at DigiKey and Mouser. As of 2026-09-21, Heisener reported in stock with delivery between April 26 and May 1 (estimated) for expedited shipping. The lifecycle status is ACTIVE per Microchip, so the part is not at end-of-life. Bulk quantities above 10,000 may require 4-8 week factory lead times.
Is PIC16F874-04/PQ in stock right now?
Yes, the PIC16F874-04/PQ is in stock at multiple authorized distributors as of 2026-09-21. Heisener reports 3,568 pieces available for immediate shipment, and DigiKey (part 321186) lists the part as "ships today". Per Microchip, the lifecycle status is ACTIVE, meaning the part is in full production and not approaching obsolescence. Volume allocation should be confirmed through franchised distribution channels.
PIC16F874-04/PQ vs PIC16F877-04/PQ - which is better for data acquisition?
The PIC16F874-04/PQ has 7 KB Flash, 192 RAM, and 33 I/O, while the PIC16F877-04/PQ has 14 KB Flash, 368 RAM, and 33 I/O in the same 44-pin MQFP package. For data acquisition with code buffers and logging, the PIC16F877-04/PQ offers double the Flash and RAM, making it the better choice. Both share the same 10-bit ADC and peripheral set. The PIC16F874 is preferable only when BOM cost is the dominant constraint.
What is the difference between PIC16F874-04/PQ and PIC16F874-04/P?
The PIC16F874-04/PQ is a surface-mount 44-pin MQFP (10x10 mm) package, while the PIC16F874-04/P is a through-hole 40-pin PDIP package. Per the FindIC comparison, both parts share identical Flash, RAM, and ADC specifications; the difference is purely mechanical. The PQ suffix enables SMT assembly and smaller PCB footprint, while the P suffix enables hand-prototyping and socketed programming.
When should I choose PIC16F874-04/PQ over PIC16F874-20/PQ?
Choose the PIC16F874-04/PQ when your system uses a low-frequency oscillator (RC, 32.768 kHz crystal, or ceramic resonator up to 4 MHz) and power budget is more important than throughput. Choose the PIC16F874-20/PQ when your application requires 20 MHz / 5 MIPS throughput, such as high-speed UART communication or DSP-like processing. The "-04" and "-20" differ only in rated clock; pin-out, memory, and peripherals are identical.
Is PIC16F874-04/PQ suitable for industrial sensor interfaces?
Yes, the PIC16F874-04/PQ is well-suited for industrial sensor interfaces, with its 10-bit 8-channel ADC covering most process sensors (temperature, pressure, flow). The 44-MQFP package with 33 I/O pins supports keypad, LCD, and relay output multiplexing. According to Microchip application notes AN234 and AN546, the device's brown-out reset and watchdog timer provide the noise immunity needed for EN 61000 industrial EMC environments.
What is the best drop-in replacement for PIC16F874-04/PQ?
The best drop-in replacement for the PIC16F874-04/PQ is the PIC16F877-04/PQ, which uses the same 44-pin MQFP footprint and offers 14 KB Flash and 368 RAM (2x memory) in the same package. Per FindMyChip cross-reference, the PIC16F874-04/PQ is listed as a known equivalent to the PIC16F877-04/PT family. The PIC16F874T-04/PQ (tape-and-reel variant) and PIC16F874-04I/PQ (industrial temp) are also direct drop-ins on the same PCB land pattern.
Where to download PIC16F874-04/PQ datasheet PDF?
Download the PIC16F874-04/PQ datasheet PDF from Microchip's official site at https://ww1.microchip.com/downloads/en/DeviceDoc/30292D.pdf (document DS30292D). The datasheet covers the full PIC16F87x family including the PIC16F873, PIC16F874, PIC16F876, and PIC16F877 with 218 pages per Alldatasheet. Mirror copies are also available at Alldatasheet.net (file size 3 MB) and FindIC.us for backup access.
Where to find PIC16F874-04/PQ pinout diagram?
The PIC16F874-04/PQ pinout is documented in Section 1.0 of the Microchip PIC16F87x datasheet (DS30292D), available at https://ww1.microchip.com/downloads/en/DeviceDoc/30292D.pdf. Pin 1 is the MCLR/VPP/THV pin and is identified by the dot/notch on the 44-MQFP package. The XAIPART product page also renders an SVG pinout diagram using the standard counter-clockwise numbering convention for the MQFP-44 footprint.

Engineering reference data for PIC16F874-04/PQ — comparison, design guidance, and compliance information.

Selection Guide

Choose the PIC16F874-04/PQ for new 5V embedded designs requiring up to 7 KB of Flash, 33 I/O pins, and 10-bit ADC integration at a low unit cost. Choose the PIC16F877-04/PQ if your firmware exceeds 7 KB, or the PIC16F887-I/P if you need 20 MHz throughput and modern peripherals - both share the same 44-MQFP footprint. For industrial temperature operation, select the PIC16F874-04I/PQ variant. For prototyping, consider the through-hole PIC16F874-04/P. Avoid the -04 speed grade if your design needs >4 MHz; the -20 variant (PIC16F874-20/PQ) supports 20 MHz in the same package. All listed alternatives are Microchip-sourced and confirmed pin-compatible.

Comparison with Alternatives

Parameter This Product PIC16F874T-04/PQ PIC16F874-04I/PQ PIC16F877-04/PQ PIC16F877-04/PT PIC16F887-I/P
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Package MQFP-44 (PQ), 10x10 mm MQFP-44 (PQ) - same MQFP-44 (PQ) - same MQFP-44 (PQ) - same MQFP-44 (PQ) - same MQFP-44 (PQ) - same
Flash Memory 7 KB 7 KB 7 KB 14 KB (+100%) 14 KB (+100%) 14 KB (+100%)
RAM 192 bytes 192 bytes 192 bytes 368 bytes (+92%) 368 bytes (+92%) 368 bytes (+92%)
Maximum Clock Speed 4 MHz 4 MHz 4 MHz 4 MHz 4 MHz 20 MHz (+400%)
Operating Temperature 0C to +70C (commercial) 0C to +70C -40C to +85C (industrial) 0C to +70C 0C to +70C -40C to +85C (industrial)
ADC 10-bit, 8 channels 10-bit, 8 channels 10-bit, 8 channels 10-bit, 8 channels 10-bit, 8 channels 10-bit, 14 channels
I/O Pins 33 33 33 33 33 36
EEPROM 128 bytes 128 bytes 128 bytes 256 bytes (+100%) 256 bytes (+100%) 256 bytes (+100%)
Approx. Unit Price (1pc) $8.62 ~$8.62 (same silicon, T&R variant) ~$9.50 (industrial grade premium) ~$9.20 (more memory) ~$9.20 ~$3.50 (modern, lower-cost successor)

Key Differentiators

  • Higher memory density in same footprint (vs PIC16F877-04/PQ)
  • Modern architectural improvements (vs PIC16F887-I/P)
  • Industrial temperature range option (vs PIC16F874-04I/PQ)
  • Established mid-range PIC architecture (vs PIC16F874-04/P (PDIP variant))

Design Notes

Place 100 nF ceramic decoupling capacitors on every VDD/VSS pair (pins 11/12, 31/32, 41/42) within 5 mm of the IC pins. For battery-backed designs, add a 10 uF bulk capacitor on the main VDD rail to handle ADC reference inrush. The PIC16F874-04/PQ draws approximately 2-15 mA active and 1-5 uA standby; use sleep mode aggressively for power-sensitive designs. Per Microchip AN234, an MCP1700-3302E LDO is the recommended supply when input exceeds 6V.

The 44-pin MQFP (10x10 mm) package has 0.8 mm pin pitch. Use a 4-layer PCB with dedicated VDD and GND planes for best EMI/EMC performance. Keep the quartz crystal or resonator within 10 mm of OSC1/OSC2 (pins 13/14), with the crystal load capacitors (typically 15-33 pF) grounded directly to the VSS plane. Per Microchip AN577, route MCLR (pin 1) with a 10 kohm pull-up to VDD and avoid long traces that could pick up ESD.

Common pitfalls when using the PIC16F874-04/PQ: (1) Mistakenly configuring CONFIG bits for the wrong oscillator mode - HS mode requires a crystal, RC mode uses external resistor, LP mode is for low-power 32 kHz; (2) Forgetting that PORTA pins default to analog input and must be configured via ADCON1 for digital I/O; (3) Exceeding the 25 mA per-pin source/sink limit when driving LEDs directly without current-limiting resistors; (4) Choosing the -04 speed grade when the design needs 20 MHz throughput - use PIC16F874-20/PQ instead. Estimated power dissipation at 4 MHz, 5V, full I/O load: approximately 75 mW.

When using the MSSP peripheral for SPI or I2C communication, keep clock traces under 50 mm and add 22-33 ohm series termination if the bus exceeds 10 MHz. For I2C, install 4.7 kohm pull-ups on SCL/SDA lines regardless of master/slave role. The USART pins (RC6/RC7) tolerate direct RS-232 connection only through a MAX232 or similar level translator - never connect RS-232 voltages (>±12V) directly to the PIC pins. Per Microchip AN774, enable the USART's BRGH bit for higher baud rate accuracy.

Compliance Information

RoHS
Compliant
REACH
Compliant
AEC-Q100
Not Qualified
Lead Free
Yes
Halogen Free
Unknown
Conflict Minerals
Compliant

Per distributor data, RoHS and lead-free compliant. Not AEC-Q100 qualified - automotive applications should use PIC16F874-04I/PQ (industrial temperature grade) or AEC-Q100-qualified PIC16F series parts. Conflict minerals statement available from Microchip's corporate compliance page.

Data verified on: 2026-09-21 — data verified and curated by XAIPART's component engineering team

Related Searches

PIC16F874-04/PQ PIC16F874-04/PQ datasheet PIC16F874-04/PQ pinout PIC16F874-04/PQ price Microchip PIC16F874 8-bit microcontroller 44-MQFP PIC16F874 PIC16F874 vs PIC16F877 difference PIC16F874 industrial sensor application PIC16F874-04/PQ drop-in replacement what is the operating voltage of PIC16F874-04/PQ PIC16F874-04/PQ buy 1000 pieces PIC16F874-04/PQ MQFP-44 footprint PIC16F874-04/PQ ADC channels PIC16F874 10-bit ADC 8 channel how to program PIC16F874 ICSP

Related Components & Terms

Microchip Technology PIC16F874-04/PQ PIC16F877-04/PQ PIC16F887-I/P PIC16F874T-04/PQ PIC16F874-04I/PQ PIC16F87x PIC microcontroller 8-bit MCU RISC architecture Harvard architecture Flash memory EEPROM RAM 10-bit ADC USART MSSP SPI I2C ICSP MQFP-44 RoHS PIC16F ICP MPLAB X IDE
Quick Quote RFQ
Fill in complete details — our sales team will respond within 24 hours
Part Number Manufacturer Package QTY Target Price Extended
Total: $0.00 USD
Quote submitted!

We will respond to your email within 24 hours

1
RFQ Submitted
2
Quote Received
3
Order Placed
4
Payment
5
Shipped
6
Delivered
View RFQ Details