Is the pic16f877a a 10 bit ADC module?

Is the pic16f877a a 10 bit ADC module?

PIC16F877A has an inbuilt 10 bit Successive Approximation ADC which is multiplexed among 8 input pins. The A/D module has high and low-voltage reference input that is software selectable to some combination of VDD, VSS, RA2 or RA3.

How does the ADC work in a PIC microcontroller?

The ADC voltage reference is software selectable which is generated internally or can be provided externally through Vref+ and Vref- pins.The ADC interrupt can be enabled or disabled. When enabled, interrupt occurs on completion of 1 full conversion. There are a few registers associated with ADC in PIC16F887.

How to determine the resolution of an ADC?

The A/D module has high and low-voltage reference input that is software selectable to some combination of VDD, VSS, RA2 or RA3. With 5v as the Vref the resolution of Pic16f877a ADC can be determined as below: $$resolution of ADC = Vref/ (2^ {10}-1) = 5/1023 =0.004887 = 4.887mv$$

Where is the binary value of pic16f887 stored?

Since pic16f887 uses a 10 bit ADC, the value obtained after conversion would be a binary number containing 10-bits. This result is automatically stored in the ADRESH-ADRESL register pair.

Is there a tutorial for the pic16f877a microcontroller?

This article is a continuation of the series of tutorials on the PIC16F877A Microcontroller. The aim of this series is to provide easy and practical examples that anyone can understand. In our previous tutorial, we have seen PIC16F877A USART Tutorial. Now we are going to see PIC16F877A ADC Tutorial.

What is the output value of a PIC microcontroller ADC?

This means the output value of our ADC will be 0-1024 (2^10) and there are 8 pins (channels) on our MCU which can read analog voltage. The value 1024 is obtained by 2^10 since our ADC is 10 bit. The eight pins which can read the analog voltage are mentioned in the datasheet.

How is the pic16f877a external interrupt pin connected?

My PCLK is 11.0592MHz. Whenever I press the switch it generates the interrupt and glows the LED. The switch is connected to an External interrupt pin. In our next tutorial, we will see how to use the multiple external interrupts in PIC16F877A.