Function Generator Op-amp Summing Circuits Pulse Width Modulation LM311 Comparator

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

ECE 220 Laboratory 3 Thevenin Equivalent Circuits, Constant Current Source, and Inverting Amplifier

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

Operational Amplifiers: Part II

Lab Exercise # 9 Operational Amplifier Circuits

VCC. Digital 16 Frequency Divider Digital-to-Analog Converter Butterworth Active Filter Sample-and-Hold Amplifier (part 2) Last Update: 03/19/14

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Hands-On Introduction to EE Lab Skills Laboratory No. 2 BJT, Op Amps IAP 2008

OPERATIONAL AMPLIFIERS (OP-AMPS) II

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

The Operational Amplifier This lab is adapted from the Kwantlen Lab Manual

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

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

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

Digital Applications of the Operational Amplifier

BME 3512 Bioelectronics Laboratory Five - Operational Amplifiers

Electric Circuit Fall 2016 Pingqiang Zhou LABORATORY 7. RC Oscillator. Guide. The Waveform Generator Lab Guide

Prelab 10: Differential Amplifiers

Data Conversion and Lab Lab 1 Fall Operational Amplifiers

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

BME/ISE 3512 Bioelectronics. Laboratory Five - Operational Amplifiers

Physics 120 Lab 6 (2018) - Field Effect Transistors: Ohmic Region

DEPARTMENT OF ELECTRICAL ENGINEERING LAB WORK EE301 ELECTRONIC CIRCUITS

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

ECE4902 C Lab 5 MOSFET Common Source Amplifier with Active Load Bandwidth of MOSFET Common Source Amplifier: Resistive Load / Active Load

PreLab 6 PWM Design for H-bridge Driver (due Oct 23)

ECE 3410 Homework 4 (C) (B) (A) (F) (E) (D) (H) (I) Solution. Utah State University 1 D1 D2. D1 v OUT. v IN D1 D2 D1 (G)

MOSFET Amplifier Biasing

UNIVERSITI MALAYSIA PERLIS

EE431 Lab 1 Operational Amplifiers

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

UNIVERSITY OF UTAH ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT ELECTROMYOGRAM (EMG) DETECTOR WITH AUDIOVISUAL OUTPUT

Lab 2 Operational Amplifier

ANALOG TO DIGITAL CONVERTER

Schmitt trigger. V I is converted from a sine wave into a square wave. V O switches between +V SAT SAT and is in phase with V I.

SKEU 3741 BASIC ELECTRONICS LAB

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

Comparators, positive feedback, and relaxation oscillators

Lecture #3 Basic Op-Amp Circuits

LINEAR APPLICATIONS OF OPERATIONAL AMPLIFIERS

Experiment 9 AC Circuits

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

Lab 10: Single Supply Amplifier

EE 221 L CIRCUIT II. by Ming Zhu

EXPERIMENT 2.2 NON-LINEAR OP-AMP CIRCUITS

LAB 1: Familiarity with Laboratory Equipment (_/10)

Lab Experiments. Boost converter (Experiment 2) Control circuit (Experiment 1) Power diode. + V g. C Power MOSFET. Load.

). The THRESHOLD works in exactly the opposite way; whenever the THRESHOLD input is above 2/3V CC

R (a) Explain characteristics and limitations of op-amp comparators. (b) Explain operation of free running Multivibrator using op-amp.

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

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

Positive Feedback and Oscillators

INDIANA UNIVERSITY, DEPT. OF PHYSICS, P400/540 LABORATORY FALL Laboratory #6: Operational Amplifiers

Chapter 3 THE DIFFERENTIATOR AND INTEGRATOR Name: Date

Comparators, positive feedback, and relaxation oscillators

Chapter 5: Signal conversion

Physics 303 Fall Module 4: The Operational Amplifier

MASSACHUSETTS INSTITUTE OF TECHNOLOGY

Lab 4: Analysis of the Stereo Amplifier

Chapter 13: Comparators

