Microchip Technology

PIC16F874-04I/L - 8-bit MCU, 4MHz, 7KB Flash, 44-PLCC | Microchip

MPN: PIC16F874-04I/L βœ“ Active
In Stock Ships in 1-3 business days
4.0 V to 5.5 V Vdss 44-PLCC (16.59 x 16.59 mm) Package 4 MHz Speed 7 KB (4K x 14 words) Memory
From $5.4 USD / Unit
MOQ: 1 |
Price updated: 2026-09-21
Volume Pricing
Qty Unit Price Extended
1 $8.2 $8.20
10 $7.45 $74.50
100 $6.6 $660.00
500 $5.95 $2,975.00
1,000 $5.4 $5,400.00
ℹ️ All prices are in USD

PIC16F874-04I/L Overview

The Microchip Technology PIC16F874-04I/L is a peripheral-rich 8-bit CMOS Flash microcontroller based on Microchip's PIC16 enhanced architecture, delivering 4 MIPS at 4 MHz and packaged in a 44-pin PLCC (Plastic Leaded Chip Carrier) measuring 16.59 x 16.59 mm. It integrates 7 KB of Flash program memory (4K x 14 words), 192 bytes of RAM, and 128 bytes of EEPROM data memory, providing a balanced mix of code space, volatile scratchpad, and non-volatile storage for embedded applications.

What is a PIC microcontroller? The PIC (Peripheral Interface Controller) is a family of 8/16/32-bit RISC microcontrollers originally developed by General Instrument's microelectronics division and later popularized by Microchip Technology. PIC MCUs occupy the hypernym hierarchy microcontroller -> embedded processor -> semiconductor IC, and are widely adopted for deterministic real-time control tasks in industrial, automotive, and consumer applications due to their compact instruction set, low power modes, and rich peripheral integration. The PIC16F874 belongs to the PIC16F mid-range family, sitting between the baseline PIC10/12/16 and the high-performance PIC18/PIC24 families.

Key features of the PIC16F874-04I/L include 33 digital I/O lines, a 10-bit 8-channel Analog-to-Digital Converter (ADC), two 8-bit timers plus one 16-bit timer, a USART for asynchronous/synchronous serial communication, an MSSP module supporting both SPI and IΒ²C (Master/Slave), a Capture/Compare/PWM (CCP) module, and a watchdog timer with on-chip RC oscillator for reliable operation. The device supports in-circuit serial programming (ICSP) via two pins, enabling field firmware updates without desoldering.

Architecturally, the PIC16F874 employs a Harvard-style RISC core with separate program and data buses, a 14-bit instruction word, and a 200 ns instruction execution time at 4 MHz. The four available oscillator modes (RC, LP, XT, HS) plus the on-chip 4 MHz RC oscillator allow designers to balance cost, EMI, and power. An integrated brown-out reset (BOR) circuit and power-on reset (POR) ensure deterministic startup across the 4.0–5.5 V supply range.

Typical applications include industrial control panels, HVAC actuators, automotive body electronics, sensor signal conditioning, low-end human-machine interfaces (HMIs) with character LCDs, and legacy embedded designs originally built around the 16F family. The wide operating temperature range of -40 Β°C to +85 Β°C (industrial 'I' suffix) makes the part suitable for uncontrolled thermal environments.

When designing with this part, observe the 4 MHz maximum clock for the -04 speed grade; for designs migrating from the 20 MHz -20 variant, simply replace the speed-grade suffix and verify timing margins. The PLCC-44 socket allows convenient prototyping, and pin compatibility with the PIC16F877 enables memory upgrade paths without PCB rework.

This page synthesizes verified distributor pricing, drop-in alternatives within the PLCC-44 footprint, and practical design notes not found in the manufacturer datasheet alone.

Drop-in alternatives for PIC16F874-04I/L β€” 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-04I/L (same form factor and footprint) β€” differing in Package, Timers, Communication Peripherals, ADC, Core Architecture.

