Assignment 8 Analyzing Operational Amplifiers in MATLAB and PSpice

Similar documents
University of Michigan EECS 311: Electronic Circuits Fall 2009 LAB 2 NON IDEAL OPAMPS

EE 3305 Lab I Revised July 18, 2003

Integrators, differentiators, and simple filters

CHARACTERIZATION OF OP-AMP

EE320L Electronics I. Laboratory. Laboratory Exercise #2. Basic Op-Amp Circuits. Angsuman Roy. Department of Electrical and Computer Engineering

University of Pittsburgh

Laboratory 9. Required Components: Objectives. Optional Components: Operational Amplifier Circuits (modified from lab text by Alciatore)

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

ECEN 325 Lab 5: Operational Amplifiers Part III

EE 210 Lab Exercise #5: OP-AMPS I

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

ECE Lab #4 OpAmp Circuits with Negative Feedback and Positive Feedback

Laboratory 6. Lab 6. Operational Amplifier Circuits. Required Components: op amp 2 1k resistor 4 10k resistors 1 100k resistor 1 0.

Mechatronics. Analog and Digital Electronics: Studio Exercises 1 & 2

ECEN Network Analysis Section 3. Laboratory Manual

OPERATIONAL AMPLIFIERS (OP-AMPS) II

EE 233 Circuit Theory Lab 2: Amplifiers

DEPARTMENT OF ELECTRICAL ENGINEERING AND COMPUTER SCIENCE MASSACHUSETTS INSTITUTE OF TECHNOLOGY CAMBRIDGE, MASSACHUSETTS 02139

Physics 303 Fall Module 4: The Operational Amplifier

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

EK307 Active Filters and Steady State Frequency Response

Chapter 9: Operational Amplifiers

Operational Amplifiers

BME/ISE 3512 Bioelectronics. Laboratory Five - Operational Amplifiers

CHARACTERISTICS OF OPERATIONAL AMPLIFIERS - I

Lesson number one. Operational Amplifier Basics

Operational Amplifiers: Part II

Lab 9: Operational amplifiers II (version 1.5)

ECE4902 C Lab 7

Operational Amplifier Circuits

Lab 2: Discrete BJT Op-Amps (Part I)

Community College of Allegheny County Unit 8 Page #1. Op-Amps

Infrared Communications Lab

Operational Amplifiers

BME 3512 Bioelectronics Laboratory Five - Operational Amplifiers

SKEE 2742 BASIC ELECTRONICS LAB

PHYS 536 The Golden Rules of Op Amps. Characteristics of an Ideal Op Amp

Digital Applications of the Operational Amplifier

Op-Amp Simulation Part II

I1 19u 5V R11 1MEG IDC Q7 Q2N3904 Q2N3904. Figure 3.1 A scaled down 741 op amp used in this lab

Electronics I. laboratory measurement guide

ECE4902 Lab 5 Simulation. Simulation. Export data for use in other software tools (e.g. MATLAB or excel) to compare measured data with simulation

DEPARTMENT OF ELECTRICAL ENGINEERING AND COMPUTER SCIENCE MASSACHUSETTS INSTITUTE OF TECHNOLOGY CAMBRIDGE, MASSACHUSETTS 02139

Spectrum analyzer for frequency bands of 8-12, and MHz

When input, output and feedback voltages are all symmetric bipolar signals with respect to ground, no biasing is required.

UNIVERSITI MALAYSIA PERLIS

Transmit filter designs for ADSL modems

LABORATORY 5 v3 OPERATIONAL AMPLIFIER

Concepts to be Reviewed

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

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

ECE 3274 Common-Emitter Amplifier Project

Analog Electronics. Lecture Pearson Education. Upper Saddle River, NJ, All rights reserved.

Laboratory 4 Operational Amplifier Department of Mechanical and Aerospace Engineering University of California, San Diego MAE170

Lab 10: Oscillators (version 1.1)

Laboratory Manual. ELEN-325 Electronics

ECE3204 D2015 Lab 1. See suggested breadboard configuration on following page!

RLC Frequency Response

Chapter 10: Operational Amplifiers

