Lecture 9: D/A and A/D Converters

Slides:



Advertisements
Similar presentations
Interfacing to the Analog World
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.
Digital to Analogue 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.
4-Integrating Peripherals in Embedded Systems (cont.)
COMP3221: Microprocessors and Embedded Systems
5/4/2006BAE Analog to Digital (A/D) Conversion An overview of A/D techniques.
Shuvra Das University of Detroit Mercy
10/23/2003ME DAC Lecture1 DAC Sunij Chacko Pierre Emmanuel Deliou Thomas Holst Used with modification.
Analogue to Digital Conversion
Interfacing Analog and Digital Circuits
DIGITAL SYSTEMS TCE INTERFACING WITH ANALOG DEVICES (Week 12)
Interfacing with the Analog World Wen-Hung Liao, Ph.D.
Storey: Electrical & Electronic Systems © Pearson Education Limited 2004 OHT 26.1 Data Acquisition and Conversion  Introduction  Sampling  Signal Reconstruction.
Analogue to Digital Conversion
Introduction to Data Conversion
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.
EE174 – SJSU Lecture #4 Tan Nguyen
EET260: A/D and D/A converters
PH4705/ET4305: A/D: Analogue to Digital Conversion
Digital to Analog Converters
Digital to Analog and Analog to Digital Conversion
Computer Data Acquisition and Signal Conversion Chuck Kammin ABE 425 March 27, 2006.
Electronic Devices Ninth Edition Floyd Chapter 13.
Digital to Analog Converters
Digital-to-Analog & Analog-to- Digital Conversion Anuroop Gaddam.
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.
1 4-Integrating Peripherals in Embedded Systems (cont.)
Digital-to-Analog Analog-to-Digital Microprocessor Interface.
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
ELN5622 Embedded Systems Class 7 Spring, 2003 Aaron Itskovich
AD/DA Conversion Techniques - An Overview J. G. Pett  Introductory tutorial lecture for :- ‘Analogue and digital techniques in closed-loop regulation.
Lecture 15: Digital to Analog Converters Lecturers: Professor John Devlin Mr Robert Ross.
Data Acquisition ET 228 Chapter 15 Subjects Covered Analog to Digital Converter Characteristics Integrating ADCs Successive Approximation ADCs Flash ADCs.
High Speed Analog to Digital Converter
CHAPTER 19 Data Conversion. Objectives Describe and Analyze: Analog vs. Digital Signals Resolution Digital-to-Analog Conversion Analog-to Digital Conversion.
Digital to Analog Converters (DAC) 1 Technician Series ©Paul Godin March 2015.
1 Data-Converter Circuits A/D and D/A Chapter 9 1.
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.
A/D and D/A Converters. Digital-to-analogue converters The digital-to-analog converter, known as the D/A converter (read as D-to-A converter) or the DAC,
Digital-to-Analog Analog-to-Digital
Lecture Notes / PPT UNIT III
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.
Residential Audio & Video Systems Copyright © 2005 Heathkit Company, Inc. All Rights Reserved Presentation 15 – Digital Audio and Video.
Digital to analog converter [DAC]
MECH 373 Instrumentation and Measurements
Digital-to-Analog Analog-to-Digital
Digital-to-Analog Analog-to-Digital
Electronic Devices Ninth Edition Floyd Chapter 13.
EI205 Lecture 13 Dianguang Ma Fall 2008.
Digital-to-Analog Analog-to-Digital
Lesson 8: Analog Signal Conversion
Digital Control Systems Waseem Gulsher
Conversation between Analogue and Digital System
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:

Lecture 9: D/A and A/D Converters

Objectives Recognize the relationship between digital and analog values in D/A and A/D converters. Identify two types of D/A: the binary weighted resistor network the R-2R ladder network. Explain the operation of three types of A/D: Counting Flash Successive approximation

Analog signals Analog output is typical of most transducers and sensors. In order to use the power of digital electronics with the real world, one must convert from analog to digital and vice versa. Examples of A/D Applications Microphones - take your voice varying pressure waves in the air and convert them into varying electrical signals Thermocouple – temperature measuring device converts thermal energy to electric energy Digital Multimeters

