UC Berkeley, EECS Department



Similar documents
LAB4: Audio Synthesizer

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

Department of Engineering. A Pulse Induction Metal Detector. ENGN3227 Analogue Electronics. Dr Salman Durrani. Group TA5

A Digital Timer Implementation using 7 Segment Displays

CHAPTER 11: Flip Flops

Pulse Width Modulation (PWM) LED Dimmer Circuit. Using a 555 Timer Chip

Supply voltage Supervisor TL77xx Series. Author: Eilhard Haseloff

Wiki Lab Book. This week is practice for wiki usage during the project.

Features. Applications

Laboratory 4: Feedback and Compensation

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

Low Cost Pure Sine Wave Solar Inverter Circuit

ARRL Morse Code Oscillator, How It Works By: Mark Spencer, WA8SME

A Trigger Circuit for the 555 Timer IC Scope

IEC ESD Immunity and Transient Current Capability for the SP72X Series Protection Arrays

Chapter 9 Latches, Flip-Flops, and Timers

How to Read a Datasheet

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

See Horenstein 4.3 and 4.4

DATA SHEET. TDA8560Q 2 40 W/2 Ω stereo BTL car radio power amplifier with diagnostic facility INTEGRATED CIRCUITS Jan 08

GLOLAB Universal Telephone Hold

Decimal Number (base 10) Binary Number (base 2)

A Lesson on Digital Clocks, One Shots and Counters

Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.

Chapter 22 Further Electronics

Digital Electronics Detailed Outline

Experiment 2 Diode Applications: Rectifiers

A Lesson on Digital Clocks, One Shots and Counters

Development of a Simple Sound Activated Burglar Alarm System

EXPERIMENT 8. Flip-Flops and Sequential Circuits

TS555. Low-power single CMOS timer. Description. Features. The TS555 is a single CMOS timer with very low consumption:

2 : BISTABLES. In this Chapter, you will find out about bistables which are the fundamental building blocks of electronic counting circuits.

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

css Custom Silicon Solutions, Inc.

To design digital counter circuits using JK-Flip-Flop. To implement counter using 74LS193 IC.

Final Project Report E3390 Electronic Circuit Design Lab. Automatic Phone-Alert Home Security System

LM1036 Dual DC Operated Tone/Volume/Balance Circuit

The components. E3: Digital electronics. Goals:

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

PLL frequency synthesizer

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

Digital Logic Elements, Clock, and Memory Elements

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

Upon completion of unit 1.1, students will be able to

Measuring Resistance Using Digital I/O

ETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies

PURDUE UNIVERSITY NORTH CENTRAL

Telecommunications Switching Systems (TC-485) PRACTICAL WORKBOOK FOR ACADEMIC SESSION 2011 TELECOMMUNICATIONS SWITCHING SYSTEMS (TC-485) FOR BE (TC)

3-Digit Counter and Display

Theory of Operation. Figure 1 illustrates a fan motor circuit used in an automobile application. The TPIC kω AREF.

PHYS 2P32 Project: MIDI for Arduino/ 8 Note Keyboard

SWITCH-MODE POWER SUPPLY CONTROLLER PULSE OUTPUT DC OUTPUT GROUND EXTERNAL FUNCTION SIMULATION ZERO CROSSING INPUT CONTROL EXTERNAL FUNCTION

Special Lecture. Basic Stamp 2 Programming. (Presented on popular demand)

Adding Heart to Your Technology

Hands On ECG. Sean Hubber and Crystal Lu

Counters and Decoders

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

BUILD YOUR OWN RC SWITCH (Issue 3)

css Custom Silicon Solutions, Inc.

DALLAS DS1233 Econo Reset. BOTTOM VIEW TO-92 PACKAGE See Mech. Drawings Section on Website

Ignition Alert Anti-Theft Security System for Motorbikes with Remote Control Amit Yadav, Anushri Jha, Neelesh Gupta

Series AMLDL-Z Up to 1000mA LED Driver

LAB #4 Sequential Logic, Latches, Flip-Flops, Shift Registers, and Counters

Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs

Pulse Width Modulation

DEGREE: Bachelor in Biomedical Engineering YEAR: 2 TERM: 2 WEEKLY PLANNING

POWER-VOLTAGE MONITORING IC WITH WATCHDOG TIMER

Dayton Audio is proud to introduce DATS V2, the best tool ever for accurately measuring loudspeaker driver parameters in seconds.

Drive circuit basics + V. τ e. Industrial Circuits Application Note. Winding resistance and inductance

Display Board Pulse Width Modulation (PWM) Power/Speed Controller Module

NE555 SA555 - SE555. General-purpose single bipolar timers. Features. Description

NE555 SA555 - SE555. General-purpose single bipolar timers. Features. Description

Redesigned by Laurier Gendron (Aug 2006 ) Download this project in PDF. Horn circuit. Train Circuitry

Lab 5 Operational Amplifiers

AAT3520/2/4 MicroPower Microprocessor Reset Circuit

SERIES-PARALLEL DC CIRCUITS

Copyright 2011 Linear Technology. All rights reserved.

SIMPLE HEART RATE MONITOR FOR ANALOG ENTHUSIASTS

Design Project: Power inverter

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

Designing With the SN54/74LS123. SDLA006A March 1997

6-BIT UNIVERSAL UP/DOWN COUNTER

Glolab Talking Phone Dial Monitor

GLOLAB Two Wire Stepper Motor Positioner

Lab 11 Digital Dice. Figure Digital Dice Circuit on NI ELVIS II Workstation

MIDECO 64-outputs MIDI note decoder USER MANUAL. Roman Sowa 2012

BJT Characteristics and Amplifiers

LM1084 5A Low Dropout Positive Regulators

First Order Circuits. EENG223 Circuit Theory I

LM566C Voltage Controlled Oscillator

EET272 Worksheet Week 9

Glitch Free Frequency Shifting Simplifies Timing Design in Consumer Applications

Real Time Clock USB Evaluation Board V3.0

GRADE 11A: Physics 5. UNIT 11AP.5 6 hours. Electronic devices. Resources. About this unit. Previous learning. Expectations

Providing Continuous Gate Drive Using a Charge Pump

TDA W Hi-Fi AUDIO POWER AMPLIFIER

ESP-CV Custom Design Formal Equivalence Checking Based on Symbolic Simulation

= V peak 2 = 0.707V peak

Baseband delay line QUICK REFERENCE DATA

Design of a TL431-Based Controller for a Flyback Converter

Transcription:

UC Berkeley, EECS Department EECS 40 Lab LAB5: Audio Synthesizer UID: B. Boser 1 The 555 Timer IC Inductors and capacitors add a host of new circuit possibilities that exploit the memory realized by the energy storage that is inherent to these components. In this laboratory we will use capacitors to build timer circuits. Timers have a many uses, from lights that turn off automatically after a prescribed period to blinking lights and synthesizers used in sirens or electronic organs. Timers are also used by other electronic circuits, for example as computer clocks. In fact, the 555 timer circuit used in this laboratory is one of the most successful ICs ever: Designed 1970 by Hans Camenzind at Signetics (later Philips and now NXP) and introduced 1971 (the same year Intel introduced its first 4-Bit! microprocessor executing up to 60,000 instructions per second), sales are still strong with over 1 billion units sold each year! Can you think of other innovations with similar success and longevity? The first microprocessor has long been relegated to museums. The notorious RC charging and discharging circuit that is at the basis of so many homework and exam problems is also at the center of many timer circuits (exams are practical, after all). For example, the time it takes to charge a capacitor can be used to delay turning on a device. Likewise, discharging sets the time to turn a device off. Combine these two circuits and you have a clock turning on and off at a rate set by a capacitor and resistors. Turing this simple idea into a complete electronic circuit calls for several functions in addition to the capacitor and charging and discharging resistors. Switches are used to alter between charging and discharging cycles. Comparators determine when a certain voltage level has been reached. Altogether quite a few components are needed to build that timer circuit. The 555 timer includes all these functions in an 8-pin package. A timer circuit performs two functions: A mechanism for generating the delay, and a device to turn the timer state on and off, based on the delay. The first function is easily realized e.g. by the charging and discharging of a capacitor. The second involved comparing the resulting waveform to set thresholds. Fortunately the circuitry for this function is available as standard components. The most prevalent of these timer ICs (IC stands for integrated circuit, meaning a device that combines several electronic functions in a package) it the 555. For some reasons ICs typically have numeric names with little or no deeper meaning. Figure 1 shows a simplified circuit diagram of the 555 timer. The box on the right with S and R inputs is a flip-flop and keeps track of the timer state. Its output Q is either V cc or ground. Raising the S input to V cc sets the flip-flop (Q = V cc ) which then remains in the set state until the R input is raised to V cc. Raising both S and R results in a random state Q and must be avoided if deterministic circuit operation is desired. Two comparators generate the set and reset signals from inputs trigger and threshold. The output of a comparator equals V cc when the voltage at the plus terminal is grater than the voltage at the minus terminal, and 0 V otherwise. The resistors R 1, Figure 1 Simplified diagram of the 555 timer IC. 1 February 13, 2009 LAB5 v500