Microchip Technology
Package: 44-pin PLCC (J-lead, 16.59 x 16.59 mm)
Timers: Two 8-bit (TMR0, TMR2) + one 16-bit (TMR1) with CCP
Communication Peripherals: USART (UART) + MSSP (SPI, I2C master/slave)
Microchip Technology
Package: 44-pin PLCC (J-lead)
Timers: Three 8/16-bit timers (Timer0, Timer1, Timer2)
Communication Peripherals: USART (RS-232/RS-485), MSSP (SPI/I2C)
Microchip Technology
Package: 40-pin PDIP (P)
Timers: Two 8-bit + One 16-bit
Communication Peripherals: USART, MSSP (SPI/I2C)
Microchip Technology
Package: 44-pin PLCC (J-Lead), 16.59 x 16.59 mm
Communication Peripherals: I2C, SPI, USART
ADC: 8 channels, 10-bit
Microchip Technology
Package: 44-pin PLCC (J-lead, J-Lead)
Timers: 2 x 8-bit + 1 x 16-bit
Core Architecture: PIC16 enhanced 8-bit RISC

Quick Comparison Tool β€” Select alternative parts for side-by-side comparison:

PIC16F877-04I/L

βœ… Drop-In
πŸ“¦ 44-PLCC
14 KB Flash (vs 7 KB, +100%) and 368 B RAM (vs 192 B, +92%) at same 4 MHz speed grade

πŸ“‹ Reference alternative (not in catalog)

PIC16F874-20I/L

βœ… Drop-In
πŸ“¦ 44-PLCC
20 MHz max clock (vs 4 MHz, +400%) and 5 MIPS, same Flash/RAM/pinout

πŸ“‹ Reference alternative (not in catalog)

PIC16F874-04/L

βœ… Drop-In
Microchip Technology
πŸ“¦ 44-PLCC
8-bit PIC16 mid-range RISC Β· FLASH Β· 7 KB (4K x 14 words) Β· 192 bytes Β· 128 bytes Β· 4 MHz Β· 200 ns (at 20 MHz) / 1 us at 4 MHz Β· 4 V to 5.5 V

βœ“ In Stock

$6.85 / Unit

View Datasheet β†’

PIC16LF874-04I/L

βœ… Drop-In
πŸ“¦ 44-PLCC
2.0–5.5 V supply (vs 4.0–5.5 V, lower voltage operation), same memory/peripherals

πŸ“‹ Reference alternative (not in catalog)

PIC16F874T-04I/L

βœ… Drop-In
Microchip Technology
πŸ“¦ 44-PLCC
PIC16 enhanced 8-bit RISC Β· 7 KB Β· 192 bytes Β· 128 bytes Β· 20 MHz Β· 200 ns Β· 4.0 V to 5.5 V Β· 33

βœ“ In Stock

$4.69 / Unit

View Datasheet β†’

PIC16F874-04I/L Maximum Ratings & Electrical Characteristics

Core Architecture PIC16 (8-bit RISC, Harvard)
Instruction Set Width 14-bit
Maximum Clock Frequency 4 MHz
MIPS (Dhrystone equivalent) 4 MIPS
Instruction Execution Time 200 ns @ 4 MHz
Program Memory (Flash) 7 KB (4K x 14 words)
Data RAM 192 bytes
Data EEPROM 128 bytes
I/O Pins 33
ADC 10-bit, 8 channels
Timers 2 x 8-bit, 1 x 16-bit
Communication Peripherals USART, MSSP (SPI / IΒ²C)
CCP Modules 1 (Capture/Compare/PWM)
Supply Voltage 4.0 V to 5.5 V
Operating Temperature -40 Β°C to +85 Β°C (Industrial 'I' grade)
Package 44-PLCC (16.59 x 16.59 mm)
Mounting Type Surface Mount (PLCC socket compatible)
In-Circuit Programming ICSP (2-wire)
Oscillator Modes LP, XT, HS, RC + internal 4 MHz RC
Watchdog Timer Yes, with on-chip RC oscillator
Brown-out Reset Yes
RoHS Status Compliant
Speed Grade -04 (4 MHz)

