Microchip Technology

PIC16F874A-I/ML - 8-bit PIC MCU, 7KB Flash, 44-pin QFN | Microchip

MPN: PIC16F874A-I/ML ✓ Active
In Stock Ships in 1-3 business days
2.0 V to 5.5 V Vdss 44-pin QFN (ML), exposed pad Package 20 MHz Speed 7 KB Memory
From $3.21 USD / Unit
MOQ: 1 |
Price updated: 2026-09-21
Volume Pricing
Qty Unit Price Extended
1 $5.32 $5.32
10 $4.85 $48.50
100 $4.18 $418.00
500 $3.62 $1,810.00
1,000 $3.21 $3,210.00
ℹ️ All prices are in USD

PIC16F874A-I/ML Overview

The Microchip PIC16F874A-I/ML is a CMOS Flash-based 8-bit PIC microcontroller in a 44-pin QFN package delivering 200 ns instruction execution, 7 KB of Flash program memory, 192 bytes of RAM, and 128 bytes of EEPROM data memory. It provides 33 digital I/O lines, an 8-channel 10-bit Analog-to-Digital converter, two analog comparators, two Capture/Compare/PWM modules, a USART, and a Synchronous Serial Port configurable as either 3-wire SPI or 2-wire I2C. The device operates from 2.0V to 5.5V across the -40C to +85C industrial temperature range and includes In-Circuit Debugging (ICD) plus self-programming support.

An 8-bit PIC microcontroller is a RISC-based computing core on a chip, integrating a CPU, non-volatile program memory, volatile data memory, peripherals, and I/O on a single die. Within the broader semiconductor taxonomy, PIC MCUs belong to the microcontroller family, which sits under the wider category of embedded computing devices and ultimately under integrated circuits. PIC16 series parts are Microchip's mid-range 8-bit line, providing a balance of code density, peripheral integration, and low cost that suits legacy and industrial designs.

The PIC16F874A-I/ML uses an enhanced Harvard architecture with separate program and data buses, allowing instruction fetch and operand access to occur simultaneously. Its 35 single-word instruction set simplifies coding in compilers such as XC8, while the 10-bit ADC and dual comparators ease mixed-signal front-end design. Brown-out Reset, Power-on Reset, and a watchdog timer with its own on-chip RC oscillator improve field reliability.

Typical applications include industrial control panels, motor control boards, automotive body electronics, sensor interfaces, instrumentation, and consumer appliances. The wide operating voltage range and on-chip peripherals also make the part attractive for battery-powered metering and HVAC controller boards. Compared to newer PIC18 devices, the PIC16F874A offers a familiar register model that simplifies porting of mature firmware.

When designing with this device, verify that the chosen development toolchain (MPLAB X IDE with XC8 compiler or legacy Hi-Tech PICC) supports the -I/ML temperature grade and QFN-44 footprint. Designers migrating from older PIC16F87x parts should review the A/D channel mapping and SSP module behavior, which were revised on the 874A/877A silicon compared to the original 874/877.

Drop-in alternatives for PIC16F874A-I/ML — 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 PIC16F874A-I/ML (same form factor and footprint) — differing in Package, ADC, Core Architecture, Timers, Serial Interfaces.

Microchip Technology
Package: 28-pin QFN (ML, 6x6 mm)
ADC: 10-bit, 5 channels
Core Architecture: 8-bit PIC16 mid-range RISC
Microchip Technology
Package: 44-pin TQFP (PT) 10x10 mm
ADC: 10-bit, 8-channel
Timers: 2 x 8-bit, 1 x 16-bit
Microchip Technology
Package: 44-pin TQFP (PT), 10x10 mm
ADC: 10-bit, 8 channels
Core Architecture: RISC, Harvard, 8-bit
Microchip Technology
Package: 44-pin QFN (ML), 8x8 mm, with exposed thermal pad
ADC: 10-bit, 8 channels
Core Architecture: 8-bit RISC (PIC16 mid-range, 14-bit instruction word)
Microchip Technology
Package: 44-pin TQFP (10x10 mm)
ADC: 10-bit, up to 8 channels
Timers: 2 x 8-bit, 1 x 16-bit
Microchip Technology
Package: 44-pin PLCC (J-lead, J-Lead)
ADC: 10-bit, 8 channels
Core Architecture: PIC16 enhanced 8-bit RISC
Microchip Technology
Package: 28-pin QFN (6 x 6 mm) with EP
ADC: 5 channels x 10-bit
Core Architecture: PIC16 RISC

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

