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,

Slides:



Advertisements
Similar presentations
Analog to Digital Conversion (ADC)
Advertisements

Analog-to-Digital Converter (ADC) And
Lecture 17: Analog to Digital Converters Lecturers: Professor John Devlin Mr Robert Ross.
Sensors Interfacing.
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.
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.
Shuvra Das University of Detroit Mercy
Lecture 9: D/A and A/D Converters
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.
1 Dr. Un-ki Yang Particle Physics Group or Shuster 5.15 Amplifiers and Feedback: 3.
Storey: Electrical & Electronic Systems © Pearson Education Limited 2004 OHT 26.1 Data Acquisition and Conversion  Introduction  Sampling  Signal Reconstruction.
Analogue to Digital Conversion
Embedded Systems Development and Applications
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.
EET260: A/D and D/A converters
Introduction to Analog-to-Digital Converters
COMP3221: Microprocessors and Embedded Systems Lecture 20: Analog Output Lecturer: Hui Wu Session 2, 2004.
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.
Chapter 13 Linear-Digital ICs. Copyright ©2009 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved. Electronic Devices.
Understanding ADC Specifications September Definition of Terms 000 Analogue Input Voltage Digital Output Code FS1/2.
Analog to Digital conversion. Introduction  The process of converting an analog signal into an equivalent digital signal is known as Analog to Digital.
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.
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.
PREPARED BY V.SANDHIYA LECT/ ECE UNIT- 3 APPLICATIONS OF OP-AMP 1.
Digital Voltmeter (DVM)
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.
Introduction to Data Conversion EE174 – SJSU Tan Nguyen.
Sampling Theory ADC Types EE174 – SJSU Tan Nguyen.
ΨΗΦΙΑΚΟΣ ΕΛΕΓΧΟΣ (22Δ802) Β΄ ΕΞΑΜΗΝΟ Καθηγητής Πέτρος Π. Γρουμπός  Ώρες Γραφείου: Τετάρτη Πέμπτη Παρασκευή 11:00- 12:00 Γραφείο: 1.
5-2-3 Analogue to Digital Converters (ADC). Analogue to Digital Conversion The process is now the opposite of that studied in Topic Now we wish.
1 Basic Signal Conversion 센서 및 계측 공학 (Sensor and Instrumentation Engineering) 2016 년 1 학기 충북대학교 전기전자반도체공학과 박 찬식
EKT 314/4 WEEK 9 : CHAPTER 4 DATA ACQUISITION AND CONVERSION ELECTRONIC INSTRUMENTATION.
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.
Analog-Digital Conversion. Analog outputs from sensors and analog front- ends (analog signal conditioning) have to be converted into digital signals.
Digital to analog converter [DAC]
MECH 373 Instrumentation and Measurements
Electronic Devices Ninth Edition Floyd Chapter 13.
Analog-Digital Conversion
EI205 Lecture 13 Dianguang Ma Fall 2008.
Chapter 13 Linear-Digital ICs
Digital Control Systems Waseem Gulsher
Lesson 8: Analog Signal Conversion
Digital to Analog Converters (DAC)
Conversation between Analogue and Digital System
Chapter 7 Converters.
Presentation transcript:

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, is a major interface circuit that forms the bridge between the analog and digital worlds. DACs are the core of many circuits and instruments, including digital voltmeters, plotters, oscilloscope displays, and many computer-controlled devices. What is a DAC? A DAC is an electronic component that converts digital logic levels into an analog voltage. The output of a DAC is just the sum of all the input bits weighted in a particular manner:

where w i is a weighting factor, w i = 2 i, b i is the bit value (1 or 0), i is the index of the bit number. Example 1. The complete expression for an 8-bit DAC is written as

Review of Summing Amplifier (Voltage Adder) a set of voltages V1, V2,..., Vn connected into a summing amplifier. Here:

The output voltage V is the sum of the voltages V 1, V2,..., Vn; each voltage is weighted by a factor RF /R

Block Diagram of DAC

a. n –bit DAC Circuit Binary weighted resistor network

Example1: Calculation of Vout of 4 bit DAC Circuit description 4 bits latched in a register control four switches to provide 16 different switch setting. The op-amp is connected as a summing amplifier. If two switches are closed (bit 1is logic 1 and bit 3 is logic 1) we have

DAC Fabrication Consideration Thus 16 different discrete voltages can be obtained corresponding to the 16 binary input patterns. In general n –bit DAC requires n+1 resistors. The LSB resistor must be 2 n greater than feedback resistor The realistic value of R that can be fabricated as part of integrated circuit is 5 kΩ. Example 3: what is the range of resistors required to design a 12 bit DAC. 12 bit DAC requires (unrealistic) resistors ranging form 5kΩ to MΩ Example 2 : what is the range of resistors required to design a8 bit DAC. 8 bit DAC requires resistors ranging form 5kΩ to 1.28 (256×5kΩ)MΩ

