SlideShare a Scribd company logo
ADC
simple ADC Interfacing
WHAT IS ANALOG AND DIGITAL
SIGNAL?
ANALOG SIGNAL:-
A quantity that varies continuously with time is
known as a Analog signal.
DIGITAL SIGNAL:-
It is a signal that represents a sequence of discrete
values. In other words it has only two values
LOGIC ‘0’ OR LOGIC ‘1’
Examples of analog signals:
 Thermometer – mercury height rises as temperature
rises
 Car Speedometer – Needle moves farther right as
you accelerate
 Stereo – Volume increases as you turn the knob.
Examples of digital signals:
 Light switch can be either on or off
 Door to a room is either open or closed
Most of the signal that we want to process are analog
i.e.: they are continuous and can take inifinite no. of values
x(t)
t
Analog Signal
IMPORTANCE OF ADC
 Physical quantities to be measured are in analog form
 Microcontroller understands only digital values
Digital systems require discrete digital data
ADC converts an analog information into a
digital information
Digital System?Analog Digital
Why ADC ?
Examples of A/D Applications
 Microphones - take your voice varying pressure waves in the air
and convert them into varying electrical signals
 Strain Gauges - determines the amount of strain (change in
dimensions) when a stress is applied
 Thermocouple – temperature measuring device converts thermal
energy to electric energy
 Voltmeters
 Digital Multimeters
CHOOSING A PERFECT ADC
Parameters to be considered while choosing a ADC
 SPEED
 RESOLUTION
 ACCURACY
 STABILITY
t
Ts
Q
xq(t)
Accuracy
t
Ts
xq(t) Higher Sampling rate
t
Q
xq(t)
Higher Resolution
Accuracy of A/D Conversion
There are two ways to best improve accuracy of A/D
conversion:
 increasing the resolution which improves the
accuracy in measuring the amplitude of the analog
signal.
 increasing the sampling rate which increases the
maximum frequency that can be measured.
Types of ADCs
•Flash ADC
•Sigma-delta ADC
•Dual slope converter
•Successive approximation converter
•Parallel Comparator ADC
ADC Resolution Comparison
0 5 10 15 20 25
Sigma-Delta
Successive Approx
Flash
Dual Slope
Resolution (Bits)
Type Speed (relative) Cost (relative)
Dual Slope Slow Med
Flash Very Fast High
Successive Appox Medium – Fast Low
Sigma-Delta Slow Low
ADC Types Comparison
SUCCESSIVE APPROXIMATION ADC
Successive Approximation ADC
 A Successive Approximation Register (SAR) is added to
the circuit
 Instead of counting up in binary sequence, this
register counts by trying all values of bits starting with
the MSB and finishing at the LSB.
 The register monitors the comparators output to see if
the binary count is greater or less than the analog
signal input and adjusts the bits accordingly
 Sets MSB
 Converts MSB to
analog using DAC
 Compares guess to
input
 Set bit
 Test next bit
SAR DAC
Out
VIN
-
+
Successive Approximation
1000 0000
Is Vin > ½ ADC range?
0100 0000
If no, then test next bit
Successive Approximation
Advantages
 Capable of high speed and
reliable
 Medium accuracy compared
to other ADC types
 Good tradeoff between speed
and cost
 Capable of outputting the
binary number in serial (one
bit at a time) format.
Disadvantages
 Higher resolution successive
approximation ADC’s will be
slower
 Speed limited to ~5Msps
simple ADC Interfacing
INSTRUCTIONS FOR ADC
 Init_Adc();
 Int Analog_Read(A0);
