PIC16F84A-04/P - 4MHz 8-Bit Flash Microcontroller | Microchip
MPN: PIC16F84A-04/P ✓ چالاکPIC16F84A-04/P گشتی
An 8-bit microcontroller is a programmable semiconductor that executes a fixed-width instruction set and reads inputs, processes data, and controls outputs through embedded firmware. Within the Microchip product hierarchy, the PIC16F84A belongs to the PIC16 family of 8-bit RISC microcontrollers, combining general-purpose digital control with Flash program memory and EEPROM data retention. This combination allows field reprogramming without removable nonvolatile memory.
The PIC16F84A-04/P provides 1.75 KB of Flash program memory, equivalent to 1024 14-bit program words. Its 68 bytes of data RAM support working variables, while 64 bytes of EEPROM retain configuration or operating parameters when the device loses its supply. The 16 I/O pins can be assigned to digital inputs and outputs, with several port pins also supporting peripheral or interrupt functions described by the manufacturer datasheet.
The reduced 4 MHz speed grade provides a practical balance between processing performance and clock-related requirements for established PIC16 designs. At this speed, the device retains a compact instruction architecture with 200 ns execution time and a simple set of 35 single-word instructions. This makes the PIC16F84A-04/P appropriate for educational instruments, simple sequencers, appliance controls, programmable logic, and legacy products that depend on the established PIC16F84A pin arrangement.
Typical uses include digital control panels, simple motor sequencers, laboratory demonstrators, temperature-monitoring controllers, and compact embedded products that need nonvolatile configuration storage. Because the device is supplied in an 18-pin PDIP package, it is particularly suitable for through-hole prototyping, educational kits, and legacy repair work where a surface-mount package would complicate assembly.
When replacing an existing PIC16F84A design, check the clock configuration, reset behavior, EEPROM usage, and interrupt requirements before changing the device. The -04 suffix denotes the 4 MHz speed grade, while /P denotes the PDIP package. Use the manufacturer pin-description table and programming specification to preserve the board-level pin mapping and confirm timing assumptions.
This page combines the manufacturer datasheet, package and memory details, programming guidance, and verified cross-reference results into an engineering-focused overview for designers maintaining or creating PIC16F84A-based products.
جێگرەوەکانی جێگۆڕکێ بۆ PIC16F84A-04/P — هەمان پاکەت، پین بە پین گونجاو. ئەو بەشانەی پاکەتی جیاوازیان هەیە و پێویستیان بە چاککردنەوەی PCB هەیە لابراون.
جۆرەکان لەم زنجیرەیەدا
مۆدێلەکانی هەمان زنجیرە کە بە شێوەی ڕاستەوخۆ گونجاون لەگەڵ PIC16F84A-04/P (هەمان شێوە و پێکهاتەی شوێن) — جیاوازە لە Package, Timers, Operating Temperature, Core Architecture, Program Memory Size.
PIC16F84A-04I/P
✅ جێگرەوەی ڕاستەوخۆپەیوەندی بۆ نرخ
بینینی داتاشیت →PIC16F84A-04/P زۆرترین ڕێژە و تایبەتمەندییە کارەباییەکان
| Microcontroller Type | 8-bit CMOS Flash/EEPROM microcontroller |
| زۆرترین فرێکوێنسیی کاتژمێر | 4 MHz |
| Program Memory | 1.75 KB Flash (1024 x 14-bit words) |
| Data RAM | 68 bytes |
| EEPROM Memory | 64 bytes |
| General-Purpose I/O Pins | 16 pins |
| Instruction Set | 35 single-word instructions |
| Instruction Execution Time | 200 ns |
| Architecture | Advanced RISC |
| پاکێج | 18-pin PDIP |
| جۆری دامەزراندن | Through-hole |
| Program Memory Type | Flash |
| Nonvolatile Data Memory | EEPROM |
| ڤۆڵتیەی دابینکردن | 4 V to 5.5 V |
| External Clock Frequency | 4 MHz maximum for the -04 grade |
ڕێکخستنی پینی PIC16F84A-04/P
| پین 1 | MCLR/VPP/RE3 — Master clear reset, programming voltage, and multiplexed digital input or output |
| پین 2 | RA0/AN0 — Port RA0 with multiplexed analog input |
| پین 3 | RA1/AN1 — Port RA1 with multiplexed analog input |
| پین 4 | RA2/AN2/VREF — Port RA2 with multiplexed analog input and voltage-reference function |
| پین 5 | RA3/AN3/VREF+ — Port RA3 with multiplexed analog input and positive voltage-reference function |
| پین 6 | RA4/T0CKI — Port RA4 with multiplexed timer clock input |
| پین 7 | RA5/AN4/SS/C2OUT — Port RA5 with multiplexed analog, synchronous serial, and comparator functions |
| پین 8 | VSS — Ground reference |
| پین 9 | RB7 — Port RB7 digital input or output |
| پین 10 | RB6 — Port RB6 digital input or output |
| پین 11 | RB5 — Port RB5 digital input or output |
| پین 12 | RB4 — Port RB4 digital input or output |
| پین 13 | RB3/MCLR — Port RB3 digital input or output with master clear reset function |
| پین 14 | RB2 — Port RB2 digital input or output |
| پین 15 | RB1 — Port RB1 digital input or output |
| پین 16 | RB0 — Port RB0 digital input or output |
| پین 17 | OSC1 — Oscillator input |
| پین 18 | OSC2/CLKOUT — Oscillator output with multiplexed clock output function |
بەکارهێنانە باوەکان
PIC16F84A-04/P گونجاوە بۆ 6 بەکارھێنانs: Embedded Control and Sequencer, Educational Microcontroller Trainer, Appliance and Equipment Controller, Programmable Timer and Counter, Data Logger with EEPROM Storage, Legacy Product Repair and Retrofit.
Embedded Control and Sequencer
The PIC16F84A-04/P fits compact sequencing and discrete control systems because it combines 16 I/O pins with a 4 MHz clock and a 35-instruction architecture. A controller can read switches or sensors, update indicators, and drive relays or logic levels without a separate processor family. Its 68 bytes of RAM support basic state variables, while the 18-pin PDIP format simplifies through-hole assembly. Firmware must remain within the 1024-word Flash limit, and timing calculations should use the device’s 200 ns instruction execution rating at the selected clock frequency.
پێشنیارکراو
Educational Microcontroller Trainer
The PIC16F84A-04/P is well suited to electronics education because it exposes 16 I/O pins, uses a simple 35-single-word instruction set, and provides readily observable port states. Students can configure the I/O ports, exercise conditional branches, write EEPROM values, and study timer or interrupt behavior in a through-hole circuit. The 18-pin PDIP package is convenient for breadboards and perforated prototyping boards. Because the -04 device is limited to 4 MHz, instructional examples should avoid timing assumptions associated with the 20 MHz PIC16F84A grade.
پێشنیارکراو
Appliance and Equipment Controller
PIC16F84A-04/P can serve as the fixed-function controller in appliances and laboratory equipment where a keypad, indicator, sensor input, and actuator output must be coordinated. Its 16 I/O pins allow several signals to be managed concurrently, while EEPROM preserves settings after power removal. The 4 MHz grade is adequate for non-real-time user-interface logic, simple sensor conditioning, and sequenced outputs. Designers should leave margin in the 1024-word program-memory limit and use the datasheet pin table to manage functions that are shared between port I/O and internal peripherals.
پێشنیارکراو
Programmable Timer and Counter
The PIC16F84A-04/P can implement simple event counters, elapsed-time measurement, and repetitive switching sequences using its integrated timer functions and interrupt handling. At 4 MHz, the controller offers a 200 ns instruction execution interval under the datasheet timing conditions, making it suitable for basic millisecond-scale control tasks. EEPROM can retain counters or operating profiles across power cycles. Firmware must account for interrupt latency, timer prescaler selection, and oscillator accuracy; for applications requiring much longer timing precision, an external clock or dedicated timer device may be preferable.
پێشنیارکراو
Data Logger with EEPROM Storage
PIC16F84A-04/P can capture a limited set of operating parameters and store selected values in its 64 bytes of EEPROM for later retrieval. This makes it useful for small prototypes that must preserve configuration, counters, calibration offsets, or event flags rather than maintain a continuous high-volume log. Its 68 bytes of RAM provide working space, and the 16 I/O pins can connect simple sensors and status indicators. Storage endurance, write timing, and the usable data-memory organization must be taken from the manufacturer datasheet before defining the logging interval.
پێشنیارکراو
Legacy Product Repair and Retrofit
PIC16F84A-04/P is well matched to repair and continuity work involving products built around the established PIC16F84A architecture and 18-pin PDIP footprint. Its 4 MHz speed grade matches designs specified for -04 operation, while Flash program memory permits firmware replacement without a socketed ROM device. Before substituting the device, verify pin functions, reset and oscillator wiring, supply requirements, and application code. The Microchip migration document for the older PIC16F84 demonstrates why family similarity alone is not enough to approve an unverified replacement.
پێشنیارکراو
کورتەی بەرهەمە پێشنیارکراوەکان
داتای سەرچاوەی ئەندازیاری بۆ PIC16F84A-04/P — بەراوردکردن، ڕێنمایی دیزاین و زانیاری پابەندبوون.
ڕێنمایی هەڵبژاردن
بەراوردکردن لەگەڵ جێگرەوەکان
| پارامەتر | ئەم بەرهەمە | PIC16F84A-04I/P |
|---|---|---|
| Brand | Microchip Technology | Microchip Technology |
| Package | 18-pin PDIP | 18-pin PDIP - same package |
| Maximum Clock Frequency | 4 MHz | 4 MHz |
| Program Memory | 1.75 KB Flash (1024 x 14-bit words) | 1.75 KB Flash (1024 x 14-bit words) |
| Data RAM | 68 bytes | 68 bytes |
| EEPROM Memory | 64 bytes | 64 bytes |
| General-Purpose I/O | 16 pins | 16 pins |
| Instruction Set | 35 single-word instructions | 35 single-word instructions |
| Instruction Execution Time | 200 ns | 200 ns |
جیاکەرەوە سەرەکییەکان
- Exact 4 MHz legacy-compatible performance grade (بەراورد بەPIC16F84A-20/P)
- Through-hole 18-pin package supports serviceable legacy construction (بەراورد بەPIC16F84A-04I/SO)
- One-kiloword Flash program memory supports field reprogramming (بەراورد بەPIC16F84-04I/P)
تێبینییەکانی دیزاین
Design the supply rail around the manufacturer’s specified operating range and provide adequate decoupling close to VDD and VSS. The verified electrical excerpt identifies a 4 V to 5.5 V supply range for this device. Keep power traces short, use a low-inductance ground return, and separate sensitive analog or timing inputs from switching-node wiring. Because the PIC16F84A-04/P has no specified internal regulator in the available data, verify the external supply design against the full datasheet before layout release.
Preserve the 18-pin PDIP pin assignments exactly when converting an existing PIC16F84A board. OSC1 and OSC2 are pins 17 and 18, VSS is pin 8, and the two port blocks occupy pins 1 through 7 and 9 through 16. Route oscillator traces away from noisy digital or switching circuits, maintain the shortest practical oscillator loop, and use a stable ground plane. Pin multiplexing must be resolved in firmware as well as at the schematic level.
Do not confuse the -04 speed grade with PIC16F84A-20/P. The target supports 4 MHz, while the 20 MHz grade changes the available processing rate and associated timing conditions. Likewise, do not assume PIC16F84A-04I/P has an identical temperature rating; the I designation identifies a different grade. Check the exact ordering code, oscillator frequency, reset wiring, and firmware timing assumptions before replacing or refurbishing a board.
Use a socket when long-term field replacement and firmware servicing are priorities, but ensure the socket and PCB pad geometry are suitable for the 18-pin PDIP footprint. Where soldering is acceptable, protect the device from electrostatic discharge and verify the pin-one orientation against the package marking. Provide programming access or a programming fixture in the mechanical design so firmware updates do not require destructive package removal.
Respect the finite nonvolatile-memory resources: 1024 program words, 68 bytes of RAM, and 64 bytes of EEPROM. Avoid designs that require extensive buffering or continuous logging, and include wear-conscious write practices for EEPROM. Program branches take two cycles while most instructions take one cycle, so delay loops and timeout calculations must be recompiled and verified for the 4 MHz grade rather than copied from a 20 MHz project.
زانیاری پابەندبوون
The PIC16F84A-04/P is a 18-pin PDIP device, but the available technical excerpts do not explicitly state its RoHS, REACH, AEC-Q100, lead-free, halogen-free, or conflict-minerals status. Confirm current declarations with the manufacturer.