a. n –bit DAC Circuit based on R-2R Ladder network The current entering through a branch at any node divides in half of two branches leaving the node as it exists on its way toward the end of the ladder. Each produces the same result in the output. The design requires almost twice as many resistors as a straightforward network (2n+1), but they are of small value(5 kΩ or 10 kΩ).

Example

Actual DAC Case study: AD558

Analogue-to-digital (A/D) conversion

Overview of sampling, quantisation and encoding.

1. Statistical representation of random signals A recording of a section of a random signal obtained during an observation period T O. The sampling interval ΔT = T O /N must satisfy the Nyquist sampling theorem, where sampling frequency f S = 1/(ΔT )

Nyquist sampling theorem If f S > 2f MAX, then the additional frequency components can easily be filtered out with an ideal low-pass filter of bandwidth 0 to f MAX and the original signal reconstituted If fs = 2f MAX, it is just possible to filter out the sampling components and reconstitute the signal. If fs < 2f MAX, the sampling components occupy the same frequency range as the original signal and it is impossible to filter them out and reconstitute the signal.

Aliasing. The effect of sampling at too low a frequency is shown

Quantisation Although the above sample values are taken at discrete intervals of time, the values yi can take any value in the signal range y MIN to y MAX. In quantisation the sample voltages are rounded either up or down to one of Q quantisation values or levels Vq, where q = 0, 1, 2,..., Q − 1. These quantum levels correspond to the Q decimal numbers 0, 1, 2,..., Q − 1. If V0 = y MIN and VQ−1 = y MAX, then there are (Q − 1) spacings occupying a span of y MAX − y MIN. The spacing width or quantisation interval ΔV is therefore:

Quantisation error The operation of quantisation produces an error e q = V q − y i if y i is above the halfway point between two levels q, q + 1 it is rounded up to V q+1 if y i is below halfway it is rounded down to V q The maximum quantisation error = Maximum percentage quantisation error

Encoding 1. decimal or denary number system uses a base or radix of binary number system The encoder converts the quantisation values Vq into a parallel digital signal corresponding to a binary coded version of the decimal numbers 0, 1, 2,..., Q − 1.

Example: convert the decimal number 183 to binary

The number of binary digits n required to encode Q decimal numbers is given by Encoding Q decimal numbers Number of digits in binary code

Example: For the Q = 200. calculate a) n b). Maximum percentage quantisation error From eqn the corresponding maximum quantisation error is ±100/2(255)% = %. if Q = 200, n = log10200/log102 = 2.301/0.301 = Since, however, n must be an integer, we require eight bits, which corresponds to Q = 28 = 256 c) If the input range of the converter is 0 to 5 V, then calculate the corresponding analogue input, decimal numbers and digital output signals

Binary coded decimal (b.c.d.) Here each decade of the decimal number is separately coded into binary. Since 2 3 = 8 and 2 4 = 16, four binary digits DCBA are required to encode the 10 numbers 0 to 9 in each decade. Example : What is the decimal number of 8:4:2:1 b.c.d. Example : decimal number 369 becomes

Number of digits in b.c.d. The number of decades p of b.c.d. required to encode Q decimal numbers is given by Q = 10 p, i.e. p = log 10 Q, and the corresponding total number of binary digits is: The input signal to character displays (is normally in b.c.d. form; since the signal is already separated into decades the conversion into seven segment or 7 × 5 dot matrix code is easier than with pure binary. Application of BCD

Example

Vin ADC Data Vref Control Signal ADC essential

It is a ratioing operation. The analog input signal Vi is converted to a fraction x by comparing it against a reference signal Vr. The digital output of the converter is a coded representation of the fraction. If the converter output consists of n bits, the number of discrete level is fixed and equal to 2 n. Each discrete level is called quantum Q or LSB. The threshold value is defined as ±LSB. the value of LSB defines the uncertainty of conversion.

Example2: For a 3 bit ADC which has an input ranging form 0 to 5 V. calculate the following 1. LSB 2. Threshold 3. The range of quantized levels 4. Sketch the relationship between analog input and code Threshold =±0.625mV The range is Form (0 to 0.715) mv

Converter Parameter

a. Converter Errors a- offset error, b) gain error, c) integral linearity error, d) differential linearity error

Conversion Time Example 3: a 8 bit ADC having a conversion time of 10  S is being used to convert a sinusoidal signal given in the following form Calculate the maximum value of frequency the can be converted by the ADC

The maximum rate of change Step1. Calculate the maximum rate of change of analog signal Step2. Calculate FSD of the signal FSD=2A Step3. Apply the following equation f max =12.4Hz Is f=12.4Hz the desired value of conversion ? Answer: this value can be increased using S/H device between input signal and ADC