PIC16F877A-I/ML

✅ Drop-In
📦 44-pin QFN (ML)
same QFN-44 footprint, Flash 14 KB vs 7 KB (+100%), RAM 256 vs 192 B (+33%), EEPROM 256 vs 128 B (+100%); pin-to-pin compatible per PIC16F87xA datasheet DS39582B

📋 Reference alternative (not in catalog)

PIC16F873A-I/ML

✅ Drop-In
Microchip Technology
📦 44-pin QFN (ML)
8-bit PIC16 mid-range RISC · 35 single-word instructions, 14-bit instruction word · 20 MHz (200 ns instruction cycle) · 7 KB (4K x 14) · 192 bytes · 128 bytes · 22 · 10-bit, 5 channels

✓ In Stock

$2.32 / Unit

View Datasheet →

PIC16F874A-E/PT

✅ Drop-In
Microchip Technology
📦 44-pin QFN (ML)
PIC16F (PIC 8-bit) · RISC, Harvard, 8-bit · 35 single-word instructions · 7 KB (4K x 14 words) · 192 bytes · 128 bytes · 20 MHz · 200 ns

✓ In Stock

$7.45 / Unit

View Datasheet →

PIC16F874-04I/PT

✅ Drop-In ⚠️ 参数待验证
Microchip Technology
📦 44-pin QFN (ML)
PIC16F 8-bit mid-range MCU · 7 KB · 192 bytes · 128 bytes · 20 MHz (4 MHz marked in part number, family rating 20 MHz) · 200 ns at 20 MHz · 4.0 V to 5.5 V · 33

✓ In Stock

$5.4 / Unit

View Datasheet →

PIC18F44K22-I/ML

✅ Drop-In ⚠️ 参数待验证
📦 44-pin QFN (ML)
same QFN-44 footprint, PIC18 core (16-bit instructions, 16 KB Flash, 768 B RAM, 256 B EEPROM); pin-to-pin compatible per Microchip PIC18 migration guide, requires PIC18 firmware recompile

📋 Reference alternative (not in catalog)

PIC16F874A-I/ML Maximum Ratings & Electrical Characteristics

Product Type 8-bit PIC Microcontroller (MCU)
Series PIC16F
Program Memory (Flash) 7 KB
Data Memory (RAM) 192 bytes
Data EEPROM 128 bytes
Instruction Set 35 single-word instructions
Instruction Execution Time 200 ns
CPU Speed (max) 20 MHz
Digital I/O Pins 33
Analog-to-Digital Converter 8 channels x 10-bit
Analog Comparators 2
Capture/Compare/PWM Modules 2 (CCP)
Serial Interfaces USART + SSP (SPI / I2C)
In-Circuit Debug Yes (ICD)
Self-Programming Yes
Operating Voltage Range 2.0 V to 5.5 V
Operating Temperature Range -40 C to +85 C (Industrial, -I suffix)
Package 44-pin QFN (ML), exposed pad
Mounting Type Surface Mount
RoHS Status Compliant