ECE 683 Project Report. Winter Professor Steven Bibyk. Team Members. Saniya Bhome. Mayank Katyal. Daniel King. Gavin Lim.

Operational Amplifier (Op-Amp)

Exercise 3 Operational Amplifiers and feedback circuits

Class #3: Experiment Signals, Instrumentation, and Basic Circuits

Experiment 1: Amplifier Characterization Spring 2019

ETIN25 Analogue IC Design. Laboratory Manual Lab 2

EECS 216 Winter 2008 Lab 2: FM Detector Part II: In-Lab & Post-Lab Assignment

Introduction to Analog Interfacing. ECE/CS 5780/6780: Embedded System Design. Various Op Amps. Ideal Op Amps

LAB 4: OPERATIONAL AMPLIFIER CIRCUITS

AN-1106 Custom Instrumentation Amplifier Design Author: Craig Cary Date: January 16, 2017

Experiments #7. Operational Amplifier part 1

Operational Amplifiers

Unit WorkBook 1 Level 4 ENG U22 Electronic Circuits and Devices 2018 UniCourse Ltd. All Rights Reserved. Sample

UNIVERSITY OF PENNSYLVANIA EE 206

EE320L Electronics I. Laboratory. Laboratory Exercise #3. Operational Amplifier Application Circuits. Angsuman Roy

THIRD SEMESTER ELECTRONICS - II BASIC ELECTRICAL & ELECTRONICS LAB DEPARTMENT OF ELECTRICAL ENGINEERING

Computer Controlled Curve Tracer

ELC224 Final Review (12/10/2009) Name:

Operational Amplifier BME 360 Lecture Notes Ying Sun

BJT Differential Amplifiers

tyuiopasdfghjklzxcvbnmqwertyuiopas dfghjklzxcvbnmqwertyuiopasdfghjklzx cvbnmqwertyuiopasdfghjklzxcvbnmq

EXPERIMENT NUMBER 8 Introduction to Active Filters

Operational Amplifiers 2 Active Filters ReadMeFirst

EE 233 Circuit Theory Lab 3: First-Order Filters

CHARACTERISTICS OF OPERATIONAL AMPLIFIERS - II

ENGR-4300 Fall 2006 Project 3 Project 3 Build a 555-Timer

Lab E5: Filters and Complex Impedance

Analog Electronic Circuits Code: EE-305-F

PURPOSE: NOTE: Be sure to record ALL results in your laboratory notebook.

Introduction to the Op-Amp

Real Analog - Circuits 1 Chapter 11: Lab Projects

Linear IC s and applications

Lab #7: Transient Response of a 1 st Order RC Circuit

Operational Amplifiers

Amplification. Objective. Equipment List. Introduction. The objective of this lab is to demonstrate the basic characteristics an Op amplifier.

Başkent University Department of Electrical and Electronics Engineering EEM 311 Electronics II Experiment 8 OPERATIONAL AMPLIFIERS

Introduction to Op Amps

Assignment 11. 1) Using the LM741 op-amp IC a circuit is designed as shown, then find the output waveform for an input of 5kHz

E84 Lab 3: Transistor

Transmit filter designs for ADSL modems

ANALOG SYNTHESIZER WITH AR ENVELOPING

Transcription:

ECEL 301 ECE Laboratory I Dr. A. Fontecchio Assignment 8 Analyzing Operational Amplifiers in MATLAB and PSpice Goal Characterize critical parameters of the inverting or non-inverting opampbased amplifiers. Measure the slew rate of two opamps and determine which is higher. Along the way we will learn new techniques and commands in PSpice and MATLAB. Pre-Lab Reading ECEL 301 Week 8 Lecture Notes Textbook pp. 241-246, 250-254 Parts Required 500 Ω, 2 kω, 10 kω resistors 5 pf, 100 pf capacitor ua741 or LM741 opamp TLC081A opamp Software Required Cadence PSpice/Probe MATLAB Get Waveform Data and Get Screen Image macros for Excel and Word Introduction The operational amplifier (opamp) is an analog integrated circuit that gets it name from it s usefulness in performing mathematical operations. The opamp can be used in circuits that add, subtract, integrate or differentiate analog signals (voltages or currents). It forms the basis for the analog computer. Because of the opamp s flexibility and low cost, it is an indispensable tool in the analog circuit designer s toolbox. Digital designers can use it to interface to the analog world. Some common opamp applications are given in Table 1. 1