PIC16F874-04I/L 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 β€” Master Clear (Reset) input / ICSP programming 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 β€” PORTA bit 2 / Analog input channel 2
Pin 5 RA3/AN3/VREF+ β€” PORTA bit 3 / Analog input channel 3 / ADC positive reference
Pin 6 RA4/T0CKI β€” PORTA bit 4 / Timer0 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 5
Pin 9 RE1/WR/AN6 β€” PORTE bit 1 / Write control for parallel slave port / Analog input 6
Pin 10 RE2/CS/AN7 β€” PORTE bit 2 / Chip Select for parallel slave port / Analog input 7
Pin 11 VDD β€” Positive supply voltage (4.0–5.5 V)
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 / Timer1 oscillator output / Timer1 clock input
Pin 16 RC1/T1OSI/CCP2 β€” PORTC bit 1 / Timer1 oscillator input / CCP2 output
Pin 17 RC2/CCP1 β€” PORTC bit 2 / CCP1 PWM output
Pin 18 RC3/SCK/SCL β€” PORTC bit 3 / SPI clock / IΒ²C clock
Pin 19 RD0/PSP0 β€” PORTD bit 0 / Parallel Slave Port data bit 0
Pin 20 RD1/PSP1 β€” PORTD bit 1 / Parallel Slave Port data bit 1
Pin 21 RD2/PSP2 β€” PORTD bit 2 / Parallel Slave Port data bit 2
Pin 22 RD3/PSP3 β€” PORTD bit 3 / Parallel Slave Port data bit 3
Pin 23 RC4/SDI/SDA β€” PORTC bit 4 / SPI data in / IΒ²C 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 data bit 4
Pin 28 RD5/PSP5 β€” PORTD bit 5 / Parallel Slave Port data bit 5
Pin 29 RD6/PSP6 β€” PORTD bit 6 / Parallel Slave Port data bit 6
Pin 30 RD7/PSP7 β€” PORTD bit 7 / Parallel Slave Port data bit 7
Pin 31 VSS β€” Ground reference
Pin 32 VDD β€” Positive supply voltage (4.0–5.5 V)
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
Pin 38 RB5 β€” PORTB bit 5
Pin 39 RB6/PGC β€” PORTB bit 6 / ICSP clock (programming/debug)
Pin 40 RB7/PGD β€” PORTB bit 7 / ICSP data (programming/debug)
Pin 41 NC β€” Not connected (per datasheet)
Pin 42 NC β€” Not connected (per datasheet)
Pin 43 NC β€” Not connected (per datasheet)
Pin 44 NC β€” Not connected (per datasheet)

Typical Applications

PIC16F874-04I/L is suitable for 6 applications: Industrial Control Panels, Automotive Body Electronics, Sensor Signal Conditioning, HVAC Actuator Control, Character LCD Human-Machine Interface, Legacy Embedded Maintenance Designs.

🏭

Industrial Control Panels

The PIC16F874-04I/L's industrial -40 Β°C to +85 Β°C temperature range, integrated brown-out reset, and 33 I/O pins make it a strong fit for industrial control panels driving relays, contactors, and indicator LEDs. Its 7 KB Flash accommodates state-machine logic and Modbus RTU slave firmware via the integrated USART. With 4 MIPS of deterministic throughput, the part executes a typical PLC scan cycle in well under 1 ms, while the 10-bit ADC reads 4–20 mA loopback signals from field transmitters. The 44-PLCC socket simplifies field replacement during maintenance. Compared with newer Cortex-M0 parts, the PIC16F874 offers lower cost for non-connected panels and a mature toolchain with MPLAB X IDE.

πŸš—

Automotive Body Electronics

The PIC16F874-04I/L's -40 Β°C to +85 Β°C operating range, hardware PWM (CCP) module, and watchdog timer suit it to non-safety automotive body applications such as seat controllers, mirror adjusters, and ambient lighting drivers. The 10-bit 8-channel ADC reads multiple position sensors and temperature inputs; the MSSP drives SPI-controlled LED drivers or IΒ²C ambient-light sensors. While not AEC-Q100 qualified, the part is widely deployed in commercial-vehicle body modules where automotive certification is delegated to the vehicle-level ECU. The 44-PLCC package supports through-hole prototyping on legacy body-electronics PCBs still in production. For new designs Microchip recommends the PIC16F18877 in automotive grades.

🧩

Sensor Signal Conditioning

The PIC16F874-04I/L's 10-bit 8-channel ADC, 192 B RAM, and 7 KB Flash make it well suited to multi-channel sensor signal-conditioning nodes that read, linearize, and forward measurement data. With 33 I/O, the part can directly drive 7–8 analog sensors plus a digital display via SPI. The MSSP IΒ²C master mode reads external digital sensors (pressure, humidity), while the CCP module generates timing pulses for ultrasonic or capacitive sensors. The on-chip 4 MHz RC oscillator reduces BOM cost for non-timing-critical applications, and the ICSP interface allows calibration updates in the field.