A/D and D/A converters Vmax = 7.5V Vmin = proportionality 0V 1111 1110 0000 0010 0100 0110 1000 1010 1100 0001 0011 0101 0111 1001 1011 1101 0.5V 1.0V 1.5V 2.0V 2.5V 3.0V 3.5V 4.0V 4.5V 5.0V 5.5V 6.0V 6.5V 7.0V analog to digital 4 3 2 1 t1 t2 t3 t4 0100 0110 0101 time analog input (V) Digital output digital to analog 4 3 2 1 0100 1000 0110 0101 t1 t2 t3 t4 time analog output (V) Digital input Vmin = Embedded Systems Design: A Unified Hardware/Software Introduction, (c) 2000 Vahid/Givargis

Relationship Between Analog and Digital Values An ideal A/D converts an analog voltage to a linearly proportional digital representation. The A/D has two sides: analog and digital. proportionality Vmax = 7.5V 0V 1111 1110 0000 0010 0100 0110 1000 1010 1100 0001 0011 0101 0111 1001 1011 1101 0.5V 1.0V 1.5V 2.0V 2.5V 3.0V 3.5V 4.0V 4.5V 5.0V 5.5V 6.0V 6.5V 7.0V Analog Digital Vmin 0..000 : : Vmax 1..111 Vmin = If input voltage > Vmax the digital output is 1..111. Similarly if input < Vmin the digital output is 0..000.

Relationship Between Analog and Digital Values Let the A/D converter has n-bit digital output and let A be Analog Value and D be the equivalent Digital Number. Then, proportionality Vmax = 7.5V 0V 1111 1110 0000 0010 0100 0110 1000 1010 1100 0001 0011 0101 0111 1001 1011 1101 0.5V 1.0V 1.5V 2.0V 2.5V 3.0V 3.5V 4.0V 4.5V 5.0V 5.5V 6.0V 6.5V 7.0V Analog Digital Vmin 0..000 A D Vmax 1..111 Vmin =

Some definitions Offset: minimum analog value Vmin Span (or Range): is the difference between maximum and minimum analog values Vmax - Vmin Step Size (or Resolution, Q): smallest analog change resulting from changing one bit in the digital number, or the analog difference between two consecutive digital numbers:

Example Given an 4-bit A/D converter having an analog input that ranges form 0V to 7.5V. What is the resolution of this A/D converter? Answer:

D/A Converter

Binary representation and bit weight In an electronic circuit, a combination of high voltage (+5V) and low voltage (0V) is usually used to represent a binary number. For example, a binary number 1010 is represented by D/As are electronic circuits that convert digital, (usually binary) signals (for example, 1000100) to analog electrical quantities (usually voltage) directly related to the digitally encoded input number. Weighting 23 22 21 20 Binary Digit 1 State +5V 0V

Types of D/A Converters We will consider two types of D/A: the binary weighted resistor network the R-2R ladder network.

The binary weighted resistor network Comprises of a register and resistor network Output of each bit of the register will be low (0V) or high (5V) Input resistance is inversely proportional to the binary weight of each digit.

D/A Example In the previous D/A, calculate the output voltage for an input code word 0110 if a logic 1 is 5V and a logic 0 is 0V, and R = Rf = 1k. Answer: I1 = I4 = 0 I2 = 5V / 2R = 5 / 2KΩ = 2.5 mA I3 = 5V / 4R = 5 / 4KΩ = 1.25 mA Vo = -If Rf = -(I4 + I3+ I2+ I1)Rf = -(2.5+1.25) x 1000 = -3.75 V

The binary weighted resistor network Very difficult to manufacture very accurate resistors over this range. Seldom used for digital numbers having more than 6 bits.

The R-2R Ladder Resistor Network Only two resistance values R and 2R are used. The principle of the network is based on Kirchhoff's current rule. Note that the network of resistors to the right of each node has an equivalent resistance of 2R. Bit Current 2 I/2 1 I/4 0 I/8 bit 2 bit 1 bit 0

