Lecture 6: Digital/Analog Techniques

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

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

A-D and D-A Converters

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

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

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

EEE312: Electrical measurement & instrumentation

Linear Integrated Circuits

CENG4480 Lecture 04: Analog/Digital Conversions

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

Outline. Analog/Digital Conversion

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

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

Digital to Analog Conversion. Data Acquisition

University of Pittsburgh

Analogue to Digital Conversion

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

16.2 DIGITAL-TO-ANALOG CONVERSION

Chapter 5: Signal conversion

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

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

Chapter 2 Signal Conditioning, Propagation, and Conversion

Learning Objectives:

CHAPTER 6 DIGITAL INSTRUMENTS

Analogue to Digital Conversion

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

IFB270 Advanced Electronic Circuits

Transistor Design & Analysis (Inverter)

Electronics A/D and D/A converters

PHYS225 Lecture 22. Electronic Circuits

arxiv:physics/ v1 [physics.ed-ph] 19 Oct 2004

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

Low Cost 10-Bit Monolithic D/A Converter AD561

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

LINEAR IC APPLICATIONS

CONTENTS Sl. No. Experiment Page No

EECS 373 Design of Microprocessor-Based Systems

Data Conversion and Lab (17.368) Fall Lecture Outline

EEE3410 Microcontroller Applications Department of Electrical Engineering. Lecture 10. Analogue Interfacing. Vocational Training Council, Hong Kong.

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

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

P a g e 1. Introduction

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

Difference between BJTs and FETs. Junction Field Effect Transistors (JFET)

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

Analog to Digital Converters

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

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

Dual 16-Bit DIGITAL-TO-ANALOG CONVERTER

Basic Operational Amplifier Circuits

CMOS 12-Bit Multiplying DIGITAL-TO-ANALOG CONVERTER Microprocessor Compatible

Analog-to-Digital Conversion

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

Fig 1: The symbol for a comparator

Data Converters. Lecture Fall2013 Page 1

Analog to Digital Conversion

How do ADCs work? Martin Rowe, Senior Technical Editor -- 7/1/2002 Test & Measurement World

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

Data acquisition and instrumentation. Data acquisition

Op-amp characteristics Operational amplifiers have several very important characteristics that make them so useful:

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

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

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

Question Paper Code: 21398

University of Utah Electrical & Computer Engineering Department ECE 1250 Lab 4 Pulse Width Modulation Circuit

Assoc. Prof. Dr. Burak Kelleci

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

EE283 Electrical Measurement Laboratory Laboratory Exercise #7: Digital Counter

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

INTEGRATED CIRCUITS. AN109 Microprocessor-compatible DACs Dec

B.E. SEMESTER III (ELECTRICAL) SUBJECT CODE: X30902 Subject Name: Analog & Digital Electronics

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

Lab Exercise 6: Digital/Analog conversion

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

CHAPTER ELEVEN - Interfacing With the Analog World

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

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

6-Bit A/D converter (parallel outputs)

Analytical Chemistry II

ANALOG AND DIGITAL INSTRUMENTS

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

Lecture 3: Transistors

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

Octal Sample-and-Hold with Multiplexed Input SMP18

4. Digital Measurement of Electrical Quantities

FIRSTRANKER. 1. (a) What are the advantages of the adjustable voltage regulators over the fixed

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

University of California at Berkeley Donald A. Glaser Physics 111A Instrumentation Laboratory

CMOS 12-Bit Serial Input Multiplying DIGITAL-TO-ANALOG CONVERTER

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

New Current-Sense Amplifiers Aid Measurement and Control

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

Applying the New CMOS MICRO-DAC

12-Bit Successive-Approximation Integrated Circuit ADC ADADC80


St.MARTIN S ENGINEERING COLLEGE

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

Linear IC s and applications

Data Conversion and Lab Lab 4 Fall Digital to Analog Conversions

MICROWIND2 DSCH2 8. Converters /11/00

Transcription:

Lecture 6: Digital/Analog Techniques The electronics signals that we ve looked at so far have been analog that means the information is continuous. A voltage of 5.3V represents different information that a voltage of 5.4V For most of the remainder of the semester, we ll investigate the processing of digital information In digital electronics, we define a range of voltages called low and another range called high For example, 0-2V may be low, and 5-10V may be high The information carried is either a 0 (voltage in low range) or 1 (voltage in high range) circuits are built so that voltages in the middle are not possible if such a voltage is observed, it means something is broken!

Advantages to Digital It seems that we lose a lot of information in going from analog to digital processing But more and more real signal processing is digital, because: noise is much less of a concern. A small noise voltage on top of the signal can distort analog information, but has no effect digitally digital information is easier to store. One could design a system of capacitors to retain a fixed analog charge, but even small leakage would result in the information being lost over time digital information can easily be processed in logical operations like AND and OR. These operations are at the heart of all computers

Analog to digital conversion To bridge the digital/analog gap, we ll explore how one might convert between analog and digital signals We start with digital signals (bits) carried on a set of wires one bit per wire The set of bits represent a number in binary number system with base 2, instead of the base 10 we re used to for example, the number 5 in binary is 101 5 = 1*2 2 + 0*2 1 + 1*2 0 the more bits we have, the more numbers we can represent We want to convert this information to an analog voltage (carried on a single wire)

One way to make a digital-to-analog converter (DAC) is the following: Least significant bit (LSB) Most signifi cant bit (MSB) The digital input determines which of the four switches is closed low bit means switch is open with all four switches open, V out is 0

