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



Similar documents
DIGITAL-TO-ANALOGUE AND ANALOGUE-TO-DIGITAL CONVERSION

Conversion Between Analog and Digital Signals

Digital to Analog Converter. Raghu Tumati

Digital to Analog and Analog to Digital Conversion

Section 3. Sensor to ADC Design Example

MAS.836 HOW TO BIAS AN OP-AMP

W a d i a D i g i t a l

OPERATIONAL AMPLIFIER

1. Oscilloscope is basically a graph-displaying device-it draws a graph of an electrical signal.

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

LEVERAGING FPGA AND CPLD DIGITAL LOGIC TO IMPLEMENT ANALOG TO DIGITAL CONVERTERS

6.025J Medical Device Design Lecture 3: Analog-to-Digital Conversion Prof. Joel L. Dawson

Digital To Analog Converter with Sine Wave Output

Operational Amplifier as mono stable multi vibrator

Upon completion of unit 1.1, students will be able to

Interfacing Analog to Digital Data Converters

Chapter 12: The Operational Amplifier

Pulse Width Modulation

Chapter 19 Operational Amplifiers

A Multichannel Storage Capacitor System for Processing of Fast Simultaneous Signals. Atsushi Ogata. IPPJ-T-16 Oct. 1973

Analog signals are those which are naturally occurring. Any analog signal can be converted to a digital signal.

Micro-Step Driving for Stepper Motors: A Case Study

Use and Application of Output Limiting Amplifiers (HFA1115, HFA1130, HFA1135)

Programmable Single-/Dual-/Triple- Tone Gong SAE 800

AP-1 Application Note on Remote Control of UltraVolt HVPS

Lab 7: Operational Amplifiers Part I

A PC-BASED TIME INTERVAL COUNTER WITH 200 PS RESOLUTION

Analog/Digital Conversion. Analog Signals. Digital Signals. Analog vs. Digital. Interfacing a microprocessor-based system to the real world.

Welcome to this presentation on Switch Mode Drivers, part of OSRAM Opto Semiconductors LED Fundamentals series. In this presentation we will look at:

3-Phase Synchronous PWM Controller IC Provides an Integrated Solution for Intel VRM 9.0 Design Guidelines

Analog Devices Welcomes Hittite Microwave Corporation NO CONTENT ON THE ATTACHED DOCUMENT HAS CHANGED

LOW COST MOTOR PROTECTION FILTERS FOR PWM DRIVE APPLICATIONS STOPS MOTOR DAMAGE

PLL frequency synthesizer

Analog Signal Conditioning

Android based Alcohol detection system using Bluetooth technology

Digital Sampling Oscilloscope

Microcontroller to Sensor Interfacing Techniques

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

PowerPC Microprocessor Clock Modes

Application Note 142 August New Linear Regulators Solve Old Problems AN142-1

1. Learn about the 555 timer integrated circuit and applications 2. Apply the 555 timer to build an infrared (IR) transmitter and receiver


6.101 Final Project Proposal Class G Audio Amplifier. Mark Spatz

How To Calculate The Power Gain Of An Opamp

Lab Unit 4: Oscillators, Timing and the Phase Locked Loop

Digital Electronics Detailed Outline

How To Power A Power Supply On A Microprocessor (Mii) Or Microprocessor Power Supply (Miio) (Power Supply) (Microprocessor) (Miniio) Or Power Supply Power Control (Power) (Mio) Power Control

HITACHI INVERTER SJ/L100/300 SERIES PID CONTROL USERS GUIDE

Measuring Temperature withthermistors a Tutorial David Potter

10 BIT s Current Mode Pipelined ADC

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa

LM 358 Op Amp. If you have small signals and need a more useful reading we could amplify it using the op amp, this is commonly used in sensors.

PLAS: Analog memory ASIC Conceptual design & development status

CHAPTER 11: Flip Flops

AVR127: Understanding ADC Parameters. Introduction. Features. Atmel 8-bit and 32-bit Microcontrollers APPLICATION NOTE

5B5BBasic RC Oscillator Circuit

ADC-20/ADC-24 Terminal Board. User Guide DO117-5

ADS9850 Signal Generator Module

Basic Op Amp Circuits

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Electronic Circuits Spring 2007

The 2N3393 Bipolar Junction Transistor

Microcomputers. Analog-to-Digital and Digital-to-Analog Conversion

AVR131: Using the AVR s High-speed PWM. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE

POCKET SCOPE 2. The idea 2. Design criteria 3

Application Note. Line Card Redundancy Design With the XRT83SL38 T1/E1 SH/LH LIU ICs

