Shop Logo
Search your product from here
Product image
 - Thumbnail 1
 - Thumbnail 2
 - Thumbnail 3
 - Thumbnail 4
1 / 4

PIC16F84A Microcontroller Original

5.0(1 review)
SKU: ME-3244
JD12.50

. Designed for embedded control applications, it features 1K words of Flash program memory, 68 bytes of RAM, and 64 bytes of EEPROM for non-volatile data storage. Operating at clock speeds up to 20MHz, the PIC16F84A delivers efficient performance with a simple instruction set of only 35 commands. Its 13 configurable I/O pins, built-in timer, interrupt capabilities, and in-circuit programmability make it an ideal choice for educational projects, industrial automation, and electronic product development.

يُعد المتحكم الدقيق PIC16F84A من أشهر المتحكمات الدقيقة ذات معمارية RISC بعرض 8 بت والمُصنّع بواسطة شركة مايكروشيب تكنولوجي. يتميز بذاكرة برنامج Flash بسعة 1K كلمة، وذاكرة RAM بسعة 68 بايت، وذاكرة EEPROM بسعة 64 بايت لتخزين البيانات بشكل دائم. يعمل بسرعة تصل إلى 20 ميجاهرتز مع مجموعة أوامر بسيطة تتكون من 35 تعليمة فقط. بفضل احتوائه على 13 منفذ إدخال وإخراج قابل للبرمجة، ومؤقت داخلي، ودعم المقاطعات، وإمكانية البرمجة داخل الدارة، يُعد خيارًا مثاليًا للمشاريع التعليمية وأنظمة التحكم المضمنة.

PIC

The PIC16F84A is an 18-pin enhanced Flash/EEPROM 8-bit microcontroller based on a Harvard architecture with a high-performance Reduced Instruction Set Computer (RISC) design. Its streamlined architecture enables fast execution, with most instructions completing in a single instruction cycle.

Featuring 1,024 words of Flash program memory, 68 bytes of data RAM, and 64 bytes of EEPROM, the PIC16F84A provides sufficient resources for a wide range of embedded applications. The microcontroller supports clock frequencies up to 20MHz, delivering an instruction cycle time as low as 200ns.

The device offers 13 programmable digital I/O pins across PORTA and PORTB, allowing easy interfacing with sensors, displays, switches, relays, and communication modules. Integrated peripherals include Timer0, an 8-level hardware stack, a watchdog timer, and multiple interrupt sources for responsive system operation.

The PIC16F84A supports in-circuit serial programming (ICSP) through dedicated programming pins, simplifying firmware updates and development. Its low cost, ease of programming, and robust feature set have made it a popular choice for educational use, industrial controls, and custom embedded designs.

Specifications

ParameterSpecification
Product NamePIC16F84A Microcontroller
ManufacturerMicrochip Technology
ArchitectureHarvard RISC Architecture
Bit Width8-bit
Package Type18-Pin PDIP
Instruction Set35 Single-Word Instructions
Program Memory1,024 Words Flash
Data RAM68 Bytes
Data EEPROM64 Bytes
Maximum Clock Frequency20MHz
Instruction Cycle Time200ns @ 20MHz
Operating Voltage2.0V – 5.5V
Digital I/O Pins13
Hardware Stack Depth8 Levels
Timer1 × Timer0 (8-bit)
Interrupt Sources4
Programming MethodIn-Circuit Serial Programming (ICSP)

Interrupt Sources

  • External interrupt on RB0/INT pin
  • Timer0 overflow interrupt
  • PORTB change interrupt on RB4–RB7
  • Data EEPROM write completion interrupt

Applications

  • Educational and training projects
  • Industrial control systems
  • Home automation devices
  • Electronic timers and counters
  • Sensor interfacing applications
  • Security and alarm systems
  • Motor control circuits
  • LED and LCD display control
  • Consumer electronics
  • Custom embedded system development
     

Learn about PIC Microcontroller

A PIC microcontroller is a type of microcontroller chip that is part of the PIC (Programmable Integrated Circuit) family developed by Microchip Technology Inc. PIC microcontrollers are widely used in various embedded systems and electronic devices because of their affordability, versatility, and ease of use.

 