⚑

HVAC Actuator Control

The PIC16F874-04I/L controls HVAC damper and valve actuators by reading temperature sensors through the 10-bit ADC and driving triac-gated outputs via the CCP PWM module. Its 4 MIPS throughput closes the PID loop in under 250 Β΅s, ensuring stable damper positioning without overshoot. The 128-byte EEPROM stores calibration coefficients for each actuator channel, while the USART connects to a building-automation bus. Industrial temperature rating supports rooftop unit deployment. The 44-PLCC socket on legacy damper boards simplifies field replacement. Compared with discrete analog PID loops, the digital implementation reduces tuning time and improves long-term stability.

πŸ“Ί

Character LCD Human-Machine Interface

The PIC16F874-04I/L drives HD44780-compatible character LCDs (16x2 or 20x4) using software-generated timings or via the MSSP SPI interface to LCD controller chips. With 7 KB Flash, the part supports menu hierarchies, button debouncing, and simple graphics in firmware. The 33 I/O handle up to a 4x4 keypad matrix plus dedicated control outputs for backlight PWM. The integrated USART enables serial debug output for in-system parameter tuning. The 44-PLCC package fits legacy industrial HMI enclosures still using through-hole assembly. Compared with character-LCD-only COB solutions, the PIC16F874 offers flexible firmware updates.

πŸ”§

Legacy Embedded Maintenance Designs

The PIC16F874-04I/L is the production-keepalive part for legacy products originally designed in the late 1990s and 2000s that must continue to manufacture without PCB respins. Its 44-PLCC socket and PIC16F instruction set guarantee forward compatibility with the original firmware image, while modern Microchip MPLAB X IDE supports recompilation. The -04 speed grade and -I industrial temperature rating match the original BOM. For products requiring more code space, the pin-compatible PIC16F877-04I/L or newer PIC16F884-I/L offers drop-in upgrade paths. Stock availability at major distributors remains strong as of 2026-09-21.

Recommended Products Summary