PROGRAM
#define F_CPU 16000000
#include <avr/io.h>
#include "Ilabslib_16.h"
#include <util/delay.h>//COM14
int main(void)
{
Lcd_Init();
Lcd_Clrscr();
Lcd_Goto(2,1);
Init_Adc();
while(1)
{
int value1= Analog_Read(A0);
Lcd_Clrscr();
Lcd_Write_Int(value1);
_delay_ms(200);
}
}
#define F_CPU 16000000
#include <avr/io.h>
#include "Ilabslib_16.h"
#include <util/delay.h>//COM14
int main(void)
{
Lcd_Init();
Lcd_Clrscr();
Lcd_Goto(2,1);
Init_Adc();
while(1)
{
{
int value1= Analog_Read(A0);
Lcd_Clrscr();
Lcd_Write_Int(value1);
_delay_ms(200);
Serial_Write_Int(value1);
Serial_Write_String("t");
}
}

More Related Content

PPTX
Thermocouples
PPTX
Bridge Rectifier
PPTX
ADC - Types (Analog to Digital Converter)
PPT
Digital frequency meter
PPTX
PPT
Data Acquisition System and Data loggers
PPT
Semiconductor diodes
Thermocouples
Bridge Rectifier
ADC - Types (Analog to Digital Converter)
Digital frequency meter
Data Acquisition System and Data loggers
Semiconductor diodes

What's hot (20)

PPTX
OPAMP integrator & differentiator.pptx
PDF
Displacement Measurement
PDF
ANALOG TO DIGITAL CONVERTOR
PPTX
Adc by anil kr yadav
PPTX
Data Acquisition Systems presentation
PPTX
PPT
Thermocouple
PPT
DAC-digital to analog converter
DOCX
PPTX
Ditial to Analog Converter
PPTX
Seven Segment Display
PPTX
Temperature Sensor Thermocouple and RTD
PPTX
FET AMPLIFIER
PPTX
R-2R Ladder DAC
PPTX
Water level indicator
PPTX
Ac bridge and its application
PPTX
Industrial Level Measurement
PPT
adc dac converter
PPTX
(D/A) and (A/D)conversion
PDF
A report on 2 to 1 mux using tg
OPAMP integrator & differentiator.pptx
Displacement Measurement
ANALOG TO DIGITAL CONVERTOR
Adc by anil kr yadav
Data Acquisition Systems presentation
Thermocouple
DAC-digital to analog converter
Ditial to Analog Converter
Seven Segment Display
Temperature Sensor Thermocouple and RTD
FET AMPLIFIER
R-2R Ladder DAC
Water level indicator
Ac bridge and its application
Industrial Level Measurement
adc dac converter
(D/A) and (A/D)conversion
A report on 2 to 1 mux using tg
Ad

Similar to simple ADC Interfacing (20)

PPTX
Analog to Digital Converter
PPTX
Analog to Digital Conversion
PPT
Analog to Digital Converters
PPTX
PPTX
Analog to digital conversion
PPTX
PPTX
Analog to Digital and Digital to Analog Converter
PPT
Meeting w9 chapter 3 part 2
PPTX
Interfacing to the analog world
PPT
Analog and Digital Convertors - (ADC)
PPT
Adc and dac
PPT
analog to digital converter.ppt
PPTX
Data convertors
PPTX
Adc ee223
PPTX
ADC & DAC
PDF
Types of Actuators and Sensors in Robotics
PPTX
Analog to Digital Converter GROUP 2.pptx
PPTX
Successive Approximation ADC
PPT
Fundamental of MSD Module-III Part-a.ppt
PPTX
ADC and DAC Best Ever Pers
Analog to Digital Converter
Analog to Digital Conversion
Analog to Digital Converters
Analog to digital conversion
Analog to Digital and Digital to Analog Converter
Meeting w9 chapter 3 part 2
Interfacing to the analog world
Analog and Digital Convertors - (ADC)
Adc and dac
analog to digital converter.ppt
Data convertors
Adc ee223
ADC & DAC
Types of Actuators and Sensors in Robotics
Analog to Digital Converter GROUP 2.pptx
Successive Approximation ADC
Fundamental of MSD Module-III Part-a.ppt
ADC and DAC Best Ever Pers
Ad

More from Varad Manglekar (10)

PPTX
Cross Helmet
PPTX
Basic concepts of practical electronics
PPTX
Sensors and Switches
PPTX
PPTX
Line follower robot
PPTX
Introduction to Embedded System
PPTX
Introduction to embedded systems
PPTX
Basic components in Embedded System
PPT
Controlling Motors for Robot
PPTX
Basic interfacing of LEDs
Cross Helmet
Basic concepts of practical electronics
Sensors and Switches
Line follower robot
Introduction to Embedded System
Introduction to embedded systems
Basic components in Embedded System
Controlling Motors for Robot
Basic interfacing of LEDs

Recently uploaded (20)

PPTX
Internet of Things (IOT) - A guide to understanding
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PDF
composite construction of structures.pdf
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPT
introduction to datamining and warehousing
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPT
Mechanical Engineering MATERIALS Selection
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
Internet of Things (IOT) - A guide to understanding
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
composite construction of structures.pdf
Operating System & Kernel Study Guide-1 - converted.pdf
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
UNIT 4 Total Quality Management .pptx
Lecture Notes Electrical Wiring System Components
bas. eng. economics group 4 presentation 1.pptx
introduction to datamining and warehousing
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
UNIT-1 - COAL BASED THERMAL POWER PLANTS
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Mechanical Engineering MATERIALS Selection
Automation-in-Manufacturing-Chapter-Introduction.pdf

simple ADC Interfacing

  • 1. ADC
  • 3. WHAT IS ANALOG AND DIGITAL SIGNAL? ANALOG SIGNAL:- A quantity that varies continuously with time is known as a Analog signal. DIGITAL SIGNAL:- It is a signal that represents a sequence of discrete values. In other words it has only two values LOGIC ‘0’ OR LOGIC ‘1’
  • 4. Examples of analog signals:  Thermometer – mercury height rises as temperature rises  Car Speedometer – Needle moves farther right as you accelerate  Stereo – Volume increases as you turn the knob. Examples of digital signals:  Light switch can be either on or off  Door to a room is either open or closed
  • 5. Most of the signal that we want to process are analog i.e.: they are continuous and can take inifinite no. of values x(t) t Analog Signal IMPORTANCE OF ADC  Physical quantities to be measured are in analog form  Microcontroller understands only digital values
  • 6. Digital systems require discrete digital data ADC converts an analog information into a digital information Digital System?Analog Digital Why ADC ?
  • 7. Examples of A/D Applications  Microphones - take your voice varying pressure waves in the air and convert them into varying electrical signals  Strain Gauges - determines the amount of strain (change in dimensions) when a stress is applied  Thermocouple – temperature measuring device converts thermal energy to electric energy  Voltmeters  Digital Multimeters
  • 8. CHOOSING A PERFECT ADC Parameters to be considered while choosing a ADC  SPEED  RESOLUTION  ACCURACY  STABILITY
  • 9. t Ts Q xq(t) Accuracy t Ts xq(t) Higher Sampling rate t Q xq(t) Higher Resolution
  • 10. Accuracy of A/D Conversion There are two ways to best improve accuracy of A/D conversion:  increasing the resolution which improves the accuracy in measuring the amplitude of the analog signal.  increasing the sampling rate which increases the maximum frequency that can be measured.
  • 11. Types of ADCs •Flash ADC •Sigma-delta ADC •Dual slope converter •Successive approximation converter •Parallel Comparator ADC
  • 12. ADC Resolution Comparison 0 5 10 15 20 25 Sigma-Delta Successive Approx Flash Dual Slope Resolution (Bits) Type Speed (relative) Cost (relative) Dual Slope Slow Med Flash Very Fast High Successive Appox Medium – Fast Low Sigma-Delta Slow Low ADC Types Comparison
  • 14. Successive Approximation ADC  A Successive Approximation Register (SAR) is added to the circuit  Instead of counting up in binary sequence, this register counts by trying all values of bits starting with the MSB and finishing at the LSB.  The register monitors the comparators output to see if the binary count is greater or less than the analog signal input and adjusts the bits accordingly
  • 15.  Sets MSB  Converts MSB to analog using DAC  Compares guess to input  Set bit  Test next bit SAR DAC Out VIN - + Successive Approximation 1000 0000 Is Vin > ½ ADC range? 0100 0000 If no, then test next bit
  • 16. Successive Approximation Advantages  Capable of high speed and reliable  Medium accuracy compared to other ADC types  Good tradeoff between speed and cost  Capable of outputting the binary number in serial (one bit at a time) format. Disadvantages  Higher resolution successive approximation ADC’s will be slower  Speed limited to ~5Msps
  • 18. INSTRUCTIONS FOR ADC  Init_Adc();  Int Analog_Read(A0);
  • 19. PROGRAM #define F_CPU 16000000 #include <avr/io.h> #include "Ilabslib_16.h" #include <util/delay.h>//COM14 int main(void) { Lcd_Init(); Lcd_Clrscr(); Lcd_Goto(2,1); Init_Adc(); while(1) { int value1= Analog_Read(A0); Lcd_Clrscr(); Lcd_Write_Int(value1); _delay_ms(200); } }
  • 20. #define F_CPU 16000000 #include <avr/io.h> #include "Ilabslib_16.h" #include <util/delay.h>//COM14 int main(void) { Lcd_Init(); Lcd_Clrscr(); Lcd_Goto(2,1); Init_Adc(); while(1) {