Features of PIC microcontrollers include:

 

  • RISC Architecture: PIC microcontrollers typically use a Reduced Instruction Set Computer (RISC) architecture, which simplifies the instruction set, making them efficient and easy to program.
  • Flash Memory: They often have onboard flash memory for program storage, allowing users to reprogram the microcontroller with new firmware.
  • Peripheral Integration: PIC microcontrollers come with a wide range of integrated peripherals, such as analog-to-digital converters (ADCs), timers, pulse-width modulation (PWM) modules, communication interfaces (UART, SPI, I2C), and more.
  • Low Power Options: Many PIC microcontrollers are available with low power consumption options, making them suitable for battery-powered applications.
  • Varied Pin Counts: They are available in various pin configurations to accommodate different applications, from small 8-pin devices to larger packages with more I/O pins.
  • Development Tools: Microchip provides a comprehensive set of development tools, including software development environments, compilers, debuggers, and programmers, which makes it easier for developers to work with PIC microcontrollers.
  • Wide Application Range: PIC microcontrollers are used in a wide range of applications, including consumer electronics, automotive systems, industrial automation, home automation, medical devices, and more.
  • Variety of Families: The PIC microcontroller family encompasses various subfamilies with different features and capabilities, allowing developers to choose the most suitable microcontroller for their specific application.

 

PIC16F84A Microcontroller Pinout

Here are the pinout information of PIC16F84A, 

PIC16F84A Microcontroller Pinout


 

Pin NamePDIP No.SOIC No.SSOP No.I/O/P TypeBuffer TypeDescription
OSC1/CLKIN161618IST/CMOS(3)Oscillator crystal input/external clock source input.
OSC2/CLKOUT151519OOscillator crystal output. Connects to crystal or resonator in Crystal Oscillator mode. In RC mode, OSC2 pin outputs CLKOUT, which has 1/4 the frequency of OSC1 and denotes the instruction cycle rate.
MCLR444I/PSTMaster Clear (Reset) input/programming voltage input. This pin is an active low RESET to the device.
PORTABi-directional I/O port.
RA0171719I/OTTL
RA1181820I/OTTL
RA2111I/OTTL
RA3222I/OTTL
RA4/T0CKI333I/OSTCan also be selected to be the clock input to the TMR0 timer/counter. Output is open drain type.
PORTBBi-directional I/O port. PORTB can be software programmed for internal weak pull-up on all inputs.
RB0/INT667I/OTTL/ST(1)RB0/INT can also be selected as an external interrupt pin.
RB1778I/OTTL
RB2889I/OTTL
RB39910I/OTTL
RB4101011I/OTTLInterrupt-on-change pin.
RB5111112I/OTTLInterrupt-on-change pin.
RB6121213I/OTTL/ST(2)Interrupt-on-change pin. Serial programming clock.
RB7131314I/OTTL/ST(2)Interrupt-on-change pin. Serial programming data.
VSS555,6PGround reference for logic and I/O pins.
VDD141415,16PPositive supply for logic and I/O pins.

 

 

PIC16F84A Microcontroller Specifications and Features

Specifications:

 

  • Architecture: Harvard architecture with a reduced instruction set computer (RISC) design.
  • Bit Width: 8-bit, which means it processes data in 8-bit chunks at a time.
  • Clock Speed: Typically operates at clock speeds up to 20 MHz.

 

Memory:

 

  • 1,024 words of flash program memory (reprogrammable).
  • 68 bytes of RAM (Random Access Memory).
  • I/O Pins: 13 I/O pins that can be configured as digital input or output.

 

Peripherals:

 

  • Timers: Includes Timer0 for basic timing and delay functions.
  • Interrupt System: Supports external and internal interrupts.
  • Watchdog Timer: For system reset or periodic reset.
  • Master Clear (MCLR): For reset and programming voltage input.

 

Features:

 

Simple Instruction Set: The PIC16F84A features a straightforward and easy-to-understand instruction set, making it suitable for beginners and educational purposes.

 

Reprogrammable Flash Memory: The flash program memory can be reprogrammed, allowing for easy updates and modifications to the code.

 

I/O Ports: It has two 8-bit bi-directional I/O ports (PORTA and PORTB) that can be configured for various input and output functions.

 

Clocking Options:

 

  • Crystal Oscillator Mode: Supports external crystal oscillators.
  • RC Oscillator Mode: Can operate with an internal RC oscillator.
  • Clock Output (CLKOUT): In RC mode, it outputs a clock signal that is a quarter of the frequency of the input clock.
  • Power-Saving Modes: The microcontroller can enter a low-power mode when not actively processing, helping to conserve energy.

 

Low-Voltage Programming: It supports low-voltage programming, making it easier to program and reprogram the device.

 

