SlideShare une entreprise Scribd logo
1  sur  49
Analog to Digital
Converters

  Byron Johns
  Danny Carpenter
  Stephanie Pohl
  Harry “Bo” Marr

  October 4, 2005
Presentation Outline
 Introduction:Analog vs. Digital?
 Examples of ADC Applications
 Types of A/D Converters
 A/D Subsystem used in the
  microcontroller chip
 Examples of Analog to Digital Signal
  Conversion
 Successive Approximation ADC
First Presenter



         Byron Johns
Analog Signals
Analog signals – directly measurable quantities
  in terms of some other quantity
Examples:
 Thermometer – mercury height rises as
  temperature rises
 Car Speedometer – Needle moves farther
  right as you accelerate
 Stereo – Volume increases as you turn the
  knob.
Digital Signals
Digital Signals – have only two states. For
  digital computers, we refer to binary states, 0
  and 1. “1” can be on, “0” can be off.
Examples:
 Light switch can be either on or off

 Door to a room is either open or closed
Examples of A/D Applications
 Microphones          - take your voice varying pressure waves in the
  air and convert them into varying electrical signals
 Strain    Gages - 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
Just what does an
A/D converter DO?

   Converts analog signals into binary words
Analog  Digital Conversion
2-Step Process:

 Quantizing    - breaking down analog value is a
  set of finite states
 Encoding - assigning a digital word or
  number to each state and matching it to the
  input signal
Step 1: Quantizing
                         Output   Discrete Voltage
Example:                 States   Ranges (V)
  You have 0-10V         0        0.00-1.25
  signals. Separate them 1        1.25-2.50
  into a set of discrete
                         2        2.50-3.75
  states with 1.25V
  increments. (How did 3          3.75-5.00
  we get 1.25V? See      4        5.00-6.25
  next slide…)           5        6.25-7.50
                         6        7.50-8.75
                         7        8.75-10.0
Quantizing
The number of possible states that the
  converter can output is:
                      N=2n
where n is the number of bits in the AD converter

Example: For a 3 bit A/D converter, N=23=8.

Analog quantization size:
Q=(Vmax-Vmin)/N = (10V – 0V)/8 = 1.25V
Encoding
                            Output   Output Binary Equivalent
   Here we assign the      States
    digital value (binary     0                000
    number) to each
                              1                001
    state for the
                              2                010
    computer to read.
                              3                011
                              4                100
                              5                101
                              6                110
                              7                111
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.
Resolution

   Resolution (number of discrete values the converter can
    produce) = Analog Quantization size (Q)
    (Q) = Vrange / 2^n, where Vrange is the range of analog
    voltages which can be represented

   limited by signal-to-noise ratio (should be around 6dB)

   In our previous example: Q = 1.25V, this is a high
    resolution. A lower resolution would be if we used a 2-bit
    converter, then the resolution would be 10/2^2 = 2.50V.
Sampling Rate




Frequency at which ADC evaluates analog signal. As we
see in the second picture, evaluating the signal more often
more accurately depicts the ADC signal.
Aliasing
   Occurs when the input signal is changing much
    faster than the sample rate.

    For example, a 2 kHz sine wave being sampled
    at 1.5 kHz would be reconstructed as a 500 Hz
    (the aliased signal) sine wave.

Nyquist Rule:
 Use a sampling frequency at least twice as high
  as the maximum frequency in the signal to avoid
  aliasing.
Overall Better Accuracy
   Increasing both the sampling rate and the resolution
    you can obtain better accuracy in your AD signals.
A/D Converter Types By Danny
Carpenter


  Converters


      Flash ADC
      Delta-Sigma ADC
      Dual Slope (integrating) ADC
      Successive Approximation ADC
Flash ADC
 Consistsof a series of comparators, each
 one comparing the input signal to a unique
 reference voltage.

 The comparator outputs connect to the inputs
 of a priority encoder circuit, which produces a
 binary output
Flash ADC Circuit
How Flash Works
 As  the analog input voltage exceeds the
  reference voltage at each comparator, the
  comparator outputs will sequentially saturate
  to a high state.
 The priority encoder generates a binary
  number based on the highest-order active
  input, ignoring all other active inputs.
ADC Output
Flash

        Advantages                          Disadvantages
   Simplest in terms of
    operational theory                  Lower resolution
                                        Expensive
   Most efficient in terms             For each additional
    of speed, very fast                  output bit, the number
         limited only in terms of       of comparators is
          comparator and gate
          propagation delays
                                         doubled
                                              i.e. for 8 bits, 256
                                               comparators needed
Sigma Delta ADC
   Over sampled input
    signal goes to the
    integrator
   Output of integration is
    compared to GND
   Iterates to produce a
    serial bit stream
   Output is serial bit
    stream with # of 1’s
    proportional to Vin