In this experiment you will have to opportunity to simulate opamp circuits in PSpice, make measurements on a simple opamp circuit, and analyze real and simulated data in MATLAB. Table 1. Common Opamp Applications Integrator Oscillator Filter Buffer Amplifier Differentiator Analog-to-Digital Converter Sweep Generator DC Amplifier Function Generator Summing Amplifier Common Amplifier Configurations The Inverting Amplifier Figure 1. Inverting Amplifier Closed Loop Gain A v = R F R 1 1.1 The gain of the inverting amplifier (Figure 1) is fixed by external components only, not by any property of the opamp itself. Equation 1.1 was derived in our Week 8 lecture notes. The voltage transfer curve for this amplifier is shown in Figure 2, where ±Vcc are the positive and negative power supply voltages, respectively. 2

Vout - +Vcc Vin - Vcc Figure 2. Voltage Transfer Curve for the Inverting Amplifier The Non-Inverting Amplifier Figure 3. Non-Inverting Amplifier Closed Loop Gain A v = R1+ RF R1 = 1+ RF R1 1.2 The closed loop gain of this amplifier (Figure 3) is at least one, and is always positive. The voltage transfer curve of the non-inverting amplifier is given in Figure 4. 3

- +Vcc Vout Vin - Vcc Figure 4. Voltage Transfer Curve for the Non-Inverting Amplifier The Voltage Follower Figure 5. Unity Gain Amplifier also known as the Voltage Follower The voltage follower (Figure 5) is a special case of the non-inverting amplifier with R1 an open circuit and RF a short circuit. The magnitude of Vout equals Vin, but this circuit is still useful where the high input impedance or low output impedance of the operational amplifier is needed. 4

Opamp Limitations Offset Voltage Due to manufacturing and design limitations, the opamp may produce a small, non-zero output voltage when the input is grounded. In devices like the ua741 the offset can be reduced or eliminated by using a potentiometer between the offset adj pins (pins 1 & 5), as in Figure 6. Figure 6. Potentiometer Added to an Inverting Amplifier to Null Offset Voltage Slew Rate Slew rate describes the maximum possible rate of change of the opamp s output voltage (Equ 1.3). A slew rate slower than the rate of change of the input will cause distortion. We can test the slew rate by using a large, fast-changing signal at the input, such as a square pulse (Figure 7). SR = dv out dt max 1.3 5

V in V V out V t Slope=SR Figure 7. Pulse Response of a Voltage Follower Our goal is to extract the slope of Vout in the transition region from a set of experimental data. The textbook has code for doing this analysis in Example 6.3. The code can be downloaded from the course web site in the Week 8 materials. You are not responsible for the full power bandwidth portion of the author s code, and it should be deleted. The author s Example 6.3 code is based on the diff function. Y = diff(x) calculates differences between adjacent elements of X. If X is a vector, then diff(x) returns a vector, one element shorter than X, of differences between adjacent elements: [X(2)-X(1) X(3)-X(2)... X(n)-X(n-1)]. The slope is calculated as dvo = diff(vo)./diff(t);, or in words, the difference between adjacent y-values is divided point-by-point (note./) by the difference between x-values. The slew rate is the maximum value of vector dvo. Due to the nature of the data returned by the oscilloscope, this method is not effective, and the slew rate will have to be calculated by other means. Tasks Simulate an inverting amplifier or non-inverting amplifier based on the ua741chip in PSpice o Save V out vs V in data to a file Run the analysis of Example 6.1 on the simulated data Make slew rate measurements on two opamps (ua741 and TLC081A) Modify the analysis of Example 6.3, and run on each set of slew rate data t 6

