Analog to Digital Converters (ADC) 1

Slides:



Advertisements
Similar presentations
EET260 Introduction to digital communication
Advertisements

Analog to Digital Conversion (ADC)
Analog-to-Digital Converter (ADC) And
Lecture 17: Analog to Digital Converters Lecturers: Professor John Devlin Mr Robert Ross.
555 Timer ©Paul Godin Updated February Oscillators ◊We have looked at simple oscillator designs using an inverter, and had a brief look at crystal.
EET 252 Unit 6 Analog-to-Digital Conversion
Digital to Analog and Analog to Digital Conversion
Digital Fundamentals Tenth Edition Floyd Chapter 12.
Announcements Assignment 8 posted –Due Friday Dec 2 nd. A bit longer than others. Project progress? Dates –Thursday 12/1 review lecture –Tuesday 12/6 project.
CE 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Analog to Digital (and back again) Interfacing a microprocessor-based system.
Analog to Digital Conversion. Introduction  An analog-to-digital converter (ADC, A/D, or A to D) is a device that converts continuous signals to discrete.
LSU 06/04/2007Electronics 71 Analog to Digital Converters Electronics Unit – Lecture 7 Representing a continuously varying physical quantity by a sequence.
5/4/2006BAE Analog to Digital (A/D) Conversion An overview of A/D techniques.
Analog to Digital Converters (ADC) 2 ©Paul Godin Created April 2008.
Lecture 9: D/A and A/D Converters
Analogue to Digital Conversion
Interfacing Analog and Digital Circuits
DIGITAL SYSTEMS TCE INTERFACING WITH ANALOG DEVICES (Week 12)
Data acquisition and manipulation
Interfacing with the Analog World Wen-Hung Liao, Ph.D.
1 Dr. Un-ki Yang Particle Physics Group or Shuster 5.15 Amplifiers and Feedback: 3.
Analogue to Digital Conversion
Embedded Systems Development and Applications
Discussion #25 – ADCECEN 3011 Conversion Mosiah 5:2 2 And they all cried with one voice, saying: Yea, we believe all the words which though has spoken.
EET260: A/D and D/A converters
Introduction to Analog-to-Digital Converters
Analogue Input/Output
PH4705/ET4305: A/D: Analogue to Digital Conversion
Digital to Analog and Analog to Digital Conversion
Digital to Analog Converters
DEEPAK.P MICROPROCESSORS AND APPLICATIONS Mr. DEEPAK P. Associate Professor ECE Department SNGCE 1.
1 Sensors and Measurements Penderia & Pengukuran ENT 164 Signal Processing Elements Hema C.R. School of Mechatronics Engineering Northern Malaysia University.
ADC & DAC Signal Conversions.
ACOE2551 Microprocessors Data Converters Analog to Digital Converters (ADC) –Convert an analog quantity (voltage, current) into a digital code Digital.
Practical Digital Design Considerations Part 1 Last Mod: January 2008 ©Paul R. Godin.
INTERFACE WITH ANALOG WORLD
Analog to Digital conversion. Introduction  The process of converting an analog signal into an equivalent digital signal is known as Analog to Digital.
Data Acquisition Systems
Analog to Digital Converters (ADC) 1 Technician Series ©Paul Godin Created April 2008 Last Edit Mar 2015 ADC 1.1.
1.1 Introduction to Basic Digital Logic ©Paul Godin Updated August 2014 gmail.com Presentation 1.
Data Acquisition ET 228 Chapter 15 Subjects Covered Analog to Digital Converter Characteristics Integrating ADCs Successive Approximation ADCs Flash ADCs.
Astable Multivibrators ©Paul Godin Created February 2007 Oscillator Basics.
Digital to Analog Converters (DAC) 1 Technician Series ©Paul Godin March 2015.
Analog-to-Digital and Digital-to-Analog Conversion
Analog Capture- Port E. Digital to Analog and Analog to Digital Conversion D/A or DAC and A/D or ADC.
Analog/Digital Conversion
Digital to Analog Converter (DAC)
Embedded Systems Design 1 Lecture Set C Interfacing the MCS-51 to: –D/A Converter –A/D Converter.
Digital-to-Analog Analog-to-Digital Week 10. Data Handling Systems  Both data about the physical world and control signals sent to interact with the.
EKT 314/4 WEEK 9 : CHAPTER 4 DATA ACQUISITION AND CONVERSION ELECTRONIC INSTRUMENTATION.
Analog-Digital Conversion. Other types of ADC i. Dual Slope ADCs use a capacitor connected to a reference voltage. the capacitor voltage starts at zero.
Digital Logic & Design Dr. Waseem Ikram Lecture 45.
Analog-Digital Conversion. Analog outputs from sensors and analog front- ends (analog signal conditioning) have to be converted into digital signals.
MECH 373 Instrumentation and Measurements
Microprocessors Data Converters Analog to Digital Converters (ADC)
Electronic Devices Ninth Edition Floyd Chapter 13.
Analog-Digital Conversion
EI205 Lecture 13 Dianguang Ma Fall 2008.
Chapter 13 Linear-Digital ICs
Analog to Digital Converters Electronics Unit – Lecture 7
Created by Luis Chioye Presented by Cynthia Sosa
Simple ADC structures.
Simple ADC structures.
Lesson 8: Analog Signal Conversion
Digital Control Systems Waseem Gulsher
Conversation between Analogue and Digital System
Introduction to Basic Digital Logic
Chapter 7 Converters.
 Both data about the physical world and control signals sent to interact with the physical world are typically "analog" or continuously varying quantities.