Aperture error We have seen that the conversion of an analog signal to a digital output takes time: the conversion time, which in the case of a successive approximation ADC, is fixed. Now, if the analog input signal is changing during the conversion time, then the converted output will be in error. This is known as aperture error. For example, for an 8-bit ADC, the smallest increment δ of input signal registered by a single bit will be: δ = 1/2 8 = fraction of full scale of signal

During conversion time, the signal changes. For there to be no error in the digitised output, this change must be less than the smallest increment registered by a single bit: i.e. the product (δ)(Α).

What does it mean? The ADC08xx series of ICs are 8-bit analog to digital converters which use the successive approximation technique. The conversion time is given by the clock frequency. It takes approximately 64 clock cycles to perform one 8-bit conversion. Thus, to obtain a sampling rate of say samples per second, the clock frequency needs to be set to:

Sample-and-hold To avoid aperture error, the conversion time and the desired performance characteristics of the ADC circuit must be taken into consideration. For example, given a conversion time of say 100 μsec, what is the maximum frequency of sine wave that can be sampled by the 8-bit ADC0804 without aperture error?

We need a circuit that will take a sample of the input voltage at a particular instant, and hold it until the ADC has processed the conversion - a sample and- hold circuit

When logic input is high, output follows any changes in the analog input. When logic input goes low, the analog input signal is captured and passed through to the output. Output remains fixed at this value while logic input is held low. The time taken for the sample-and-hold circuit to sample the signal and hold it must be shorter than the conversion time (otherwise we wouldn’t need to use the circuit!). The above circuit has a conversion time of about 10 μsec

ADC techniques

a. Flash analogue-to-digital converter

In any n-digit binary ADC there are Q quantisation voltage levels V0 to VQ−1, where Q = 2 n. In a flash ADC there are Q − 1 comparators in parallel and Q − 1 corresponding voltage levels V 1 to V Q−1. There is no need to provide the V0 voltage level. In each comparator q, the input sample value yi is compared with the corresponding voltage level Vq. If yi is less than or equal to Vq, the output is zero corresponding to 0. If yi is greater than Vq, the output is non-zero corresponding to a 1 Operation principle Thus if yi lies between Vq and Vq+1, i.e. Vq < yi ≤ Vq+1, the output of the lowest q comparators 1 to q will all be 1 and the output of the remaining comparators q + 1 to Q − 1 will all be 0. Thus the comparators provide a Q − 1 digit parallel input code to a priority encoder which generates an n-digit binary parallel output code corresponding to the value of q. The main advantage of the flash converter is the short conversion time; the main disadvantage is that the large number of comparators required to give acceptable resolution mean that it is relatively expensive.

b. Single-Slope ADC Architecture Single-slope ADC circuit Response of single slope ADC or -de-integrate time -integrate time

Operation principle Here, an unknown input voltage is integrated and the value is compared against a known reference value. The time it takes for the integrator to trip the comparator is proportional to the unknown voltage (V INT /V IN ). In this case, the known reference voltage must be stable and accurate to guarantee the accuracy of the measurement. Drawback the accuracy is also dependent on the tolerances of the integrator’s R and C values.

c. Dual-Slope ADC Architecture Dual-slope ADC circuit system

Response of dual slope ADC A dual-slope ADC (DS-ADC) integrates an unknown input voltage (V IN ) for a fixed amount of time (T INT ), then “disintegrates” (T DEINT ) using a known reference voltage (V REF ) for a variable amount of time. The key advantage of this architecture over the single-slope is that the final conversion result is insensitive to errors in the component values. That is, any error introduced by a component value during the integrate cycle will be canceled out during the de-integrate phase Operation principle

Dual slope – principle

D) successive approximation analogue to digital converter

This method involves making successive guesses at the binary code corresponding to the input voltage yi. The trial code is converted into an analogue voltage using a DAC, and a comparator is used to decide whether the guess is too high or too low. On the basis of this result another guess is made, and the process is repeated until Vq is within half a quantisation interval of yi. Operation principle Refer to the table The first guess is always corresponding to (127)10, i.e. approximately half full scale: this guess is high so that b7 is set to 0; if the guess had been low b7 would be set to 1. The next guess is corresponding to (63)10, i.e. approximately one-quarter full scale; this guess is also high so that b6 is confirmed as 0. The process continues until all the remaining bits have been confirmed; the DATA VALID signal then changes state.

a series of guesses for an 8-bit binary converter with an input range of 0 to 2.55 V

Successive approximation converters (SAC) can be used for sample rates up to over 10 6 samples/s; even 16-bit types can be used up to over 10 5 samples/s. For the fastest applications up to 10 9 samples/s, such as video digitisation, flash converters are used. SAC converters can be linked to microcontrollers using two-way serial communication over a pair of wires. Here the successive approximation logic is provided by the microcontroller; the SAC consists only of a DAC and a comparator. The microcontroller sends out clock pulses to operate the DAC switches and receives the digital code in serial form. Application of SAC

In this method, the input voltage is compared to half the full scale voltage and then lower values in succession. The steps are: