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

Similar documents
UNIVERSITY of PENNSYLVANIA DEPARTMENT OF ELECTRICAL AND SYSTEMS ENGINEERING ESE Undergraduate Labs Electrical Circuits and Systems II Laboratory

Lab 2 Operational Amplifier

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

Lab Exercise 6: Digital/Analog conversion

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

Data Conversion and Lab (17.368) Fall Lecture Outline

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

P a g e 1. Introduction

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

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

Lab: Operational Amplifiers

BME 3512 Bioelectronics Laboratory Five - Operational Amplifiers

A-D and D-A Converters

Digital to Analog Conversion. Data Acquisition

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

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

Intro To Engineering II for ECE: Lab 7 The Op Amp Erin Webster and Dr. Jay Weitzen, c 2014 All rights reserved.

CHAPTER ELEVEN - Interfacing With the Analog World

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

Data Conversion and Lab Lab 4 Fall Digital to Analog Conversions

DEPARTMENT OF ELECTRICAL ENGINEERING LAB WORK EE301 ELECTRONIC CIRCUITS

EE 210 Lab Exercise #4 D/A & A/D Converters

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

DiMarzio Section Only: Prelab: 3 items in yellow. Reflection: Summary of what you learned, and answers to two questions in green.

Dr. Cahit Karakuş ANALOG SİNYALLER

University of Pittsburgh

ECE ECE285. Electric Circuit Analysis I. Spring Nathalia Peixoto. Rev.2.0: Rev Electric Circuits I

EE 368 Electronics Lab. Experiment 10 Operational Amplifier Applications (2)

Analog to Digital Converters

Chapter 2 Signal Conditioning, Propagation, and Conversion

Electronics I. laboratory measurement guide

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

Data Acquisition: A/D & D/A Conversion

CENG4480 Embedded System Development and Applications The Chinese University of Hong Kong Laboratory 1: Op Amp (I)

Lecture 6: Digital/Analog Techniques

EQUIVALENT EQUIPMENT CIRCUITS

Operational Amplifiers

Lab Exercise # 9 Operational Amplifier Circuits

Operational Amplifiers (Op Amps)

Rowan University Freshman Clinic I Lab Project 2 The Operational Amplifier (Op Amp)

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

Integrators, differentiators, and simple filters

EET 150 Introduction to EET Lab Activity 12 Temperature Sensor Amplifier Project

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

University of Portland EE 271 Electrical Circuits Laboratory. Experiment: Digital-to-Analog Converter

Operational Amplifiers

Module 9C: The Voltage Comparator (Application: PWM Control via a Reference Voltage)

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

Non_Inverting_Voltage_Follower -- Overview

Prepare for this experiment!

Data acquisition and instrumentation. Data acquisition

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

IFB270 Advanced Electronic Circuits

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

Data Conversion and Lab Lab 1 Fall Operational Amplifiers

LABORATORY 2: Bridge circuits, Superposition, Thevenin Circuits, and Amplifier Circuits

When you have completed this exercise, you will be able to relate the gain and bandwidth of an op amp

16.2 DIGITAL-TO-ANALOG CONVERSION

Instructions for the final examination:

ESE 150 Lab 04: The Discrete Fourier Transform (DFT)

DEPARTMENT OF ELECTRICAL ENGINEERING LAB WORK EE301 ELECTRONIC CIRCUITS

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

Experiment No. 4 The LM 741 Operational Amplifier

ECE 480: SENIOR DESIGN LABORATORY

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

FYS3240 PC-based instrumentation and microcontrollers. Signal sampling. Spring 2015 Lecture #5

BINARY AMPLITUDE SHIFT KEYING

Figure 1: Basic Relationships for a Comparator. For example: Figure 2: Example of Basic Relationships for a Comparator

Section3 Chapter 2: Operational Amplifiers

Name: Resistors and Basic Resistive Circuits. Objective: To gain experience with data acquisition proto-boards physical resistors. Table of Contents:

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

Exercise 2: Source and Sink Current

Function Generator Using Op Amp Ic 741 Theory

Chapter 3 THE DIFFERENTIATOR AND INTEGRATOR Name: Date

PC-based controller for Mechatronics System

MASSACHUSETTS INSTITUTE OF TECHNOLOGY

Electronic Instrumentation ENGR-4300 Fall 2004 Section Experiment 7 Introduction to the 555 Timer, LEDs and Photodiodes

EE 1210 Op Amps, Gain, and Signal Integrity Laboratory Project 6

ME 461 Laboratory #5 Characterization and Control of PMDC Motors

FYS3240 PC-based instrumentation and microcontrollers. Signal sampling. Spring 2017 Lecture #5

ESE 150 Lab 04: The Discrete Fourier Transform (DFT)

University of North Carolina-Charlotte Department of Electrical and Computer Engineering ECGR 3157 Electrical Engineering Design II Fall 2013

EE 240 Evaluation of Circuits Laboratory. Muhammad Khaliq Julio C. Mandojana

CENG4480 Lecture 04: Analog/Digital Conversions

Electronics and Instrumentation Name ENGR-4220 Spring 1999 Section Experiment 4 Introduction to Operational Amplifiers

Group: Names: Resistor Band Colors Measured Value ( ) R 1 : 1k R 2 : 1k R 3 : 2k R 4 : 1M R 5 : 1M

The Field Effect Transistor

UNIVERSITY OF NORTH CAROLINA AT CHARLOTTE Department of Electrical and Computer Engineering

Lab 9 RF Wireless Communications

Outline. Analog/Digital Conversion

Lab 11: 555 Timer/Oscillator Circuits

Exercise 2: Temperature Measurement

Analog-to-Digital Conversion

Data Conversion and Lab Lab 3 Spring Analog to Digital Converter

EE 3101 ELECTRONICS I LABORATORY EXPERIMENT 9 LAB MANUAL APPLICATIONS OF IC BUILDING BLOCKS

ECE159H1S University of Toronto 2014 EXPERIMENT #2 OP AMP CIRCUITS AND WAVEFORMS ECE159H1S

Inverting_Amplifier -- Overview

Analog to Digital Conversion

LAB 5 OPERATIONAL AMPLIFIERS

EECS 318 Electronics Lab Laboratory #2 Electronic Test Equipment

Transcription:

University of Pennsylvania Department of Electrical and Systems Engineering ESE Undergraduate Laboratory Analog to Digital Converter PURPOSE The purpose of this lab is to design and build a simple Digital-to-Analog (DAC) converter using an OpAmp (LM741) and resistors. You will apply Thévenin s theorem to analyze an R-2R ladder network. Figure 1 Screen capture from the scope showing input (Ch1, Yellow) to ADC, output (Ch2, Green) from DAC and digital outputs D0, D1, D2 from 74148 encoder.

BACKGROUND Digital-to-Analog Converter: The input to a DAC is a binary word of n-bits and the output is an analog value, as schematically shown in Figure 2a. Figure 2: (a) DAC block diagram; (b) input-output characteristic of a DAC The n-bit word (or digital code) is a digital representation of a signal. The relationship between the analog output value and the binary word is for the case of a 3-bit code (b 2,b 1,b o ), as follows: V DAC = K 1 (b 2 /2 + b 1 /4 + b o /8) V ref V DAC =(b 2 /2 + b 1 /4 + b o /8) FS In which K 1 is a scale factor, V ref is a reference voltage, FS stands for Full Scale (=K 1 xv ref ) and b i is the ith bit of the digital word. The bit b o is called the least significant bit (LSB) and b 2 is the most significant bit (MSB). Each time the LSB changes the analog output will change by a value equal to FS/2 3 for a three bit DAC (or by FS/2 N for a N bit DAC). As an example, let s assume that the digital input is equal to (101), K 1 = 1 and the reference V ref = 5V. The output voltage will then be: V DAC = K(1/2 + 0/4 +1/8) V ref = 5/8xV ref = 5/8xFS = 3.125 V For each digital input (b 2,b 1,b o ) there will be a corresponding output as shown in Figure 2b for a total of 2 3 = 8 possible digital words. Notice that only discrete values of the output signal are possible. The more bits the input word has, the smaller the steps of the output signal will be (or the better the resolution). Typical ADCs have at least 8 bits of resolution and even 12 to 16 bits are not uncommon. In order to keep the lab manageable we will limit ourselves to building a simple 3-bit DAC and ADC. For more bits, one can extend the same principle by using more components. The scheme used in the lab to build these converters is only one of many possible designs. For higher resolution converters more sophisticated architectures are used. You will learn more about this in other classes.