Procedure Build a PSpice schematic for either the inverting or non-inverting amplifier based on the ua741 opamp. o The ua741 part is in the OPAMP library o Choose R1 and RF to produce a gain magnitude A v between 2 and 5. All resistor values should be at least 1 kω. o Add power supplies to the opamp as shown in Figure 8. Let Vcc = ±15 V. Use the VCC_BAR device (PWR tool) at each point where power is needed and rename the device as needed. All instances with the same name are assumed to be connected. o Sweep the input voltage from Vcc- to Vcc+ o Plot the voltage transfer curve o Save the plotted data to a text file. These results will be analyzed in MATLAB. Figure 8. Inverting Amplifier in PSpice with Power Supplies Run the analysis of Example 6.1 on both sets of simulated data o The example code can be downloaded from the course web site s Week 8 materials o The code may need to be modified to suit your data file o The outcome of the analysis should be a voltage transfer curve for the simulated circuit, and the following quantities Maximum Output Voltage Minimum Output Voltage Gain Minimum Input Voltage for Linear Amplification Maximum Input Voltage for Linear Amplification Make slew rate measurements on two opamps (ua741 and TLC081A). The schematics are given in Figure 9a and 9b. Connect power to pins 4 7

and 7 as appropriate for your opamp. The ua741 needs +15 V on pin 7 and 15 V on pin 4. The TLC081A uses +12 V on pin 7 and pin 4 is grounded. The experimental setup is shown in Figure 10. o Apply a step voltage Vin to input 0 Vin 5 V This will require that you adjust the offset voltage on the waveform generator. o Pick a square wave frequency f = 100 Hz, 1 khz, 10 khz, or 100 khz o Set the scope to trigger on the rising edge of Vin. Adjust the scope timescale until a response like that in Figure 11 is seen. o Capture the data Open Microsoft Excel Locate the Get Waveform Data macro icon near the top right of the screen. Click the icon and choose the number of points to be saved and where the data will go. o Disable the power supply outputs. Switch opamps and adjust the protoboard for the different component and power supply requirements. Enable the supply and repeat the SR measurement at the same input frequency. o Feel free to take data at the other three frequencies. Investigate the behavior of the voltage follower at low and high frequencies. Record your observations. Figure 9a. Voltage Follower for Slew Rate measurement ua741 8

Figure 9b. Voltage Follower for Slew Rate measurement TLC081A DC Supply Ch1 Ch2 Ch3 Computer, Macros Waveform Generator Output Vcc+ Vcc- Vin Vout GND AMP GND ChA1 Scope ChA2 Figure 10. Equipment for Slew Rate Measurement 9

Figure 11. Step Response of a ua741-based Voltage Follower. Channel A1 is input and A2 is output. Input frequency = 100 Hz, 0 V Vin 1 V, Rout = 2 kω, Cout = 100 pf, Vcc = ±15 V. Analyze the slew rate data in MATLAB o Write the MATLAB code that will calculate the slew rate o Use this code to analyze all of your measurements Deliverables Put the following deliverables into our standard lab report format, in the proper places Inverting or non-inverting amp schematic Analysis of the amp o Voltage transfer curve o Numerical results o MATLAB code in an appendix Slew rate measurements on both opamp models Analysis of the slew rate data o Make sure you explain your approach to finding the SR o Slew rate for both opamps o MATLAB code in an appendix (no WebCT submission) Conclusions o Comparison of inv/non-inv amplifier performance to theory and your expectations o Comparison of the measured ua741 and TLC081A slew rate results to the SR published on device datasheets 10

Make good use of figures and tables in your presentation. References PSpice and MATLAB for Electronics, J.O. Attia, CRC Press, 2002. MATLAB internal documentation Microelectronic Circuits, 4th ed., Sedra and Smith, Oxford University Press, 1998. TLC080, TLC081, TLC082, TLC083, TLC084, TLC085, TLC08xA Family of Wide-Bandwidth High-Output-Drive Single Supply Operational Amplifiers, SLOS254D, June 1999, Revised February 2004, Texas Instruments Datasheet. UA741, ua741y General-Purpose Operational Amplifiers, SLOS094B, November 1970, Revised September 2000, Texas Instruments Datasheet. 11