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

Similar documents
EE 210: CIRCUITS AND DEVICES

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

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

FREQUENCY RESPONSE AND PASSIVE FILTERS LABORATORY

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

Real Analog - Circuits 1 Chapter 11: Lab Projects

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

University of Michigan EECS 311: Electronic Circuits Fall 2008 LAB 2 ACTIVE FILTERS

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Circuits & Electronics Spring 2006

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

In-Class Exercises for Lab 2: Input and Output Impedance

Homework Assignment 10

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

ECEN 325 Lab 5: Operational Amplifiers Part III

Designing Information Devices and Systems II Fall 2018 Elad Alon and Miki Lustig Homework 4

Lab 6 Prelab Grading Sheet

Lab 10: Single Supply Amplifier

Designing Information Devices and Systems I Discussion 10A

Homework Assignment 07

EK307 Active Filters and Steady State Frequency Response

Assist Lecturer: Marwa Maki. Active Filters

ECEN Network Analysis Section 3. Laboratory Manual

Homework Assignment 12

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

EE 233 Circuit Theory Lab 3: First-Order Filters

ME 365 EXPERIMENT 7 SIGNAL CONDITIONING AND LOADING

Lab 6: Building a Function Generator

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

Filter Design, Active Filters & Review. EGR 220, Chapter 14.7, December 14, 2017

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

University of North Carolina, Charlotte Department of Electrical and Computer Engineering ECGR 3157 EE Design II Fall 2009

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

Digital Applications of the Operational Amplifier

PHYSICS 330 LAB Operational Amplifier Frequency Response

Lab 8: SWITCHED CAPACITOR CIRCUITS

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

The above figure represents a two stage circuit. Recall, the transfer function relates. Vout

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

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

EE 3305 Lab I Revised July 18, 2003

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

4 Experiment 4: DC Motor Voltage to Speed Transfer Function Estimation by Step Response and Frequency Response (Part 2)

Lab 9: Operational amplifiers II (version 1.5)

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

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

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

Lecture 2 Analog circuits. Seeing the light..

EE 233 Circuit Theory Lab 2: Amplifiers

BINARY AMPLITUDE SHIFT KEYING

Sampling and Reconstruction

Homework Assignment 03 Solution

EECS 452 Midterm Exam Winter 2012

ELEC207 LINEAR INTEGRATED CIRCUITS

ML PCM Codec Filter Mono Circuit

Lesson number one. Operational Amplifier Basics

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Circuits & Electronics Spring 2005

A 3-STAGE 5W AUDIO AMPLIFIER

Integrators, differentiators, and simple filters

Experiments #7. Operational Amplifier part 1

CHAPTER 6 Frequency Response, Bode. Plots, and Resonance

Experiment No. 4 The LM 741 Operational Amplifier

Operational Amplifier Circuits

Analog Effect Pedals. EE333 Project 1. Francisco Alegria and Josh Rolles

DELTA MODULATION. PREPARATION principle of operation slope overload and granularity...124

Capacitive Touch Sensing Tone Generator. Corey Cleveland and Eric Ponce

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

Digital-to-Analog and Analog-to-Digital Converters

9 Feedback and Control

Physics 303 Fall Module 4: The Operational Amplifier

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

ECE4902 C Lab 7

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

DSBSC GENERATION. PREPARATION definition of a DSBSC viewing envelopes multi-tone message... 37

EECS40 RLC Lab guide

ECE 454 Homework #1 Due 11/28/2018 This Wednesday In Lab

Build Your Own Bose WaveRadio Bass Preamp Active Filter Design

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

HOME ASSIGNMENT. Figure.Q3

Lab Exercise # 9 Operational Amplifier Circuits

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)

University of Pittsburgh

ECE 310L : LAB 9. Fall 2012 (Hay)

CHAPTER 14. Introduction to Frequency Selective Circuits

LIC & COMMUNICATION LAB MANUAL

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science

Common-Source Amplifiers

Chapter 9: Operational Amplifiers

Real Analog - Circuits 1 Chapter 11: Lab Projects

Analog Design-filters

EE 210 Lab Exercise #5: OP-AMPS I

LABORATORY EXPERIMENT. Infrared Transmitter/Receiver

Experiment 8 Frequency Response

Homework Assignment 11

Operational Amplifiers

ECE 203 LAB 2 PRACTICAL FILTER DESIGN & IMPLEMENTATION

Pre-Lab. Introduction

Sampling and Quantization

Designing Information Devices and Systems II Fall 2018 Elad Alon and Miki Lustig Homework 4

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

ECE3040 Assignment9. 1. The figures show inverting amplifier circuits.