ECE 363 EXAM #2 (F18) 4 problems for 100 pts Problem #1: Amplifier Output Error (25 pts)

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

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

DEPARTMENT OF ELECTRICAL ENGINEERING LAB WORK EE301 ELECTRONIC CIRCUITS

Lab 6: Instrumentation Amplifier

ECE 3155 Experiment I AC Circuits and Bode Plots Rev. lpt jan 2013

Lab 6: Building a Function Generator

EE 210: CIRCUITS AND DEVICES

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

LABORATORY 7 v2 BOOST CONVERTER

Summer 2015 Examination

Experiment 8 Frequency Response

Fill in the following worksheet-style pages. A colored pen or pencil works best. The procedure is:

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

EE100B Experiment 6. The Design of Waveform Generators. College of Engineering University of California, Riverside. Objective

+15 V 10k. !15 V Op amp as a simple comparator.

Comparators, positive feedback, and relaxation oscillators

Oct 10 & 17 EGR 220: Engineering Circuit Theory Due Oct 17 & 24 Lab 4: Op Amp Circuits

Chapter 9: Operational Amplifiers

EE2210 Laboratory Project 1 Fall 2013 Function Generator and Oscilloscope

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

ASTABLE MULTIVIBRATOR

ECE4902 C Lab 7

Multivibrators. Department of Electrical & Electronics Engineering, Amrita School of Engineering

9 Feedback and Control

1) Consider the circuit shown in figure below. Compute the output waveform for an input of 5kHz

University of Portland EE 271 Electrical Circuits Laboratory. Experiment: Op Amps

CHAPTER 6 DIGITAL INSTRUMENTS

MSK4310 Demonstration

Lab 7: DELTA AND SIGMA-DELTA A/D CONVERTERS

Electronic PRINCIPLES

University of Utah Electrical Engineering Department ECE 2100 Experiment No. 2 Linear Operational Amplifier Circuits II

EE4902 C Lab 5 MOSFET Common Source Amplifier with Active Load Bandwidth of MOSFET Common Source Amplifier: Resistive Load / Active Load

OBJECTIVE The purpose of this exercise is to design and build a pulse generator.

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

ENSC 220 Lab #2: Op Amps Vers 1.2 Oct. 20, 2005: Due Oct. 24, 2004

EE283 Electrical Measurement Laboratory Laboratory Exercise #7: Digital Counter

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

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

EE 233 Circuit Theory Lab 3: First-Order Filters

ECE 363 FINAL (F16) 6 problems for 100 pts Problem #1: Fuel Pump Controller (18 pts)

Transcription:

Function Generator Op-amp Summing Circuits Pulse Width Modulation LM311 Comparator Objective ECE3204 D2015 Lab 3 The main purpose of this lab is to gain familiarity with use of the op-amp in a non-linear circuit configuration. The LM741 is used as a comparator in a function generator circuit that produces square and triangle wave outputs. A high speed function generator using the LM311 comparator is used to create a pulse-width-modulated waveform. A summing circuit is also investigated. A word of advice: This lab involves very high speed signals. For these circuits to work properly, it is extremely important that the layouts you construct in the lab are as neat and physically compact as possible! Power supply bypass capacitors (see Labs 1 and 2) are essential. unning power and ground on the "rail" contacts of your breadboard is strongly recommended. Put some thought into the placement and connection of devices and components on your breadboard to keep connections short. 1