Outputs of Delta Sigma
Sigma-Delta

        Advantages                Disadvantages

   High resolution            Slow due to
                                oversampling
   No precision external
    components needed
Dual Slope Converter
            Vin
                      tFIX        tmeas
                                            t



   The sampled signal charges a capacitor for a fixed
    amount of time
   By integrating over time, noise integrates out of the
    conversion
   Then the ADC discharges the capacitor at a fixed
    rate with the counter counts the ADC’s output bits.
    A longer discharge time results in a higher count
Dual Slope Converter
         Advantages                   Disadvantages
   Input signal is averaged      Slow
   Greater noise immunity        High precision external
    than other ADC types           components required to
   High accuracy                  achieve accuracy
Successive Approximation ADC By
Stephanie Pohl

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
Successive Approximation
ADC Circuit
Output
Successive Approximation
          Advantages                       Disadvantages

   Capable of high speed and         Higher resolution
    reliable                           successive approximation
   Medium accuracy compared           ADC’s will be slower
    to other ADC types                Speed limited to ~5Msps
   Good tradeoff between
    speed and cost

   Capable of outputting the
    binary number in serial (one
    bit at a time) format.
ADC Types Comparison

                    ADC Resolution Comparison
       Dual Slope
            Flash
Successive Approx
     Sigma-Delta

                    0       5      10        15         20      25
                                 Resolution (Bits)



    Type                    Speed (relative)         Cost (relative)
    Dual Slope              Slow                     Med
    Flash                   Very Fast                High
    Successive Appox        Medium – Fast            Low
    Sigma-Delta             Slow                     Low
Successive Approximation
Example
   10 bit resolution or
    0.0009765625V of Vref
   Vin= .6 volts
   Vref=1volts
   Find the digital value of
    Vin
Successive Approximation
 MSB    (bit 9)
    Divided Vref by 2
    Compare Vref /2 with Vin
    If Vin is greater than Vref /2 , turn MSB on (1)
    If Vin is less than Vref /2 , turn MSB off (0)
    Vin =0.6V and V=0.5
    Since Vin>V, MSB = 1 (on)
Successive Approximation
   Next Calculate MSB-1 (bit 8)
       Compare Vin=0.6 V to V=Vref/2 + Vref/4= 0.5+0.25 =0.75V
       Since 0.6<0.75, MSB is turned off
   Calculate MSB-2 (bit 7)
       Go back to the last voltage that caused it to be turned on
        (Bit 9) and add it to Vref/8, and compare with Vin
       Compare Vin with (0.5+Vref/8)=0.625
       Since 0.6<0.625, MSB is turned off
Successive Approximation
 Calculate   the state of MSB-3 (bit 6)
    Go to the last bit that caused it to be turned on (In
     this case MSB-1) and add it to Vref/16, and
     compare it to Vin
    Compare Vin to V= 0.5 + Vref/16= 0.5625
    Since 0.6>0.5625, MSB-3=1 (turned on)
Successive Approximation
 This   process continues for all the remaining
 bits.
The HC11 and ADC
 By Harry “Bo” Marr
ADC Flow Diagram in HC11
                                       8 channel/bit input
                                        VRL = 0 volts
Pin: 7   6    5   4   3   2   1   0
                                        VRH = 5 volts

                                        Digital input on PE
         Port E (analog input)

                                              ADR1 - result 1
         Analog Multiplexer
                                              ADR2 - result 2
                                  Result
             A/D Converter        Register    ADR3 - result 3
                                  Interface
                                              ADR4 - result 4
Stuctural Diagram of ADC on
            HC11
   PE0
                  8-bits CAPACITIVE DAC
   AN0
                  WITH SAMPLE AND HOLD                                  VRH
   PE1
   AN1
   PE2
                  SUCCESSIVE APPROXIMATION
   AN2
                  REGISTER AND CONTROL                                  VRL
   PE3
   AN3   ANALOG
         MUX
   PE4
   AN4
   PE5
                                                                      INTERNAL
   AN5
                                                                      DATA BUS
   PE6




                                                   MULT
                                                    SCAN
                                             CCF




                                                     CD
                                                     CC
                                                     CB
                                                     CA
   AN6
   PE7
   AN7                                      ADCTL A/D CONTROL

                    RESULT REGISTER INTERFACE

         ADR1        ADR2                 ADR3             ADR4

                                               P 64 M68HC11 Family Data Sheet
ADC by Clock cycle

                      Conversion Sequence
   E Clock cycles:


                 Sample (12)        Bit 7 (4) 6 (2)_ (2)0 (2) End
ADPU = 1
                                                              (2)
                                   Successive approximation


             1st, ADR1 2nd, ADR2 3rd, ADR3 4th, ADR4 CCF
           0          32        64        96
