Digital to Analog Converter (DAC)

Slides:



Advertisements
Similar presentations
Interfacing to the Analog World
Advertisements

Analog to Digital Conversion (ADC)
Digital to Analog Conversion
Analog-to-Digital Converter (ADC) And
Lecture 17: Analog to Digital Converters Lecturers: Professor John Devlin Mr Robert Ross.
Sensors Interfacing.
Digital to Analog and Analog to Digital Conversion
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.
5/4/2006BAE Analog to Digital (A/D) Conversion An overview of A/D techniques.
Keith Weaver James Mulford Philip Estrada.  What is digital to analog converter (DAC)?  Types of DAC ◦ Binary Weighted Resistor ◦ R-2R Ladder  Discuss.
Lecture 9: D/A and A/D Converters
10/23/2003ME DAC Lecture1 DAC Sunij Chacko Pierre Emmanuel Deliou Thomas Holst Used with modification.
Digital to Analog Converters Alexander Gurney Alexander Pitt Gautam Puri 1.
Interfacing Analog and Digital Circuits
DIGITAL SYSTEMS TCE INTERFACING WITH ANALOG DEVICES (Week 12)
Interfacing with the Analog World Wen-Hung Liao, Ph.D.
EET 252 Unit 7 Digital-to-Analog Conversion
EET260: A/D and D/A converters
COMP3221: Microprocessors and Embedded Systems Lecture 20: Analog Output Lecturer: Hui Wu Session 2, 2004.
CMOS VLSIAnalog DesignSlide 1 CMOS VLSI Analog Design.
PH4705/ET4305: A/D: Analogue to Digital Conversion
1 Digital to Analog Converter Nov. 1, 2005 Fabian Goericke, Keunhan Park, Geoffrey Williams.
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.
Content Op-amp Application Introduction Inverting Amplifier
Digital to Analog Converters (DAC)
Electronic Devices Ninth Edition Floyd Chapter 13.
Digital to Analog Converters
Announcements Assignment 5 due tomorrow (or now)
Understanding ADC Specifications September Definition of Terms 000 Analogue Input Voltage Digital Output Code FS1/2.
ACOE2551 Microprocessors Data Converters Analog to Digital Converters (ADC) –Convert an analog quantity (voltage, current) into a digital code Digital.
Announcements mid-term Thursday (Oct 27 th ) Project ideas to me by Nov 1 st latest Assignment 4 due tomorrow (or now) Assignment 5 posted, due Friday.
Analog to Digital conversion. Introduction  The process of converting an analog signal into an equivalent digital signal is known as Analog to Digital.
Digital to Analog Converters (DAC) 15 March 2006 Doug Hinckley Lee Huynh Dooroo Kim.
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.
Alexander-Sadiku Fundamentals of Electric Circuits
Fundamentals of Electric Circuits Chapter 5 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Design of Digital-to-Analog Converter Qin Chen Yong Wang Dept. of Electrical Engineering Feb. 6th, 2006 EE597G Presentation:
Digital Electronics and Computer Interfacing Tim Mewes 5. Computer Interfacing – DAQ cards.
Digital to Analog Converters (DAC) 1 Technician Series ©Paul Godin March 2015.
Digital to Analog Converters (DAC) Salem ahmed Fady ehab 30/4/2015.
Analog-to-Digital and Digital-to-Analog Conversion
Digital to Analog Converters (DAC) 3 ©Paul Godin Created March 2008.
Analog/Digital Conversion
Basic Op-Amp Circuits Application: D/A Conversion.
ELECTRONIC DEVICES BASIC OP-AMP CIRCUIT MOHD AIDIL IDHAM BIN DAUD AZFAR ASYRAFIE BIN AHMAD
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.
Networked Embedded Systems Sachin Katti & Pengyu Zhang EE107 Spring 2016 Lecture 13 Interfacing with the Analog World.
Chapter 5 Operational Amplifier
Digital to analog converter [DAC]
MECH 373 Instrumentation and Measurements
Microprocessors Data Converters Analog to Digital Converters (ADC)
What is a DAC? A digital to analog converter (DAC) converts a digital signal to an analog voltage or current output DAC.
Electronic Devices Ninth Edition Floyd Chapter 13.
Analog-Digital Conversion
EI205 Lecture 13 Dianguang Ma Fall 2008.
Introduction to data converters
Introduction to data converters
Digital Control Systems Waseem Gulsher
Digital to Analog Converters (DAC)
Conversation between Analogue and Digital System
Digital to Analog Converters (DAC) 3
Chapter 5 OUTLINE Op-Amp from 2-Port Blocks
Chapter 7 Converters.
Presentation transcript:

