ANALOG TO DIGITAL (ADC) and DIGITAL TO ANALOG CONVERTERS (DAC)

Similar documents
Data Converters. Dr.Trushit Upadhyaya EC Department, CSPIT, CHARUSAT

Analog-to-Digital Converter (ADC) And Digital-to-Analog Converter (DAC)

CHAPTER ELEVEN - Interfacing With the Analog World

ELG3336: Converters Analog to Digital Converters (ADCs) Digital to Analog Converters (DACs)

A-D and D-A Converters

ELG4139: Converters Analog to Digital Converters (ADCs) Digital to Analog Converters (DACs)

EEE312: Electrical measurement & instrumentation

Advantages of Analog Representation. Varies continuously, like the property being measured. Represents continuous values. See Figure 12.

Analog to Digital Conversion

Lecture 6: Digital/Analog Techniques

Chapter 2 Signal Conditioning, Propagation, and Conversion

Digital to Analog Conversion. Data Acquisition

Chapter 5: Signal conversion

Analog I/O. ECE 153B Sensor & Peripheral Interface Design Winter 2016

Analog to Digital Converters

Linear Integrated Circuits

CHAPTER 6 DIGITAL INSTRUMENTS

16.2 DIGITAL-TO-ANALOG CONVERSION

P a g e 1. Introduction

UNIT III Data Acquisition & Microcontroller System. Mr. Manoj Rajale

INTRODUCTION TO DIGITAL CONCEPT

Electronics II Physics 3620 / 6620

Real Time Embedded Systems. Lecture 1 January 17, 2012

Analog to Digital (ADC) and Digital to Analog (DAC) Converters

Outline. Analog/Digital Conversion

LINEAR IC APPLICATIONS

Specifying A D and D A Converters

IES Digital Mock Test

ENGR 210 Lab 12: Analog to Digital Conversion

UNITII. Other LICs and Data Converters

DSP Project. Reminder: Project proposal is due Friday, October 19, 2012 by 5pm in my office (Small 239).

Digital Logic Circuits

The simplest DAC can be constructed using a number of resistors with binary weighted values. X[3:0] is the 4-bit digital value to be converter to an

Dedan Kimathi University of technology. Department of Electrical and Electronic Engineering. EEE2406: Instrumentation. Lab 2

Analog to digital and digital to analog converters

Lab Exercise 6: Digital/Analog conversion

Winter 14 EXAMINATION Subject Code: Model Answer P a g e 1/28

DATA CONVERSION AND LAB (17.368) Fall Class # 07. October 16, 2008

ISSN:

Fan in: The number of inputs of a logic gate can handle.

PHYS225 Lecture 22. Electronic Circuits

Data Conversion Circuits & Modulation Techniques. Subhasish Chandra Assistant Professor Department of Physics Institute of Forensic Science, Nagpur

Analogue to Digital Conversion

Chapter 7: From Digital-to-Analog and Back Again

CENG4480 Lecture 04: Analog/Digital Conversions

10. Chapter: A/D and D/A converter principles

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) SUMMER-16 EXAMINATION Model Answer

Data Conversion and Lab (17.368) Fall Lecture Outline

Electronics A/D and D/A converters

Embedded Control. Week 3 (7/13/11)

PC-based controller for Mechatronics System

Digital to Analog Converters (DAC) Adam Fleming Mark Hunkele 3/11/2005

Analog-to-Digital Conversion

1 Signals and systems, A. V. Oppenhaim, A. S. Willsky, Prentice Hall, 2 nd edition, FUNDAMENTALS. Electrical Engineering. 2.

The counterpart to a DAC is the ADC, which is generally a more complicated circuit. One of the most popular ADC circuit is the successive

CONTENTS Sl. No. Experiment Page No

DIGITAL COMMUNICATIONS LAB

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) MODEL ANSWER

Data Acquisition & Computer Control

Module 1: Introduction to Experimental Techniques Lecture 2: Sources of error. The Lecture Contains: Sources of Error in Measurement

Computerized Data Acquisition Systems. Chapter 4

