SlideShare ist ein Scribd-Unternehmen logo
1 von 15
Downloaden Sie, um offline zu lesen






In the Real World, a sensor senses any
physical parameter and converts into an
equivalent analog electrical signal.
For efficient and ease of signal processing,
this analog signal is converted into a digital
signal using an Analog to Digital Converter
(ADC).
This digital signal is then fed to
the Microcontroller (MCU) and is processed
accordingly.
Atmega8
provides 10
Bit Resolution
for ADC










The ADC of the AVR converts analog signal
into digital signal at some regular interval
Determined by the clock frequency
ADC operates within a frequency range of
50kHz to 200kHz
But CPU clock frequency is much higher (in
the order of MHz)
Frequency division must take place
The prescaler acts as this division factor








Out of the 50kHz-200kHz range of
frequencies, which one do we need?
There is a trade-off between frequency and
accuracy
Greater the frequency, lesser the accuracy
and vice-versa
So, if your application is not sophisticated
and doesn’t require much accuracy, you
could go for higher frequencies
1. ADMUX – ADC Multiplexer
Selection Register







Bit 7 – ADEN – ADC Enable
Bit 6 – ADSC – ADC Start Conversion
Bit 5 – ADFR – ADC Free Running Select
Bit 4 – ADIF – ADC Interrupt Flag
Bit 3 – ADIE – ADC Interrupt Enable
Bits 2:0 – ADPS2:0 – ADC Prescaler Select Bits
Adc interfacing
Adc interfacing

Weitere ähnliche Inhalte

Was ist angesagt?

Power point presenttation seminar
Power point presenttation seminarPower point presenttation seminar
Power point presenttation seminar
9766686371
 
basics of temperature data logger (with energia and stellaris)
basics of  temperature data logger (with energia and stellaris)basics of  temperature data logger (with energia and stellaris)
basics of temperature data logger (with energia and stellaris)
Zafer Genc
 
Analog to digital converter
Analog to digital converterAnalog to digital converter
Analog to digital converter
Corrado Santoro
 

Was ist angesagt? (20)

INTERFACING ANALAOG TO DIGITAL CONVERTER (ADC0808/09) TO 8051 MICROCONTROLLER
 INTERFACING ANALAOG TO DIGITAL CONVERTER (ADC0808/09) TO 8051 MICROCONTROLLER   INTERFACING ANALAOG TO DIGITAL CONVERTER (ADC0808/09) TO 8051 MICROCONTROLLER
INTERFACING ANALAOG TO DIGITAL CONVERTER (ADC0808/09) TO 8051 MICROCONTROLLER
 
2 Digit Object counter
2 Digit Object counter2 Digit Object counter
2 Digit Object counter
 
DAC-digital to analog converter
DAC-digital to analog converterDAC-digital to analog converter
DAC-digital to analog converter
 
Power point presenttation seminar
Power point presenttation seminarPower point presenttation seminar
Power point presenttation seminar
 
Digital voltmeter using 89c51 microcontroller
Digital voltmeter using 89c51 microcontrollerDigital voltmeter using 89c51 microcontroller
Digital voltmeter using 89c51 microcontroller
 
simple ADC Interfacing
simple ADC Interfacingsimple ADC Interfacing
simple ADC Interfacing
 
Concept of Digital measurement, block Diagram & study of Voltmeter
Concept of Digital measurement, block Diagram & study of VoltmeterConcept of Digital measurement, block Diagram & study of Voltmeter
Concept of Digital measurement, block Diagram & study of Voltmeter
 
basics of temperature data logger (with energia and stellaris)
basics of  temperature data logger (with energia and stellaris)basics of  temperature data logger (with energia and stellaris)
basics of temperature data logger (with energia and stellaris)
 
Adc
AdcAdc
Adc
 
ADC - Analog to Digital Conversion on AVR microcontroller Atmega16
ADC - Analog to Digital  Conversion on AVR microcontroller Atmega16ADC - Analog to Digital  Conversion on AVR microcontroller Atmega16
ADC - Analog to Digital Conversion on AVR microcontroller Atmega16
 
Construction of digital voltmeter by Bapi Kumar Das
Construction of digital voltmeter by Bapi Kumar DasConstruction of digital voltmeter by Bapi Kumar Das
Construction of digital voltmeter by Bapi Kumar Das
 
Successive approximation adc
Successive approximation adcSuccessive approximation adc
Successive approximation adc
 
Successive Approximation ADC
Successive Approximation ADC Successive Approximation ADC
Successive Approximation ADC
 
Temperature control Switch and Display By Led
Temperature control Switch and Display By LedTemperature control Switch and Display By Led
Temperature control Switch and Display By Led
 
Ad and da convertor
Ad and da convertorAd and da convertor
Ad and da convertor
 
Analog to digital converter
Analog to digital converterAnalog to digital converter
Analog to digital converter
 
Encoder
EncoderEncoder
Encoder
 
Digital voltmeter (DVM) and its Classification
Digital voltmeter (DVM) and its ClassificationDigital voltmeter (DVM) and its Classification
Digital voltmeter (DVM) and its Classification
 
Transformer Interfacing with Laptop
Transformer Interfacing with LaptopTransformer Interfacing with Laptop
Transformer Interfacing with Laptop
 
Digital to-analog and analog-to-digital converter by Md Nazmul Islam
Digital to-analog and analog-to-digital converter by Md Nazmul IslamDigital to-analog and analog-to-digital converter by Md Nazmul Islam
Digital to-analog and analog-to-digital converter by Md Nazmul Islam
 

Ähnlich wie Adc interfacing

Interfacing to the analog world
Interfacing to the analog worldInterfacing to the analog world
Interfacing to the analog world
Islam Samir
 
-1348064572-13. electronics - ijeceierd - design and - sapna katiyar - unpaid
 -1348064572-13. electronics - ijeceierd - design and - sapna katiyar - unpaid -1348064572-13. electronics - ijeceierd - design and - sapna katiyar - unpaid
-1348064572-13. electronics - ijeceierd - design and - sapna katiyar - unpaid
sairamreddy siddu
 

Ähnlich wie Adc interfacing (20)

86919253 data-acquisition-system-ppt
86919253 data-acquisition-system-ppt86919253 data-acquisition-system-ppt
86919253 data-acquisition-system-ppt
 
Interfacing to the analog world
Interfacing to the analog worldInterfacing to the analog world
Interfacing to the analog world
 
Wireless fuel level sensor using rfid
Wireless fuel level sensor using rfidWireless fuel level sensor using rfid
Wireless fuel level sensor using rfid
 
A 1.2V 10-bit 165MSPS Video ADC
A 1.2V 10-bit 165MSPS Video ADCA 1.2V 10-bit 165MSPS Video ADC
A 1.2V 10-bit 165MSPS Video ADC
 
A to D Convertors
A to D ConvertorsA to D Convertors
A to D Convertors
 
Analog to digital converters, adc
Analog to digital converters, adcAnalog to digital converters, adc
Analog to digital converters, adc
 
Camarillo Jan 30 Feb 2 2017 Digital Control of Power Electronics - How to Cho...
Camarillo Jan 30 Feb 2 2017 Digital Control of Power Electronics - How to Cho...Camarillo Jan 30 Feb 2 2017 Digital Control of Power Electronics - How to Cho...
Camarillo Jan 30 Feb 2 2017 Digital Control of Power Electronics - How to Cho...
 
Introduction to digital signal processing 2
Introduction to digital signal processing 2Introduction to digital signal processing 2
Introduction to digital signal processing 2
 
DATA ACQUISITION (DAQ) IN LABVIEW
DATA  ACQUISITION (DAQ) IN LABVIEWDATA  ACQUISITION (DAQ) IN LABVIEW
DATA ACQUISITION (DAQ) IN LABVIEW
 
K045076266
K045076266K045076266
K045076266
 
ELECTRICAL ENGINEERING PROJECT
ELECTRICAL ENGINEERING PROJECTELECTRICAL ENGINEERING PROJECT
ELECTRICAL ENGINEERING PROJECT
 
electrical engineering project
electrical engineering projectelectrical engineering project
electrical engineering project
 
Lab3
Lab3Lab3
Lab3
 
-1348064572-13. electronics - ijeceierd - design and - sapna katiyar - unpaid
 -1348064572-13. electronics - ijeceierd - design and - sapna katiyar - unpaid -1348064572-13. electronics - ijeceierd - design and - sapna katiyar - unpaid
-1348064572-13. electronics - ijeceierd - design and - sapna katiyar - unpaid
 
Wireless Microcontroller (IEEE802.15.4 and ZigBee): JN5139
Wireless Microcontroller  (IEEE802.15.4 and ZigBee): JN5139Wireless Microcontroller  (IEEE802.15.4 and ZigBee): JN5139
Wireless Microcontroller (IEEE802.15.4 and ZigBee): JN5139
 
Analog to digital converter (ACD)
Analog to digital converter (ACD)Analog to digital converter (ACD)
Analog to digital converter (ACD)
 
Software Design of Digital Receiver using FPGA
Software Design of Digital Receiver using FPGASoftware Design of Digital Receiver using FPGA
Software Design of Digital Receiver using FPGA
 
Architecture of Smart Sensors.ppt
Architecture of Smart Sensors.pptArchitecture of Smart Sensors.ppt
Architecture of Smart Sensors.ppt
 
Ekeeda - Instrumentation Engineering
Ekeeda - Instrumentation EngineeringEkeeda - Instrumentation Engineering
Ekeeda - Instrumentation Engineering
 
project report on embedded system
project report on embedded systemproject report on embedded system
project report on embedded system
 

Kürzlich hochgeladen

Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 

Kürzlich hochgeladen (20)

Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 

Adc interfacing

  • 1.
  • 2.    In the Real World, a sensor senses any physical parameter and converts into an equivalent analog electrical signal. For efficient and ease of signal processing, this analog signal is converted into a digital signal using an Analog to Digital Converter (ADC). This digital signal is then fed to the Microcontroller (MCU) and is processed accordingly.
  • 3.
  • 4.
  • 6.       The ADC of the AVR converts analog signal into digital signal at some regular interval Determined by the clock frequency ADC operates within a frequency range of 50kHz to 200kHz But CPU clock frequency is much higher (in the order of MHz) Frequency division must take place The prescaler acts as this division factor
  • 7.     Out of the 50kHz-200kHz range of frequencies, which one do we need? There is a trade-off between frequency and accuracy Greater the frequency, lesser the accuracy and vice-versa So, if your application is not sophisticated and doesn’t require much accuracy, you could go for higher frequencies
  • 8. 1. ADMUX – ADC Multiplexer Selection Register
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.       Bit 7 – ADEN – ADC Enable Bit 6 – ADSC – ADC Start Conversion Bit 5 – ADFR – ADC Free Running Select Bit 4 – ADIF – ADC Interrupt Flag Bit 3 – ADIE – ADC Interrupt Enable Bits 2:0 – ADPS2:0 – ADC Prescaler Select Bits