PIC16F874A-I/ML 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/RE3 — Master Clear (Reset) input / Programming voltage / Digital I/O port E bit 3
Pin 2 RA0/AN0 — Digital I/O port A bit 0 / Analog input channel 0
Pin 3 RA1/AN1 — Digital I/O port A bit 1 / Analog input channel 1
Pin 4 RA2/AN2/VREF- — Digital I/O port A bit 2 / Analog input channel 2 / ADC VREF-
Pin 5 RA3/AN3/VREF+ — Digital I/O port A bit 3 / Analog input channel 3 / ADC VREF+
Pin 6 RA4/T0CKI/C1OUT — Digital I/O port A bit 4 / Timer0 clock input / Comparator 1 output
Pin 7 RA5/AN4/SS/C2OUT — Digital I/O port A bit 5 / Analog input channel 4 / SPI slave select / Comparator 2 output
Pin 8 RE0/RD/AN5 — Digital I/O port E bit 0 / Parallel-port read strobe / Analog input channel 5
Pin 9 RE1/WR/AN6 — Digital I/O port E bit 1 / Parallel-port write strobe / Analog input channel 6
Pin 10 RE2/CS/AN7 — Digital I/O port E bit 2 / Parallel-port chip select / Analog input channel 7
Pin 11 VDD — Positive supply voltage (2.0 V to 5.5 V)
Pin 12 VSS — Ground reference
Pin 13 OSC1/CLKI — Oscillator crystal input / External clock input
Pin 14 OSC2/CLKO — Oscillator crystal output / External clock output
Pin 15 RC0/T1OSO/T1CKI — Digital I/O port C bit 0 / Timer1 oscillator output / Timer1 clock input
Pin 16 RC1/T1OSI/CCP2 — Digital I/O port C bit 1 / Timer1 oscillator input / CCP2 input/output
Pin 17 RC2/CCP1 — Digital I/O port C bit 2 / CCP1 input/output
Pin 18 RC3/SCK/SCL — Digital I/O port C bit 3 / SPI clock / I2C clock
Pin 19 RD0/PSP0 — Digital I/O port D bit 0 / Parallel Slave Port bit 0
Pin 20 RD1/PSP1 — Digital I/O port D bit 1 / Parallel Slave Port bit 1
Pin 21 RD2/PSP2 — Digital I/O port D bit 2 / Parallel Slave Port bit 2
Pin 22 RD3/PSP3 — Digital I/O port D bit 3 / Parallel Slave Port bit 3
Pin 23 RC4/SDI/SDA — Digital I/O port C bit 4 / SPI data in / I2C data
Pin 24 RC5/SDO — Digital I/O port C bit 5 / SPI data out
Pin 25 RC6/TX/CK — Digital I/O port C bit 6 / USART TX / USART clock
Pin 26 RC7/RX/DT — Digital I/O port C bit 7 / USART RX / USART data
Pin 27 RD4/PSP4 — Digital I/O port D bit 4 / Parallel Slave Port bit 4
Pin 28 RD5/PSP5 — Digital I/O port D bit 5 / Parallel Slave Port bit 5
Pin 29 RD6/PSP6 — Digital I/O port D bit 6 / Parallel Slave Port bit 6
Pin 30 RD7/PSP7 — Digital I/O port D bit 7 / Parallel Slave Port bit 7
Pin 31 VSS — Ground reference (second VSS pin)
Pin 32 VDD — Positive supply voltage (second VDD pin)
Pin 33 RB0/INT — Digital I/O port B bit 0 / External interrupt
Pin 34 RB1 — Digital I/O port B bit 1
Pin 35 RB2 — Digital I/O port B bit 2
Pin 36 RB3/PGM — Digital I/O port B bit 3 / Low-voltage programming input
Pin 37 RB4 — Digital I/O port B bit 4
Pin 38 RB5 — Digital I/O port B bit 5
Pin 39 RB6/PGC — Digital I/O port B bit 6 / ICD clock
Pin 40 RB7/PGD — Digital I/O port B bit 7 / ICD data
Pin 41 VSS — Ground reference (third VSS pin)
Pin 42 VDD — Positive supply voltage (third VDD pin)
Pin 43 NC — Not connected (per datasheet)
Pin 44 NC — Not connected (per datasheet)

Typical Applications

PIC16F874A-I/ML is suitable for 7 applications: Industrial Control Panels, Small Motor Control (Brushed DC, Fan Speed), Sensor Interface Boards, Consumer Appliance Control, Battery-Powered Metering, HVAC Controller Boards, Educational / Development Trainer Boards.

🏭

Industrial Control Panels

The PIC16F874A-I/ML fits industrial control panels because its 33 digital I/O lines can drive relays, optocouplers, and status LEDs directly while the 8-channel 10-bit ADC reads analog sensors such as pressure transducers, thermistors, and 4-20 mA loop interfaces. The 2.0V to 5.5V operating range accommodates 24V-bus-derived rails commonly used in factory PLCs, and the on-chip comparators implement window-comparator safety logic. The USART supports RS-485 transceivers for multi-drop fieldbus communication. Compared with discrete logic implementations, this MCU reduces BOM and simplifies firmware updates via ICD.

Small Motor Control (Brushed DC, Fan Speed)

In brushed DC motor and fan-speed control designs, the PIC16F874A-I/ML uses its two Capture/Compare/PWM modules to generate variable duty-cycle PWM signals for H-bridge drivers. The 200 ns instruction execution time supports up to 20 kHz PWM at 8-bit resolution, sufficient for most small-motor applications. The 10-bit ADC measures back-EMF for closed-loop speed regulation, while the comparators detect over-current faults via shunt amplifiers. The wide 2.0-5.5V supply range simplifies direct operation from motor supply rails through a small LDO.

🧩

Sensor Interface Boards

The PIC16F874A-I/ML is well-matched to multi-sensor interface boards thanks to its 8-channel 10-bit ADC, dual analog comparators, and MSSP supporting I2C/SPI sensor busses. The device can poll up to 8 analog sensors sequentially while communicating with digital sensors over the same I2C bus. The 128-byte EEPROM stores calibration coefficients, and the 192-byte RAM holds intermediate sensor data. The industrial -40 C to +85 C temperature grade supports outdoor enclosures, and the QFN-44 footprint allows compact sensor PCB designs.

🏠

Consumer Appliance Control

Consumer appliances such as washing machines, microwave ovens, and HVAC controllers commonly use the PIC16F874A-I/ML. The 7 KB Flash accommodates user-interface state machines and safety routines, while the 33 digital I/O drive seven-segment displays, keypads, and triac-based mains switches. The watchdog timer with its own on-chip RC oscillator improves reliability against mains-borne transients. Brown-out Reset and Power-on Reset protect EEPROM-stored settings. Compared with mask-ROM MCUs, the Flash-based PIC16F874A simplifies firmware revisions during appliance model lifecycles.

🔋

Battery-Powered Metering

Battery-powered metering designs leverage the PIC16F874A-I/ML's 2.0V to 5.5V operating range, low-power Sleep mode, and integrated 10-bit ADC. The device can wake from sleep on a watchdog timeout to take periodic ADC measurements, store averages in the 128-byte EEPROM, and transmit via the USART to a handheld reader. The 192 bytes of RAM are sufficient for cumulative counters and rolling averages, while the USART drives low-power sub-GHz transceivers or Bluetooth-HCI modules for AMI smart-meter designs.

🌡️

HVAC Controller Boards

The PIC16F874A-I/ML fits HVAC controller boards because the 33 digital I/O drive damper actuators, fan relays, and triac-controlled compressors. The 8-channel ADC reads NTC temperature sensors, humidity probes, and pressure transducers, while the comparators enable thermostat-style on/off control without external op-amps. The wide 2.0-5.5V operating range simplifies 24VAC-derived power architectures. The 7 KB Flash and 192-byte RAM support PID loops for closed-loop temperature control with adequate headroom for firmware growth.

🎓

Educational / Development Trainer Boards

Universities and embedded-systems training labs favor the PIC16F874A-I/ML because the mid-range PIC16 instruction set has 35 single-word instructions that are easy to teach in a semester. The on-chip ICD interface allows in-circuit debugging without expensive emulators, and the QFN-44 footprint teaches modern SMD soldering skills. Standard peripheral set (10-bit ADC, SPI, I2C, USART, CCP) covers the full curriculum: ADC sampling, PWM generation, I2C sensor reads, and UART comms. The PIC16F874A is a stepping-stone to PIC18 and dsPIC devices.

Recommended Products Summary