Prelab P1. Function generator: Figure 3.1 shows a function generator circuit that produces both square wave and triangular wave outputs. SCHMITT TIGGE (±VSAT) ±10V C = 0.1µF A LM741 1 2 B LM741 INTEGATO VTI (±VPEAK) ±2V Figure 3.1. Function Generator. Note that op-amp "A" is connected with positive feedback, so that it operates as a comparator (or, more specifically, a Schmitt trigger). We have seen that negative feedback tends to keep the op-amp input voltages close to each other, so that the op-amp operates in its linear region. Conversely, positive feedback tends to drive the op-amp input voltages away from each other, so that the op-amp output is saturated near one of the supply rails at ±V SAT. Op-amp "B" is connected with negative feedback in the integrator configuration. P1.1 Determine the waveform frequency as a function of the component values. There are many ways to analyze this circuit - many complicated, some simple. In general, the simplest analysis results from intuitively understanding the function of each block. Only from this foundation can we write the appropriate equations for making a formal analysis of the circuit's physical performance. Try the following general procedure: a) Qualitatively analyze the circuit - no equations yet! How does the circuit function? In this case, for example, assume that the comparator has just switched to one of its two stable states. Then see what the integrator will do in response. Then see if the integrator output will eventually cause another change in the comparator state. epeat this qualitative analysis and see if the circuit will return to the state from which you began your analysis. b) At this point, a sketch of waveforms in the circuit can be extremely helpful. For example, since the goal of the analysis is to determine the output frequency, you might draw the periodic waveforms of interest: Comparator output: COMPAATO OUTPUT Integrator output: INTEGATO OUTPUT 2 +VSAT -VSAT +VPEAK -VPEAK T

Note that the shapes of the waveforms are determined entirely by qualitative means: The comparator output will be essentially a digital signal at +V SAT or -V SAT ; the inverting integrator will ramp up or down in response to a negative or positive input. Ultimately your goal is to write equations for various voltages (such as the maximum integrator output V PEAK ) and times (such as the waveform period T), but for now all that is required is to label these variables to gain a clear qualitative understanding of how the circuit functions. c) Now, based on your understanding of the circuit block functions, superimpose the waveforms on the same time scale in the correct phase relationship. Use plenty of space to avoid clutter and confusion. If necessary, the waveforms can be drawn on separate vertical scales (a "timing diagram"). Now you are ready for quantitative work - writing equations. In this case, d) For the integrator, determine the period T of the waveform in terms of V PEAK, V SAT,, and C. It may be more convenient to work with a fraction of the period, T/2, and work from there to an expression for T. e) For the comparator, determine how the peak integrator level is related to V SAT, 1, and 2. Note that the key variable here is the voltage V x, since the comparator output makes a digital transition whenever V x crosses zero volts. f) Finally, combine the above two relationships to get an expression for the period T of the waveform in terms of 1, 2,, and C. The frequency is then f = 1/T. P1.2 Design a circuit, for construction in the lab, to the following specifications: a) Integrator output: ±2V. b) Comparator output: ±10V. c) Frequency: 100Hz All resistor values should be 10kΩ. P1.3 Which resistor can be used as a frequency control without affecting the triangle wave amplitude? What value would give a frequency of 500Hz? P1.4 Can the triangular wave amplitude be adjusted independently of frequency by changing only one resistor? If so, which one? If not, what approach would you suggest to realize this capability? (Hint: in the lab we will be using a "quad op-amp": 4 op-amps in one package). 3

P2. Pulse Width Modulation An interesting (and useful) property of this function generator is that the square wave duty cycle δ can be modulated by an external waveform V ext as shown in Figure 3.2: SCHMITT TIGGE (±VSAT) ±10V Vext C = 0.1µF VX A 1 B VTI (±VPEAK) ±2V 2 INTEGATO T1 T2 T Figure 3.2. PWM Circuit. The duty cycle δ is defined as the ratio of (the time the signal is in its high state) to (the total period): T 1 δ = T 1 + T 2 P2.1 Show that the duty cycle δ is related to V ext by δ = 1 2 1 - V ext V SAT where V SAT = +10V, and V ext < V SAT. The analysis of the circuit is similar to section 1.1 of the prelab, except that now the positive and negative intervals of the square wave are of different duration and must be determined separately. Assume that the external input V ext is constant during the period T; then derive expressions for T1 and T2 as in prelab part P1.1; finally plug into the expression for duty cycle. Note that when we substitute V ext = 0, δ = 50% as expected. If you end up with the incorrect expression δ = 1 2 1 - V SAT V ext you've made a sign error, most probably in the expression for integrator current. 4