MCP2551 CAN transceiver for industrial bus extension Used in: Industrial Control Panels PIC16F877-04I/L drop-in upgrade with 14 KB Flash for larger programs Used in: Industrial Control Panels, Character LCD Human-Machine Interface, Legacy Embedded Maintenance Designs MCP2515 stand-alone CAN controller for in-vehicle networking Used in: Automotive Body Electronics MCP9700 analog temperature sensor compatible with the ADC Used in: Automotive Body Electronics, Sensor Signal Conditioning, HVAC Actuator Control MCP9808 high-accuracy IΒ²C digital temperature sensor Used in: Sensor Signal Conditioning MOC3021 optotriac driver for mains-voltage actuator switching Used in: HVAC Actuator Control MCP23017 IΒ²C 16-bit I/O expander for additional keypad rows Used in: Character LCD Human-Machine Interface PIC16F884-I/L modern migration target with nanoWatt technology Used in: Legacy Embedded Maintenance Designs
What is the maximum clock frequency of the PIC16F874-04I/L?
The PIC16F874-04I/L operates at a maximum clock frequency of 4 MHz, delivering 4 MIPS at that rate. The "-04" speed suffix in the part number explicitly denotes this 4 MHz grade; for 20 MHz operation, choose the PIC16F874-20I/L variant instead. According to Microchip datasheet DS30292, the 200 ns instruction execution time at 4 MHz makes timing-deterministic control loops straightforward.
How much Flash program memory does the PIC16F874-04I/L have?
The PIC16F874-04I/L integrates 7 KB of Flash program memory organized as 4K x 14-bit words. This is sufficient for mid-complexity control firmware including state machines, PID loops, and small protocol stacks. Code is programmed via ICSP using two pins (RB6/RB7) and retains data for over 40 years per the datasheet.
What is the difference between PIC16F874-04I/L and PIC16F877-04I/L?
The PIC16F874 and PIC16F877 share the same 44-pin PLCC pinout and peripheral set, but the PIC16F877 doubles the Flash to 14 KB and the RAM to 368 bytes. According to Microchip's pin/code compatibility chart, both are drop-in interchangeable when firmware fits within the smaller part's memory limits. Choose F877 when extra code space or RAM headroom is needed.
What is the operating voltage range of PIC16F874-04I/L?
The PIC16F874-04I/L operates from 4.0 V to 5.5 V across the industrial temperature range of -40 Β°C to +85 Β°C. For 2.0–5.5 V low-voltage designs, the PIC16LF874-04I/L variant is the drop-in alternative. The integrated brown-out reset circuit holds the part in reset until VDD reaches a valid threshold.
Does PIC16F874-04I/L support I2C and SPI?
Yes, the PIC16F874-04I/L integrates an MSSP (Master Synchronous Serial Port) module that supports both IΒ²C (Master and Slave, 7-bit/10-bit addressing) and SPI (Master and Slave) modes. The same hardware block is shared, configurable via firmware. A separate USART provides asynchronous RS-232/RS-485 and synchronous serial communication in parallel.
How many ADC channels does PIC16F874-04I/L provide?
The PIC16F874-04I/L provides a 10-bit successive-approximation ADC with 8 analog input channels multiplexed onto a single sample-and-hold. Conversion takes approximately 15–20 Β΅s depending on clock configuration. The ADC shares pins with Port A and Port E, requiring those pins to be configured as analog inputs via the ADCON1 register.
Where can I buy PIC16F874-04I/L online?
The PIC16F874-04I/L is currently stocked at major authorized distributors including Mouser, DigiKey, and Microchip Direct, with pricing starting around $8.20 per unit at quantity 1 (as of 2026-09-21). Lead time for factory-direct orders from Microchip Direct is typically 4–6 weeks for non-stocked variants. Volume orders above 100 pieces unlock significant discounts.
What is the price of PIC16F874-04I/L in 100-piece quantity?
The PIC16F874-04I/L prices at approximately $6.60 per unit at 100-piece quantity as of 2026-09-21, dropping to around $5.40 at 1,000 pieces. Pricing varies by distributor and reel/tube packaging. Industrial-grade 'I' suffix parts typically command a small premium over the standard commercial 0 Β°C to +70 Β°C variant.
What is the lead time for PIC16F874-04I/L?
The PIC16F874-04I/L is an active Microchip part with distributor stock typically shipping same-day from DigiKey and Mouser (as of 2026-09-21). Factory-direct orders via Microchip Direct quote 4–6 weeks for non-stocked quantities. As an established mature product, supply is generally stable with no announced obsolescence.
Is PIC16F874-04I/L in stock at Mouser and DigiKey?
Yes, both Mouser and DigiKey list the PIC16F874-04I/L as actively stocked with quantities typically ranging from several hundred to a few thousand pieces (as of 2026-09-21). Real-time inventory is visible on each distributor's product page; Microchip Direct also carries the part with factory-direct availability. No allocation or shortage notices have been published.
What is the best drop-in replacement for PIC16F874-04I/L?
The best drop-in replacement for the PIC16F874-04I/L in the same 44-pin PLCC package is the PIC16F877-04I/L, which doubles Flash to 14 KB and RAM to 368 bytes while remaining pin-to-pin compatible. For newer silicon with nanoWatt power savings, the PIC16F884-I/L is the recommended migration target per Microchip's product page. All share the same PLCC-44 footprint.
What is the difference between PIC16F874-04I/L and PIC16LF874-04I/L?
The PIC16F874-04I/L operates from 4.0–5.5 V, while the PIC16LF874-04I/L operates from 2.0–5.5 V for low-voltage battery applications. Both share the same 44-pin PLCC pinout and 7 KB Flash / 192 B RAM memory map. According to Microchip datasheet DS30292, the LF variant is the drop-in replacement when the design must operate below 4 V.
Where can I download the PIC16F874-04I/L datasheet PDF?
The official PIC16F874-04I/L datasheet (DS30292) is available for free PDF download directly from Microchip's website at the product page for the PIC16F874 family. Octopart also hosts a mirrored copy. The datasheet includes electrical characteristics, peripheral driver examples, instruction set reference, and timing diagrams for the USART, MSSP, and ADC modules.
Where can I find the PIC16F874-04I/L pinout diagram?
The PIC16F874-04I/L pinout is documented on page 7 of the Microchip datasheet DS30292. The 44-pin PLCC pinout assigns Port A (RA0–RA5) to pins 2–7, Port B (RB0–RB7) to pins 8–15, and Port C/D to pins 16–30. Pins 1, 11–14, 33–40 are reserved for VDD/VSS, MCLR, OSC1/OSC2, and Port E analog inputs.
What are the key specifications of PIC16F874-04I/L that engineers should know?
The PIC16F874-04I/L delivers 4 MIPS at 4 MHz from a 4.0–5.5 V supply, with 7 KB Flash, 192 B RAM, 128 B EEPROM, 33 I/O pins, a 10-bit 8-channel ADC, USART, MSSP (SPI/IΒ²C), and one CCP module in a 44-PLCC package. Industrial temperature range is -40 Β°C to +85 Β°C. Brown-out reset, watchdog timer, and four oscillator modes are integrated.
Is PIC16F874-04I/L suitable for new designs in 2026?
The PIC16F874-04I/L remains active and supported by Microchip but is positioned for legacy maintenance and cost-sensitive industrial designs; for new designs in 2026, Microchip recommends the PIC16F884 (more memory, nanoWatt technology) or PIC18F equivalents. The PIC16F874-04I/L is suitable when matched to existing 44-PLCC sockets and stable long-term supply.
Can I replace PIC16F874-04I/L with PIC16F884-I/L without code changes?
The PIC16F884-I/L is a near drop-in upgrade with 14 KB Flash, 368 B RAM, and additional peripherals including two CCP modules, but it adds Enhanced Capture/Compare and PWM modules requiring firmware reconfiguration of peripheral registers. According to Microchip, the PIC16F874 to PIC16F884 migration is largely code-compatible but requires review of peripheral initialization sequences.
What is the best Microchip equivalent for PIC16F874-04I/L?
The best Microchip equivalent for the PIC16F874-04I/L is the PIC16F877-04I/L β€” same 44-PLCC pinout, same 4 MHz speed grade, same 4.0–5.5 V supply, with doubled Flash (14 KB) and RAM (368 B). Microchip's cross-reference tool confirms direct pin compatibility, and firmware compiled for PIC16F874 runs unchanged on PIC16F877 when sized to 7 KB.