A Digital Timer Implementation using 7 Segment Displays

Abstract. Cycle Domain Simulator for Phase-Locked Loops

b 1 is the most significant bit (MSB) The MSB is the bit that has the most (largest) influence on the analog output

Fundamentals of Signature Analysis

Switch Mode Power Supply Topologies

SINGLE-SUPPLY OPERATION OF OPERATIONAL AMPLIFIERS

LTC Channel Analog Multiplexer with Serial Interface U DESCRIPTIO

Frequency Response of Filters

Experiment #11: LRC Circuit (Power Amplifier, Voltage Sensor)

Complete, High Resolution 16-Bit A/D Converter ADADC71

A 1-GSPS CMOS Flash A/D Converter for System-on-Chip Applications

Little LFO. Little LFO. User Manual. by Little IO Co.

Analog Representations of Sound

Objectives: Part 1: Build a simple power supply. CS99S Laboratory 1

Model AD558J AD558K AD558S 1 AD558T 1 Min Typ Max Min Typ Max Min Typ Max Min Typ Max Units

DAC Digital To Analog Converter

Chapter 9 Latches, Flip-Flops, and Timers

LM118/LM218/LM318 Operational Amplifiers

Performance Comparison of an Algorithmic Current- Mode ADC Implemented using Different Current Comparators

Transistor Characteristics and Single Transistor Amplifier Sept. 8, 1997

DM Segment Decoder/Driver/Latch with Constant Current Source Outputs

Study Guide for the Electronics Technician Pre-Employment Examination

A Lesson on Digital Clocks, One Shots and Counters

Multipurpose Analog PID Controller

WHY DIFFERENTIAL? instruments connected to the circuit under test and results in V COMMON.

A Lesson on Digital Clocks, One Shots and Counters

Precision Diode Rectifiers

ADC12041 ADC Bit Plus Sign 216 khz Sampling Analog-to-Digital Converter

Technical Aspects of Creating and Assessing a Learning Environment in Digital Electronics for High School Students

TEA1024/ TEA1124. Zero Voltage Switch with Fixed Ramp. Description. Features. Block Diagram

MADR TR. Single Driver for GaAs FET or PIN Diode Switches and Attenuators Rev. V1. Functional Schematic. Features.

How To Use An Ionsonic Microscope

Transcription:

Chapter 6: From Digital-to-Analog and Back Again Overview Often the information you want to capture in an experiment originates in the laboratory as an analog voltage or a current. Sometimes you want to use digital information to control a piece of laboratory equipment. In either case, you need something to interface between digital electronics and analog electronics. Depending on which of the two tasks you want to do, you will either use a Digital to Analog Converter (DAC) or an Analog to Digital Converter (ADC). Note that, while ADC is usually referred to by its initials, DAC is usually pronounced to rhyme with back. It is easy to get confused because a related term, DAQ, is a contraction for the generic term computer-based Data Acquisition, which refers to the computer-based collection of digital data. This week you will explore DACs and ADCs, with the ultimate goal of creating an ADC to DAC circuit which is one the building blocks for a Digital Signal Processing (DSP) circuit. The circuit will allow you to compare an analog input signal to the digitally generated, or synthesized, output signal. You will also see the idiosyncrasies of the digitization process including an effect called aliasing. We saw that fast analog signals can be degraded when you put them through an amplifier but effects like slew rates and frequency roll ups. In general, the fasts signals looked smoothed an attenuated. Digitized signals can show weird beatfrequency effects if the sampling rate is slower that the periods of the analog signal. This aliasing is actually a form of difference- frequency generation. In practice, the beat signal can actually be used to lock two frequencies together to a very high accuracy. I. Digital to Analog Converters (DAC) Most modern laboratory equipment can be controlled electronically. In the best case, the equipment will have a digital interface so that a computer can control the equipment by sending digital commands. When that is not possible, you can usually control the equipment with an analog (voltage or current) signal. In this case, a DAC can translate your computer s digital signals into analog signals to control the equipment. DACs are ICs that have an internal series of switches to connect a combination of divided reference values into an op-amp-based summing amplifier. It is easy to make the divided reference voltages using a clever device called an -2 resistor ladder, as shown in Figure 6-1. Look at this ladder from the right-hand side, and you will see two parallel resistors, each with a value of 2. This has an equivalent resistance of. When you add the Figure 1: -2 resistor ladder. - 1 -