Presentation transcript:

Analog to Digital Converters (ADC) 1 ©Paul Godin Created April 2008

Name a few examples of ADC applications Introduction Analog to digital conversion is an important aspect of digital electronics. ADCs allow the use of real-world values with the advantages of digital electronics. There are many examples of ADC converters used in everyday applications. Name a few examples of ADC applications

Advantages of Digital Values Relatively less sensitive to distortion (noise and losses) Can be reproduced much more accurately Much easier to reconstruct a signal More storage options Can be processed mathematically and logically Easier to standardize Systems are easier to design (fewer voltage / current issues) Digital systems can be made small (low current) Display options

Challenges with ADC Converting an analog value to digital values comes with disadvantages: It takes time to convert a signal from Analog to Digital, and then to process that signal. May be too slow for some applications. Never 100% reproduction…always a series of discrete values. Requires more complex circuit design More faithful reproduction requires more bit of resolution. Requires other circuit elements such as oscillators and memory systems.

ADC Fundamentals

Sampling Voltage signals are comprised of amplitude over time. The analog signal must be converted to its digital value at specific periods of time. Sampling is the process of taking a digital value at regular time intervals.

Digital Values at timed intervals Sampling AC Value Sampling Pulses Time Digital Values at timed intervals

Sampling Increasing the number of binary values representing a voltage value improves its voltage resolution. This is called quantization. The greater the number of bits available, the greater the quantization level. Increasing the sampling frequency improves the time resolution. The more samples taken over time the more accurate the representation of the signal.

Nyquist The sampling frequency must be greater than the highest frequency component of the analog signal. The Nyquist frequency has a value of twice the highest analog frequency. Where: fsample is the sampling frequency fA(MAX) is the maximum analog frequency

Sampling Issues AC Value Digital Value Under-sampled Properly Sampled

Sampling Rates Sampling rates are selected based on: application requirements standards As an example, an exterior thermometer needn’t be sampled at the same rate as an audio application.

Audio Application of ADC When music is digitized for CDs the sampling frequency is 44.1 kHz (48 kHz for professional recording). According to the Nyquist frequency, 44.1kHz is acceptable for up to 22 kHz. Since most audio equipment functions at less than 20 kHz (and is at the upper limit of human hearing), the 44.1 kHz sampling rate is acceptable. The bit depth is 16 for CD audio.

Notes on mp3 MP3 audio files refer to their quality as a bit rate. Typical mp3 bit rates are 128kbps and 192kbps (maximum is 320kbps according to standards). MP3 is an encoding format used to compress and reduce the file size. The file follows protocols and contains various elements such as headers, file information, the compressed data, bit rate type and other information. For comparison, bit rate for uncompressed audio (CD) recording is 44.1kHz sampling x 16 bits x 2 channels (1411.2 kbps).

Digitizing Voice Human voice for applications such as telephone conversations need not be sampled at a similar rate and bit depth as music. Typically, 8 bits at 8 kHz sampling rate is used (64kbps).

Asynchronous ADC

Asynchronous ADC ADCs can be constructed from comparators. A comparator is an op amp configuration where the voltages of two inputs are compared. If the “+” input is greater than the “-” input, the output is a logic high. VDD We first investigated comparators when discussing the 555 timer’s function.

Comparator-Based ADC Analog In VDD Digital Out 2-bit “weighted” ADC

Flash ADC Priority Encoder 3-bit Flash ADC VDD Analog In Digital Out Enable 3-bit Flash ADC

synchronous ADC

Hold/Store Asynchronous ADC have limited uses. ADCs need to store measured values between the sampling pulses. The data must be held between the sampling pulses to allow the digital devices to read the values. This is necessary for values to be either processed or stored. As the input values change the digital output values change numerically, not linearly. All bits of an ADC do not change at precisely the same time due to delays. Converting a stored digital signal back to analog requires a similar clocking frequency (time needs to be reproduced). AD conversion represents a series of values at specific instances of time. The Sample and Hold creates the output “ladder” effect.

Basic ADC A basic ADC contains: differential analog inputs (VREF) for scaling Analog signal input (VIN) Output Enable for tristate-able outputs (OE) Start of Conversion input (SOC) to trigger the analog signal read cycle. End of Conversion output (EOC) to indicate that the conversion is complete, the data is on the data bus and a new input may be applied. Digital output (D0~D7).

Flash ADC with Sample/Hold VDD Analog In Priority Encoder Latch Circuit Digital Out Digital Out Enable Clock 3-bit Flash ADC

Flash ADC Flash ADCs are very fast and can convert data at high frequencies. The major disadvantage to flash ADCs is the complexity of the circuits. One op amp is required for each output value (minus one for all zero). This means that: an 8-bit Flash ADC requires 255 op amps a 12-bit Flash ADC requires 4095 op amps a 16-bit flash ADC requires 65,535 op amps

Dual Slope ADC Also known as Counter-Ramp or Digital Ramp ADC A dual slope ADC is commonly used in measurement instruments (such as DVM’s).

Dual Slope Circuit Control Logic Counter Registers Input VReference Oscillator Switch Control Logic Counter VReference Registers Digital Output

Dual Slope Function The Dual Slope ADC functions in this manner: When an analog value is applied the capacitor begins to charge in a linear manner and the oscillator passes to the counter. The counter continues to count until it reaches a predetermined value. Once this value is reached the count stops and the counter is reset. The control logic switches the input to the first comparator to a reference voltage, providing a discharge path for the capacitor. As the capacitor discharges the counter counts. When the capacitor voltage reaches the reference voltage the count stops and the value is stored in the register.

Dual Slope VReference Charge Discharge Count Count Display Display Capacitor Cycle Charge Discharge Counts from 0 to max Count Display Count Display Counter Cycle Count Reset Max Count / Restart Count

Dual Slope The Dual Slope method takes time for the conversion to occur. Each additional bit improves resolution but also adds a significant bit to the counter, costing considerable time. This type of ADC is therefore unsuitable for rapidly changing analog input. Each clocking pulse increments the counter by one. It takes (2N-1) clock cycles times the clock period for an output to be produced.