Output States   Discretized      Binary Coded
                Voltage Range    Equivalent
0               0 - 19.5 mV      $00
1               19.6 - 39.0 mV   $01
2               39.1 - 58.5 mV   $02
…               …                …
255             4.98 - 5.0 V     $FF


      • HC11 => 8 bits => 28 = 256
      • HC11 accepts 0 – 5V range
      • Voltage Range = (VRH – VRL)/255 * State
ADCTL Register
                     $1030

       CCF |No Op| SCAN |MULT | CD       | CC   | CB   | CA
Read    0
        0             0      0      0       0      0      0
              -
Bit:    7     6       5      4      3       2      1       0
   •   CCF: (1) after conversion cycle, (0) when written to.
   •   SCAN: Continuous (1) or Not (0)
   •   MULT: Multi-Channel (1) or Single Channel (0)
          0 = Single Channel is read 4 times
   •   CD:CC:CB:CA = 0000 – 0111 Chooses input channel
          Chooses Channel Group when MULT = 1
   •   Pg 27 – 28 in Reference Manual
Options Register
                           $1039


       ADPU |CSEL | IRQE |DLY | CME | NoOp| CR1                     | CR0

         1        0          0         1         1          -   0    0

Bit:    7         6         5          4         3          2   1     0
   • ADPU: Power up (1) wait 100ms,      No conversion (0)
   • CSEL: use internal system clock (1), use E-clock (0)
   • IRQE: Falling Edge interupt (1), low level interrupt (0)
   • DLY: Delay enabled (1), Delay disabled (0)
   • CME: Monitor Clock (1), Don’t monitor clock (0)
   •CR[1:0] = Divide E clock by 1, 4, 16, 64.
   • pg 38 in reference manual
Analog to Digital Results
            Register: $1031 - $1034

                         ADR2 ($1032)

       0      0      0       0      0      0      1       0

Bit:   7      6      5      4       3      2      1       0

       • Register $1032 = $02
       • Options Register ($1039) = $80
       • ADCTL Register ($1030) = $00
       • Just read in signal between 19.2 – 39.0 mV on pin E1!
OPTION ($1039) ADPU CSEL IREQ DLY CME    0   CR1 CR2

           ADCTL ($1030) CCF     0   SCAN MULT CD   CC CB   CA


OPTION     EQU     $1039
ADCTL      EQU     $1030
ADR1       EQU     $1031
ADRESULT   RMB     1                                     Turn on charge pump
           ORG     $2000                                 and select clock source
           LDAA    #$80        ;ADPU=1,CSEL=0
           STAA    OPTION      ;   “
                                                         Delay for charge pump
           LDY     #30         ;delay for 105 µs         to stabilize
DELAY      DEY
           BNE     DELAY
           LDAA    #$10     ;SCAN=0,MULT=1,CHAN GRP=00 Set ADCTL to
           STAA    ADCTL    ; start conversion           start conversion
           LDX     #ADCTL ;check for complete flag
           BRCLR   0,X #$80 * ;CCF is bit 7
                                                 Wait until conv. complete
           LDAA    ADR1     ;read chan. 0
           STAA    ADRESULT ;store in result                  Read result
           SWI
References
   Ron Bishop, “Basic Microprocessors and the 6800”,
    Hayden Book Company Inc., 1979
   Motorola, “MC68HC11E Family Data Sheet”,
    Motorola, Inc., Rev. 5, 2003.
   Motorola, “MC68HC11 Reference Manual”,
    Motorola, Inc., Rev. 4, 2002.
   Motorola, “MC68HC11 Programming Reference
    Guide”, Motorola, Inc., Rev. 2, 2003.
Any Questions?

Contenu connexe

Tendances

Digital modulation techniques
Digital modulation techniquesDigital modulation techniques
Digital modulation techniquesSakshi Verma
 
Successive Approximation ADC
Successive Approximation ADC Successive Approximation ADC
Successive Approximation ADC AbhayDhupar
 
Pulse code modulation
Pulse code modulationPulse code modulation
Pulse code modulationNaveen Sihag
 
Analog to digital converter
Analog to digital converterAnalog to digital converter
Analog to digital convertershrutishreya14
 
Power dissipation cmos
Power dissipation cmosPower dissipation cmos
Power dissipation cmosRajesh Tiwary
 
Successive approximation adc
Successive approximation adcSuccessive approximation adc
Successive approximation adcMaria Roshan
 
LPC 2148 ARM MICROCONTROLLER
LPC 2148 ARM MICROCONTROLLERLPC 2148 ARM MICROCONTROLLER
LPC 2148 ARM MICROCONTROLLERsravannunna24
 