PIC16F877A-I/ML Drop-in upgrade with 2x Flash/RAM/EEPROM Used in: Industrial Control Panels, Sensor Interface Boards, HVAC Controller Boards, Educational / Development Trainer Boards PIC16F874A-E/PT Microchip Technology Used in: Industrial Control Panels, Consumer Appliance Control MAX485ESA RS-485 transceiver companion part Used in: Industrial Control Panels PIC16F873A-I/ML Microchip Technology Used in: Small Motor Control (Brushed DC, Fan Speed), Battery-Powered Metering, Educational / Development Trainer Boards DRV8871 H-bridge motor driver companion Used in: Small Motor Control (Brushed DC, Fan Speed) INA180 Current-sense amplifier for over-current protection Used in: Small Motor Control (Brushed DC, Fan Speed) BME280 I2C temperature/humidity/pressure sensor companion Used in: Sensor Interface Boards MCP9808 High-accuracy I2C temperature sensor Used in: Sensor Interface Boards MOC3021 Optoisolated triac driver for mains loads Used in: Consumer Appliance Control 24LC256 I2C EEPROM for user settings Used in: Consumer Appliance Control MAX17048 Battery fuel gauge companion Used in: Battery-Powered Metering CC1101 Sub-GHz transceiver for AMI data uplink Used in: Battery-Powered Metering MCP9700 Analog temperature sensor companion Used in: HVAC Controller Boards BTB08 TRIAC for compressor switching Used in: HVAC Controller Boards PIC-KIT3 MPLAB ICD debugger/programmer Used in: Educational / Development Trainer Boards
What is the program memory size of the PIC16F874A-I/ML?
The PIC16F874A-I/ML integrates 7 KB of Flash program memory on-chip, with 192 bytes of RAM and 128 bytes of EEPROM for non-volatile data storage. According to the Microchip PIC16F874A datasheet (DS39582B), the program memory is organized as 4K x 14 words, and the device supports self-programming for in-application firmware updates. This memory density suits moderate-size embedded applications such as sensor hubs, small motor controllers, and industrial HMI panels.
Where can I buy the PIC16F874A-I/ML online?
The PIC16F874A-I/ML is available from authorized distributors including DigiKey, Mouser, LCSC, BonChip, and MicrochipDirect. Pricing as of 2026-09-21 shows single-unit prices starting near $5.32 USD, with 1000-piece breaks around $3.21 USD at franchised distributors. Stock and lead times vary by distributor; the part is generally listed as active and readily available, though verified stock should be confirmed at order entry to avoid surprise backorders.
What is the operating voltage range of PIC16F874A-I/ML?
The PIC16F874A-I/ML operates from 2.0 V to 5.5 V on its VDD supply. According to the Microchip datasheet (DS39582B), this range supports both 3.3 V and 5 V system designs without level translation. The wide operating voltage window makes the part suitable for battery-powered metering, industrial 24V-bus-derived rails, and standard 5V MCU designs. Designers should still ensure VDD decoupling follows the 100 nF + bulk capacitor recommendation in the datasheet.
Does PIC16F874A-I/ML support SPI and I2C?
Yes, the PIC16F874A-I/ML includes a Master Synchronous Serial Port (MSSP) module that can be configured as either a 3-wire SPI interface or a 2-wire I2C bus. The MSSP supports both master and slave modes. According to the PIC16F874A datasheet (DS39582B), the MSSP module also supports SMBus and PMBus signaling in I2C mode, which makes the part usable in battery-management and sensor-side applications.
PIC16F874A vs PIC16F877A - what is the difference?
The PIC16F874A and PIC16F877A are siblings in the same PIC16F mid-range family. According to the Microchip PIC16F87xA datasheet (DS39582B), the PIC16F877A offers 14 KB of Flash, 256 bytes of RAM, and 256 bytes of EEPROM, while the PIC16F874A offers 7 KB Flash, 192 bytes RAM, and 128 bytes EEPROM. The 877A also adds a second MSSP-derived port on higher pin counts. Both share the same 10-bit ADC, two comparators, two CCP modules, and instruction set, so firmware written for one is largely portable to the other.
What is the pinout of the PIC16F874A-I/ML?
The PIC16F874A-I/ML uses a 44-pin QFN package with the standard PIC16F874A pinout documented in the Microchip datasheet (DS39582B). Pin 1 carries MCLR/VPP/RE3, pins 2-5 carry RA0-RA5, pins 6-7 carry RE0-RE1, pin 8 carries VSS, pin 9 carries OSC1/CLKI, pin 10 carries OSC2/CLKO, and pins 11-33 are mixed digital I/O and analog-input banks, with pins 34-40 carrying the PORTD/RC7/RC6 digital bus, pin 41 carrying VSS, and pin 44 carrying VDD. The exposed thermal pad on pin 45 must be soldered to a ground plane.
What package is the PIC16F874A-I/ML in?
The PIC16F874A-I/ML ships in a 44-pin QFN (Quad Flat No-leads) package designated by Microchip as /ML, with an exposed thermal pad on the underside. This package is also referenced as 44-VQFN-ExposedPad. Compared to 40-pin DIP or 44-pin TQFP variants, the QFN offers a smaller footprint and better thermal performance but requires reflow soldering and a PCB land pattern with thermal vias under the e-pad for proper heat dissipation.
When should I choose PIC16F874A-I/ML over PIC18F alternatives?
Choose the PIC16F874A-I/ML when you need a mature, low-cost 8-bit MCU with a familiar PIC16 register model, sufficient 7 KB Flash, and an integrated 8-channel 10-bit ADC. According to the Microchip PIC16F87xA family datasheet (DS39582B), this part excels in legacy firmware ports, industrial controls, and low-cost sensor interfaces. Move to a PIC18F (for example PIC18F44K22) when you need more program memory (>32 KB), USB, or higher ADC resolution. The PIC16F874A is the right pick when the BOM must be low and the toolchain already targets PIC16.
What is the best drop-in replacement for the PIC16F874A-I/ML?
The best drop-in replacement for PIC16F874A-I/ML in the same 44-pin QFN footprint is the PIC16F877A-I/ML, which provides 14 KB Flash (vs 7 KB), 256 bytes RAM (vs 192 bytes), and 256 bytes EEPROM (vs 128 bytes). According to the Microchip PIC16F874A/877A datasheet (DS39582B), both parts share the same pinout and instruction set, so firmware is portable. PIC16F873A-I/ML is also a same-footprint same-family alternative, though with only 4 KB Flash. For modern designs, PIC18F44K22-I/ML or PIC18F46K22-I/ML are drop-in upgrades once firmware is recompiled for PIC18.
How do I download the PIC16F874A-I/ML datasheet PDF?
The PIC16F874A datasheet (DS39582B, also titled PIC16F87xA Data Sheet) can be downloaded directly from Microchip's website. The canonical URL is https://ww1.microchip.com/downloads/en/devicedoc/39582b.pdf as listed in this product page's data sources. Always reference the latest revision letter when ordering or designing in the part, since errata have been corrected across datasheet revisions. Older snapshots are mirrored on sites like alldatasheet.com for convenience, but the Microchip site is authoritative.
Is the PIC16F874A-I/ML still in production?
Yes, the PIC16F874A-I/ML is still listed as Active by Microchip Technology, with no published End-of-Life (EOL) or Last-Time-Buy (LTB) notices as of 2026-09-21. The part continues to appear in stock at franchised distributors such as DigiKey, Mouser, and LCSC. Newer PIC18 and dsPIC families generally supersede it for greenfield designs, but the PIC16F874A remains a long-lived, fully-supported part for legacy and industrial designs.
Does PIC16F874A-I/ML meet AEC-Q100 automotive qualification?
The PIC16F874A-I/ML with the -I temperature suffix (industrial, -40 C to +85 C) is NOT AEC-Q100 qualified. According to the Microchip PIC16F87xA datasheet (DS39582B), automotive applications require the -E (extended, -40 C to +125 C) or an automotive-grade variant such as the PIC16F874A-E/ML. For AEC-Q100 needs, consult Microchip's automotive MCU portfolio; otherwise the -I/ML part is suitable for industrial and consumer environments only.
What is the cross-brand equivalent of PIC16F874A-I/ML?
There is no true cross-brand drop-in equivalent for the PIC16F874A-I/ML, because the PIC16F core, register map, and instruction set are Microchip-proprietary. Cross-brand 8-bit microcontrollers such as the Atmel ATmega644P or ST STM8S207 share the 8-bit class and pin count but require firmware rewrite. According to Microchip's cross-reference documentation (https://www.microchip.com/en-us/cross-reference-search), for true drop-in replacement the user should stay within the Microchip PIC16F family and select the PIC16F877A-I/ML or PIC16F873A-I/ML.
What are the key specifications of PIC16F874A-I/ML that engineers should know?
The PIC16F874A-I/ML is a 44-pin QFN 8-bit PIC MCU featuring 7 KB Flash, 192 bytes RAM, 128 bytes EEPROM, 33 digital I/O, an 8-channel 10-bit ADC, two analog comparators, two CCP modules, one USART, one MSSP (SPI/I2C), and an ICD interface. It runs at up to 20 MHz (200 ns instruction cycle) over 2.0 V to 5.5 V. Source: Microchip datasheet DS39582B. Industrial temperature grade (-40 C to +85 C). QFN-44 package with exposed thermal pad. These specs collectively make the part suitable for industrial control, instrumentation, and consumer embedded designs.
Can PIC16F877A-I/ML replace PIC16F874A-I/ML on an existing board?
Yes, the PIC16F877A-I/ML is a drop-in replacement for PIC16F874A-I/ML in the same 44-pin QFN footprint. According to the PIC16F874A/877A datasheet (DS39582B), the 877A doubles Flash to 14 KB, RAM to 256 bytes, and EEPROM to 256 bytes, with identical peripheral set, pinout, and instruction set. Firmware compiled for the PIC16F874A will run unchanged on the PIC16F877A; however, code that depends on the smaller memory layout (e.g., boundary checks against 7 KB Flash) should be audited before migration.