Digital to Analog Converter (DAC) Trayvon Leslie Orlando Carreon Zack Sosebee ME 6405 Intro to Mechatronics March 14, 2008

Outline Overview Choosing a DAC Specifications Types of DAC Resolution Speed Linearity Settling Time Reference Voltages Errors Types of DAC Binary Weighted Resistor R-2R Ladder Multiplier DAC Non-Multiplier DAC Applications References Trayvon Leslie

Overview Digital to Analog Converter (DAC) A digital to analog converter (DAC) is a device that converts digital numbers (binary) into an analog voltage, current, or electric charge output. Trayvon Leslie

Overview Digital to Analog Converter (DAC) Generate piecewise continuous signals from digital code. Typically generates a piecewise continuous function Step Functions The function is continuous between each of the open intervals Trayvon Leslie

Overview Each binary number sampled by the DAC corresponds to a different output level. Normally a linear function Trayvon Leslie 5

Overview What a DAC Looks Like Trayvon Leslie 6

Overview Example of DAC Trayvon Leslie Specifications: An example of a DAC would be the Analog Devices AD 7224 D/A Converter. The AD7224 is a precision 8-bit, voltage-output, digital-to-analog converter with an output amplifier. Specifications: DAC Type – R-2R Voltage Out Input – Dual 8 Bit Reference voltage – Non-Multiplier 2v – 12.5v Settling Time - 7μs Cost - Under $4.00 AD 7224 8-Bit Voltage Output R-2R Output Amplifier Trayvon Leslie 7

Overview Examples of DAC AD7224 Trayvon Leslie 8 input pins Reference Voltage Variable Resistors Helps to meet the output signal requirements Helps to adjust input signal Offset: Decreasing the offset Decreases the Output Voltage Gain: Trayvon Leslie 8

Choosing a DAC There are six(6) main specifications that should be considered when choosing a DAC for a particular project. Reference Voltage Resolution Linearity Speed Settling Time Error When it comes to your project… There are 6 main specification for choosing your DAC Trayvon Leslie 9

Specifications Reference Voltage To a large extent the output properties of a DAC are determined by the reference voltage. Multiplier DAC – The reference voltage is constant and is set by the manufacturer. Non-Multiplier DAC – The reference voltage can be changed during operation. The out of the DAC is largely determined by the reference voltage Usually changes with the types of DAC Multiplier: (Internal Reference) Fixed Reference Voltage Less Error Non-Multiplier: (External Reference) Multiplies binary functions Scales Continuous Trayvon Leslie 10

Specifications Resolution The resolution is the amount of voltage rise created by increasing the LSB (Least Significant Bit) of the input by 1. This voltage value is a function of the number of input bits and the reference voltage value. 1 bit DAC is designed to reproduce 2 (21) levels while an 8 bit DAC is designed for 256 (28) levels. Increasing the number of bits results in a finer resolution Most DACs are in the 12-18 bit range Similar to the ADC Will be shown from the linear specifications Function of the Reference Voltage and the Number of Bits Increasing the bits decreases the resolution (finer) Number of bits representing an analog signal -- generally ranging from 6 to 24. The higher the number of bits, the higher the resolution of the converter. Generally more accurate too. Trayvon Leslie 11