The R-2R Ladder Resistor Network The state of the bits is used to switch a voltage source

Analog to Digital Converter

A/D converter Converts analog signals into binary words

The Sample & Hold (S/H) To measure an AC voltage at a particular instant in time, it is necessary to sample the waveform with a ‘sample and hold’ (S/H) circuit.

Types of A/D Converters There several type of A/D converters. Here, we will consider the following three types: 1. Counting type 2. Parallel or Flash 3. Successive Approximation

1- Counting A/D START Comparator Vin Control Logic clock Counter D/A Digital Output When START is received, control logic sets counter to 0, and turns on Clock sending regular pulses to the counter. As the Clock sends regular pulses to the counter, the counter outputs a digital signal to the Digital-to-Analog converter

Note that the conversion time depends on the size of the input signal As the counter counts, its output to the D/A generates a staircase ramp to the comparator. As the ramp voltage increases to the comparator, it rises closer and closer to Vin. When the ramp voltage exceeds Vin , the comparator output shifts which signals the control logic to turn off the clock. With the clock off, the counter reading is proportional to Vin. With a counting type A/D, if the signal is varying rapidly, the counter must count up and reset before each cycle can begin, making it difficult to follow the signal. Vin Note that the conversion time depends on the size of the input signal V’in Conversion time Conv.time

2- Flash Converters If very high speed conversions are needed, e.g. video conversions, the most commonly used converter is a Flash Converter. While such converters are extremely fast, they are also very costly compared to other types.

Flash Converters The resistor network is a precision voltage divider, dividing Vref into equal voltage increments to one input of the comparator. The other comparator input is the input voltage.

Flash Converters The encoder logic implements a truth table to convert the ladder of inputs to the binary number output. The cost of this type of converter stems from the circuit complexity since the number of comparators and resistors required increases rapidly. The 3-bit example required 7 converters, 6-bits would require 63, while an 8-bits converter would need 255 comparators and equivalent precision resistors.

3- Successive approximation A/D This is the most common A/D used in the laboratory environment. It is reasonably priced for large bit values, i.e. 10, 12. Its conversion times, typically ~ 10-20 s, are adequate for most laboratory functions. Good tradeoff between speed and cost Generates the digital output serially (one bit at a time).

Successive approximation A/D Vref analog input D/A Converter Digital Output Data comparator Successive Approximation Register clock STRT At the beginning, all bits from the SAR are set to zero, and conversion begins by taking STRT line low.

Successive approximation A/D Vref analog input D/A Converter Digital Output Data comparator Successive Approximation Register clock STRT First the logic in the SAR sets the MSB bit equal to 1 (+5 V). Remember that a 1 in bit 7 will be half of full scale.

Successive approximation A/D Vref analog input D/A Converter Digital Output Data comparator Successive Approximation Register clock STRT The output of the SAR feeds the D/A converter producing an output compared to the analog input voltage. If the D/A output is < Vin then the MSB is left at 1 and the next bit is then tested.

Successive approximation A/D Vref analog input D/A Converter Digital Output Data comparator Successive Approximation Register clock STRT If the D/A output is > Vin then the MSB is set to 0 and the next bit is set equal to 1.

Successive approximation A/D Successive bits are set and tested by comparing the D/A output to the input Vin in an 8 step process (for an 8-bit converter) that results in a 8-bit binary output that represents the input voltage. Note that the successive approximation process takes a fixed time - 8 clock cycles for the 8-bit example.

Example Calculate the maximum conversion time of a 8-bit counting A/D and (b) a successive approximation A/D, if the clock rate is 2MHz. Solution: (a)      For a 8-bit counting A/D, the maximum number of count is  nc = 28 = 256 Therefore, the maximum conversion time is

Example, continued (b)      For a 8-bit successive approximation A/D, the conversion time is constant and equal to It is noted that the conversion speed of successive approximation A/D is much faster than the integrating type.

Accuracy of A/D Conversion There are two ways to improve accuracy of A/D conversion: increasing the resolution (by increasing the number of bits e.g. 10-bit, 12-bit, etc.) 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.

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.