Engineering reference data for PIC16F874A-I/ML — comparison, design guidance, and compliance information.

Selection Guide

Choose the PIC16F874A-I/ML when you need a mid-range 8-bit PIC MCU with 7 KB Flash, 8-channel 10-bit ADC, and 33 digital I/O in a compact 44-pin QFN package, operating across 2.0 V to 5.5 V and industrial -40 C to +85 C temperatures. This part is ideal for industrial controls, motor control, sensor interfaces, consumer appliances, and educational designs. Choose the PIC16F877A-I/ML when your firmware exceeds 7 KB Flash or you want 256 bytes RAM/EEPROM for richer applications; the upgrade is pin-compatible. Choose the PIC16F873A-I/ML when you need a lower-cost variant with 4 KB Flash for simpler applications. Choose the PIC16F874A-E/PT when extended temperature range (-40 C to +125 C) is required for AEC-Q100 or harsh-environment designs. Migrate to the PIC18F44K22-I/ML when you need more than 16 KB Flash, faster 64 MHz operation, or richer peripherals (e.g., more PWM channels, USB); recompile firmware for the PIC18 core.

Comparison with Alternatives

Parameter This Product PIC16F877A-I/ML PIC16F873A-I/ML PIC16F874A-E/PT PIC16F874-04I/PT PIC18F44K22-I/ML
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Package 44-pin QFN (ML) 44-pin QFN (ML) - same 44-pin QFN (ML) - same 44-pin QFN (ML) - same 44-pin QFN (ML) - same 44-pin QFN (ML) - same
Program Memory (Flash) 7 KB 14 KB 4 KB 7 KB 4 KB 16 KB
RAM 192 bytes 256 bytes 192 bytes 192 bytes 192 bytes 768 bytes
EEPROM 128 bytes 256 bytes 128 bytes 128 bytes 64 bytes 256 bytes
Maximum CPU Speed 20 MHz (200 ns) 20 MHz 20 MHz 20 MHz 4 MHz 64 MHz
Operating Voltage 2.0 V to 5.5 V 2.0 V to 5.5 V 2.0 V to 5.5 V 2.0 V to 5.5 V 2.0 V to 5.5 V 1.8 V to 5.5 V
Operating Temperature -40 C to +85 C (Industrial) -40 C to +85 C -40 C to +85 C -40 C to +125 C (Extended) -40 C to +85 C -40 C to +85 C
A/D Converter 8 ch x 10-bit 8 ch x 10-bit 5 ch x 10-bit (28-pin variant limit) 8 ch x 10-bit 8 ch x 10-bit 28 ch x 10-bit
Architecture PIC16 (8-bit, 14-bit instructions) PIC16 (8-bit, 14-bit instructions) PIC16 (8-bit, 14-bit instructions) PIC16 (8-bit, 14-bit instructions) PIC16 (8-bit, 14-bit instructions) PIC18 (8-bit, 16-bit instructions)

