0% found this document useful (0 votes)
27 views

Use of Adc Module

The document describes how to use the analog to digital converter (ADC) module of a PIC microcontroller. It explains the ADC registers and clock selection, shows the circuit diagram, and provides MPLAB XC8 code to read an analog input and display the digital output on LEDs.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

Use of Adc Module

The document describes how to use the analog to digital converter (ADC) module of a PIC microcontroller. It explains the ADC registers and clock selection, shows the circuit diagram, and provides MPLAB XC8 code to read an analog input and display the digital output on LEDs.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

About Us (/about-us/) Contact Us (/contact-us/)

(https://electrosome.com/) +91 70122 31279

Home (https://electrosome.com) /
Tutorials (https://electrosome.com/category/tutorials/),
PIC Microcontroller (https://electrosome.com/category/tutorials/pic-microcontroller/),
MPLAB XC8 (https://electrosome.com/category/tutorials/pic-microcontroller/mplab-xc8/) /
Using ADC of PIC Microcontroller – MPLAB XC8

Using ADC of PIC Microcontroller – MPLAB XC8

12 Using ADC of PIC Microcontroller – MPLAB XC8


Nov By Ligo George (https://electrosome.com/author/lijoppans/)
MPLAB XC8 (https://electrosome.com/category/tutorials/pic-microcontroller/mplab-xc8/), PIC
Microcontroller (https://electrosome.com/category/tutorials/pic-microcontroller/), Tutorials
(https://electrosome.com/category/tutorials/)
16F877A (https://electrosome.com/tag/16f877a/), Microcontroller
(https://electrosome.com/tag/microcontroller/), MPLAB (https://electrosome.com/tag/mplab/), MPLAB
XC8 (https://electrosome.com/tag/mplab-xc8/), PIC (https://electrosome.com/tag/pic/), Proteus
(https://electrosome.com/tag/proteus/), Tutorials (https://electrosome.com/tag/tutorials/), XC8
(https://electrosome.com/tag/xc8/)
21 Comments (https://electrosome.com/adc-pic-microcontroller-mplab-xc8/#disqus_thread)

In this tutorial we will learn, how to use the ADC


Contents
module of a PIC Microcontroller using MPLAB XC8
compiler. For demonstration we will use the commonly 1 ADC Block Diagram
available PIC 16F877A 2 ADCON0 – A/D Control Register 0
(https://electrosome.com/microcontroller/pic-16f877a- 3 ADCON1 – A/D Control Register 1
datasheet/) microcontroller. 4 A/D Acquisition Time
5 A/D Clock Selection
Every physical quantity found in nature like temperature, 6 Circuit Diagram
humidity, pressure, force is analog. We need to convert 7 MPLAB XC8 Code
these analog quantities to digital to process it using a 8 Download Here
digital computer or a microcontroller. This is done by
using Analog to Digital Converters. An Analog to
Digital Converter or ADC is a device which converts continuous analog quantity (here :
voltage) to corresponding discrete digital values.
PIC 16F877A microcontroller has 8 ADC inputs and it will convert analog inputs to a
corresponding 10 bit digital number. For the sake of explanation take ADC Lower Reference as
0V and Higher Reference as 5V.

• Vref- = 0V
• Vref+ = 5V
• n = 10 bits
• Resolution = (Vref+ – Vref-)/(2n – 1) = 5/1023 = 0.004887V

So ADC resolution is 0.00487V, which is the minimum required voltage to change a bit. See the
examples below.

Digital Output
Analog Input
Binary Hex Decimal
0 0b0000000000 0x000 0
0.004887V 0b0000000001 0x001 1
0.009774V 0b0000000010 0x002 2
0.014661V 0b0000000011 0x003 3
4.999401V 0b1111111111 0x3FF 1023

The ADC module of PIC 16F877A has 4 registers.

• ADRESH – A/D Result High Register


• ADRESL – A/D Result Low Register
• ADCON0 – A/D Control Register 0
• ADCON1 – A/D Control Register 1
ADC Block Diagram

(https://electrosome.com/wp-content/uploads/2013/07/ADC-Module-Block-Diagram-
PIC16F877A.jpg)
ADC Module Block Diagram – PIC16F877A

From this block diagram you can easily understand the working of ADC channel selection and
reference voltage selection.

ADCON0 – A/D Control Register 0

(https://electrosome.com/wp-content/uploads/2013/07/ADCON0-Register-PIC-16F877A.jpg)
ADCON0 Register – PIC 16F877A

• Bit 7 ~ 6 : ADCS1 & ADCS0, A/D Conversion clock selection bits. These bits are used in
combination with ADCS2 of ADCON1 register. (See the ADC Clock Selection Table)
• Bit 5 ~ 3 : CH2, CH1 & CH0 are analog channel selection bits which will select a particular
channel out of 8.
• Bit 2 : Go_nDone is the A/D conversion status bit. Setting this bit initiates the A/D
conversion and it will be automatically cleared when the conversion completes.
• Bit 1 : Unimplemented, Read as 0.
• Bit 0 : ADON, A/D Module On bit. Setting this bit will turn on the ADC module.
ADCON1 – A/D Control Register 1

(https://electrosome.com/wp-content/uploads/2013/07/ADCON1-Register-PIC-16F877A.jpg)
ADCON1 Register – PIC 16F877A

• Bit 7 : ADFM, A/D Result Format bit. Bits of result will be right justified if this bit is set
otherwise it will be left justified.
• Bit 6 : ADCS2, A/D Conversion clock selection bit. This bit is used in combination with
ADCS0 and ADCS1 of ADCON0 register. (See the ADC Clock Selection Table)
• Bit 5 ~ 4 : Unimplemented. Read as 0.
• Bit 3 ~ 0 : PCFG3 ~ PCFG0, A/D Port Configuration Bits. Status of these bits determine
whether the pin is Analog or Digital as per the table below.

(https://electrosome.com/wp-content/uploads/2013/07/PIC-ADC-Port-Configuration-Bits.jpg)
PIC ADC Port Configuration Bits

Note : Some ICs use special register ANSEL for setting each pin as analog or digital.

Ads by Google

Circuit Schematic ADC

Software Programming For Computer Software


A/D Acquisition Time
Holding capacitor (CHOLD) must be charged to the input voltage to meet the accuracy specified by
the datasheet. So we must provide a delay greater than the minimum required acquisition time to
charge the capacitor. 19.72μs is the minimum time specified in the datasheet. Please refer the
datasheet for more details.

A/D Clock Selection


A/D conversion clock must be selected to ensure minimum TAD. TAD is the conversion time per
bit, which is 1.6μs. Please refer the datasheet for more details.

(https://electrosome.com/wp-content/uploads/2013/07/ADC-Clock-Selection-Table-PIC-
16F877A.jpg)
ADC Clock Selection Table – PIC 16F877A
Circuit Diagram

(https://electrosome.com/wp-content/uploads/2013/07/Using-Internal-ADC-Module-of-PIC-
Microcontroller.jpg)
Using Internal ADC Module of PIC Microcontroller

You can easily understand the circuit if you already go through our first tutorials, PIC
Microcontroller MPLAB XC8 Tutorials (https://electrosome.com/category/tutorials/pic-
microcontroller/mplab-xc8/). The reference voltages for A/D conversion is set to VDD (5V) and
VSS (GND) in the software (see the code below). Analog input to Channel 0 is provided using a
potentiometer such that we can vary the input voltage from 0 ~ 5V. A/D conversion will generate
a 10 bit digital value (0 ~ 1023) corresponding to the analog input. This digital value is displayed
using 10 LEDs connected PORTB and PORTC of the microcontroller.
MPLAB XC8 Code
// CONFIG
#pragma config FOSC = HS // Oscillator Selection bits (HS oscillator)
#pragma config WDTE = OFF // Watchdog Timer Enable bit (WDT disabled)
#pragma config PWRTE = OFF // Power-up Timer Enable bit (PWRT disabled)
#pragma config BOREN = OFF // Brown-out Reset Enable bit (BOR disabled)
#pragma config LVP = OFF // Low-Voltage (Single-Supply) In-Circuit Serial Progra
mming Enable bit (RB3 is digital I/O, HV on MCLR must be used for programming)
#pragma config CPD = OFF // Data EEPROM Memory Code Protection bit (Data EEPROM
code protection off)
#pragma config WRT = OFF // Flash Program Memory Write Enable bits (Write protec
tion off; all program memory may be written to by EECON control)
#pragma config CP = OFF // Flash Program Memory Code Protection bit (Code prote
ction off)

#include <xc.h>
#include <pic16f877a.h>

#define _XTAL_FREQ 8000000

void ADC_Init()
{
ADCON0 = 0x81; //Turn ON ADC and Clock Selection
ADCON1 = 0x00; //All pins as Analog Input and setting Reference Volta
ges
}

unsigned int ADC_Read(unsigned char channel)


{
if(channel > 7) //Channel range is 0 ~ 7
return 0;

ADCON0 &= 0xC5; //Clearing channel selection bits


ADCON0 |= channel<<3; //Setting channel selection bits
__delay_ms(2); //Acquisition time to charge hold capacitor
GO_nDONE = 1; //Initializes A/D conversion
while(GO_nDONE); //Waiting for conversion to complete
return ((ADRESH<<8)+ADRESL); //Return result
}

void main()
{
unsigned int a;
TRISA = 0xFF; //Analog pins as Input
TRISB = 0x00; //Port B as Output
TRISC = 0x00; //Port C as Output
ADC_Init(); //Initialize ADC

do
{
a = ADC_Read(0); //Read Analog Channel 0
PORTB = a; //Write Lower bits to PORTB
PORTC = a>>8; //Write Higher 2 bits to PORTC
__delay_ms(100); //Delay
}while(1); //Infinite Loop
}
I hope that the program is self explanatory as it is well commented.

Ads by Google

Software Programming For Computer Software

Microcontroller Programming Programming Tutorial

Download Here
You can download the complete zipped project folder here.

• ADC PIC – MPLAB XC8 (https://electrosome.com/wp-content/uploads/2015/11/ADC-


PIC-MPLAB-XC8.zip)

I hope that you understand everything what I explained. Please do a comment if you have any
doubt, which will help me to improve this tutorial.

Like 4.7K people like this. Sign Up to see what your


friends like.

electroSome

Follow
Related Posts:

I²C Communication SPI Communication


Generating PWM with with PIC with PIC
PIC Microcontroller – Microcontroller – Microcontroller –
MPLAB XC8 MPLAB XC8 MPLAB XC8

Interfacing Soil
Moisture Sensor with What is a Interfacing Rain Sensor
Arduino Microprocessor ? with Arduino

SPI – Serial Peripheral Digital Door Lock using


Interface Arduino

Share this post

Author
Ligo George (https://electrosome.com/author/lijoppans/)
Follow Me on LinkedIn (https://www.linkedin.com/in/ligo-george-726b482b/)

21 Comments electroSome 
1 Login

Sort by Best
 Recommend 4 ⤤ Share

Join the discussion…

LOG IN WITH OR SIGN UP WITH DISQUS ?

Name
RELATED POSTS

(https://electrosome.com/rtc- (https://electrosome.com/hc-
ds1307-pic-microcontroller/) sr04-ultrasonic-sensor-pic/)

Interfacing Interfacing
Real Time HC-SR04
Clock (RTC) Ultrasonic
DS1307 with Sensor with
PIC PIC
Microcontroller Microcontroller
(https://electrosome.com/rtc- (https://electrosome.com/hc-
ds1307-pic-microcontroller/) sr04-ultrasonic-sensor-pic/)
May 24, 2012 | Ligo George August 12, 2014 | Ligo
(https://electrosome.com/author/lijoppans/) George
| MikroC (https://electrosome.com/author/lijoppans/)
(https://electrosome.com/category/tutorials/pic- | Embedded
microcontroller/mikroc/), PIC (https://electrosome.com/category/projects/embedded-
Microcontroller projects/), MikroC
(https://electrosome.com/category/tutorials/pic- (https://electrosome.com/category/tutorials/pic-
microcontroller/), Tutorials microcontroller/mikroc/),
(https://electrosome.com/category/tutorials/) MPLAB XC8
| DS1307 (https://electrosome.com/category/tutorials/pic-
(https://electrosome.com/tag/ds1307/), microcontroller/mplab-xc8/),
Real Time Clock PIC Microcontroller
(https://electrosome.com/tag/real- (https://electrosome.com/arduino- (https://electrosome.com/category/tutorials/pic-
time-clock/), RTC uno/) microcontroller/), PIC
(https://electrosome.com/tag/rtc/) Microcontroller
| 49 Comments
(https://electrosome.com/rtc-
Arduino Uno (https://electrosome.com/category/projects/embedded-
projects/pic-microcontroller-
ds1307-pic- (https://electrosome.com/arduino- projects/), Projects
microcontroller/#disqus_thread) uno/) (https://electrosome.com/category/projects/)
July 5, 2014 | Alisha Tomy | HC-SR04
(https://electrosome.com/tag/hc-
(https://electrosome.com/author/alisha_tomy/)
| Arduino sr04/), Microcontroller
(https://electrosome.com/tag/microcontroller/)
Contents1 What is I2C (I²C) ? (https://electrosome.com/category/tutorials/arduino/),
MikroC
1.1 Selection of Pull Up Electronics (https://electrosome.com/tag/mikroc/)
Resistors2 Reading Data from (https://electrosome.com/category/electronics/),
MikroC Pro
DS13072.1 MikroC Code3 Tutorials (https://electrosome.com/tag/mikroc-
Writing Data...
(https://electrosome.com/category/tutorials/)
pro/), MPLAB
Read More | Arduino (https://electrosome.com/tag/mplab/)
(https://electrosome.com/rtc- (https://electrosome.com/tag/arduino/), MPLAB XC8
ds1307-pic-microcontroller/) Arduino Uno (https://electrosome.com/tag/mplab-
(https://electrosome.com/tag/arduino- xc8/), PIC
uno/) | 0 Comments (https://electrosome.com/tag/pic/),
(https://electrosome.com/arduino- Tutorials
uno/#disqus_thread) (https://electrosome.com/tag/tutorials/)
Ultrasonic
Contents1 Technical Details –
Arduino Uno2 Pin Details – (https://electrosome.com/tag/ultrasonic/)
Arduino Uno3 Schematic XC8
Diagram Arduino Uno R3 (https://electrosome.com/tag/xc8/)
The Arduino Uno is the... | 212 Comments
(https://electrosome.com/hc-
Read More
(https://electrosome.com/arduino- sr04-ultrasonic-sensor-
uno/) pic/#disqus_thread)

Contents1 HC-SR04
Ultrasonic Module Working2
Interfacing with PIC
Microcontroller2.1 Circuit
Diagram3 Programming3.1
Basic Steps :3.2 Timer1
Module3.3 Distance
Calculation3.4...

Read More
(https://electrosome.com/hc-
sr04-ultrasonic-sensor-pic/)

RECENT POSTS

(https://electrosome.com/interfacing-
pir-motion-sensor-arduino/)
Interfacing PIR Motion Sensor
with Arduino
(https://electrosome.com/interfacing-
pir-motion-sensor-arduino/)
April 28, 2018

(https://electrosome.com/interfacing-
gsm-module-arduino/)
Interfacing GSM Module with
Arduino
(https://electrosome.com/interfacing-
gsm-module-arduino/)
April 19, 2018

(https://electrosome.com/iot-
temperature-data-logger-
esp8266-lm35/)
IoT Temperature Data Logger
Using ESP8266 and LM35
(https://electrosome.com/iot-
temperature-data-logger-
esp8266-lm35/)
April 7, 2018

(https://electrosome.com/normal-
fans-vs-bldc-ceiling-fans/)
Normal Fans vs BLDC Ceiling
Fans
(https://electrosome.com/normal-
fans-vs-bldc-ceiling-fans/)
April 6, 2018

(https://electrosome.com/digital-
thermometer-lm35-sensor-
esp8266/)
Digital Thermometer using
LM35 Sensor and ESP8266
(https://electrosome.com/digital-
thermometer-lm35-sensor-
esp8266/)
April 4, 2018

CATEGORIES

Electronics
(https://electrosome.com/category/electronics/)
555 Circuits
(https://electrosome.com/category/electronics/555-
timer-circuits/)

Basic Electronics
(https://electrosome.com/category/electronics/basic-
electronics/)

Opamp
(https://electrosome.com/category/electronics/basic-
electronics/opamp/)

Electronics News
(https://electrosome.com/category/electronics/electronics-
news/)

IC
(https://electrosome.com/category/electronics/ic/)

Power Supply
(https://electrosome.com/category/electronics/power-
supply/)

Sensors
(https://electrosome.com/category/electronics/sensors/)

What is Inside?
(https://electrosome.com/category/electronics/what-
is-inside/)

Featured
(https://electrosome.com/category/featured/)

Mobiles
(https://electrosome.com/category/mobiles/)

News
(https://electrosome.com/category/news/)

Processors
(https://electrosome.com/category/processors/)

Projects
(https://electrosome.com/category/projects/)

Embedded
(https://electrosome.com/category/projects/embedded-
projects/)

Arduino
(https://electrosome.com/category/projects/embedded-
projects/arduino-embedded-
projects/)

AVR Microcontroller
(https://electrosome.com/category/projects/embedded-
projects/avr-
microcontroller/)

ESP8266
(https://electrosome.com/category/projects/embedded-
projects/esp8266-embedded-
projects/)

PIC Microcontroller
(https://electrosome.com/category/projects/embedded-
projects/pic-microcontroller-
projects/)

Hobby Circuits
(https://electrosome.com/category/projects/hobby-
circuits/)

IoT
(https://electrosome.com/category/projects/iot-
projects/)

Softwares
(https://electrosome.com/category/softwares/)

Tablets
(https://electrosome.com/category/tablets/)

Technology Transfer
(https://electrosome.com/category/technology-
transfer/)

Tutorials
(https://electrosome.com/category/tutorials/)

8051 Microcontroller
(https://electrosome.com/category/tutorials/8051-
microcontroller/)

8085
(https://electrosome.com/category/tutorials/8085/)

Arduino
(https://electrosome.com/category/tutorials/arduino/)

ATMEL AVR
(https://electrosome.com/category/tutorials/atmel-
avr/)

ESP8266
(https://electrosome.com/category/tutorials/esp8266/)
© Copyright 2018. All Rights Reserved.
MATLAB
(https://electrosome.com/category/tutorials/matlab/)

PCB Designing
(https://electrosome.com/category/tutorials/pcb/)
DipTrace
(https://electrosome.com/category/tutorials/pcb/diptrace/)

OrCad
(https://electrosome.com/category/tutorials/pcb/orcad/)

PIC Microcontroller
(https://electrosome.com/category/tutorials/pic-
microcontroller/)

CCS C Compiler
(https://electrosome.com/category/tutorials/pic-
microcontroller/ccs-c/)

Hi-Tech C
(https://electrosome.com/category/tutorials/pic-
microcontroller/hi-tech-c/)

MikroC
(https://electrosome.com/category/tutorials/pic-
microcontroller/mikroc/)

MPLAB XC8
(https://electrosome.com/category/tutorials/pic-
microcontroller/mplab-xc8/)

Python
(https://electrosome.com/category/tutorials/python/)

Raspberry Pi
(https://electrosome.com/category/tutorials/raspberry-
pi/)

Python Rpi
(https://electrosome.com/category/tutorials/raspberry-
pi/python-rpi/)

SCILAB
(https://electrosome.com/category/tutorials/scilab-
tutorials/)

TAGS

3D
(https://electrosome.com/tag/3d/)

16F877A
(https://electrosome.com/tag/16f877a/)

555
(https://electrosome.com/tag/555/)

8051 Microcontroller
(https://electrosome.com/tag/8051-
microcontroller/)
android
(https://electrosome.com/tag/android/)

Arduino
(https://electrosome.com/tag/arduino/)

Arduino Uno
(https://electrosome.com/tag/arduino-
uno/)

Atmega32
(https://electrosome.com/tag/atmega32/)

Atmel
(https://electrosome.com/tag/atmel/)

DC Motor
(https://electrosome.com/tag/dc-
motor/)

DHT22
(https://electrosome.com/tag/dht22/)

electronics
(https://electrosome.com/tag/electronics-2/)

Embedded
(https://electrosome.com/tag/embedded/)

ESP8266
(https://electrosome.com/tag/esp8266/)

google
(https://electrosome.com/tag/google/)

Hi-Tech C
(https://electrosome.com/tag/hi-
tech-c/)

IoT
(https://electrosome.com/tag/iot/)

L293D
(https://electrosome.com/tag/l293d/)

LCD
(https://electrosome.com/tag/lcd/)

LED
(https://electrosome.com/tag/led/)

MATLAB
(https://electrosome.com/tag/matlab/)

Microcontroller
(https://electrosome.com/tag/microcontroller/)

MikroC
(https://electrosome.com/tag/mikroc/)
mobile
(https://electrosome.com/tag/mobile/)

Motor
(https://electrosome.com/tag/motor/)

MPLAB
(https://electrosome.com/tag/mplab/)

MPLAB XC8
(https://electrosome.com/tag/mplab-
xc8/)

Op-Amp
(https://electrosome.com/tag/op-
amp/)

pcb
(https://electrosome.com/tag/pcb/)

PIC
(https://electrosome.com/tag/pic/)

Proteus
(https://electrosome.com/tag/proteus/)

PWM
(https://electrosome.com/tag/pwm/)

Python
(https://electrosome.com/tag/python/)

Raspberry Pi
(https://electrosome.com/tag/raspberry-
pi/)

RFID
(https://electrosome.com/tag/rfid/)

samsung
(https://electrosome.com/tag/samsung/)

Sensor
(https://electrosome.com/tag/sensor/)

Sensors
(https://electrosome.com/tag/sensors/)

Servo Motor
(https://electrosome.com/tag/servo-
motor/)

smartphone
(https://electrosome.com/tag/smartphone/)

tablet
(https://electrosome.com/tag/tablet/)

Transistor
(https://electrosome.com/tag/transistor/)
transistors
(https://electrosome.com/tag/transistors/)

Tutorials
(https://electrosome.com/tag/tutorials/)

XC8
(https://electrosome.com/tag/xc8/)

FOLLOW US

RECENT COMMENTS

Islam Ahmad on Controlling DC


Motors using Arduino and IR
Remote
(https://electrosome.com/dc-
motors-arduino-ir-
remote/#comment-7083)

JANGMANEN AIER on Water


Level Indicator and Controller
using PIC Microcontroller
(https://electrosome.com/water-
level-indicator-controller-
pic/#comment-7082)

rod on Interfacing HC-SR04


Ultrasonic Sensor with PIC
Microcontroller
(https://electrosome.com/hc-
sr04-ultrasonic-sensor-
pic/#comment-7081)

rod on Interfacing HC-SR04


Ultrasonic Sensor with PIC
Microcontroller
(https://electrosome.com/hc-
sr04-ultrasonic-sensor-
pic/#comment-7080)

sefa melek on Interfacing LCD


with PIC Microcontroller –
MPLAB XC8
(https://electrosome.com/lcd-
pic-mplab-xc8/#comment-7078)

You might also like