Microchip Technology

PIC16F84A-04E/P - 8-bit 4MHz Flash MCU, 1.75KB | Microchip

MPN: PIC16F84A-04E/P ✓ Active
In Stock Ships in 1-3 business days
4.0 V to 5.5 V (extended temp) Vdss 18-pin PDIP (P) Package 4 MHz Speed 1.75 KB (1K x 14) Memory
From $2.2 USD / Unit
MOQ: 1 |
Price updated: 2026-09-21
Volume Pricing
Qty Unit Price Extended
1 $3.45 $3.45
10 $3.1 $31.00
100 $2.78 $278.00
500 $2.45 $1,225.00
1,000 $2.2 $2,200.00
ℹ️ All prices are in USD

PIC16F84A-04E/P Overview

The Microchip PIC16F84A-04E/P is a CMOS Flash/EEPROM-based 8-bit microcontroller in the PIC16 family, delivering 4 MHz maximum clock speed, 1.75 KB (1K x 14) of Flash program memory, 68 bytes of RAM, and 64 bytes of EEPROM data memory, all housed in a 18-pin PDIP through-hole package. The "04E/P" suffix decodes as 4 MHz max oscillator speed ("04"), extended temperature range -40C to +125C ("E"), and PDIP package ("P"). Instruction execution time is 200 ns at 4 MHz, with 35 single-word instructions in the RISC instruction set, supporting DC to 4 MHz clock input.

A PIC16F-series 8-bit microcontroller is a RISC-based microcomputer built around the PIC Harvard architecture that separates program and data buses to allow simultaneous fetch and execute. PIC microcontrollers sit in the broader category hierarchy: 8-bit MCU -> microcontroller -> embedded controller -> semiconductor IC. They are widely used in cost-sensitive, low-power applications where deterministic timing and a small footprint matter more than raw compute performance.

Key features include 13 digital I/O pins across PORTA (5) and PORTB (8), individually selectable weak pull-ups on PORTB, interrupt-on-change on RB<7:4>, a 15-bit hardware timer (Timer0) with 8-bit prescaler, a 10-bit Timer0 prescaler, and an 8-bit Timer2 with PWM capability. The device also provides a Watchdog Timer with its own on-chip RC oscillator, in-circuit serial programming (ICSP), and low-power SLEEP mode for battery applications.

The architecture is based on a Harvard design with separate 14-bit program memory and 8-bit data memory buses, which lets the CPU fetch the next instruction while reading the current instruction's operand. This single-cycle fetch/execute yields 200 ns instruction time at 20 MHz (4 MHz for the -04 variant). The CMOS Flash process also enables in-system reprogramming without an external ROM eraser.

Typical applications include industrial control logic, hobbyist/educational embedded projects, simple sensor readouts, home automation nodes, and legacy product retrofits. The 18-pin PDIP package is breadboard-friendly and supports hand-soldering for development work.

A key design consideration is the operating voltage window: PIC16F84A devices are rated for 2.0V to 5.5V (5.5V maximum absolute), so 5V TTL logic systems are straightforward but a 3.3V rail may need level translation on digital I/O. Designers should also budget time to read the family datasheet - configuration word bits (WDTE, CP, etc.) control essential features.

This page synthesizes distributor pricing, drop-in alternatives, and practical design notes not found in the manufacturer datasheet.

Drop-in alternatives for PIC16F84A-04E/P — 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 PIC16F84A-04E/P (same form factor and footprint) — differing in Core Architecture, Package, Timers, Mounting Type, Operating Temperature.

Microchip Technology
Core Architecture: PIC® 16-bit Mid-Range (8-bit data path, 14-bit instruction word)
Package: 18-pin PDIP (Plastic Dual In-Line Package)
Timers: 3 (Timer0, Timer1, Timer2)
Microchip Technology
Core Architecture: PIC 8-bit RISC (Harvard)
Package: 18-PDIP (0.300 in / 7.62 mm)
Timers: Timer0, Timer1, Timer2
Microchip Technology
Core Architecture: 8-bit Harvard RISC
Package: 18-pin SOIC (SO)
Timers: 1 x 8-bit (TMR0 with 8-bit prescaler)
Microchip Technology
Mounting Type: Through-Hole

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