PRE-LAB ASSIGNMENT 1. A practical circuit to implement a DAC converter is a R-2R ladder network, as shown in Figure 3a. Figure 3: (a) R-2R ladder network; (b) Thévenin's equivalent network Do a detailed circuit analysis in your notebook to show that the Thévenin's equivalent resistance and voltage, as shown in Figure 3b, is equal to: R T = R and V T = (V 2 /2+ V 1 /4 + V o /8) You can use the superposition principle to find Thévenin's equivalent voltage. 2. Assume that the voltages in the circuit of Fig. 3 can be either 0 or 5V, what is the smallest increment of the output voltage V out in the previous circuit of Fig. 3 (for one increment in binary number), i.e. the value of 1 LSB (as defined in Figure 2b)? 3. Design an OpAmp interface circuit whose input connects to the output of the R-2R ladder network so that each increment in the binary number produces 1V (or a -1V) increase (decrease) in output voltage V DAC (e.g. a (001) 2 gives a 1V output, a (011) 2 gives a 3V, while a (111) 2 gives a 7V output). Give the circuit and the calculations to find the resistor values. 4. In your lab notebook, calculate the expected analog output voltage (at the output of the OpAmp circuit) for each of the binary words of Table 1 D2 D1 D0 VDAC (calc.) (Volt) 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 Table 1 Expected Analog Voltage Vout(meas.) (Volt) 5. Draw a diagram similar to the one on figure 2b in your lab notebook, using the calculated values for V DAC.

IN LAB ASSIGNMENT A. Equipment 1. Digital Multimeter (HP34401A) 2. Triple output programmable power supply (HP E3631A) 3. Protoboard 4. Blue box with cables and connectors 5. Resistors 6. Potentiometer 7. Oscilloscope 8. Digital Probes 9. OpAmp LM 741 10. 7404 TTL Inverter B. Procedure 1. Build the R-2R ladder DAC as shown in figure 4. This circuit is similar to the one on your pre-lab. We only added an op-amp to amplify the output of the resistor ladder network. Calculate R1 and R2 such that the gain of the circuit is XXX. Figure 4 R-2R ladder network Fill out table 2 with your V OUT and V DAC calculated and measured values for the different switch configurations (Note that the 1s on the table correspond to the switch connected to 5V and the 0s to the switches connected to ground).

D2 D1 D0 Calculated V OUT Measured V OUT Calculated V DAC Measured V DAC 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 Table 2 Answers to first step 2. Modify your op-amp interface such that each increment in the binary number generates a 1V increment at the output. Measure and record the R1 and R2 values that gave you that kind of response. Use the following table to record the calculated and measured values of VDAC. D2 D1 D0 V OUT Calculated V DAC Measured V DAC 0 0 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 ~5V ~7V Table 3 Results for 1V increment 3. Next, you will interface your circuit from last week with the one that you just built. Connect D0, D1 and D2 from last week s circuit to the circuit shown on figure 5. The TTL inverter 7404 converts the voltage from ~3.8V to 5V. This will ensure that the voltages measured on step 2 will be similar to the calculation of voltages from your pre-lab.

Figure 5 A to D and D to A interface 4. Your Agilent s 7034B scope has the capability to acquire and display 16 channel digital signals along with signals acquired from its 4 analog inputs. (Refer to pages 359-368 on http://cp.literature.agilent.com/litweb/pdf/54695 97025.pdf). The logic probes should be connected to the back of the scope. They are numbered 0 16. Use the probe numbers #0, #1 and #2 to connect to pins 4, 8, 12 of 7404 respectively. Use the Digital function of the MSO7034B oscilloscope to display digital signals as shown in Figure 6.

Figure 6 Use of Digital inputs using logic probes Connect the signals to the oscilloscope as shown below: Channel 1 (Yellow): Input Signal Channel 2(Green): Output Signal (re constructed Sine Wave) D0 (Blue) : Digital signal bit D0 D1 (Blue) : Digital signal bit D1 D2 (Blue) : Digital signal bit D2 Does the scope screen look similar to Figure 1? Show this to your TA. Your exit tickets are the completed tables 1 through 3 and the waveforms from step 4.