Is PIC16F877A a microcontroller?

PIC16F877A is a powerful easy-to-program , CMOS FLASH-based 8-bit microcontroller packs Microchip’s powerful PIC® architecture into an 40- or 44-pin package.It has 256 Bytes EEPROM data memory,self programming and 2 nos of PWM.

How many pins are in PIC16F877A?

It has a total number of 40 pins and there are 33 pins for input and output. PIC16F877A is used in many pic microcontroller projects.

How much voltage does the PIC16F877A can take?

It can operate up to 20MHz frequency. The operating voltage is between 4.2 volts to 5.5 volts. If you provide it voltage more than 5.5 volts, it may get damaged permanently.

How many IO ports are there in PIC16F877A?

5 Ports
IT has 5 Ports in total. ( PortA, PortB, PortC, PortD and PortE). It supports Serial Communication for which it has 2 Pins TX and RX.

How many timers are in PIC16F877A?

PIC Timer Module Pic16f877a has three indepenndent timer which can be used as timer,Counters or for PWM generation.

What is the maximum operating frequency of PIC16F877A?

For a standard PIC16F877A chip @5V, You can clock T1CKI at up to 33.3MHz if you have the ÷8 prescaler selected and the input waveform is exactly 50% duty cycle.

What is PIC16F877A?

PIC16F877a is a 40-pin PIC Microcontroller, designed using RISC architecture, manufactured by Microchip and is used in Embedded Projects. It has five Ports on it, starting from Port A to Port E. It has three Timers in it, two of which are 8-bit Timers while 1 is of 16 Bit.

How do I use PIC16F877A?

MPLABx Setup Steps

  1. Step1: Open the MPLABx software and select the New project from File Menu as shown below.
  2. Step2: Select the Standalone option for the project.
  3. Step3: Choose the Controller(PIC16f877A) from the device drop down.
  4. Step4: Select the required programmer.

How many CCP modules are in PIC16F877A?

The PIC16F877A MCU has two (CCP) Modules, CCP1 and CCP2 at pins RC2 and RC1 of Port C respectively as shown in Figure 3. Each module (CCP1 and CCP2) contains a 16 bit register (two 8-bit registers) [8]. …

How do you use the timer on PIC16F877A?


  1. Calculate the Timer Count for the required delay.
  2. Set the Presaclar bits in OPTION_REG as per the delay calculations.
  3. Clear the PSAbit for using the prescalar.
  4. Select the Clock Source Internal/External using TOCS bit.
  5. Load the timer value into TMRO register.
  6. Enable the Timer0 Interrupt by setting TMR0IE bit.