Transcription:

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science 6.002 Electronic Circuits Spring 2007 Homework #11 Handout S07053 Issued 4/26/2007 Due 5/11/2007 Introduction This homework assignment focuses on the analysis and design of a system for playing back a digitallystored audio signal. Additionally, this assignment serves as the prelab exercises for Lab #4, which will involve the construction, testing and demonstration of the audio playback system. Consequently, you should save a copy of your results for use during Lab #4. A block diagram of the audio playback system is shown in Figure 1. At the center of the system is a digital memory in which 131,072 samples of the audio signal are stored. Each sample in the memory has a unique numerical address between 0 and 131,071, inclusive. Consecutive samples are stored at consecutive addresses. To obtain 131,072 consecutive samples of the audio signal, 16.384 seconds of continuous analog audio signal are first sampled at an 8kHz rate. The analog audio samples are then digitized by an 8bit analogtodigital converter. That is, the samples are quantized to take on one of 256 possible discrete digital values between 0 and 255, inclusive. Here, the digital value of 0 corresponds to the most positive signal voltage, and the digital value of 255 corresponds to the most negative signal voltage. The resulting digital data is then written into the memory. To retrieve the stored audio signal samples in sequence at the proper rate, the memory is addressed by a counter which counts from 0 to 131,071 at an 8kHz rate established by an external clock. After counting to 131,071 the counter returns to 0, and the retrieval process repeats itself. As the memory address increments, the corresponding data appears at the memory output. This data is converted back to an analog voltage in a piecewise constant manner by a digitaltoanalog converter. During the course of recording and playing back the analog audio signal, the signal is sampled Headphone Clock Counter Memory D/A Converter Low Pass Filter Volume Control Figure 1: Block diagram of the audio playback system. 1

in time, quantized in amplitude, and reconstructed in a piecewise constant manner. As you will learn in 6.003, this process introduces undesirable highfrequency components into the signal. To minimize the perceived impact of these components, the signal is filtered by a lowpass filter after it is reconstructed by the digitaltoanalog converter. Finally, the signal is fed into a volume control stage which in turn drives a headphone. In the course of this homework assignment you will analyze and design four of the functional blocks shown in Figure 1. These blocks are the clock, the digitaltoanalog converter, the lowpass filter and the volume control. In Lab #4, you will construct these blocks and verify that they perform as desired. Then, you will combine them with the counter, the readonly memory and the speaker to construct and demonstrate the entire audio playback system. Since you will construct the system from the components in your 6.002 lab kit, your design of the blocks must account for the fact that the available components are limited. Problem 1: The Clock The circuit shown in Figure 2 is the system clock, which is a squarewave oscillator followed by a CMOS inverter; the inverter functions only as a buffer. The oscillator is constructed from another CMOS inverter, a resistor and a capacitor. Both inverters are powered between the positive supply voltage V S and ground, and both exhibit the hysteretic inputoutput characteristic defined in the figure. The inverters are otherwise ideal. (A) Assume that v CAP has just charged up to V H so that v OSC has just switched to 0 V. In terms of R, C, V L, and V H, how much time elapses before v CAP decays to V L, which in turn causes v OSC to switch to V S? (B) Assume that v CAP has just decayed to V L so that that v OSC has just switched to V S. In terms of R, C, V L, V H, and V S, how much time elapses before v CAP charges up to V H, which in turn causes v OSC to switch to 0 V? (C) Determine the frequency of the oscillator in terms of R, C, V L, V H and V S. R v CAP C v OSC v CLK vout IN OUT V S v IN V L V H V S Figure 2: The system clock. 2

(D) Assume that V L = 1.8 V, V H = 3.0 V and V S = 5.0 V. Choose values for R and C so that the oscillator oscillates at or very near 8kHz. Since oscillator frequency alone is not enough information to specify unique values for R and C, there is no single correct choice. Therefore, choose values for R and C that are easily implemented with the components in the 6.002 lab kit. (E) For the choice of R and C from Part (D), sketch and clearly label a single graph that displays v CAP, v OSC and v CLK as a function of time over one period of oscillation. Problem 2: The DigitalToAnalog Converter The circuit shown in Figure 3 is the digitaltoanalog converter. The voltage sources v DB0 through v DB7 represent the voltages supplied by the eight data bits of the digital memory, DB0 through DB7. These voltages will be approximately 5 V when the corresponding data bit is a logical high, and approximately 0 V when the corresponding data bit is a logical low. The voltage v OFF, which is set by a potentiometer, is an offset voltage that is used to center the output of the converter around 0 V. Assume that the opamp in the converter is ideal. (A) Using superposition, determine v DAC as a function of v DB0 through v DB7, and v OFF. (B) With v OFF = 0 V, the output of the digitaltoanalog converter should span the range of 0 V to 2.5 V. Thus, the output of the converter should be given by v DAC = 2.5 V 7 i=0 2 i DBi 255 where each data bit DBi takes on the numerical value of 1 when high and 0 when low. In this manner, each successive data bit from DB0 to DB7 is given a voltage weighting twice that of the preceding data bit, making it possible for the converter to output voltages from 0 V to 2.5 V in steps of 2.5/255 V. Given this, determine R 2 in terms of R 1. R 1 R1 R 1 v DB0 v DB1 v v DB6 DB7 R2 5V v OFF v DAC Figure 3: The digitaltoanalog converter. 3