Delta modulation
Delta modulationDelta modulation
Delta modulationmpsrekha83
 
DAC , Digital to analog Converter
DAC , Digital to analog ConverterDAC , Digital to analog Converter
DAC , Digital to analog ConverterHossam Zein
 
Digital modulation techniques...
Digital modulation techniques...Digital modulation techniques...
Digital modulation techniques...Nidhi Baranwal
 
Data converter fundamentals
Data converter fundamentalsData converter fundamentals
Data converter fundamentalsAbhishek Kadam
 
Rf power amplifier design
Rf power amplifier designRf power amplifier design
Rf power amplifier designvenkateshp100
 
single stage amplifier Unit 5 AMVLSI
single stage amplifier Unit 5 AMVLSIsingle stage amplifier Unit 5 AMVLSI
single stage amplifier Unit 5 AMVLSIHarsha Raju
 
8086 microprocessor
8086 microprocessor8086 microprocessor
8086 microprocessorVikas Gupta
 

Tendances (20)

Digital modulation techniques
Digital modulation techniquesDigital modulation techniques
Digital modulation techniques
 
Communication protocols - Embedded Systems
Communication protocols - Embedded SystemsCommunication protocols - Embedded Systems
Communication protocols - Embedded Systems
 
Successive Approximation ADC
Successive Approximation ADC Successive Approximation ADC
Successive Approximation ADC
 
Pulse code modulation
Pulse code modulationPulse code modulation
Pulse code modulation
 
Analog to digital converter
Analog to digital converterAnalog to digital converter
Analog to digital converter
 
ADC & DAC
ADC & DACADC & DAC
ADC & DAC
 
Power dissipation cmos
Power dissipation cmosPower dissipation cmos
Power dissipation cmos
 
Successive approximation adc
Successive approximation adcSuccessive approximation adc
Successive approximation adc
 
LPC 2148 ARM MICROCONTROLLER
LPC 2148 ARM MICROCONTROLLERLPC 2148 ARM MICROCONTROLLER
LPC 2148 ARM MICROCONTROLLER
 
Delta modulation
Delta modulationDelta modulation
Delta modulation
 
Analog to digital converters, adc
Analog to digital converters, adcAnalog to digital converters, adc
Analog to digital converters, adc
 
DAC , Digital to analog Converter
DAC , Digital to analog ConverterDAC , Digital to analog Converter
DAC , Digital to analog Converter
 
Digital modulation techniques...
Digital modulation techniques...Digital modulation techniques...
Digital modulation techniques...
 
ADC and DAC Best Ever Pers
ADC and DAC Best Ever PersADC and DAC Best Ever Pers
ADC and DAC Best Ever Pers
 
ADC
ADCADC
ADC
 
Eca unit 6
Eca unit 6Eca unit 6
Eca unit 6
 
Data converter fundamentals
Data converter fundamentalsData converter fundamentals
Data converter fundamentals
 
Rf power amplifier design
Rf power amplifier designRf power amplifier design
Rf power amplifier design
 
single stage amplifier Unit 5 AMVLSI
single stage amplifier Unit 5 AMVLSIsingle stage amplifier Unit 5 AMVLSI
single stage amplifier Unit 5 AMVLSI
 
8086 microprocessor
8086 microprocessor8086 microprocessor
8086 microprocessor
 

En vedette

Successive Approximation ADC
Successive Approximation ADCSuccessive Approximation ADC
Successive Approximation ADCankit_master
 
Adc presentation 6 3-07
Adc presentation 6 3-07Adc presentation 6 3-07
Adc presentation 6 3-07DOWGZ
 
Cs2204 analog & digital communication question bank
Cs2204  analog & digital communication question bankCs2204  analog & digital communication question bank
Cs2204 analog & digital communication question bankparthi_arjun
 
Instrument transformer CT & PT
Instrument transformer CT & PTInstrument transformer CT & PT
Instrument transformer CT & PTChandan Singh
 
adc converter basics
adc converter basicsadc converter basics
adc converter basicshacker1500
 
Analog to Digital Converter
Analog to Digital ConverterAnalog to Digital Converter
Analog to Digital ConverterRonak Machhi
 
Ppt of current transformer
Ppt of current transformerPpt of current transformer
Ppt of current transformerROOPAL PANCHOLI
 
instrument transformer
instrument transformerinstrument transformer
instrument transformerNishant Kumar
 
ANALOG TO DIGITAL AND DIGITAL TO ANALOG CONVERTER
ANALOG TO DIGITAL AND DIGITAL TO ANALOG CONVERTERANALOG TO DIGITAL AND DIGITAL TO ANALOG CONVERTER
ANALOG TO DIGITAL AND DIGITAL TO ANALOG CONVERTERSripati Mahapatra
 