Let s see what happens as we close other switches: If we close the LSB switch, we find (using ideal op-amp rules): R V = 0 = V 8IR = V out I 2 V R V Vout = = 8R2 16 this is the smallest voltage increment possible for this DAC Closing the MSB switch gives: V = 0 = V IR = V out I V out V R V = = R2 2 R 2 8 times bigger than LSB value

Now we ll close all four switches: The resistance between +V and V - is: 1 1 2 4 8 15 = + + + = R R R R R R T R RT = 15 Which means the output voltage is: R R V = 0 = V I 15 = V out I 2 15V R 15V Vout = = R 2 2 which is 15 times the LSB value

While that circuit will work in principle, it s not really practical to keep current draw low, R can t be too small let s say we make it 10kΩ if we want a 10-bit DAC, the biggest resistor would then be 2 9 x 10kΩ, which is 5MΩ hard to put that kind of resistance on an IC There s also a problem due to stray capacitance that means that adjacent wires can act as small capacitors for this circuit, the total stray capacitance might be ~100pF that means that the time it takes for the output to reach its desired value after the switches are closed is t = RC = Ω = 4 5M 100pF 5 10 s that might seem pretty quick to you and me, but to a computer it would be painfully slow

A better DAC Let s try this design instead: D C B MSB A I 0 I 4 I 3 I 2 I 1 LSB I R Note that V - is a virtual ground that is, its voltage is nearly 0 Hence moving the switches does not change the total current flowing from V CC but it does change the current flowing through the feedback resistor

The output voltage is: V = 0 = v out I RR v = I R Looking at the ladder from point A, the equivalent resistance to ground is: 1 1 1 = + R 2R 2R Meaning we could redraw the ladder as: out R T T R = R

Looking at this equivalent ladder from point B, we see the same resistance to ground as the original ladder had from point A. So we could draw a new equivalent ladder as: At this point, we see the pattern will keep repeating thus the total resistance of the ladder is R this is true no matter how long the ladder is The total current flowing from V CC is V CC /R

What about the individual currents I 1 through I 4? Look at the ladder from point D there are two paths through ground: 1. Through a single resistor 2R (this is where I 1 flows) 2. Through a resistor R, and then the ladder at point C but we already know that all ladders have resistance R so the total resistance for this path is also 2R this means the current splits up evenly at point D, so: I 4 1 VCC = IT = 2 2R Similarly, even current splits occur at points C, B, and A, so: VCC VCC VCC I3 = ; I2 = ; I1 = 4R 8R 16R

Now let s switch the LSB so it s connected to V - the total current flowing toward V - is then I 1 = V CC /16R which means v out is V CC /16 If instead the MSB switch is connected to V -, we have VCC vout = I4R = 2 So we see this circuit does in fact act as a DAC Advantages: only two resistor values needed resistance can be modest (no matter how many bits are to be converted) settling time is therefore much faster

Analog-to-Digital Converters (ADCs) We sometimes also want to go in the other direction, and convert an analog voltage to a set of bits used all the time in physics experiments for example, to convert analog information about the ionization from a charged particle into digital form for storage and processing on a computer We ve already seen one such circuit the comparator this converts an analog voltage into one bit of information But what if we want more bits?

That s easy! We ll just use a lot of comparators: Each op-amp compares V in to V +

The V + values at each op-amp input are the result of the voltage divider from V CC i.e., the op-amp on bottom sees a voltage of V CC /8, while the one on top sees 7V CC /8 Note that there are only 8 possible outputs from the comparators this is a 3-bit ADC Additional processing is required to convert the eight output lines from the comparators to a binary number that s what the chip on the right side of the schematic does it s called a priority encoder

The main advantage of this design is that it s fast result of voltage comparisons can propagate through opamps and priority encoder in a few ns The drawbacks are: you need a lot of comparators (256 for an 8-bit DAC, 65,536 for a 16-bit DAC!) accuracy is limited by tolerance of resistors

Ramp DAC Parts of this are familiar the comparator and active integrator Other parts are digital devices we haven t seen before the AND gate s output is 1 if both inputs are 1, and 0 otherwise we ll talk about this more next week AND gate

The clock is just a square wave generator output periodically switches between 0 and 1 The counter s output is a binary number equal to the number of times the input has been 1 since the last time the counter was reset The circuit works as follows signal is sent to discharge capacitor and reset clock (capacitor discharged though FET switch) input to comparator (v c ) is integral of V ref in other words, a linearly increasing voltage as long a v in > v c, comparator output is 1 thus, output of AND gate is 1 whenever the clock is 1 once v in < v c, the comparator outputs 0 counter stops incrementing! The couter output is v in in binary

This ADC is more precise and simpler than the one using many comparators However, it s slower (have to wait for voltage to integrate) An even better solution is the dual slope ramp ADC The only difference is that the inputs are rearranged:

In this case, when one starts the conversion the switch is set to the unknown v in This is then integrated for a fixed number of clock cycles usually a multiple of the AC power period Then the switch is set to v ref, and the counter is told to start counting capacitor then starts discharging when voltage across capacitor falls to 0, comparator output goes to 0, and counter stops As before, the value stored in the counter is now proportional to v in

This ADC is more precise than the single-ramp one because: same clock is used for both charging and discharging the capacitor so if the frequency drifts slowly over time, we don t care similarly, if the capacitor degrades slowly, that won t affect the output noise coming from the power line is averaged out in the initial integration