PIC16F84A-04/P

✅ Drop-In
📦 PDIP-18
Same die, commercial temp grade 0 C to +70 C instead of extended -40 C to +125 C

📋 Reference alternative (not in catalog)

PIC16F84A-04I/P

✅ Drop-In
Microchip Technology
📦 PDIP-18
PIC 8-bit RISC (Harvard) · 14-bit · 35 single-word · 4 MHz (-04 speed grade) · 200 ns at 4 MHz · 1.75 KB (1024 x 14 words) · 68 bytes · 64 bytes

✓ In Stock

$1.65 / Unit

View Datasheet →

PIC16F84-04I/P

✅ Drop-In
Microchip Technology
📦 PDIP-18
PIC · 8-Bit · PIC16F8X · 35 single-word instructions, 14-bit wide · 4 MHz · FLASH · 1.75 KB (1K x 14) · 68 bytes

✓ In Stock

$2.18 / Unit

View Datasheet →

PIC16F84-04/SO

✅ Drop-In
Microchip Technology
📦 PDIP-18
PIC16F PIC16 Microcontroller IC · 8-bit Harvard RISC · 1.75 KB (1K x 14) Flash · 68 bytes · 64 bytes · 35 single-word instructions · 14-bit · 4 MHz

✓ In Stock

$3.19 / Unit

View Datasheet →

PIC16F819-I/PTSL

✅ Drop-In
Microchip Technology
📦 PDIP-18
Microchip Technology · PIC® 16F · PIC 8-bit RISC (Harvard) · 14-bit · 35 single-word · 20 MHz · 200 ns at 20 MHz · 3.5 KB (2K x 14 words)

✓ In Stock

$1.78 / Unit

View Datasheet →

PIC16F818-I/P

✅ Drop-In
Microchip Technology
📦 PDIP-18
PIC® 16-bit Mid-Range (8-bit data path, 14-bit instruction word) · 1.75 KB (1K x 14 words) · 128 bytes · 128 bytes · 20 MHz (200 ns instruction cycle) · 8 MHz · 16 · 10-bit, 5 channels

✓ In Stock

$2.55 / Unit

View Datasheet →

PIC16F628A-04/P

✅ Drop-In
📦 PDIP-18
Pin-compatible PIC16F628A with internal 4 MHz oscillator, 224B RAM, PWM, USART, comparators - most common upgrade

📋 Reference alternative (not in catalog)

PIC16F84A-04E/P Maximum Ratings & Electrical Characteristics

Core Architecture PIC Harvard 8-bit RISC
Maximum Clock Frequency 4 MHz
Program Memory (Flash) 1.75 KB (1K x 14)
Data RAM 68 bytes
Data EEPROM 64 bytes
Instruction Set 35 single-word instructions
Instruction Execution Time 200 ns at 4 MHz
Digital I/O Pins 13 (PORTA 5 + PORTB 8)
Operating Voltage Range 4.0 V to 5.5 V (extended temp)
Operating Temperature Range -40 C to +125 C (extended, "E")
Package 18-pin PDIP (P)
Timers Timer0 (8-bit w/ 8-bit prescaler), Watchdog Timer with dedicated RC oscillator
Special Peripherals PORTB weak pull-ups, RB<7:4> interrupt-on-change
Programming Interface ICSP (In-Circuit Serial Programming)
RoHS Status Compliant

PIC16F84A-04E/P Pin Configuration