Engineering reference data for PIC16F874-04I/L β€” comparison, design guidance, and compliance information.

Selection Guide

Choose the PIC16F874-04I/L when designing or maintaining a 44-pin PLCC-based industrial embedded system that needs 4 MIPS at 4 MHz, 7 KB Flash, and the full -40 Β°C to +85 Β°C operating range. For designs that exceed 7 KB of code, migrate to the pin-compatible PIC16F877-04I/L (14 KB Flash, 368 B RAM) without PCB rework. For battery-powered or low-voltage designs below 4 V, switch to the PIC16LF874-04I/L which operates from 2.0–5.5 V. For new designs in 2026, prefer the PIC16F884-I/L, which adds nanoWatt power management and a second CCP module. The PIC16F874-04I/L remains the right choice for legacy products where firmware stability and unchanged MPLAB X IDE toolchain behavior outweigh the appeal of newer silicon.

Comparison with Alternatives

Parameter This Product PIC16F877-04I/L PIC16F874-20I/L PIC16F874-04/L PIC16LF874-04I/L PIC16F874T-04I/L
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Package 44-PLCC 44-PLCC - same 44-PLCC - same 44-PLCC - same 44-PLCC - same 44-PLCC - same
Maximum Clock Frequency 4 MHz 4 MHz 20 MHz 4 MHz 4 MHz 4 MHz
Program Flash Memory 7 KB 14 KB 7 KB 7 KB 7 KB 7 KB
Data RAM 192 bytes 368 bytes 192 bytes 192 bytes 192 bytes 192 bytes
Data EEPROM 128 bytes 256 bytes 128 bytes 128 bytes 128 bytes 128 bytes
Supply Voltage Range 4.0–5.5 V 4.0–5.5 V 4.0–5.5 V 4.0–5.5 V 2.0–5.5 V 4.0–5.5 V
Operating Temperature -40 Β°C to +85 Β°C (Industrial) -40 Β°C to +85 Β°C (Industrial) -40 Β°C to +85 Β°C (Industrial) 0 Β°C to +70 Β°C (Commercial) -40 Β°C to +85 Β°C (Industrial) -40 Β°C to +85 Β°C (Industrial)
I/O Pins 33 33 33 33 33 33
ADC 10-bit, 8 channels 10-bit, 8 channels 10-bit, 8 channels 10-bit, 8 channels 10-bit, 8 channels 10-bit, 8 channels
Lifecycle Status Active Active Active Active Active Active