Literature review in research
Literature review in researchLiterature review in research
Literature review in researchNursing Path
 
Research Proposal Presentation
Research Proposal PresentationResearch Proposal Presentation
Research Proposal PresentationVal MacMillan
 
The Research Proposal
The Research ProposalThe Research Proposal
The Research Proposalguest349908
 
Sample Business Proposal Presentation
Sample Business Proposal PresentationSample Business Proposal Presentation
Sample Business Proposal PresentationDaryll Cabagay
 

En vedette (15)

Successive Approximation ADC
Successive Approximation ADCSuccessive Approximation ADC
Successive Approximation ADC
 
Adc presentation 6 3-07
Adc presentation 6 3-07Adc presentation 6 3-07
Adc presentation 6 3-07
 
Cs2204 analog & digital communication question bank
Cs2204  analog & digital communication question bankCs2204  analog & digital communication question bank
Cs2204 analog & digital communication question bank
 
Successive approximation
Successive approximationSuccessive approximation
Successive approximation
 
Instrument transformer CT & PT
Instrument transformer CT & PTInstrument transformer CT & PT
Instrument transformer CT & PT
 
adc converter basics
adc converter basicsadc converter basics
adc converter basics
 
Analog to Digital Converter
Analog to Digital ConverterAnalog to Digital Converter
Analog to Digital Converter
 
Ppt of current transformer
Ppt of current transformerPpt of current transformer
Ppt of current transformer
 
instrument transformer
instrument transformerinstrument transformer
instrument transformer
 
ANALOG TO DIGITAL AND DIGITAL TO ANALOG CONVERTER
ANALOG TO DIGITAL AND DIGITAL TO ANALOG CONVERTERANALOG TO DIGITAL AND DIGITAL TO ANALOG CONVERTER
ANALOG TO DIGITAL AND DIGITAL TO ANALOG CONVERTER
 
Literature review in research
Literature review in researchLiterature review in research
Literature review in research
 
Research: Proposal
Research: Proposal Research: Proposal
Research: Proposal
 
Research Proposal Presentation
Research Proposal PresentationResearch Proposal Presentation
Research Proposal Presentation
 
The Research Proposal
The Research ProposalThe Research Proposal
The Research Proposal
 
Sample Business Proposal Presentation
Sample Business Proposal PresentationSample Business Proposal Presentation
Sample Business Proposal Presentation
 

Similaire à Adc f05

analog to digital converter.ppt
analog to digital converter.pptanalog to digital converter.ppt
analog to digital converter.pptDreamers6
 
analog to digital adn digital to analog .ppt
analog to digital adn digital to analog .pptanalog to digital adn digital to analog .ppt
analog to digital adn digital to analog .pptdaredevil15082004
 
Chap 3. signal processing elemnt part three
Chap 3. signal processing elemnt part threeChap 3. signal processing elemnt part three
Chap 3. signal processing elemnt part threeYemaneBayray
 
digital anlage c converter for digital .ppt
digital anlage c converter for digital .pptdigital anlage c converter for digital .ppt
digital anlage c converter for digital .pptAbdullahOmar64
 
Adc by anil kr yadav
Adc by anil kr yadavAdc by anil kr yadav
Adc by anil kr yadavAnil Yadav
 
Fundamental of MSD Module-III Part-a.ppt
Fundamental of MSD Module-III Part-a.pptFundamental of MSD Module-III Part-a.ppt
Fundamental of MSD Module-III Part-a.pptBEVARAVASUDEVAAP1813
 
Top schools in noida
Top schools in noidaTop schools in noida
Top schools in noidaEdhole.com
 
Top schools in noida
Top schools in noidaTop schools in noida
Top schools in noidaEdhole.com
 
Analog-Digital-Converter.ppt
Analog-Digital-Converter.pptAnalog-Digital-Converter.ppt
Analog-Digital-Converter.pptssuserf2cc17
 
Analog-Digital-Converter for nyquiest model.ppt
Analog-Digital-Converter for nyquiest model.pptAnalog-Digital-Converter for nyquiest model.ppt
Analog-Digital-Converter for nyquiest model.pptBEVARAVASUDEVAAP1813
 
Analog-Digital-Converter.ppt
Analog-Digital-Converter.pptAnalog-Digital-Converter.ppt
Analog-Digital-Converter.pptanilvasudev19
 

Similaire à Adc f05 (20)

analog to digital converter.ppt
analog to digital converter.pptanalog to digital converter.ppt
analog to digital converter.ppt
 
analog to digital adn digital to analog .ppt
analog to digital adn digital to analog .pptanalog to digital adn digital to analog .ppt
analog to digital adn digital to analog .ppt
 
Adc dac converter
Adc dac converterAdc dac converter
Adc dac converter
 
Chap 3. signal processing elemnt part three
Chap 3. signal processing elemnt part threeChap 3. signal processing elemnt part three
Chap 3. signal processing elemnt part three
 
digital anlage c converter for digital .ppt
digital anlage c converter for digital .pptdigital anlage c converter for digital .ppt
digital anlage c converter for digital .ppt
 
Adc by anil kr yadav
Adc by anil kr yadavAdc by anil kr yadav
Adc by anil kr yadav
 
ADC - Types (Analog to Digital Converter)
ADC - Types (Analog to Digital Converter)ADC - Types (Analog to Digital Converter)
ADC - Types (Analog to Digital Converter)
 
ADC & DAC
ADC & DAC ADC & DAC
ADC & DAC
 
Prese000
Prese000Prese000
Prese000
 
Fundamental of MSD Module-III Part-a.ppt
Fundamental of MSD Module-III Part-a.pptFundamental of MSD Module-III Part-a.ppt
Fundamental of MSD Module-III Part-a.ppt
 
Abcs of_adcs
Abcs of_adcsAbcs of_adcs
Abcs of_adcs
 
Unit 6.pptx
Unit 6.pptxUnit 6.pptx
Unit 6.pptx
 
3BITFLASHADC
3BITFLASHADC3BITFLASHADC
3BITFLASHADC
 
Top schools in noida
Top schools in noidaTop schools in noida
Top schools in noida
 
Ditial to Analog Converter
Ditial to Analog ConverterDitial to Analog Converter
Ditial to Analog Converter
 
Top schools in noida
Top schools in noidaTop schools in noida
Top schools in noida
 
Analog-Digital-Converter.ppt
Analog-Digital-Converter.pptAnalog-Digital-Converter.ppt
Analog-Digital-Converter.ppt
 
Analog-Digital-Converter.ppt
Analog-Digital-Converter.pptAnalog-Digital-Converter.ppt
Analog-Digital-Converter.ppt
 
Analog-Digital-Converter for nyquiest model.ppt
Analog-Digital-Converter for nyquiest model.pptAnalog-Digital-Converter for nyquiest model.ppt
Analog-Digital-Converter for nyquiest model.ppt
 
Analog-Digital-Converter.ppt
Analog-Digital-Converter.pptAnalog-Digital-Converter.ppt
Analog-Digital-Converter.ppt
 

Dernier

Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 

Dernier (20)

Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 

Adc f05

  • 1. Analog to Digital Converters Byron Johns Danny Carpenter Stephanie Pohl Harry “Bo” Marr October 4, 2005
  • 2. Presentation Outline  Introduction:Analog vs. Digital?  Examples of ADC Applications  Types of A/D Converters  A/D Subsystem used in the microcontroller chip  Examples of Analog to Digital Signal Conversion  Successive Approximation ADC
  • 3. First Presenter Byron Johns
  • 4. Analog Signals Analog signals – directly measurable quantities in terms of some other quantity Examples:  Thermometer – mercury height rises as temperature rises  Car Speedometer – Needle moves farther right as you accelerate  Stereo – Volume increases as you turn the knob.
  • 5. Digital Signals Digital Signals – have only two states. For digital computers, we refer to binary states, 0 and 1. “1” can be on, “0” can be off. Examples:  Light switch can be either on or off  Door to a room is either open or closed
  • 6. Examples of A/D Applications  Microphones - take your voice varying pressure waves in the air and convert them into varying electrical signals  Strain Gages - 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
  • 7. Just what does an A/D converter DO?  Converts analog signals into binary words
  • 8. Analog  Digital Conversion 2-Step Process:  Quantizing - breaking down analog value is a set of finite states  Encoding - assigning a digital word or number to each state and matching it to the input signal
  • 9. Step 1: Quantizing Output Discrete Voltage Example: States Ranges (V) You have 0-10V 0 0.00-1.25 signals. Separate them 1 1.25-2.50 into a set of discrete 2 2.50-3.75 states with 1.25V increments. (How did 3 3.75-5.00 we get 1.25V? See 4 5.00-6.25 next slide…) 5 6.25-7.50 6 7.50-8.75 7 8.75-10.0
  • 10. Quantizing The number of possible states that the converter can output is: N=2n where n is the number of bits in the AD converter Example: For a 3 bit A/D converter, N=23=8. Analog quantization size: Q=(Vmax-Vmin)/N = (10V – 0V)/8 = 1.25V
  • 11. Encoding Output Output Binary Equivalent  Here we assign the States digital value (binary 0 000 number) to each 1 001 state for the 2 010 computer to read. 3 011 4 100 5 101 6 110 7 111
  • 12. 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.
  • 13. Resolution  Resolution (number of discrete values the converter can produce) = Analog Quantization size (Q) (Q) = Vrange / 2^n, where Vrange is the range of analog voltages which can be represented  limited by signal-to-noise ratio (should be around 6dB)  In our previous example: Q = 1.25V, this is a high resolution. A lower resolution would be if we used a 2-bit converter, then the resolution would be 10/2^2 = 2.50V.
  • 14. Sampling Rate Frequency at which ADC evaluates analog signal. As we see in the second picture, evaluating the signal more often more accurately depicts the ADC signal.
  • 15. Aliasing  Occurs when the input signal is changing much faster than the sample rate. For example, a 2 kHz sine wave being sampled at 1.5 kHz would be reconstructed as a 500 Hz (the aliased signal) sine wave. Nyquist Rule:  Use a sampling frequency at least twice as high as the maximum frequency in the signal to avoid aliasing.
  • 16. Overall Better Accuracy  Increasing both the sampling rate and the resolution you can obtain better accuracy in your AD signals.
  • 17. A/D Converter Types By Danny Carpenter  Converters  Flash ADC  Delta-Sigma ADC  Dual Slope (integrating) ADC  Successive Approximation ADC
  • 18. Flash ADC  Consistsof a series of comparators, each one comparing the input signal to a unique reference voltage.  The comparator outputs connect to the inputs of a priority encoder circuit, which produces a binary output
  • 20. How Flash Works  As the analog input voltage exceeds the reference voltage at each comparator, the comparator outputs will sequentially saturate to a high state.  The priority encoder generates a binary number based on the highest-order active input, ignoring all other active inputs.
  • 22. Flash Advantages Disadvantages  Simplest in terms of operational theory  Lower resolution  Expensive  Most efficient in terms  For each additional of speed, very fast output bit, the number  limited only in terms of of comparators is comparator and gate propagation delays doubled  i.e. for 8 bits, 256 comparators needed
  • 23. Sigma Delta ADC  Over sampled input signal goes to the integrator  Output of integration is compared to GND  Iterates to produce a serial bit stream  Output is serial bit stream with # of 1’s proportional to Vin
  • 25. Sigma-Delta Advantages Disadvantages  High resolution  Slow due to oversampling  No precision external components needed
  • 26. Dual Slope Converter Vin tFIX tmeas t  The sampled signal charges a capacitor for a fixed amount of time  By integrating over time, noise integrates out of the conversion  Then the ADC discharges the capacitor at a fixed rate with the counter counts the ADC’s output bits. A longer discharge time results in a higher count
  • 27. Dual Slope Converter Advantages Disadvantages  Input signal is averaged  Slow  Greater noise immunity  High precision external than other ADC types components required to  High accuracy achieve accuracy
  • 28. Successive Approximation ADC By Stephanie Pohl 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
  • 31. Successive Approximation Advantages Disadvantages  Capable of high speed and  Higher resolution reliable successive approximation  Medium accuracy compared ADC’s will be slower to other ADC types  Speed limited to ~5Msps  Good tradeoff between speed and cost  Capable of outputting the binary number in serial (one bit at a time) format.
  • 32. ADC Types Comparison ADC Resolution Comparison Dual Slope Flash Successive Approx Sigma-Delta 0 5 10 15 20 25 Resolution (Bits) Type Speed (relative) Cost (relative) Dual Slope Slow Med Flash Very Fast High Successive Appox Medium – Fast Low Sigma-Delta Slow Low
  • 33. Successive Approximation Example  10 bit resolution or 0.0009765625V of Vref  Vin= .6 volts  Vref=1volts  Find the digital value of Vin
  • 34. Successive Approximation  MSB (bit 9)  Divided Vref by 2  Compare Vref /2 with Vin  If Vin is greater than Vref /2 , turn MSB on (1)  If Vin is less than Vref /2 , turn MSB off (0)  Vin =0.6V and V=0.5  Since Vin>V, MSB = 1 (on)
  • 35. Successive Approximation  Next Calculate MSB-1 (bit 8)  Compare Vin=0.6 V to V=Vref/2 + Vref/4= 0.5+0.25 =0.75V  Since 0.6<0.75, MSB is turned off  Calculate MSB-2 (bit 7)  Go back to the last voltage that caused it to be turned on (Bit 9) and add it to Vref/8, and compare with Vin  Compare Vin with (0.5+Vref/8)=0.625  Since 0.6<0.625, MSB is turned off
  • 36. Successive Approximation  Calculate the state of MSB-3 (bit 6)  Go to the last bit that caused it to be turned on (In this case MSB-1) and add it to Vref/16, and compare it to Vin  Compare Vin to V= 0.5 + Vref/16= 0.5625  Since 0.6>0.5625, MSB-3=1 (turned on)
  • 37. Successive Approximation  This process continues for all the remaining bits.
  • 38. The HC11 and ADC By Harry “Bo” Marr
  • 39.
  • 40. ADC Flow Diagram in HC11 8 channel/bit input  VRL = 0 volts Pin: 7 6 5 4 3 2 1 0  VRH = 5 volts  Digital input on PE Port E (analog input) ADR1 - result 1 Analog Multiplexer ADR2 - result 2 Result A/D Converter Register ADR3 - result 3 Interface ADR4 - result 4
  • 41. Stuctural Diagram of ADC on HC11 PE0 8-bits CAPACITIVE DAC AN0 WITH SAMPLE AND HOLD VRH PE1 AN1 PE2 SUCCESSIVE APPROXIMATION AN2 REGISTER AND CONTROL VRL PE3 AN3 ANALOG MUX PE4 AN4 PE5 INTERNAL AN5 DATA BUS PE6 MULT SCAN CCF CD CC CB CA AN6 PE7 AN7 ADCTL A/D CONTROL RESULT REGISTER INTERFACE ADR1 ADR2 ADR3 ADR4 P 64 M68HC11 Family Data Sheet
  • 42. ADC by Clock cycle Conversion Sequence E Clock cycles: Sample (12) Bit 7 (4) 6 (2)_ (2)0 (2) End ADPU = 1 (2) Successive approximation 1st, ADR1 2nd, ADR2 3rd, ADR3 4th, ADR4 CCF 0 32 64 96
  • 43. Output States Discretized Binary Coded Voltage Range Equivalent 0 0 - 19.5 mV $00 1 19.6 - 39.0 mV $01 2 39.1 - 58.5 mV $02 … … … 255 4.98 - 5.0 V $FF • HC11 => 8 bits => 28 = 256 • HC11 accepts 0 – 5V range • Voltage Range = (VRH – VRL)/255 * State
  • 44. ADCTL Register $1030 CCF |No Op| SCAN |MULT | CD | CC | CB | CA Read 0 0 0 0 0 0 0 0 - Bit: 7 6 5 4 3 2 1 0 • CCF: (1) after conversion cycle, (0) when written to. • SCAN: Continuous (1) or Not (0) • MULT: Multi-Channel (1) or Single Channel (0) 0 = Single Channel is read 4 times • CD:CC:CB:CA = 0000 – 0111 Chooses input channel Chooses Channel Group when MULT = 1 • Pg 27 – 28 in Reference Manual
  • 45. Options Register $1039 ADPU |CSEL | IRQE |DLY | CME | NoOp| CR1 | CR0 1 0 0 1 1 - 0 0 Bit: 7 6 5 4 3 2 1 0 • ADPU: Power up (1) wait 100ms, No conversion (0) • CSEL: use internal system clock (1), use E-clock (0) • IRQE: Falling Edge interupt (1), low level interrupt (0) • DLY: Delay enabled (1), Delay disabled (0) • CME: Monitor Clock (1), Don’t monitor clock (0) •CR[1:0] = Divide E clock by 1, 4, 16, 64. • pg 38 in reference manual
  • 46. Analog to Digital Results Register: $1031 - $1034 ADR2 ($1032) 0 0 0 0 0 0 1 0 Bit: 7 6 5 4 3 2 1 0 • Register $1032 = $02 • Options Register ($1039) = $80 • ADCTL Register ($1030) = $00 • Just read in signal between 19.2 – 39.0 mV on pin E1!
  • 47. OPTION ($1039) ADPU CSEL IREQ DLY CME 0 CR1 CR2 ADCTL ($1030) CCF 0 SCAN MULT CD CC CB CA OPTION EQU $1039 ADCTL EQU $1030 ADR1 EQU $1031 ADRESULT RMB 1 Turn on charge pump ORG $2000 and select clock source LDAA #$80 ;ADPU=1,CSEL=0 STAA OPTION ; “ Delay for charge pump LDY #30 ;delay for 105 µs to stabilize DELAY DEY BNE DELAY LDAA #$10 ;SCAN=0,MULT=1,CHAN GRP=00 Set ADCTL to STAA ADCTL ; start conversion start conversion LDX #ADCTL ;check for complete flag BRCLR 0,X #$80 * ;CCF is bit 7 Wait until conv. complete LDAA ADR1 ;read chan. 0 STAA ADRESULT ;store in result Read result SWI
  • 48. References  Ron Bishop, “Basic Microprocessors and the 6800”, Hayden Book Company Inc., 1979  Motorola, “MC68HC11E Family Data Sheet”, Motorola, Inc., Rev. 5, 2003.  Motorola, “MC68HC11 Reference Manual”, Motorola, Inc., Rev. 4, 2002.  Motorola, “MC68HC11 Programming Reference Guide”, Motorola, Inc., Rev. 2, 2003.