This form of analog-to-digital conversion is called "pulse-width modulation" (PWM), since the value of the analog signal V ext is encoded in the width of the digital pulse signal V SQ. To function effectively, the frequency of the square wave must be much greater than the maximum frequency of V ext. When a signal is encoded using PWM, it is usually necessary to have the frequency of the square wave much higher (100X or more) than the maximum frequency of the signal to be encoded. With a square wave frequency of only 100 Hz from P1.2(c), the maximum input signal frequency would be severely limited. P2.2. For your design from prelab part P1.2, using the same, 1, and 2 values, what value of C would be necessary to result in a 50 khz square wave? P3. Summing amplifier For this part, we want a circuit to sum the square and triangular waveforms. The sum is to be inverted in phase and scaled as follows: V OUT = -[(0.4)V SQ + (1.5)V TI )] P3.1 Design the circuit to perform this function. One op-amp is to be used; the minimum resistor value is 2kΩ. P3.2 If this circuit is used with the V SQ and V TI signals from your function generator design of prelab part P1.2, sketch the expected V out output signal from this summing circuit. 5

Lab Function Generator 1. Construct the circuit of Figure 3.1 with your design values from prelab section P1.2. Use the LM348 quad op-amp, which contains four independent LM741 op-amps in a 14-pin package. Begin with the supply voltages at ±12V. Once the circuit is operating, adjust the supplies independently for comparator outputs of ±V SAT = ±10V. Use three scope channels to look at V SQ, V TI, and the + input of the op-amp used as a comparator in the Schmitt Trigger. 1.1 Verify your expression for frequency from prelab section P1.2. How well does the measured frequency agree with your prediction? How well does the V TI amplitude agree with your design prediction? Be sure to record all relevant waveforms in the circuit, dimensioned with appropriate voltages and times. 1.2 Frequency control: Verify frequency control of your circuit by changing frequency to 500Hz using the resistor value you designed for in prelab section P1.3. Does the V TI amplitude remain the same? Explain. 1.3 How long does it take for the LM741 "comparator" to change states (from +V SAT to -V SAT )? What limits its speed? Estimate a maximum possible frequency for full ±V SAT swing at V SQ for this function generator when using the LM348 as a comparator. Summing Amplifier 2. eturn the function generator circuit to your component values for f = 100Hz 2.1 Construct the summing amplifier you designed in prelab section P3.1. Use the fourth scope channel to record the measured output signal. How does it compare with what you expect based on prelab section P3.2? 6

Pulse Width Modulation This circuit requires a higher speed square wave (about 50kHz), so the LM311 (a fast comparator) is used instead of the LM348 for the comparator function. Construct the function generator circuit shown in Figure 3.3, with the LM311 as the comparator. Use the capacitance value you designed for in prelab part P2.2. V+ Vext C LM311 3 2 A 1 8 7 4 V- 1 10kΩ 2 B 1/4 LM348 VTI Figure 3.3. 50kHz PWM circuit. Again, adjust the V + and V - supplies independently for comparator outputs of ±V SAT = ±10V. 3.1 With V ext = 0V, verify the frequency of approximately 50kHz for V SQ. 3.2 For V ext, use your function generator set to a very low frequency, (about 0.1 Hz) and an amplitude of about 5V peak. On the scope, observe V ext and V SQ and see how varying V ext changes the square wave duty cycle. Also, look at the integrator output to get an intuitive understanding of why the duty cycle is affected by V ext. Use as many of the scope's four channels as necessary to get a good visual indication of how waveforms in this circuit are related to each other. Since the average value of a square wave is proportional to the duty cycle, the input waveform can be restored with a simple averaging network. 3.3 For V ext, increase the function generator frequency to about 200 Hz. Construct the averaging network (low-pass filter) shown in Figure 3.4. Compare V demod with the PWM input V ext. Explain. 100 kω Vdemod 1000 pf Figure 3.4. Averaging network to demodulate PWM signal. 7