Key Differentiators

  • Wide industrial temperature range with proven PLCC-44 supply chain (vs PIC16LF874-04I/L)
  • Mature PIC16F instruction set compatibility (vs PIC16F884-I/L)
  • 44-PLCC socket compatibility with PIC16F877 family (vs PIC16F874-04/P (commercial temp))

Design Notes

The PIC16F874-04I/L operates from a single 4.0–5.5 V supply. Place a 100 nF decoupling capacitor as close as possible to each VDD/VSS pin pair (pins 11/12 and 31/32), with a bulk 10 Β΅F tantalum or ceramic capacitor at the regulator output. The integrated brown-out reset (BOR) trip threshold is configurable in the configuration word; leave BOR enabled for industrial designs to avoid code execution at marginal voltages. The MCLR pin (pin 1) should be tied to VDD through a 10 kΞ© pull-up and decoupled with a 100 nF capacitor for noise immunity.

For the 44-PLCC package, use a PLCC-44 through-hole socket to support prototyping and field replacement. Reserve a 4-pin header (or 2x3 ICSP header) connected to MCLR/VPP, VDD, VSS, PGC (RB6), and PGD (RB7) to enable in-circuit serial programming and MPLAB ICD debugging without removing the MCU. Keep the trace from OSC1 to the crystal shorter than 12 mm, and guard the crystal area with a ground ring to reduce EMI. When using the on-chip 4 MHz RC oscillator (CONFIG FOSC = INTRC), leave the OSC1/OSC2 pins as GPIO on PORTA/ PORTA ALT.

Two common pitfalls: (1) Configuring analog pins without setting ADCON1 β€” analog pins default to analog mode on POR, so leaving the TRISA bits alone does not free a pin for digital I/O. Always write ADCON1 before reading PORTA if any pins are digital. (2) Forgetting the configuration word β€” the PIC16F874 requires the oscillator, watchdog, BOR, code-protect, and LVP bits to be set at programming time via the __CONFIG macro. A blank configuration word defaults to RC oscillator with WDT enabled and may leave the device unresponsive. Use MPLAB X IDE's configuration bits window to verify before programming.

When using the MSSP module in IΒ²C mode, install 4.7 kΞ© pull-ups on SDA (RC4) and SCL (RC3) to VDD, and add 100 pF series termination on long bus segments (>50 mm) to damp ringing. For SPI master mode, route SDO/SDI/SCK as a tightly coupled bus with ground guard traces; maximum SPI clock at 4 MHz FOSC is 1 MHz (FOSC/4). For ADC accuracy, place the analog input traces away from digital switching signals and add a 100 nF bypass at each analog input pin to reduce sample-charge kickback noise.

Compliance Information

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

RoHS and REACH compliant per Microchip product page. Not AEC-Q100 qualified β€” for automotive safety applications, choose PIC16F18877 in AEC-Q100 grade.

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

Related Searches

PIC16F874-04I/L PIC16F874-04I/L datasheet Microchip PIC16F874 8-bit MCU PIC16F874 44-pin PLCC 4 MHz microcontroller PIC16F874-04I/L vs PIC16F877-04I/L PIC16F874-04I/L industrial temperature MCU PIC16F874-04I/L buy price stock PIC16F874-04I/L PLCC drop-in replacement what is the Flash memory of PIC16F874 PIC16F874 pinout 44-PLCC PIC16F874 I2C SPI microcontroller PIC16F874 ICSP programming

Related Components & Terms

Microchip Technology PIC16F874 PIC16F874-04I/L PIC16F877-04I/L PIC16LF874-04I/L PIC16F884-I/L 8-bit microcontroller PIC16F family RISC architecture Harvard architecture Flash memory EEPROM USART MSSP I2C SPI ADC CCP module 44-PLCC PLCC-44 ICSP MPLAB X IDE brown-out reset watchdog timer RoHS REACH industrial temperature range AEC-Q100
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