Outline. Analog/Digital Conversion

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

A-D and D-A Converters

EEE312: Electrical measurement & instrumentation

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

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

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

Analog to Digital Conversion

Data Converters. Lecture Fall2013 Page 1

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

EECS 373 Design of Microprocessor-Based Systems

CHAPTER ELEVEN - Interfacing With the Analog World

The need for Data Converters

Analog to Digital Converters

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

Digital to Analog Conversion. Data Acquisition

Lecture 6: Digital/Analog Techniques

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

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

Chapter 2 Signal Conditioning, Propagation, and Conversion

Assoc. Prof. Dr. Burak Kelleci

EECS 373 Design of Microprocessor-Based Systems

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

Linear Integrated Circuits

Specifying A D and D A Converters

Data Conversion and Lab (17.368) Fall Lecture Outline

3. DAC Architectures and CMOS Circuits

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

Mixed-Signal-Electronics

Data Acquisition & Computer Control

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

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

Analog/Digital and Sampling

Electronics II Physics 3620 / 6620

CENG4480 Lecture 04: Analog/Digital Conversions

PHYS225 Lecture 22. Electronic Circuits

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

Analog to Digital Conversion

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

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

P a g e 1. Introduction

16.2 DIGITAL-TO-ANALOG CONVERSION

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

8-Bit A/D Converter AD673 REV. A FUNCTIONAL BLOCK DIAGRAM

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

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

Analogue to Digital Conversion

LINEAR IC APPLICATIONS

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

Fundamentals of Data Converters. DAVID KRESS Director of Technical Marketing

EE251: Tuesday October 10

Electronics A/D and D/A converters

UNIVERSITY OF CALIFORNIA College of Engineering Department of Electrical Engineering and Computer Sciences

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

Basic Operational Amplifier Circuits

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

Data Acquisition: A/D & D/A Conversion

EE 421L Digital Electronics Laboratory. Laboratory Exercise #9 ADC and DAC

Analog to Digital Conversion

IFB270 Advanced Electronic Circuits

Analogue to Digital Conversion

L9: Analog Building Blocks (OpAmps,, A/D, D/A)

Analog-to-Digital i Converters

L9: Analog Building Blocks (OpAmps, A/D, D/A)

1. The decimal number 62 is represented in hexadecimal (base 16) and binary (base 2) respectively as

Selecting and Using High-Precision Digital-to-Analog Converters

University of Pittsburgh

System on a Chip. Prof. Dr. Michael Kraft

16-Bit ANALOG-TO-DIGITAL CONVERTER

L10: Analog Building Blocks (OpAmps,, A/D, D/A)

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

Chapter 5: Signal conversion

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

L10: Analog Building Blocks (OpAmps,, A/D, D/A)

Dual 16-Bit DIGITAL-TO-ANALOG CONVERTER

APPLICATION NOTE 695 New ICs Revolutionize The Sensor Interface

IES Digital Mock Test

Tel: Fax:

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

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

Low Cost 10-Bit Monolithic D/A Converter AD561

INTEGRATED CIRCUITS. AN109 Microprocessor-compatible DACs Dec

AD557 SPECIFICATIONS. T A = 25 C, V CC = 5 V unless otherwise noted) REV. B

Lecture #20 Analog Inputs Embedded System Engineering Philip Koopman Wednesday, 30-March-2016

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

High-Speed Analog to Digital Converters. ELCT 1003:High Speed ADCs

Quad 12-Bit Digital-to-Analog Converter (Serial Interface)

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

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

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

EE 435. Lecture 41. ADC Design

TUTORIAL 283 INL/DNL Measurements for High-Speed Analog-to- Digital Converters (ADCs)

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

Chapter 13 Oscillators and Data Converters

Microprocessor-Compatible 12-Bit D/A Converter AD667*

Data Converters. Springer FRANCO MALOBERTI. Pavia University, Italy

Learning Objectives:

ECE 6770 FINAL PROJECT

6-Bit A/D converter (parallel outputs)

University of Pennsylvania. Department of Electrical and Systems Engineering. ESE Undergraduate Laboratory. Analog to Digital Converter

Ch 5 Hardware Components for Automation

Transcription:

Analog/Digital Conversion The real world is analog. Interfacing a microprocessor-based system to real-world devices often requires conversion between the microprocessor s digital representation of values to an analog representation. We will focus on conversions to and from analog voltages; converting from electrical signals to other signals is the domain of sensors (e.g., thermistors) and transducers (e.g., speakers). Outline Common conversion concepts Digital-to-analog conversion circuits Analog-to-digital conversion circuits Analog input signals are converted to digital values using analog-to-digital converters (ADCs). Analog output signals based on digital values are generated using digital-to-analog converters (DACs). ADCs and DACs are commonly available as single-chip devices that can be easily interfaced to microprocessor busses. EECS 373 F99 Notes 7-1 1998, 1999 Steven K. einhardt

Basics The primary characteristic of a converter is its resolution, expressed as the number of significant data bits on the digital side of the converter. An n-bit converter divides an analog voltage range into 2 n sections, providing a resolution of 2 -n times the voltage range. Error is the difference between the analog voltage you believe a digital value represents and what that analog voltage acutally is. As we will see shortly, even an ideal converter introduces some error. Accuracy refers to how close an actual converter is to an ideal converter. Inaccuracies are another source of error. The graph below shows the transfer function for an ideal 2-bit ADC. The input voltage range (0, ) is divided into 2 2 =4 sections, so the ADC s resolution is 2-2 =1/4 of. Quantization Error and LSBs Each code (digital value) represents a range of analog inputs; e.g., the ADC will read 01 for any voltage in the range ( /4, /2). The best we can do is assume that 01 means 3 /8. Since the actual voltage could be as low as /4 or as high as /2, there is a potential error of ± /8. This error is called quantization error. Quantization error is inherent in the process of converting a continuous analog voltage to a finite number of discrete digital values. Even an ideal converter introduces quantization error. The absolute value of the quantization error in volts (along with most other types of conversion errors) depends on the voltage range (i.e. the value of ) and the resolution of the converter. To normalize these parameters away, errors are typically expressed in terms of the ideal analog voltage difference represented by a unit change in the digital value. Output Code 11 10 01 Since this unit change represents a change in the least significant bit of the digital value, this voltage difference is referred to as an LSB. Quantization error is always ±1/2 LSB. 00 0 4 2 3 4 Input Voltage EECS 373 F99 Notes 7-2 1998, 1999 Steven K. einhardt

Accuracy Non-linearity (or absolute accuracy) is the absolute deviation from the ideal transfer curve. The total error bound is the sum of the magnitudes of the absolute accuracy and the quantization error. Differential non-linearity is the deviation of the difference between two consecutive codes from the ideal 1 LSB difference. An absolute non-linearity of ±1/4 LSB could result in a differential non-linearity of ±1/2 LSB. The manufacturer may or may not specify a tighter bound on differential non-linearity. A converter is monotonic if an increase/decrease in the digital code always corresponds to an increase/decrease in the analog voltage. A non-monotonic converter by definition has > ±1/2 LSB non-linearity. Full-scale error (also called just scale error) is the deviation from the ideal at full scale (i.e. code is all 1 s). Note that the ideal full scale is (2 n -1)/2 n *, not. Typically full-scale error (and its counterpart zero error) can be adjusted to 0 using external potentiometers, if necessary. Conversion Time Conversion time is simply the time required to convert an input to an output. Depending on the type of converter (i.e., the internal design), conversion time can range from a few nanoseconds to a few milliseconds. As we will see shortly, designing converters is a three-way tradeoff between cost, conversion time, and accuracy. Some converters are internally pipelined to provide conversion rate > 1/(conversion time). ADCs: Most ADCs provide an end of conversion signal that can be used as an interrupt input. A sample-and-hold ADC samples the analog input at the start of its conversion process and produces a code representing that specific voltage. An averaging ADC produces a code representing the average input voltage over the conversion time. Other ADCs may rely on you to not change the voltage (e.g. with an external sample-and-hold). DACs: DAC conversion time is typically specified as the settling time required for the output to reach the specified accuracy. Most DACs can be driven faster than the specified conversion rate at a corresponding loss of accuracy. EECS 373 F99 Notes 7-3 1998, 1999 Steven K. einhardt

DAC Types /2 Ladder Voltage divider D in [2] 2 2-to-4 decoder 2 2 2 2 V out I out D3 (MSB) D2 D1 D0 (LSB) Cheaper: ~2n resistors, n switches Fast Expensive: requires 2 n resistors, switches accuracy depends on matching all resistor values (but not exact resistor values) Again, accuracy depends on matching all resistor values (but not exact resistor values) Harder to enforce monotonicity (consider 0111 -> 1000) Provides current output; op-amp required to convert to voltage, increases conversion time Guaranteed monotonic EECS 373 F99 Notes 7-4 1998, 1999 Steven K. einhardt

ADC Types Successive Approximation (SA) Flash V in DAC D out 3 2 priority encoder 1 D out [2] V in control CLK binary search to match voltage n successive approximation register V cc ADC equivalent of voltage-divider DAC Same issues: fast but expensive (2 n resistors, 2 n -1 comparators) 0 Algorithm: 1. Set successive approximation register to 0 2. Starting at MSB, flip one bit to 1 3. If DAC output < V in, leave, else reset to 0 4. go to next bit example: 4-bit ADC, Vref = 4.8V, Vin = 3.2V need fairly stable input through conversion process much cheaper than flash (only one comparator, 2 n or 2n resistors depending on DAC type) conversion time > n times DAC settling time EECS 373 F99 Notes 7-5 1998, 1999 Steven K. einhardt

ADCs Cont d Dual-slope Integration Single-slope Integration similar to single-slope, but uses full charge/discharge cycle to cancel out dependence on component values V in V cc I C CLK EN CLK counter DONE charge C from I Vin while counting from 0 to Dmax then discharge C at constant current while counting from 0 final counter value is D out start: reset counter, discharge C charge C at fixed current I until V C > V in final counter value is D out slow (can be many milliseconds) high resolution, good differential linearity eliminates dependence on precision of (most) components, including C, clock automatically compensates for compnent drift due to temperature, etc. inherently averaging very accurate (>20 bits) still slow absolute accuracy (linearity) depends on precision of C, clock, current source (I), etc. EECS 373 F99 Notes 7-6 1998, 1999 Steven K. einhardt