Ch 5 Hardware Components for Automation

Digital Design Laboratory Lecture 7. A/D and D/A

Digital multimeter IENGINEERS- CONSULTANTS LECTURE NOTES SERIES ELECTRONICS ENGINEERING 1 YEAR UPTU. Page 1

New Current-Sense Amplifiers Aid Measurement and Control

Additional Programs for the Electronics Module Part No

Learning Objectives:

Transistor Design & Analysis (Inverter)

Tuesday, March 1st, 9:15 11:00. Snorre Aunet Nanoelectronics group Department of Informatics University of Oslo.

Electronic Instrumentation & Automation. ET-7th semester. By : Rahul Sharma ET & TC Deptt. RCET, Bhilai

St.MARTIN S ENGINEERING COLLEGE

Electronics. Digital Electronics

Tel: Fax:

The need for Data Converters

Analogue to Digital Conversion

Lecture #3 Basic Op-Amp Circuits

Basic Operational Amplifier Circuits

Digital to Analog Converters (DAC) 15 March 2006 Doug Hinckley Lee Huynh Dooroo Kim

Analog to Digital Conversion

Data Conversion and Lab Lab 4 Fall Digital to Analog Conversions

Based with permission on lectures by John Getty Laboratory Electronics II (PHSX262) Spring 2011 Lecture 9 Page 1

Menu EEL EEL 3744 A/D and D/A Conversion Process. A-to-D, D-to-A, Part 1

System on a Chip. Prof. Dr. Michael Kraft


University of Pittsburgh

USB4. Encoder Data Acquisition USB Device Page 1 of 8. Description. Features

EE ELECTRICAL ENGINEERING AND INSTRUMENTATION

Assoc. Prof. Dr. Burak Kelleci

DIGITAL TO ANALOG CONVERTERS. 1. Digital to Analog Converter using Binary- Weighted Resistors

Digital control systems

Lecture 7: Analog Signals and Conversion

8-Bit, high-speed, µp-compatible A/D converter with track/hold function ADC0820

Data Acquisition: A/D & D/A Conversion

12-Bit Successive-Approximation Integrated Circuit A/D Converter AD ADC80

ADC0808/ADC Bit µp Compatible A/D Converters with 8-Channel Multiplexer

I hope you have completed Part 2 of the Experiment and is ready for Part 3.

A Dual-Slope Integration Based Analog-to-Digital Convertor

Digital Fundamentals 8/25/2016. Summary. Summary. Floyd. Chapter 1. Analog Quantities

Fundamentals of Data Converters. DAVID KRESS Director of Technical Marketing

Hello, and welcome to the Texas Instruments Precision overview of AC specifications for Precision DACs. In this presentation we will briefly cover

Transcription:

COURSE / CODE DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) ANALOG TO DIGITAL (ADC) and DIGITAL TO ANALOG CONVERTERS (DAC) Connecting digital circuitry to sensor devices is simple if the sensor devices are inherently digital themselves. Switches, relays, and encoders are easily interfaced with gate circuits due to the on/off nature of their signals. However, when analog devices are involved, interfacing becomes much more complex. What is needed is a way to electronically translate analog signals into digital (binary) quantities, and vice versa. An analog-to-digital converter, or ADC, performs the former task while a digital-to-analog converter, or DAC, performs the latter. An ADC inputs an analog electrical signal such as voltage or current and outputs a binary number. In block diagram form, it can be represented as such: A DAC, on the other hand, inputs a binary number and outputs an analog voltage or current signal. In block diagram form, it looks like this: Together, they are often used in digital systems to provide complete interface with analog sensors and output devices for control systems such as those used in automotive engine controls: It is much easier to convert a digital signal into an analog signal than it is to do the reverse. Mohd. Uzir Kamaluddin / Aug 2016 Page 1

Digital to Analog Conversion (DAC) Basically, D/A conversion is the process of taking a value represented in digital code (binary or BCD) and converting it into a voltage or current that is proportional to the digital value. In general, analog output = K x digital input Example 1: A 5-bit DAC has current output. For a digital input of 10100, an output current of 10mA is produced. What will be the current output IOUT for a digital input of 11101? (Ans: 14.5 ma) Example 2: What is the largest value of output voltage from an 8-bit DAC that produces 1 V for a digital input of 00110010? (Ans: 5.1 V) Binary Weighted Resistor DAC One way to achieve D/A conversion is to use a summing amplifier. It uses resistors scaled by two to divide voltage on each branch by a power of two. This approach is not satisfactory for a large number of bits because it requires too much precision in the summing resistors. This problem is overcome in the R-2R network DAC. Exercises: 1. Write down the amplifier output VOUT. 2. Determine the weight of each input bit of the DAC. 3. Change R3 to 2.5K and determine the full scale output. 4. A certain 6-bit binary weighted DAC uses 20K resistor as its MSB resistor. What is its LSB resistor? R-2R Ladder DAC The summing amplifier with the R-2R ladder of resistances shown produces the output where the binary input takes the value 0 or 1. The figure below is illustrated for 3 bits, but can be extended to any number with just the resistance values R and 2R. It can be shown that the value of output voltage Vout is given by the expression: VREF VOUT Binary Input 2 N Where normally VREF = 5 V (logic 1) and N is the number of input bits. Mohd. Uzir Kamaluddin / Aug 2016 Page 2

Exercise: Assume that the VREF= 5 V for the R/2R DAC, calculate the resolution and full-scale output. The resolution is when binary input = 001 and full-scale output is when binary input = 111. Specification of DACs Resolution (Step Size) The amount of variance in output voltage for every change of LSB in the digital input. The higher resolution will give a smaller voltage division at the output. Resolution = VLSB = VREF/2 N where N is the number of bits Example: A 5-bit DAC produces an output voltage of 0.2 V for a digital input of 00001. Find the output voltage for an input of 11111. (Ans: 6.2 V) What is the resolution (step size) of this DAC? (Ans: 0.2 V) Draw the staircase signal of this DAC. Determine the output voltage for this DAC if the digital input is 10001. (Ans: 3.4 V) Percentage resolution can be expressed as the amount of voltage or current per step, it is also useful to express it as a percentage of the full scale output. Example: A 4-bit DAC has a full scale output of 15 V. Its step size is 1 V thus its % resolution step size is 100 % =6.67% full scale Exercise: A 10-bit DAC has a step size of 10 mv. Determine the full scale output voltage and the percentage resolution. (Ans: FS output =10.23 V and % resolution = approx. 0.1%) The percentage resolution becomes smaller as the number of input bits increased. Percentage 1 resolution can also be calculated using 100 % total number of steps Speed The rate of conversion of a single digital input to its analog equivalent. Conversion rate normally depends on the clock speed of the input signal and the settling time of the converter. When the input changes rapidly, the DAC conversion speed must be high. Mohd. Uzir Kamaluddin / Aug 2016 Page 3

Settling time Settling time is the time required for the input signal voltage to the expected output voltage within ±½ VLSB (half the step-size). Ideally, an instantaneous change in analog voltage would occur when a new binary word enters into the DAC. Typical values of settling time is around 50ns to 10micro seconds. Linearity The difference between the desired analog output and the actual output over the full range of expected values. Ideally, a DAC would produce a linear relationship between a digital input and the analog output, but this is not always the case. Exercise: A certain 8-bit DAC has FS output of 2mA and a FS error of ±0.5%FS. What is the range of possible outputs for an input of 10000000? (Ans: 994 to 1014 microa) Reference voltage A specified voltage used to determine how each digital input will be assigned to each voltage division. Full scale voltage Defined as the output voltage when the digital input is all 1 s. Analog to Digital Conversion (ADC) A/D converters are electrical circuits that have the following characteristics. 1. The input to the A/D converter is a voltage. A/D converters may be designed for voltages from 0 to 10 V, from -5 to +5 V, etc., but they almost always take a voltage input. (Some rare exceptions occur with current inputs!) In any event, the input is an analog voltage signal for most cases. 2. The output of the A/D converter is a binary signal, and that binary signal encodes the analog input voltage. So, the output is some sort of digital number. This is a sample of the large number of analog-to-digital conversion methods. The basic principle of operation is to use the comparator principle to determine whether or not to turn on a particular bit of the binary number output. It is typical for an ADC to use a digital-to-analog converter (DAC) to determine one of the inputs to the comparator. Digital Ramp ADC Conversion from analog to digital form inherently involves comparator action where the value of the analog voltage at some point in time is compared with some standard. A common way to do that is to apply the analog voltage to one terminal of a comparator and trigger a binary counter which drives a DAC. The output of the DAC is applied to the other terminal of the comparator. Since the output of the DAC is increasing with the counter, it will trigger the comparator at some point when its voltage exceeds the analog input. The transition of the comparator stops the binary counter, which at that point holds the digital value corresponding to the analog voltage. Mohd. Uzir Kamaluddin / Aug 2016 Page 4

Example: Assume the ADC has the following values: clock frequency = 1 MHz, VT = 0.1 mv, FS output = 10.23 V and 10 input bit. Calculate: a) The digital equivalent obtained for VA=3.728 V (Ans: 0101110101) b) The conversion time. (Ans: 373 micro seconds) c) The resolution of the ADC. (Ans: approx. 0.1%) Conversion time tc is the time interval between the end of the start pulse and the activation of the end of conversion (EOC) output, and is given as tc (max) = (2 N -1) clock cycles, where N is the number of bits of the converter. Successive Approximation ADC The successive approximation ADC is much faster than the digital ramp ADC because it uses digital logic to converge on the value closest to the input voltage. A comparator and a DAC are used in the process. Shown below is a 4-bit SAC with 1 Volt step size. Mohd. Uzir Kamaluddin / Aug 2016 Page 5

The SAC does not use a counter to provide the input to the DAC block but uses a register instead. The control logic modifies the contents of the register bit by bit until the register data are the digital equivalent of the analog voltage VS within the resolution of the converter. Exercise 1: An 8-bit SAC has a resolution of 20 mv. What will its digital output be for an analog input of 2.17 V? (Ans: 011011002) Exercise 2: What is the conversion time for the 4- bit SAC if the processing of each bit takes one clock cycle? (Ans: 4 clock cycles) Flash ADC Shown below is a 3-bit flash ADC with resolution 1 Volt. The resistor net and comparators provide an input to the combinational logic circuit, so the conversion time is just the propagation delay through the network - it is not limited by the clock rate or some convergence sequence. It is the fastest type of ADC available, but requires a comparator for each value of output (63 for 6-bit, 255 for 8-bit, etc.) Such ADCs are available in IC form up to 8-bit and 10-bit flash ADCs (1023 comparators) are planned. The encoder logic executes a truth table to convert the ladder of inputs to the binary number output. Mohd. Uzir Kamaluddin / Aug 2016 Page 6

Exercise 1: A flash ADC does not contain a DAC, true or false? Exercise 2: How many comparators would a 12-bit flash converter require? How many resistors? Exercise 3: State the major advantage and disadvantage of a flash converter. Other A/D Conversion Methods Several other methods of A/D conversion have been in use for some time, each with its relative advantages and disadvantages. 1. Up/Down Digital Ramp ADC (Tracking ADC) The up/down counter is used instead of the up counter to reduce the time taken for conversion. When a new conversion is to begin, the counter is not reset to 0 but begins counting either up or down from its last value, depending on the comparator output. Mohd. Uzir Kamaluddin / Aug 2016 Page 7

2. Dual Slope Integrating ADC This ADC has the slowest conversion time but has the advantage of relatively low cost because it does not require precision components such as a DAC or a VCO. 3. Voltage to Frequency ADC This ADC is simpler than the other ADCs because it does not use a DAC, instead it uses linear voltage controlled oscillator (VCO) that produces an output frequency proportional to its input voltage. Mohd. Uzir Kamaluddin / Aug 2016 Page 8