Interrupt-on-Change: Several I/O pins support interrupt-on-change, allowing the microcontroller to respond to external events quickly.

 

Multiple Packaging Options: Available in various package types, including PDIP, SOIC, and SSOP, to suit different applications.

 

Operating Voltage Range: Typically operates from a voltage supply range of 2.0V to 6.0V.

 

I/O Weak Pull-ups: PORTB pins can be software programmed to have internal weak pull-ups on all inputs.

 

Development Tools: Microchip provides a development ecosystem, including MPLAB X IDE and various programming tools, to facilitate software development for the PIC16F84A.

 

Applications: Commonly used in simple embedded systems, hobbyist projects, robotics, home automation, and industrial control applications.

 

Cost-Effective: The PIC16F84A is known for its cost-effectiveness, making it a good choice for projects with budget constraints.

 

PIC16F84A Microcontroller Functions

Timer Function:

The PIC16F84A microcontroller is equipped with an 8-bit timer that can function as both a timer and a counter. It provides the flexibility to select between timer and counter modes. When the T0CS (OPTION_REG<5>) bit is cleared, the timer mode is chosen. In contrast, setting this bit selects the counter mode. In timer mode, it increments with the instruction cycle, while in counter mode, it counts both the rising and falling edges of an external signal.

 

In-Circuit Serial Programming:

The PIC16F84A is widely employed for in-circuit programming due to its USART (Universal Synchronous Asynchronous Receiver Transmitter) module. This module comprises a transmission pin (Tx) for sending serial data to other devices and a receive pin (Rx) for receiving serial data. This capability facilitates communication and programming while the microcontroller is connected within a circuit.

 

Watchdog Timer:

The PIC16F84A features a built-in watchdog timer that can be programmed to serve a critical role. This timer acts as a safeguard against program hangs or infinite loops by triggering a reset of the microcontroller. Essentially, the watchdog timer functions as a countdown timer, initially set at 1000, and counts down to zero. It must be periodically reset, typically every 3 instructions, to prevent it from reaching zero under normal operation. This reset prevents the microcontroller from getting stuck in unresponsive states.

 

Sleep Mode:

The microcontroller includes a power-saving sleep mode that enables the system to enter a low-current power-down state. Exiting the sleep mode can be triggered by various events, such as interrupts, the watchdog timer, or an external reset. The sleep mode conserves power when the device is not actively processing.

 

Power-On Reset:

The PIC16F84A incorporates a power-on reset feature, which automatically resets the microcontroller when it is powered on. This serves as a safeguard against any glitches or unexpected behavior that might have occurred prior to the power-up sequence. It ensures that the microcontroller starts in a known and stable state, eliminating any prior malfunctions.

 

PIC16F84A Microcontroller Application

Embedded Control Systems: The PIC16F84A is often used as the central processing unit in various embedded control systems, including:

 

  • Home automation and control systems.
  • Appliance control (e.g., microwave ovens, washing machines).
  • Temperature and environmental monitoring and control.

 

Hobbyist Projects: It's a popular choice among hobbyists and electronics enthusiasts for DIY projects, such as:

 

  • LED displays and lighting control.
  • Simple robotics and motor control.
  • Digital thermometer and weather station projects.

 

Educational Projects: Due to its straightforward architecture and instruction set, the PIC16F84A is used in educational environments to teach the fundamentals of microcontroller programming and digital electronics.

 

Security Systems: Basic security systems like access control or simple alarm systems can be implemented using this microcontroller.

 

Timers and Counters: It can serve as a timer or counter in applications that require precise timing or event counting. For example:

 

  • Interval timers in sports equipment.
  • Digital clocks and countdown timers.

 

Communication Devices: While it lacks advanced communication capabilities, it can still be used for basic serial communication interfaces, such as UART, SPI, or I2C, to interface with other devices.

 

PIC16F84A Microcontroller Datasheet

Download PIC16F84A microcontroller datasheet here>>

 

PIC16F84A Microcontroller Manufacturer

The PIC16F84A microcontroller is manufactured by Microchip Technology Inc. Microchip Technology Inc. is a global semiconductor manufacturer headquartered in Chandler, Arizona, USA. It is one of the leading companies in the field of microcontrollers and analog semiconductors. The company was founded in 1987 and has a rich history of providing innovative solutions for the electronics industry. Microchip offers a wide range of products and solutions, including microcontrollers, microprocessors, analog and mixed-signal integrated circuits, memory, and various other components used in embedded systems and electronics design.

Loading...
Loading...
Loading...
Loading...