PIC16F84A-20E/P - 8-Bit 20MHz 1.75KB Flash MCU | Microchip
N.º da peça: PIC16F84A-20E/P ✓ Ativo| Qtd. | Preço unitário | Total |
|---|---|---|
| 1 | $3.42 | $3,42 |
| 10 | $3.08 | $30,80 |
| 100 | $2.74 | $274,00 |
| 500 | $2.42 | $1.210,00 |
| 1.000 | $2.1 | $2.100,00 |
PIC16F84A-20E/P Visão geral
A microcontroller (MCU) is a single-chip computer that integrates a CPU core, program memory, working RAM, non-volatile EEPROM data storage, and programmable I/O peripherals. PIC microcontrollers from Microchip use a Harvard RISC architecture with separate program and data buses, allowing instruction fetch and data access to occur in the same cycle. The PIC16F84A belongs to the Mid-Range 14-bit instruction family and executes 35 single-word instructions per cycle, providing deterministic real-time behavior ideal for embedded control.
Key features of the PIC16F84A-20E/P include 1.75 KB self-programmable Flash program memory, 64 bytes of true EEPROM for non-volatile data storage, a hardware USART0 multiplier (note: PIC16F84A has no USART - it provides a 8-bit timer/counter TMR0 with programmable prescaler, watchdog timer, and 4 oscillator options including XT, HS, LP, and RC), in-circuit serial programming (ICSP) via two pins, and power-on reset / brown-out detection support. The 20E suffix designates the 20 MHz speed grade with the Extended (-40C to +125C) operating temperature range.
The PIC16F84A-20E/P uses a RISC pipeline executing one instruction per cycle (4 clock cycles per instruction cycle), with 200 ns instruction execution time at 20 MHz. The internal architecture separates 14-bit program word Flash from 8-bit data RAM and 8-bit EEPROM, accessed through separate address spaces. An 8-bit prescaler extends the TMR0 timer/counter to effective 16-bit operation, and a hardware watchdog timer (WDT) with its own on-chip RC oscillator improves reliability in unattended installations.
Typical applications for the PIC16F84A-20E/P include hobbyist and educational projects, simple sensor interfaces, low-volume industrial controllers, appliance control boards, legacy embedded designs migrated from PIC16C84 OTP parts, and timing/sequencing applications in industrial control panels. Its 13 I/O pins and small footprint make it well-suited for breadboard prototyping and Through-Hole PCB assembly.
When designing with the PIC16F84A-20E/P, place a 100 nF decoupling capacitor directly across VDD/VSS within 5 mm of the pins, select the oscillator mode (XT/HS/LP/RC) appropriate for the crystal frequency, and ensure MCLR is tied to VDD through a 10 kohm resistor for normal operation or driven low for in-circuit reset. The 20E temperature grade extends operation to -40C to +125C - verify that your application's thermal envelope matches the E grade rather than the I (industrial, -40C to +85C) or no-suffix (commercial, 0C to +70C) variant.
This page synthesizes distributor pricing, drop-in alternatives drawn from the same PIC16F family, and practical design notes that go beyond the manufacturer datasheet summary - giving buyers and engineers a single reference for the PIC16F84A-20E/P.
Alternativas drop-in para PIC16F84A-20E/P — mesmo encapsulamento, compatível pino a pino. Peças de encapsulamento diferente que exigem retrabalho na PCB são excluídas.
Variantes desta série
Modelos da mesma série compatíveis como drop-in com PIC16F84A-20E/P (mesmo formato e footprint) — diferindo em Timers, Core Architecture, Operating Temperature, Package, Program Memory (Flash).
Ferramenta de comparação rápida — selecione peças alternativas para comparação lado a lado:
PIC16F84A-20/P
✅ Drop-In✓ Em estoque
$1.72 / unidade
Ver ficha técnica →PIC16F84A-20I/P
✅ Drop-In✓ Em estoque
$2.43 / unidade
Ver ficha técnica →PIC16F84A-04/P
✅ Drop-In📋 Alternativa de referência (fora do catálogo)
PIC16F628A-20/P
✅ Drop-In📋 Alternativa de referência (fora do catálogo)
PIC16F819-I/PTSL
✅ Drop-In✓ Em estoque
$1.78 / unidade
Ver ficha técnica →PIC16F818-I/P
✅ Drop-In✓ Em estoque
$2.55 / unidade
Ver ficha técnica →PIC16F84A-20E/P Classificações máximas e características elétricas
| Core Architecture | PIC Mid-Range 8-bit RISC |
| Instruction Set Width | 14-bit |
| Number of Instructions | 35 single-word instructions |
| Frequência máxima de clock | 20 MHz |
| Instruction Cycle Time | 200 ns (at 20 MHz) |
| Program Memory (Flash) | 1.75 KB (1K x 14 words) |
| Data RAM | 68 bytes |
| Data EEPROM | 64 bytes |
| I/O Pins | 13 |
| Ports | PORTA (5-bit), PORTB (8-bit) |
| Timers | TMR0 (8-bit with prescaler), WDT |
| Faixa de temperatura de operação | -40C to +125C (Extended, E suffix) |
| Speed Grade | 20 MHz (20 suffix) |
| Encapsulamento | 18-pin PDIP (Through-Hole, 0.300 inch / 7.62 mm pitch) |
| Programming Method | ICSP (In-Circuit Serial Programming), 2-wire |
| Oscillator Modes | XT, HS, LP, RC |
| Nível MSL | 1 (unlimited floor life) |
| Status RoHS | Compliant |
Configuração de pinos do PIC16F84A-20E/P
| Pino 1 | RA2 — PORTA bit 2 (bidirectional digital I/O) |
| Pino 2 | RA3 — PORTA bit 3 (bidirectional digital I/O) |
| Pino 3 | RA4/T0CKI — PORTA bit 4 / Timer0 external clock input (open-drain output) |
| Pino 4 | MCLR — Master Clear (reset) input, active low |
| Pino 5 | VSS — Ground reference |
| Pino 6 | RB0/INT — PORTB bit 0 / External interrupt input |
| Pino 7 | RB1 — PORTB bit 1 (bidirectional digital I/O) |
| Pino 8 | RB2 — PORTB bit 2 (bidirectional digital I/O) |
| Pino 9 | RB3 — PORTB bit 3 (bidirectional digital I/O) |
| Pino 10 | RB4 — PORTB bit 4 (bidirectional digital I/O, interrupt-on-change) |
| Pino 11 | RB5 — PORTB bit 5 (bidirectional digital I/O, interrupt-on-change) |
| Pino 12 | RB6 — PORTB bit 6 (bidirectional digital I/O, interrupt-on-change, ICSP clock) |
| Pino 13 | RB7 — PORTB bit 7 (bidirectional digital I/O, interrupt-on-change, ICSP data) |
| Pino 14 | VDD — Positive supply voltage |
| Pino 15 | OSC2/CLKOUT — Oscillator output / clock output (crystal mode) |
| Pino 16 | OSC1/CLKIN — Oscillator input / external clock input (crystal mode) |
| Pino 17 | RA0 — PORTA bit 0 (bidirectional digital I/O) |
| Pino 18 | RA1 — PORTA bit 1 (bidirectional digital I/O) |
Aplicações típicas
PIC16F84A-20E/P é adequado para 6 aplicaçãos: Hobbyist and Educational Projects, Industrial Control Panels, Legacy Embedded System Migration, Sensor Interface and Signal Conditioning, Timing and Sequencing Controllers, Through-Hole Prototype Assembly.
Hobbyist and Educational Projects
The PIC16F84A-20E/P's 1.75 KB Flash, 35-instruction set, and ICSP programming make it a popular choice for university courses and DIY electronics. The Extended -40C to +125C temperature grade lets students run experiments in non-climate-controlled workshops. With 13 I/O pins driving LEDs, seven-segment displays, and simple sensors, it fits breadboard-based prototype projects and textbook tutorials. The 20 MHz clock and 200 ns instruction cycle are fast enough to handle matrix keypad scanning, PWM software generation for hobby servos, and serial-bit-banged communication. The PIC mid-range 14-bit instruction set has decades of assembler and BASIC language examples, lowering the learning curve for first-time embedded developers.
Recomendado
Industrial Control Panels
The Extended temperature range of the PIC16F84A-20E/P (-40C to +125C) suits factory-floor environments where industrial-grade PICs may be marginal. Its 18-pin PDIP Through-Hole package simplifies hand-soldering and field replacement during panel maintenance. The 13 I/O pins drive relays, contactors, and status LEDs, while TMR0 with prescaler handles debounce intervals and timing sequences. The hardware watchdog timer with dedicated RC oscillator prevents lockup in unattended installations. A 200 ns instruction cycle lets the loop scan fast enough to handle multiple switch inputs and outputs within a 1 ms control cycle. The 1.75 KB Flash holds typical ladder-logic replacement sequences and basic fault-detection state machines.
Recomendado
Legacy Embedded System Migration
The PIC16F84A-20E/P serves as a direct drop-in replacement for the older PIC16C84 OTP (one-time-programmable) and PIC16F84 UV-erasable parts used in legacy products. Its 1.75 KB self-programmable Flash enables in-field firmware updates via ICSP without removing the part from the board. The 18-pin PDIP footprint is identical to the legacy 16C84, meaning existing PCB layouts require no changes for migration. The Extended temperature grade matches the original part's automotive-grade specs, preserving the qualification of the end product. Microchip guarantees the PIC16F84A as a long-term active part for this migration path, making it a low-risk modernization choice.
Recomendado
Sensor Interface and Signal Conditioning
The PIC16F84A-20E/P's 13 I/O pins and TMR0 timer handle basic sensor conditioning - reading switches, mechanical encoders, and digital thermometers. With 200 ns instruction execution at 20 MHz, the part can bit-bang I2C or SPI communication with external sensors despite lacking hardware peripherals. The 64 bytes of EEPROM store calibration coefficients across power cycles. PORTB's weak pull-up option simplifies connection to mechanical switches, eliminating external pull-up resistors. The 8-bit prescaler extends TMR0 to capture long intervals for pulse-train frequency measurement, useful for flow meters and tachometers.
Recomendado
Timing and Sequencing Controllers
Appliance and equipment timing applications benefit from the PIC16F84A-20E/P's TMR0 with 8-bit prescaler and watchdog timer. Typical circuits drive a sequence of relays with millisecond-to-hour timing, where the 200 ns instruction cycle provides fine-grained control while TMR0 generates longer intervals. The Extended -40C to +125C grade supports under-hood automotive and outdoor industrial cabinets. The 1.75 KB Flash stores timing tables, fault recovery logic, and operator-interface state machines. ICSP allows service technicians to update timing parameters without desoldering the part.
Recomendado
Through-Hole Prototype Assembly
The 18-pin PDIP Through-Hole package of the PIC16F84A-20E/P remains the preferred form-factor for hobbyist prototype boards, educational labs, and low-volume production. The 0.300 inch (7.62 mm) row spacing fits standard IC sockets and breadboards without SMD soldering skills. The PIC16F84A has decades of assembly-language tutorials, BASIC language support, and MPLAB X IDE integration. The Extended -40C to +125C grade lets the same Through-Hole prototype be tested under thermal-stress conditions before committing to SMD layout. The 1.75 KB Flash and 35-instruction set cover the canonical academic examples - flashing LEDs, keypads, and seven-segment displays.
Recomendado
Resumo dos produtos recomendados
Dados de referência de engenharia para PIC16F84A-20E/P — comparação, orientação de projeto e informações de conformidade.
Guia de seleção
Comparação com alternativas
| Parâmetro | Este produto | PIC16F84A-20/P | PIC16F84A-20I/P | PIC16F84A-04/P | PIC16F628A-20/P | PIC16F819-I/P | PIC16F818-I/P |
|---|---|---|---|---|---|---|---|
| Package | PDIP-18 (Through-Hole) | PDIP-18 - same | PDIP-18 - same | PDIP-18 - same | PDIP-18 - same | PDIP-18 - same | PDIP-18 - same |
| Brand | Microchip Technology | Microchip Technology - same | Microchip Technology - same | Microchip Technology - same | Microchip Technology - same | Microchip Technology - same | Microchip Technology - same |
| Maximum Clock Frequency | 20 MHz | 20 MHz | 20 MHz | 4 MHz (-80%) | 20 MHz | 20 MHz | 20 MHz |
| Flash Program Memory | 1.75 KB | 1.75 KB | 1.75 KB | 1.75 KB | 3.5 KB (+100%) | 3.5 KB (+100%) | 1.75 KB |
| Data RAM | 68 bytes | 68 bytes | 68 bytes | 68 bytes | 224 bytes (+229%) | 256 bytes (+276%) | 128 bytes (+88%) |
| Data EEPROM | 64 bytes | 64 bytes | 64 bytes | 64 bytes | 128 bytes (+100%) | 256 bytes (+300%) | 64 bytes |
| Operating Temperature Range | -40 to +125 C (Extended) | 0 to +70 C (Commercial) | -40 to +85 C (Industrial) | 0 to +70 C (Commercial) | 0 to +70 C (Commercial) | -40 to +85 C (Industrial) | -40 to +85 C (Industrial) |
| Internal Oscillator | No (external crystal required) | No | No | No | Yes (4 MHz internal) | Yes (8 MHz internal) | Yes (8 MHz internal) |
Principais diferenciais
- Extended -40C to +125C temperature grade in 18-pin PDIP (vs PIC16F84A-20I/P)
- Pin-compatible upgrade path to PIC16F628A (vs PIC16F628A-20/P)
- 20 MHz speed grade (vs 4 MHz grade of 04 suffix parts) (vs PIC16F84A-04/P)
Notas de projeto
Place a 100 nF decoupling capacitor directly across VDD (pin 14) and VSS (pin 5) within 5 mm of the package pins. Add a 10 uF bulk capacitor near the VDD trace entrance. Estimated: typical operating current is approximately 10-15 mA at 20 MHz with all peripherals disabled, so 100 mA-rated regulators provide adequate margin. For battery applications, the PIC16F84A-20E/P supports a low-power sleep mode with TMR0 and WDT remaining waking via select to further reduce idle current.
Route the crystal traces between OSC1 (pin 16) and OSC2 (pin 15) short and symmetrical, surrounded by a ground pour on both sides to minimize stray capacitance. Keep crystal traces away from high-frequency switching signals. For the HS mode at 20 MHz, use a fundamental-mode crystal with 20-33 pF load capacitors. Place the MCLR pull-up resistor (typically 10 kohm to VDD) close to pin 4 to avoid false resets from EMI coupling onto the MCLR trace.
Common pitfalls with the PIC16F84A-20E/P include: (1) Forgetting to disable the watchdog timer in software, causing unexpected resets in long main loops; (2) configuring the CONFIG word for HS mode at 20 MHz without using an actual crystal across OSC1/OSC2; (3) enabling PORTB weak pull-ups globally then reading RB0-RB7 before the pull-ups stabilize; (5) attempting to read analog voltages on PORTA pins - the PIC16F84A has no ADC peripheral. The '20E' speed grade at 20 MHz requires HS oscillator mode - using XT at 20 MHz may fail to oscillate reliably.
Informações de conformidade
RoHS compliant per Microchip product page. The PIC16F84A family is not AEC-Q100 qualified; for automotive AEC-Q100 work, consider PIC16F50A-Q1 or PIC16F193x-Q1 enhanced mid-range parts. Lead-free PDIP package is standard.