How many pin is PIC16F877A?
Table of Contents
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.
What is the reset pin of PIC16F877A?
PIN 1: MCLR: The first pin is the master clear pin of this IC. It resets the microcontroller and is active low, meaning that it should constantly be given a voltage of 5V and if 0 V are given then the controller is reset.

What is the other pin number of PIC16F877A is the ground pin or the VDD?
PIN 11 and 32: VDD: These two pins are the positive supply for the input/output and logic pins. Both of them should be connected to 5V.
How do you program ADC in PIC16F877A?
In summary, here are the steps to be followed when setting up the PIC16F877A ADC:
- Configure the A/D module:
- Configure A/D interrupt (if desired):
- Wait the required acquisition time.
- Start conversion:
- Wait for A/D conversion to complete by either:
- Read A/D Result register pair (ADRESH:ADRESL), clear bit ADIF if required.
How do you read an analog pin of PIC16F877A?

PIC16F877A has an inbuilt 10 bit Successive Approximation ADC which is multiplexed among 8 input pins….PIC16F877A ADC pins.
Adc Channel | Pic16f877a Pin | Pin Function |
---|---|---|
0 | RA0 | AN0 |
1 | RA1 | AN1 |
2 | RA2 | AN2/VREF- |
3 | RA3 | AN3/VREF+ |
How many analog I O pins are there in a PIC16F877A?
It has 40 Pins. IT has 5 Ports in total. ( PortA, PortB, PortC, PortD and PortE).
How many ADC channels are available in PIC16F877A?
7 channel ADC
It is a 10 bit ADC module. ADC module of the PIC16F877A controller has a 10-bit resolution output. That means an analog input converted into a corresponding 10-bit digital output and 7 channel ADC.
How do you program ADC?
Steps for Configuring ADC
- Configure the GPIO pin for ADC function using PINSEL register.
- Enable the CLock to ADC module.
- Deselect all the channels and Power on the internal ADC module by setting ADCR.
- Select the Particular channel for A/D conversion by setting the corresponding bits in ADCR.SEL.
- Set the ADCR.
What is the maximum operating frequency of PIC16F877A?
33.3MHz
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.
How do you read an analog pin of PIC16f877A?
What is pic16f877a analog to digital converter peripherals?
In this tutorial, we will learn how to use the Analog to Digital converter peripheral of the PIC16F877A controller. Basically we use this kind of peripherals in the modem. It is a 10 bit ADC module.
How many pins does a PIC 16f877a have?
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. PIC16F877A also have much application in digital electronics circuits. PIC16f877a finds its applications in a huge number of devices.
What is the resolution of the ADC module of the pic16f877a?
ADC module of the PIC16F877A controller has a 10-bit resolution output. That means an analog input converted into a corresponding 10-bit digital output and 7 channel ADC. This is the 10-bit Successive Approximation block diagram.
What is 10-bit successive approximation on the pic16f877a controller?
ADC module of the PIC16F877A controller has a 10-bit resolution output. That means an analog input converted into a corresponding 10-bit digital output and 7 channel ADC. This is the 10-bit Successive Approximation block diagram. A sample and hold circuit to acquire the input voltage, Vin.