PIC16F877A Analog to Digital Converter (ADC)

by Thundertronics in Circuits > Microcontrollers

2104 Views, 1 Favorites, 0 Comments

PIC16F877A Analog to Digital Converter (ADC)

pic16f877a.png

PIC MCUs and other MCUs have analog to digital converter modules inside them. We will use PIC16F877A for this time.

Here are the required parts:

1- PIC16F877A or any PIC MCU.

2- Any 16x2 LCD.

3- Breadboard.

4- Breadboard wires.

5- Soldering station -> just to prepare the LCD itself with pins.

6- MPLAB X IDE from Microchip.

7- PICKit 3 or PICkit 4. now you are ready to start.

Video Tutorial

PIC microcontroller practical course - 06 [ADC]

See all the steps in the video, then follow the rest of the steps.

Code

Here is the code:

https://pastebin.com/PmVeHw4K

remember to see the video for complete description of the steps and the code... writing it here won't help.