Specifications Linearity The linearity is the relationship between the output voltage and the digital signal input. Depending on the binary number that How well the device's actual performance across a specified operating range approximates a straight line. Maximum deviation of actual performance relative to a straight line, located such that it minimizes the maximum deviation Trayvon Leslie 12

Specifications Speed Usually specified as the conversion rate or sampling rate. It is the rate at which the input register is updated. High speed DACs are defined as operating at greater than 1 MHz. Some state of the art 12-16 bit DAC can reach speeds of 1GHz The conversion of the digital input signal is limited by the clock speed of the microprocessor and the settling time of the DAC. The rate at which the input digital or binary number are cycled through the DAC The number of conversions per second the DAC is producing. Clock speed: the speed at which the CPU operates. Trayvon Leslie 13

Specifications Settling Time Ideally a DAC would instantaneously change its output value when the digital input would change. In a real DAC it takes time for the DAC to reach the actual expected output value. Ideally Usually updated at uniform sampling intervals Each number latched in sequence The time required for the output to reach and remain within a specified error band about its final value, measured from the start of the output transition. Ideal Sampled Signal Real DAC Output Trayvon Leslie 14

Specifications Error There are multiple sources of error in computing the analog output. Gain Error Offset Error Full Scale Error Linearity Non-Monotonic Output Error Settling Time and Overshoot Resolution Trayvon Leslie 15

Errors Gain Error Deviation in the slope of the ideal curve and with respect to the actual DAC output High Gain Error: Step amplitude is higher than the desired output Low Gain Error: Step amplitude is lower than the desired output Orlando Carreon 16

Errors Offset Error Occurs when there is an offset in the output voltage in reference to the ideal output. This error may be detected when all input bits are low (i.e. 0). Orlando Carreon 17

Errors Full Scale Error Occurs when there is an offset in voltage form the ideal output and a deviation in slope from the ideal gain. Orlando Carreon 18

Errors Non-Linearity Differential Non-Linearity: Voltage step size differences vary as digital input increases. Ideally each step should be equivalent. Orlando Carreon 19

Errors Non-Linearity Integral Non-Linearity: Occurs when the output voltage is non linear. Basically an inability to adhere to the ideal slope. Orlando Carreon 20

Errors Non-Monotonic Output Error Occurs when the an increase in digital input results in a lower output voltage. Orlando Carreon 21

Errors Settling Time and Overshoot Settling Time: The time required for the voltage to settle within +/- the voltage associated with the VLSB. Any change in the input time will not be reflected immediately due to the lag time. Overshoot: occurs when the output voltage overshoots the desired analog output voltage. Orlando Carreon 22

Errors Settling Time and Overshoot Orlando Carreon 23

Errors Resolution Inherent errors associated with the resolution More Bits = Less Error and Greater Resolution Less Bits = More Error and Less Resolution Orlando Carreon 24

Errors Resolution Poor Resolution (1 Bit) Does not accurately approximate the desired output due large voltage divisions. Orlando Carreon 25

Errors Resolution Better Resolution (3 Bit) Better approximation of the of the desired output signal due to the smaller voltage divisions. Orlando Carreon 26

Types of DAC Binary Weighted Resistor Basic Ideas: Assumptions: Use a summing op-amp circuit Use transistors to switch between high and ground Use resistors scaled by two to divide voltage on each branch by a power of two Assumptions: Ideal Op-Amp No Current into Op-Amp Virtual Ground at Inverting Input Vout = -IRf Zack Sosebee

Types of DAC Binary Weighted Resistor Voltages V1 through Vn are either Vref if corresponding bit is high or ground if corresponding bit is low V1 is most significant bit Vn is least significant bit MSB LSB Zack Sosebee 28

Types of DAC Binary Weighted Resistor If Rf=R/2 Zack Sosebee For example, a 4-Bit converter yields Where b3 corresponds to Bit-3, b2 to Bit-2, etc. Zack Sosebee 29