DIP-18 Package Pinout Diagram DIP-18 18-pin dual inline, 7.62mm pitch, JEDEC MS-001. 1 18 2 17 3 16 4 15 5 14 6 13 7 12 8 11 9 10 DIP-18
Pin 1 RA2 — Bidirectional digital I/O
Pin 2 RA3 — Bidirectional digital I/O
Pin 3 RA4/T0CKI — Digital I/O / Timer0 clock input (open-drain output)
Pin 4 MCLR/VPP — Master Clear reset (active low) / programming voltage
Pin 5 VSS — Ground reference
Pin 6 RB0/INT — Digital I/O / external interrupt input
Pin 7 RB1 — Digital I/O
Pin 8 RB2 — Digital I/O
Pin 9 RB3 — Digital I/O
Pin 10 RB4 — Digital I/O / interrupt-on-change
Pin 11 RB5 — Digital I/O / interrupt-on-change
Pin 12 RB6/PGC — Digital I/O / ICSP clock
Pin 13 RB7/PGD — Digital I/O / ICSP data
Pin 14 VDD — Positive supply (2.0-5.5V)
Pin 15 OSC2/CLKOUT — Crystal oscillator output / clock output
Pin 16 OSC1/CLKIN — Crystal oscillator input / external clock
Pin 17 RA0 — Bidirectional digital I/O
Pin 18 RA1 — Bidirectional digital I/O

Typical Applications

PIC16F84A-04E/P is suitable for 6 applications: Educational Embedded Projects, Industrial Control Logic Replacement, Hobbyist and DIY Electronics, Simple Sensor Readout Front-Ends, Legacy Product Retrofit and Repair, Appliance Control Modules.

🔧

Educational Embedded Projects

The PIC16F84A-04E/P has been a teaching staple for two decades because of its simple 35-instruction RISC core, 18-pin PDIP breadboard footprint, and forgiving 2.0V-5.5V supply range. The 4 MHz clock rate gives 1 MIPS performance - plenty for blinking LEDs, scanning keypads, and timing loops in university labs. The 1.75 KB Flash holds meaningful student projects while still forcing efficient code. The -40C to +125C extended temp suffix means the same part survives outdoor labs and lab-bench mishaps.

🏭

Industrial Control Logic Replacement

Mature 24V industrial cabinets that use discrete 5V logic often retrofit the PIC16F84A-04E/P as a cost-effective glue-logic replacement for legacy 8051 or HC11 designs. The 13 GPIO pins handle sensor reads and relay drive, while the 200 ns instruction execution ensures deterministic loop timing for safety interlocks. The extended temperature range covers unheated enclosures, and ICSP allows in-system firmware updates via the RB6/RB7 pins without removing the chip. The 64-byte EEPROM gives non-volatile storage for calibration constants.

🎧

Hobbyist and DIY Electronics

Hobbyists choose the PIC16F84A-04E/P for its through-hole 18-pin PDIP that drops into breadboards without soldering, plus its long history of free assembler tutorials. Projects from POV LED displays to model-railway controllers use the device's PORTB weak pull-ups for direct switch input. The 4 MHz speed is more than enough for slow human-interface tasks, and the ICSP header means firmware reflashes in seconds. With 1.75 KB Flash, builders can fit complete state machines for animation or sensor polling.

🧩

Simple Sensor Readout Front-Ends

Battery-powered sensor transmitters use the PIC16F84A-04E/P as a low-power front-end that wakes periodically, takes a digital reading, and returns to sleep. The PIC16F84A's < 1 uA typical sleep current preserves coin-cell batteries across multi-year deployments. The 8-bit Timer0 serves as a wake-up interval counter when fed from an external 32.768 kHz crystal on T1OSC. GPIO pins read comparator or digital sensor outputs, and the 64-byte EEPROM stores calibration data across power cycles.

🚗

Legacy Product Retrofit and Repair

Industrial equipment built in the late 1990s and early 2000s often shipped with PIC16F84A-04E/P controllers that are now failing from decade-old flash wearout. The same Microchip part number is still orderable, allowing direct swap-in repairs without PCB modification. The 18-pin PDIP is also socketed in many legacy designs, so replacement requires no desoldering. For new designs that need pin compatibility with legacy firmware, the PIC16F84A-04E/P remains the authentic match.

📱

Appliance Control Modules

White-goods appliances such as washing machines, dishwashers, and microwave ovens frequently use the PIC16F84A-04E/P as the user-interface controller because of its low cost, ample GPIO for button matrices and 7-segment digit drives, and reliable EEPROM storage for cycle settings. The extended -40 C to +125 C temperature rating covers motor-compartment heat, and the 5.5V absolute-max supply tolerates noisy rectified mains rails with proper decoupling. The 4 MHz speed keeps up with rotary-encoder scanning and buzzer tone generation.

Recommended Products Summary

PIC16F84A-04/P Commercial-temp sibling for classroom benches Used in: Educational Embedded Projects, Legacy Product Retrofit and Repair PIC16F628A-04/P Modern successor with internal oscillator Used in: Educational Embedded Projects, Industrial Control Logic Replacement, Hobbyist and DIY Electronics, Appliance Control Modules PIC16F819-I/P Pin-compatible upgrade with 10-bit ADC for analog sensing Used in: Industrial Control Logic Replacement, Simple Sensor Readout Front-Ends PIC16F84A-04/SS Microchip Technology Used in: Hobbyist and DIY Electronics PIC16F818-I/P Microchip Technology Used in: Simple Sensor Readout Front-Ends, Appliance Control Modules PIC16F84A-04I/P Industrial-temp sibling for -40 C to +85 C cabinets Used in: Legacy Product Retrofit and Repair
What is the maximum clock frequency of PIC16F84A-04E/P?
The PIC16F84A-04E/P runs at a maximum 4 MHz oscillator frequency. According to the Microchip PIC16F84A datasheet, the "04" suffix indicates the 4 MHz speed grade, with instruction execution of 200 ns per instruction at this clock. The same die can also be ordered in -10 (10 MHz) and -20 (20 MHz) speed grades.
How much program memory does PIC16F84A-04E/P have?
The PIC16F84A-04E/P contains 1.75 KB (1024 x 14-bit words) of Flash program memory. This is sufficient for small to medium embedded routines but constrains large lookup tables. For more memory in a pin-compatible part, the PIC16F628A and PIC16F88 are common upgrade paths.
What is the operating temperature range of PIC16F84A-04E/P?
The PIC16F84A-04E/P is rated for -40 C to +125 C operating temperature. The "E" suffix in the Microchip ordering system designates extended temperature grade; "I" denotes industrial (-40 C to +85 C) and no suffix denotes commercial (0 C to +70 C). The extended grade suits automotive under-hood and outdoor industrial enclosures.
Where can I buy PIC16F84A-04E/P online and what is the price?
The PIC16F84A-04E/P is in stock at DigiKey, Mouser, LCSC, and Octopart-listed distributors as of 2026-09-21. Unit pricing for qty-1 starts at approximately $3.45 at major franchised distributors; volume pricing drops to roughly $2.20 at 1000 pieces. Lead time for qty-1 is typically same-day from authorized distributors.
What is the difference between PIC16F84A-04E/P and PIC16F84A-04I/P?
The PIC16F84A-04E/P (extended) and PIC16F84A-04I/P (industrial) share identical 4 MHz speed, 1.75 KB Flash, 18-pin PDIP, and pinout. The only difference is operating temperature: the "E" grade runs -40 C to +125 C, while the "I" grade runs -40 C to +85 C. Choose "E" for automotive and harsh-environment designs, "I" for typical industrial use.
Is PIC16F84A-04E/P still in production or obsolete?
The PIC16F84A-04E/P is still listed as active on Microchip's product page, although Microchip has flagged the broader PIC16F84A family as a mature product with newer pin-compatible successors such as PIC16F628A, PIC16F88, and PIC16F819. Lead times remain stable at franchised distributors as of 2026-09-21.
What is the best drop-in replacement for PIC16F84A-04E/P?
The PIC16F84A-04/P (commercial grade, 0 C to +70 C) is a drop-in replacement in the same 18-pin PDIP when the -40 C to +125 C extended temperature rating is not required. For full pin compatibility with more features, the PIC16F628A-I/P and PIC16F818-I/P both fit the 18-pin PDIP footprint and add internal oscillator, more RAM, and PWM.
What is the pinout of PIC16F84A-04E/P?
12 phases. Pinout per datasheet: pin 1 RA2, pin 2 RA3, pin 3 RA4/T0CKI, pin 4 MCLR/VPP, pin 5 VSS, pin 6 RB0/INT, pin 7 RB1, pin 8 RB2, pin 9 RB3, pin 10 RB4, pin 11 RB5, pin 12 RB6/PGC, pin 13 RB7/PGD, pin 14 VDD, pin 15 OSC2/CLKOUT, pin 16 OSC1/CLKIN, pin 17 RA0, pin 18 RA1. Pin 12 is also the ICSP clock pin, pin 13 is the ICSP data pin.
What is the supply voltage range of PIC16F84A-04E/P?
The PIC16F84A-04E/P operates from 4.0 V to 5.5 V over the extended temperature range, and from 2.0 V to 5.5 V over a limited range. Most designs run at 5.0 V. For 3.3 V-only systems, consider PIC16LF84A or a modern PIC16F1x successor.
Can PIC16F628A replace PIC16F84A-04E/P without code changes?
Yes, the PIC16F628A is pin-compatible with the PIC16F84A in 18-pin PDIP, and code compiled for PIC16F84A typically runs unchanged on PIC16F628A after verifying the configuration word bits. The PIC16F628A also adds an internal 4 MHz oscillator, more RAM (224 bytes vs 68), more peripherals (PWM, USART, comparators), making it the most common upgrade path.
What is the difference between PIC16F84A and PIC16F84?
The PIC16F84A is an enhanced revision of the original PIC16F84. The PIC16F84A adds support for in-circuit programming in low-voltage mode, improves flash endurance, and provides slightly tighter electrical characteristics. Both share the same 18-pin pinout and instruction set, so firmware is generally portable.
How many I/O pins does PIC16F84A-04E/P have?
The PIC16F84A-04E/P exposes 13 bidirectional digital I/O pins: 5 on PORTA (RA0-RA4) and 8 on PORTB (RB0-RB7). Each pin can source or sink up to 25 mA per pin (with package limits of 200 mA total). PORTA's RA4 is open-drain and shares a pin with Timer0 clock input.
Where do I download the PIC16F84A-04E/P datasheet PDF?
The official Microchip PIC16F84A datasheet (document 35007b) is freely downloadable from Microchip's website at the product page. Secondary sources including DigiKey, Mouser, and alldatasheet.com also host PDF copies. The datasheet contains the full electrical characteristics, instruction set, register map, and programming specifications.
Is PIC16F84A-04E/P RoHS compliant?
Yes, the PIC16F84A-04E/P is RoHS compliant per the Microchip product page and DigiKey/Mouser listings. The "P" package suffix indicates a Pb-free terminal finish compatible with lead-free reflow profiles. For legacy non-RoHS builds, the older PIC16F84A-04/P variants may need verification.
What are the timers on PIC16F84A-04E/P?
The PIC16F84A-04E/P has two timers. Timer0 is an 8-bit timer/counter with an 8-bit programmable prescaler, readable and writable through registers TMR0 and OPTION_REG. Timer1 is a 16-bit timer/counter. The device also includes a Watchdog Timer with its own dedicated on-chip RC oscillator for reliable reset operation.

Engineering reference data for PIC16F84A-04E/P — comparison, design guidance, and compliance information.

Selection Guide

Choose the PIC16F84A-04E/P when you need an extended-temperature (-40 C to +125 C), 4 MHz, 18-pin PDIP MCU that is binary-compatible with the original PIC16F84A instruction set and footprint. This is the correct part for retrofitting legacy 1990s/2000s industrial control boards, automotive interior modules, and outdoor sensor nodes where commercial-grade parts would fail. For new designs, prefer the PIC16F628A-04/P (pin-compatible, internal oscillator, more memory, lower BOM cost). For industrial-grade (not extended) temperature, use PIC16F84A-04I/P. For surface-mount, switch to PIC16F84A-04/SS (SSOP-20) or PIC16F84A-04/SO (SOIC-18).

Comparison with Alternatives

Parameter This Product PIC16F84A-04/P PIC16F84A-04I/P PIC16F84-04I/P PIC16F819-I/P PIC16F818-I/P PIC16F628A-04/P
Brand Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology Microchip Technology
Package PDIP-18 PDIP-18 - same PDIP-18 - same PDIP-18 - same PDIP-18 - same PDIP-18 - same PDIP-18 - same
Maximum Clock Frequency 4 MHz 4 MHz 4 MHz 4 MHz 8 MHz (with internal 8 MHz) 10 MHz (with internal) 4 MHz
Program Memory (Flash) 1.75 KB 1.75 KB 1.75 KB 1.75 KB 2.93 KB 1.75 KB 3.5 KB
Data RAM 68 bytes 68 bytes 68 bytes 68 bytes 256 bytes 128 bytes 224 bytes
Data EEPROM 64 bytes 64 bytes 64 bytes 64 bytes 256 bytes 64 bytes 128 bytes
Operating Temperature -40 C to +125 C (extended) 0 C to +70 C (commercial) -40 C to +85 C (industrial) -40 C to +85 C (industrial) -40 C to +85 C (industrial) -40 C to +85 C (industrial) 0 C to +70 C (commercial)
Internal Oscillator No No No No Yes (8 MHz) Yes (8 MHz) Yes (4 MHz)
A/D Converter No No No No Yes (10-bit) Yes (10-bit) No (comparators only)

Key Differentiators

  • Extended -40 C to +125 C temperature grade as standard part number (vs PIC16F84A-04/P)
  • Through-hole PDIP-18 for breadboard-friendly prototyping (vs PIC16F84A-04/SS)
  • Authentic original-spec part for legacy retrofits (vs PIC16F628A-04/P)

Design Notes

Decouple VDD (pin 14) with a 100 nF ceramic capacitor placed within 5 mm of the pin, plus a bulk 10 uF tantalum or aluminum electrolytic on the supply rail. PIC16F84A-04E/P supply range is 4.0V to 5.5V over the extended -40 C to +125 C grade; for 3.3V operation verify against the datasheet's parametric table or use a PIC16LF variant. Inductance from long VDD traces can cause reset glitches when the MCLR capacitor charges - keep the trace short.

Place the crystal or resonator within 5 mm of pins 15 (OSC2) and 16 (OSC1), with a ground guard ring to minimize coupling noise into the clock. For ICSP programming, keep RB6 (pin 12) and RB7 (pin 13) free of series resistors above 10 kOhm or capacitors above 10 pF, since these pins carry the programming clock and data during in-circuit serial programming. Adding a 4.7 kOhm pull-up on MCLR (pin 4) is standard practice.

Configuration word bits (WDTE, CP, PWRTE, FOSC) control essential functions and are often forgotten on first design. The default configuration has the Watchdog Timer enabled, which can cause confusing resets if the CLRWDT instruction is not serviced. Brown-out reset is not present on PIC16F84A - for supply droop protection, use an external voltage supervisor such as MCP100 on MCLR.

Compliance Information

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

RoHS and REACH compliance per Microchip product page. Not AEC-Q100 qualified (consumer/industrial grade only). For automotive applications requiring AEC-Q100, a PIC16F1x-series successor is recommended.

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

Related Searches

PIC16F84A-04E/P PIC16F84A-04E/P datasheet PDF Microchip PIC16F84A-04E/P PIC16F84A 4MHz 1.75KB flash MCU PDIP-18 8-bit microcontroller PIC16F84A pin-compatible upgrade PIC16F84A vs PIC16F628A PIC16F84A drop-in replacement buy PIC16F84A-04E/P online extended temperature 8-bit MCU DIP-18 PIC16F84A ICSP programming pinout PIC16F84A industrial control replacement

Related Components & Terms

Microchip Technology PIC16F84A PIC16F84A-04E/P PIC16F84A-04/P PIC16F84A-04I/P PIC16F84 PIC16F819 PIC16F818 PIC16F628A PIC16 family 8-bit microcontroller RISC Harvard architecture Flash memory EEPROM PDIP-18 ICSP Watchdog Timer Timer0 RoHS REACH automotive grade industrial control embedded systems ICSP programming
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