Key Differentiators

  • Highest memory density in same-footprint same-temperature PIC16F874A family (vs PIC16F873A-I/ML)
  • Lower-cost drop-in option vs higher-density PIC16F877A (vs PIC16F877A-I/ML)
  • Extended temperature range in same package (vs PIC16F874A-E/PT)
  • Modern PIC18 upgrade path with same footprint (vs PIC18F44K22-I/ML)

Design Notes

Place a 100 nF decoupling capacitor as close as possible to each VDD pin (pins 11, 32, 42) and a bulk capacitor (typically 10 uF tantalum or 22 uF ceramic) within 25 mm. According to the Microchip PIC16F87xA datasheet (DS39582B), multiple VDD/VSS pin pairs exist on the QFN-44 package and each must be properly bypassed to prevent logic errors during ADC or PWM switching events. Brown-Out Reset (BOR) should be enabled in CONFIG to avoid EEPROM corruption during brown-out conditions.

The QFN-44 /ML package has an exposed thermal pad (EP) on the underside that MUST be soldered to a copper pad on the PCB, with multiple thermal vias connecting the pad to an internal ground plane. This provides the primary heat-dissipation path for the die. The QFN-44 thermal resistance (theta_JA) is approximately 28 C/W on a standard JEDEC 2s2p test board; without proper EP soldering, junction temperature can exceed rated limits in enclosed industrial enclosures. Recommended minimum copper area for the EP: at least 100 mm^2 with thermal via array.