Figure 2 Monostable timer circuit. R 2, and R 3 are equal and consequently V a = 2 3 V cc and V b = 1 3 V cc. The datasheet for the 555 timer IC contains additional explanations and information. Download and study it, and bring it to the lab for reference. On/Off Timer Let s now use a 555 timer IC to design an off-timer, also called monostable timer. Figure 2 shows a possible circuit implementation using the 555. The output of the timer is connected to two light emitting diodes (LEDs) through current limiting resistors. Depending on the state of the timer output, one or the other LED is on. Assume that initially the timer is off, i.e. Q = 0 V. Then the discharge switch (which is part of the 555 timer IC) connected to the output is turned on, pulling the threshold signal low. As long as switch S 1 remains open, the trigger signal is high. Determine the voltages at the inputs of the flip-flop and the resulting output. R S Q 0 1 2 Closing the momentary switch S 1 pulls the trigger voltage low. Consequently, the input to the bottom comparator is V b 0 V = 1 3 V cc > 0 V and its output, which controls the S input of the flip-flop goes high, setting Q = V cc. The discharge switch opens, and capacitor C charges through R a until the top comparator turns on and resets the flip-flop. We will design our timer so that pressing S 1 will turn the output on for 3.7 s. For C =100 µf, what is the correct value of R a? To make our life easier, we first redraw the circuit diagram, including only the relevant elements as shown in Figure 3 on the following page. Part (a) depicts the situation during the charging phase. Straightforward 2 February 13, 2009 LAB5 v500

Figure 3 Partial timer diagram for (a) output high and (b) output low. v 1 (t) time Figure 4 Capacitor voltage. analysis yields v 1 (t) = V cc (1 e t/τ) (1) with τ = R A C. Mark the time T and voltage of the tripping point of the timer in Figure 4. Solve for the value of R A for V cc = 5 V and V cc = 10 V. V cc = 5 V R A = V cc =10 V R A = 3 4 The design is now complete and ready for testing. The manufacturer makes the following recommendation in the datasheet: 1) Connect the unused reset pin to V cc. 2) Connect a 10 nf capacitor between threshold and ground. Often circuits operate even if such recommendations are not followed. Unfortunately, however, such shortcuts frequently lead to sporadic malfunction that is difficult to debug. For example, a circuit may operate correctly at room temperature but fail at elevated temperatures. Potentially even more vexing and damaging to a designer s reputation are situations where the malfunction occurs only in some circuits or occurs gradually over time. While infrequent, all these situations occur, often resulting in lawsuits or large payments of damages. It is cheap insurance to follow manufacturers recommendations unless you have good reason and insight for not doing so! This circuit is mildly complex and a single and simple error such as an incorrect connection would result in it not working properly. Since such situations can be very time consuming to investigate in the laboratory, we first verify circuit operation with simulation (SPICE). All devices can readily be simulated with the exception of the momentary switch S 1, which is not a standard component in SPICE. A simple workaround is to use a pulsed or piecewise linear voltage source to simulate its effect. Program to source initially to V cc, dropping to 0 Vafter 1 s for 500 ms and then returning to V cc. Hand in the following with your lab report (5 points for correct results, no credit for labs without SPICE): Printout of the SPICE circuit schematic. 3 February 13, 2009 LAB5 v500