The voltage rating of the headphone is approximately ±1.25 V. Since the lowpass filter and buffer between the converter and the speaker both have unity voltage gain over the frequency range of interest, the output range of the analogtodigital converter must be designed to match the headphone rating. This is why the range is chosen to be 0 V to 2.5 V, with v OFF = 0. Note further that the output range of the converter is negative. This is because the converter is based upon the inverting amplifier configuration. (C) The role of v OFF is to offset the output of the digitaltoanalog converter so that it is centered around 0 V. That is, with DB0 through DB7 all low, v DAC should be 1.25 V, and with DB0 through DB7 all high, v DAC should be 1.25 V. Given this, what must be the value of v OFF? (D) Assume that R 1 = 10 kω. Use the result of Part (B) to determine R 2. Problem 3: The LowPass Filter The circuit shown in Figure 4 is the lowpass filter. It is a secondorder filter, and is driven by the output of the digitaltoanalog converter. Its purpose is to remove the highfrequency components of the audio signal that result from the sampling, quantization and reconstruction of that signal. Assume that the opamp in the filter is ideal. (A) Assume that the lowpass filter operates in sinusoidal steady state with v DAC = R{V dac e jωt } and v LPF = R{V lpf e jωt } where V dac and V lpf are complex amplitudes. Find the inputoutput transfer function H LPF (ω) of the filter where H LPF (ω) V lpf /V dac. (B) Using the results of Part (A), find the magnitude and phase of H LPF (ω). (C) There is no best design for the lowpass filter to meet the needs of the audio playback system. However, with the appropriate choice of C 1, C 2 and R, the transfer function of one good design will take the form 1 H LPF (ω) = 1 (ω/ω LPF ) 2 where ω LPF is a specified frequency. For this design, show that the lowfrequency and highfrequency asymptotes of H LPF (ω) intersect at ω = ω LPF, and therefore that ω LPF is the frequency that delineates the pass band of the lowpass amplifier. C 1 v DAC R R C 2 v LPF Figure 4: The lowpass filter. 4

(D) What constraints must be imposed on C 1, C 2 and R to obtain the lowpass filter transfer function described in Part (C)? (E) Given that the lowpass filter is to be designed as described in Part (C), use the results of Part (D) to choose values for C 1, C 2 and R so that ω LPF 2π 4000 rad/s. Since the results of Part (D) are not enough information to specify unique values for C 1, C 2 and R, there is no single correct choice. Therefore, choose C 1, C 2 and R so that they are easily implemented with the components in the 6.002 lab kit. (F) Given the choice of C 1, C 2 and R from Part (E), determine ω LPF, and plot both the logmagnitude and phase of H LPF (ω) against logfrequency for 2π 10 1 rad/s ω 2π 10 5 rad/s. Problem 4: The Volume Control Figure 5 shows the output of the lowpass filter driving the volume control stage, which in turn drives the headphone. A potentiometer is used for R 2 so that the gain of the circuit can be easily adjusted. Because there exists a coupling capacitor at its input, the volume control stage behaves like a highpass filter. In this way, the volume control stage is designed to prevent a possibly damaging DC voltage from being applied to the headphone. Such a voltage component could be present in v LPF if, for example, v OFF in the analogtodigital converter is not properly adjusted to balance the output of the converter. (A) Assume that the volume control stage operates in sinusoidal steady state with v LPF = R{V lpf e jωt } and v OUT = R{V out e jωt } where V lpf and V out are complex amplitudes. Find the inputoutput transfer function H AMP (ω) of the volume control stage where H AMP (ω) V out /V lpf. (B) Using the result of Part (A), find the magnitude and phase of H AMP (ω). (C) Let ω AMP be the frequency at which the lowfrequency and highfrequency asymptotes of H AMP (ω) intersect. Determine ω AMP in terms of R 1, R 2 and C. (D) Choose values for R 1, R 2 and C so that ω AMP 2π 100 Hz, and H AMPMAX (ω) = 1 for ω ω AMP. Since these conditions alone are not enough to specify unique values for R 1, R 2 and C, there is no single correct choice. Therefore, choose values for R 1, R 2 and C that are easily implemented with the components in the 6.002 lab kit. R 2 C v LPF R 1 v OUT Speaker Figure 5: The volume control stage. 5

Problem 5: Connecting The Blocks In the complete audio playback system the output of the digitaltoanalog converter is connected directly to the input of the lowpass filter, and the output of the lowpass filter is connected directly to the input of the volume control stage, as shown in Figure 1. Thus, the filter loads the converter, and the amplifier loads the filter. Explain why this loading could be ignored in Problems 2, 3 and 4. That is, explain why the converter, filter and volume control stage may each be analyzed and designed in isolation. 6