Types of DAC Binary Weighted Resistor Zack Sosebee Summing op-Amp: Example Vref = -2V Digital Word = 1010 V1 = -2V V2 = 0V V3 = -2V V4 = 0V Rf = R/2 Zack Sosebee 30

Types of DAC Limitations of Binary Weighted Resistor 1. If R = 10 kΩ, 8 bits DAC, and VRef = 10 V R8 = 2(8-1)*(10 kΩ) = 1280 kΩ I8 = VRef/R8 =10V/1280 kΩ = 7.8 μA Op-amps that can handle those currents are rare and expensive. 2. If R = 10 Ω and VRef = 10 V R1 = 2(1-1)*(10 Ω) = 10 Ω I1 = VRef/R1 = 10V/10 Ω = 1 A This current is more than a typical op-amp can handle. Zack Sosebee 31

Types of DAC Binary Weighted Resistor Summary Advantages Disadvantages Simple Fast Disadvantages Need large range of resistor values (2000:1 for 12-bit) with high precision in low resistor values Need very small switch resistances Summary Use in fast, low-precision converter Zack Sosebee 32

Types of DAC R-2R Ladder Zack Sosebee Each bit corresponds to a switch: If the bit is high, the corresponding switch is connected to the inverting input of the op-amp. If the bit is low, the corresponding switch is connected to ground. Zack Sosebee

Types of DAC R-2R Ladder Zack Sosebee 2R V3 Vref V2 V1 V3 Ideal Op-amp 34

Types of DAC R-2R Ladder I Zack Sosebee V2 V3 R Vref V2 V1 V3 Vout Likewise, Zack Sosebee 35

Types of DAC R-2R Ladder Results: Zack Sosebee Vref V2 V1 V3 Where b3 corresponds to bit 3, b2 to bit 2, etc. If bit n is set, bn=1 If bit n is clear, bn=0 Zack Sosebee

Types of DAC R-2R Ladder For a 4-Bit R-2R Ladder For general n-Bit R-2R Ladder or Binary Weighted Resister DAC Zack Sosebee 37

Types of DAC R-2R Ladder Summary Advantages Summary Only 2 resistor values Summary Better than weighted resistor DAC Zack Sosebee 38

Types of DAC Binary Weighted Resistor vs. R-2R Ladder Zack Sosebee 39

Applications Generic Use Circuit Components Audio and Video Oscilloscopes/Generators Motor Controllers Orlando Carreon 40

Applications Generic Use Used when a continuous analog signal is required. Signal from DAC can be smoothed by a Low pass filter Orlando Carreon 41

Applications Circuit Components Voltage controlled Amplifier Digital input, External Reference Voltage as Control Digitally operated attenuator External Reference Voltage as Input, Digital Control Programmable Filters Digitally Controlled Cutoff Frequencies Orlando Carreon 42

Applications Audio Video Most modern audio signals are stored in digital form and in order to be heard through speakers they must be converted into an analog signal. CD Players - Digital Telephones MP3 Player - Hi-Fi Systems Video Video signals from a digital source must be converted to analog form if they are to be displayed on an analog monitor - Computers - Digital Video Player Orlando Carreon 43

Applications Oscilloscopes/Generators Digital Oscilloscopes Digital Input Analog Output Signal Generators Sine wave generation Square wave generation Triangle wave generation Random noise generation Orlando Carreon 44

Applications Motor Controllers Cruise Control Valve Control Orlando Carreon 45

References http://en.wikipedia.org/wiki/Digital-to-analog_converter Alciatore, “Introduction to Mechatronics and Measurement Systems,” McGraw-Hill, 2003 Horowitz and Hill, “The Art of Electronics,” Cambridge University Press, 2nd Ed. 1995 http://products.analog.com/products/info.asp?product=AD7224 http://courses.washington.edu/jbcallis/lectures/C464_Lec5_Sp- 02.pdf http://www.eecg.toronto.edu/~kphang/ece1371/chap11_slides.p df Past student lectures

Questions