Route analog input traces (RA0-RA5, RE0-RE2) away from digital switching signals such as PWM outputs (CCP1/CCP2) and oscillator pins to minimize ADC noise coupling. According to the Microchip PIC16F87xA datasheet (DS39582B), the ADC achieves 10-bit accuracy only when analog input source impedance is below 10 kohm and the ADC acquisition time meets the minimum specification (typically 19.7 us at 20 MHz). Add a small RC filter (100 ohm + 100 nF) on noisy analog inputs for additional anti-aliasing.

Do not confuse the original PIC16F874 (pre-A) silicon with the PIC16F874A. According to Microchip's part-numbering scheme, the PIC16F874 (original) was limited to 4 MHz and 4 KB Flash, while the PIC16F874A doubles speed to 20 MHz and adds A-silicon enhancements (revised A/D converter, BOR enhancements, and self-programming fixes). Designers porting code from PIC16F874 to PIC16F874A silicon may need to update the CONFIG word and verify ADC timing. Always reference the latest datasheet revision (DS39582B or newer) when designing in.

For I2C communication on the MSSP module (RC3/SCL, RC4/SDA), use pull-up resistors sized per the I2C bus capacitance and target speed. According to the Microchip PIC16F87xA datasheet (DS39582B), at 100 kHz Standard-mode and 400 kHz Fast-mode, typical pull-up values range from 2.2 kohm (smaller bus) to 10 kohm (larger bus). For SMBus compatibility, ensure the PIC16F874A's VDD is in the 3.0V to 5.5V range. The SDA/SCL pins also serve as digital I/O - configure them as inputs via TRIS to avoid contention with external pull-ups.

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. The -I temperature suffix (industrial, -40 C to +85 C) is not AEC-Q100 qualified; for AEC-Q100 automotive applications use the -E (extended, -40 C to +125 C) variant or an automotive-grade MCU from Microchip's automotive portfolio.

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

Related Searches

PIC16F874A-I/ML datasheet PIC16F874A-I/ML price PIC16F874A-I/ML buy Microchip PIC16F874A 44-pin QFN PIC16F874A vs PIC16F877A PIC16F874A-I/ML pinout PIC16F874A drop-in replacement PIC16F874A-I/ML 7KB Flash microcontroller 8-bit PIC MCU 33 I/O 8 ADC channels PIC16F874A-I/ML industrial control PIC16F874A-I/ML stock Mouser how to program PIC16F874A-I/ML PIC16F874A-I/ML QFN-44 footprint PIC16F874A-I/ML lead time

Related Components & Terms

Microchip Technology PIC16F874A PIC16F874A-I/ML PIC16F877A-I/ML PIC16F873A-I/ML PIC16F874A-E/PT PIC16F874-04I/PT PIC18F44K22-I/ML PIC microcontroller 8-bit MCU Flash memory EEPROM RAM Analog-to-Digital Converter (ADC) 10-bit ADC MSSP (Master Synchronous Serial Port) SPI I2C USART CCP (Capture/Compare/PWM) QFN-44 VQFN-44 with exposed pad industrial temperature grade AEC-Q100 RoHS REACH In-Circuit Debug (ICD) PIC16F87xA datasheet DS39582B Harvard architecture MPLAB X IDE XC8 compiler
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