Figure 5 Circuit configuration for astable timer operation. A plot of the result of a transient analysis showing the following signals: trigger voltage, v 1 (t), Q(t), and the current through R 5. Use a voltage source with V = 0 in series with R 5 as an ammeter. Mark the time T and verify that it corresponds to the design value. Verify your circuit in the lab. Unlike resistors, capacitors are not marked with a universally valid code. Instead, values are marked using a variety of different and ambiguous notations. Ask your lab assistant for help. As always, observe the polarity markings on all components. For LEDs the longer wire indicates the positive terminal (where current enters). If a momentary switch is not available you can emulate it by making momentary contact with a wire (an admittedly lousy lab technique ). Verify the voltage at the timer output with the DVM and check polarity if the LEDs won t turn on and off as expected. Demonstrate your your circuit to the laboratory assistant. Electronic Synthesizer Audio signals change periodically with time. For example, the music note A 4 corresponds to a waveform that repeats with a frequency of 440 Hz or every 2.27 ms. We can use the 555 timer circuit to synthesize these signals. The configuration shown in Figure 5 shows the connections for astable operation of the timer, i.e. the capacitor C is periodically charged and discharged by the circuit. Following the approach taken to design the on/off-timer, draw simplified circuit diagrams showing only the relevant components during the charging and discharging of C. Plot the waveforms at nodes v 1, v 2, and v o as a function of time in the space below. Mark the voltage at the tripping points. 4 February 13, 2009 LAB5 v500

Figure 6 Circuit for R A to produce eight different tones. 5 Now derive separate expressions for v 2 (t) during the charging and discharging phases of C. What values of R A and R B result in a 61 µs charging and µs discharging time? What is the resulting repetition frequency f? Use C =1 nf. R A = R B = f = 5 6 7 We use the same timer IC to generate several different frequencies simply by replacing resistor R A in Figure 5 on the previous page with the circuit shown in Figure 6. If all momentary switches are open, the value of R A = R A4. To play a tune, close only one switch at a time. For S 1 closed, R A = R A4 R B4, with S 2 closed, R A = R A4 R C5, 5 February 13, 2009 LAB5 v500

etc. Calculate the resistors values needed for the tones in the table below (suggestion: use Matlab, Excel, or another program you are familiar with). These frequencies realize an equal tempered scale, the most commonly used scale in western music. Use R B =1 kω and C =220 nf. Tone Frequency A 4 440 Hz R A = R A4 = B 4 494 Hz R A = R B4 = C 5 523 Hz R A = R C5 = D 5 587 Hz R A = R D5 = E 5 659 Hz R A = R E5 = F 5 698 Hz R A = R F5 = G 5 784 Hz R A = R G5 = A 5 880 Hz R A = R A5 = 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 Simulate your circuit with SPICE before testing it in the laboratory (mandatory). Attach a printout of your SPICE schematic or netlist and plots of v 1 (t), v 2 (t), and v o (t). Mark the values of T 1 and T 2 in the plots. Model the speaker with an 8 Ω resistor. Note: simulate more than one period in SPICE to let startup transients decay. Verify the supply voltage or value of R 4 to adjust the audio volume. Summarize your results in the table below: Tone Frequency Simulated [Hz] Measured [Hz] A 4 B 4 F 5 A 5 440 Hz 494 Hz 698 Hz 880 Hz Explain differences and ask the lab assistant to verify your circuit. Obviously this synthesizer can be improved. The addition of more tones is straightforward. Two or more 555 timer ICs can be combined such that one sets the control voltage of the other to greatly expand the repertoire of tones that can be generated from siren like to the synthesis of the beat and imitation of different instruments. Good options for the class project. Password: Submit Reload 6 February 13, 2009 LAB5 v500