horizontal (series) resistor you get a total of 2 again. However, the next (to the left) 2 resistance to ground again produces an equivalent total resistance of. Continuing farther to the left, we find that the effective resistance to ground is at every dot on the top line! When connected to a supply voltage, the ladder acts like a series of voltage dividers that reduces the voltage by an additional factor of 2 at each -2 junction. V IN decreases by half at each connection point along the top rail. Thus each output voltage is related to the input voltage by a power of two. We can generate an analog voltage by adding together the voltages represented by the various stages in the ladder. If we only sum outputs based on a simple a binary representation we can produce a DAC. Note that the current through each 2 leg also reduces by a factor of 2 from left to right. This means that one can use these legs to generate a voltage signal or a current signal depending on what your particular equipment needs. Usually, current signals are faster, since they drive low impedance devices, and a lower means a faster C time constant. Finally, the impedance to ground at each -2 junction always has the same value of. Voltage Mode We will use the TLC7524 8-bit DAC, which can operate in either a voltage mode or a current mode. In either case, the DAC uses the binary input bits to control switches that force the output current through one of two output lines. Usually, one line (typically OUT2) is tied to ground. In voltage mode, the output is simply given by V OUT =V EF D/256, Where V EF is connected to OUT1, D is the input binary number, and the output voltage occurs at EF. Figure 2: TLC7524 functional diagram. - 2 -

This essentially uses the -2 voltage divider with active loads to generate the digitally controlled voltage. The voltage mode is simple to connect, but the output cannot drive much current, since it has high output impedance. Current Mode In the current mode, one uses the output current in one of the two OUT legs. Typically, one connects these outputs to an op-amp to achieve a voltage-level output with low output impedance. The speed of the conversion process will then be limited by the response time of the op-amp. You may observe the inherent speed of the DAC by measuring the width of the current pulses along OUT1. In this configuration, the inverting amplifier changes the output sign, so that V OUT = V EF D/256. In order to get a positive output, you must use a negative V EF. emember that you must also supply power for the op-amp. Figure 3: DAC in current mode, with an op-amp follower. II. Analog to Digital Converters (ADC) Even before the days of computer-controlled equipment, computers routinely processed data from experiments. Of course, this means that the data must first be translated from its natural analog condition into a digitized signal appropriate for a computer. Data acquisition systems, which are primarily Analog to Digital Converters (ADC), serve this role. Because this is such an important function these converters come in a variety of types using several different digitization techniques. The primary measures of an ADC are is speed and its accuracy (quoted in number of output bits). Often these are complementary, so that an 8-bit converter is usually faster than a 12-bit converter. When you are designing a system, you might also consider cost, complexity, output mode (parallel or serial data). Some ADCs have a Sample and Hold circuit at the front end that captures the voltage signal so that the converter can take its time to digitize. - 3 -

One common ADC uses a clock to progressively approximate the input signal. Essentially, it sums the output of a DAC with the target signal. On the each clock tick, it sets increasing lower significant digits by checking the value of a voltage comparator that is fed by the target voltage and the output of the DAC. This ADC method is called successive approximation. Another technique converts the voltage to a frequency (using a voltage-controlled oscillator) and counts the frequency. Yet another method charges a capacitor with a constant current source until the capacitor s voltage is higher than the input voltage, while counting clock pulses. The fastest ADCs (parallel encoded or flash ADCs shown in figure 4) compare the input voltage to a set of 2 n voltages and determine the lowest voltage greater than the input. This requires lots of comparators, but it is very fast. These ADCs can digitize data at rates of several GHz. The fastest ones, of course, are the most expensive. V EF V in 3-bit encoder bit-0 bit-1 bit-2 V EF V in 3-bit encoder bit-0 bit-1 bit-2 Figure 4: 3-bit flash ADC. The resistor network provides a series of reference voltages for the comparators. All the comparators above the input voltage go high, and the encoder converts the comparator outputs to a 3-bit binary number. We will use the ADC0820 and TLC5510, which are flash ADCs. In order to keep the number of comparators small, they hold the input voltage, and then convert it in two steps. First, They convert the upper four bits by comparing the voltage to 15 voltages - 4 -

from an -2 ladder. Next, they convert the digitized value back into an analog value (reusing the -2 ladder) and subtract this from the input to generate the smaller, difference voltage. Finally, they use a second set of 15 comparators to measure the result against 16 lower voltages. The entire process takes less than 800 ns, when operating off the internal timing of the ADC0820, and less than 150 ns for TLC5510. In the case of the ADC0820, you can run it somewhat faster with some clever timing (W-D) mode, but we will opt for simplicity. In the D mode, the conversion starts when the W# line goes low. When the conversion is complete, the INT# line goes low, and the data have been latched into the output buffers. The output buffers will be put into a high Z state when W# goes low, until the INT# line goes low. No Design Exercise this week - 5 -