Dual Slope If using an 8-bit digital ramp with an input frequency of 500kHz, the conversion would take: If using a 12-bit digital ramp with an input frequency of 500kHz, the conversion would take:

Dual Slope The Dual Slope method is accurate and requires less circuitry than other methods. Since it uses the same clock input for both phases of conversion, a drift in the clocking frequency will not affect the accuracy of the output. The Dual Slope is best suited for applications where the measured value is relatively stable such as DC voltage measurements.

Successive-Approximation ADC The Successive-Approximation ADC is one of the most popular types in use today. It has a relatively simple configuration and an excellent conversion rate.

Successive-Approximation ADC SOC Oscillator Voltage Comparator Input EOC Control Logic Digital to Analog Converter Approximation Register Output Register Digital Output

Successive-Approximation ADC The SAC ADC functions in this manner: The approximation register is reset to all zero. When a voltage is applied to the input the approximation register’s most significant bit is changed from a 1 to a 0. The digital output of the register is converted back to analog through the DAC and is compared to the applied analog voltage. If the value is too low the 1 is left at the MSB. The next MSB is incremented, the output converted to analog and again compared to the analog input. Each bit is successively incremented and the output value compared. If the voltage from the DAC becomes higher than the applied analog value the bit is reset to 0 and the next MSB is incremented and compared. The process continues in this manner until the LSB value is reached. At the LSB, if the applied value makes the DAC output voltage higher the bit is reset to 0. The ADC has completed its process. It stores the value to the output register and provides an EOC output to indicate there is a value in the register.

SAC ADC Conversion An 8-bit SAC has a resolution of 10 mV. What is the digital output for an input of 505 mV? Solution: 50 steps = 0011 0010 51 steps = 0011 0011 A SAC produces an output below the analog voltage, therefore the output is 0011 0010 (50 steps at 10 mV per step, or 500 mV)

SAC ADC Conversion Time Theoretically each step in the comparison process takes a clock edge. It therefore takes a SAC ADC approximately the same amount of clock edges as the number of bits it handles. If a SAC ADC has an output of 8 bits and an input clocking frequency of 500 kHz, it takes approximately: 8•(1/500kHz) = 8•2µs=16µs In actual practice it may take more than one clock edge per step, but this is still faster than some other methods.

The ADC08 The ADC08 family is a relatively popular SAC ADC. VDD +VIN D0 to D7 Digital Output Vref/2 CS RD ClkOUT WR ClkIN INTR GNDAnalog GNDDigital A D

ADC08 +VIN and –VIN : Differential analog voltage. Vref/2 : Used to change the input voltage range. Normally at 2.5V when VDD = 5V, if 1.5V is applied the input range is 3.0 Volts and the resolution is changed accordingly. ClkIN: Input clock. External clocking edges can be provided to the ADC. ClkOUT: Output Clock. This ADC has an internal clocking circuit that requires external connection to an RC. T = 1.1RC Typical values: 10kΩ & 150ρF

ADC08 CS’ : Chip Select (input), tri-states the digital output for bus applications RD’: Read enable (input), enables the output from the Approximation register to the output register. WR’: Write enable (input), used to request the start of a new conversion. INTR: Interrupt, output high when the ADC is in the process of converting an input. Used to signal microprocessors or microcontrollers. Conversion time is approximately 100µs.

ADC08 Questions: What is the purpose of two grounds? How would the device be configured for an input of: 0 to 5 Volts 0 to 3 Volts -2.5 to +2.5 Volts What is the purpose of the Vref/2 input?

SAC ADC The SAC ADC is a fast, accurate device. It has few disadvantages over other methods.

END ADC1 ©Paul R. Godin prgodin°@ gmail.com There is a bug with bold I in Verdana Here is the word IN typed 3 times: IN IN IN Here is I typed 5 times: IIIII ©Paul R. Godin prgodin°@ gmail.com