EE2CI5 LAB 3b. Square wave oscillator circuit

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

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

Design Project: Power inverter

Digital Logic Elements, Clock, and Memory Elements

Laboratory 4: Feedback and Compensation

LM555/NE555/SA555. Single Timer. Description. Features. Applications. Internal Block Diagram. Vcc GND. Trigger. Discharge. Output F/F.

Features. Applications

A Lesson on Digital Clocks, One Shots and Counters

A Lesson on Digital Clocks, One Shots and Counters

LM 358 Op Amp. If you have small signals and need a more useful reading we could amplify it using the op amp, this is commonly used in sensors.

Supply voltage Supervisor TL77xx Series. Author: Eilhard Haseloff

LAB 7 MOSFET CHARACTERISTICS AND APPLICATIONS

DIODE CIRCUITS LABORATORY. Fig. 8.1a Fig 8.1b

3-Digit Counter and Display

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

Lab 5 Operational Amplifiers

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

Experiment 8 : Pulse Width Modulation

LAB4: Audio Synthesizer

High voltage power supply (1 to 20 KV)

A Digital Timer Implementation using 7 Segment Displays

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

Operational Amplifier - IC 741

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

A Practical Guide to Free Energy Devices

OPERATIONAL AMPLIFIERS

How to Read a Datasheet

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

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

Reading assignment: All students should read the Appendix about using oscilloscopes.

Physics 120 Lab 6: Field Effect Transistors - Ohmic region

SERIES-PARALLEL DC CIRCUITS

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

Electronics. Discrete assembly of an operational amplifier as a transistor circuit. LD Physics Leaflets P

BJT Characteristics and Amplifiers

RC & RL Transient Response

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

Fundamentals of Signature Analysis

CHAPTER 11: Flip Flops

Step Response of RC Circuits

Creating a Usable Power Supply from a Solar Panel

8 coil stator 11 coil stator

= V peak 2 = 0.707V peak

Op-Amp Simulation EE/CS 5720/6720. Read Chapter 5 in Johns & Martin before you begin this assignment.

Basic Op Amp Circuits

Chapter 19 Operational Amplifiers

Reading: HH Sections , (pgs , )

LM386 Low Voltage Audio Power Amplifier

1ED Compact A new high performance, cost efficient, high voltage gate driver IC family

Building the AMP Amplifier

Sequential Logic: Clocks, Registers, etc.

MC34063A MC34063E DC-DC CONVERTER CONTROL CIRCUITS

Electrical Resonance

Current Loop Tuning Procedure. Servo Drive Current Loop Tuning Procedure (intended for Analog input PWM output servo drives) General Procedure AN-015

Frequency Response of Filters

ECEN 1400, Introduction to Analog and Digital Electronics

Low Cost Pure Sine Wave Solar Inverter Circuit

Series and Parallel Circuits

css Custom Silicon Solutions, Inc.

Lab 3 Rectifier Circuits

ANADOLU UNIVERSITY DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING

Cornerstone Electronics Technology and Robotics I Week 15 Voltage Comparators Tutorial

RC Circuits and The Oscilloscope Physics Lab X

LABORATORY 10 TIME AVERAGES, RMS VALUES AND THE BRIDGE RECTIFIER. Bridge Rectifier

ES250: Electrical Science. HW7: Energy Storage Elements

Transistor Characteristics and Single Transistor Amplifier Sept. 8, 1997

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

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

INTEGRATED CIRCUITS. NE558 Quad timer. Product data Supersedes data of 2001 Aug Feb 14

EB215E Printed Circuit Board Layout for Improved Electromagnetic Compatibility

Experiment #5, Series and Parallel Circuits, Kirchhoff s Laws

Interfacing Analog to Digital Data Converters

Vi, fi input. Vphi output VCO. Vosc, fosc. voltage-controlled oscillator

The components. E3: Digital electronics. Goals:

POCKET SCOPE 2. The idea 2. Design criteria 3

LM2576R. 3.0A, 52kHz, Step-Down Switching Regulator FEATURES. Applications DESCRIPTION TO-220 PKG TO-220V PKG TO-263 PKG ORDERING INFORMATION

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

OPERATIONAL AMPLIFIER

School of Engineering Department of Electrical and Computer Engineering

Series AMLDL-Z Up to 1000mA LED Driver

Lab 7: Operational Amplifiers Part I

Simple Op-Amp Circuits

ETEC Digital Controls PIC Lab 10 Pulse Width Modulation

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

Lab #4 Thevenin s Theorem

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

DESIGN AND IMPLMENTATION OF INTELLIGENT MOBILE PHONE DETECTOR

WHY DIFFERENTIAL? instruments connected to the circuit under test and results in V COMMON.

Printed-Circuit-Board Layout for Improved Electromagnetic Compatibility

Lab Unit 4: Oscillators, Timing and the Phase Locked Loop

EXPERIMENT NUMBER 8 CAPACITOR CURRENT-VOLTAGE RELATIONSHIP

Hands On ECG. Sean Hubber and Crystal Lu

Rectifier circuits & DC power supplies

Analog Devices Welcomes Hittite Microwave Corporation NO CONTENT ON THE ATTACHED DOCUMENT HAS CHANGED

RGB for ZX Spectrum 128, +2, +2A, +3

Precision Diode Rectifiers

100V - 100W DMOS AUDIO AMPLIFIER WITH MUTE/ST-BY THERMAL SHUTDOWN STBY-GND

LINEAR INTEGRATED-CIRCUIT FUNCTION GENERATOR

TLI4946. Datasheet TLI4946K, TLI4946-2K, TLI4946-2L. Sense and Control. May 2009

DS12885, DS12885Q, DS12885T. Real Time Clock FEATURES PIN ASSIGNMENT

Transcription:

EE2CI5 LAB 3b Square wave oscillator circuit Objective The objective of this lab is to use a 555 integrated circuit, a capacitor and some resistors to design a periodic square wave oscillator with period 1ms and a duty cycle of 2/3; i.e., the oscillator output voltage is high for 2/3ms and is then low for 1/3ms. Equipment: 1) Function generator 2) Digital oscilloscope Components: 1) Resistors: one each of 330 Ω, 680 Ω, 4.7kΩ, 1kΩ, 10kΩ and 20kΩ 2) Capacitors: one 0.1 µf, 3) 555 timer chip 1. 555 Timer The 555 Timer is an integrated circuit that can be used to construct circuits that implement a variety of different timing functions. Several different manufacturers make 555 chips, and each has a slightly different implementation. However, the external configuration remains the same. The 555 chip comes in an 8-pin Dual Inline Package (DIP). The dot on the top of the package marks pin 1. The remaining pins are numbered sequentially in a counterclockwise direction from pin one. In Figure 1 the pins have been labeled with their functions. Figure 1: The pins of a 555 chip. (Figure sourced from www.wikipedia.org/wiki/555_timer_ic) 1

Pins 1, 4, 5 and 8 are typically used to establish the operation of the chip, where as Pins 2 and 6 are the operational inputs and Pins 3 and 7 are the operational outputs. Here are some brief descriptions of their characteristics. Pin 1 (GND): to be connected to ground. This is the low voltage level. Pin 8 (VCC): to be connected to a positive DC voltage source, typically between 3 and 15 volts. The value of the voltage at this pin establishes the high voltage level. Pin 4 (RESET-bar): When set to low this turns off the chip. When set to high the chip is turned on. Pin 5 (CTRL): Used to control the comparison signal for the threshold input. Pin 7 (DIS): This is one of the controlled outputs. One way to picture the operation of Pin 7 is to think of there being a switch between this pin and the ground. (The switch is implemented using a transistor.) When the operation of the timer (see the table below) is such that this switch is turned on, there is a low-resistance path from Pin 7 to the ground. In effect Pin 7 is connected to the ground. When this switch is off, the path from Pin 7 to the ground has a very high resistance, and essentially no current will flow into or out of this pin. Pin 3 (OUT): This is the main output of the chip. The voltage on this pin is either the high voltage or the low voltage, and the goal of circuit design using the 555 timer is to manipulate this output to obtain the desired effects. Pin 2 (TRIG) and Pin 6 (THR): The inputs to these two pins control the operation of the circuit (when the input at Pin 4 is high so that the chip is turned on). As will be seen in the functional circuit diagram below, these inputs are connected to the inputs of comparator circuits. Since comparators have high input resistance, the current drawn by these two input pins is usually negligible. The functional operation of the 555 timer can be succinctly captured in the Table 1. As you can see from this table, when the chip is switched on, the voltage level of the output and the state of the discharge switch depend on the voltages applied to the TRIG and THR pins. Table 1: Functional operation of a 555 chip. (Source: Texas Instruments Data Sheet for NA555, NE555, SA555, SE555. Revised June 2010.) RESET-bar (4) TRIG (2) THR (6) OUT (3) DIS (7) Low Irrelevant Irrelevant Low On High < VCC/3 Irrelevant High Off High > VCC/3 > 2VCC/3 Low On High > VCC/3 < 2VCC/3 As previously established As previously established To give you some idea of how this functionality is realized in a circuit, the functional circuit layout of one implementation of the 555 chip is given in Figure 2. 2

Figure 2: Functional circuit layout of a 555 chip. Note the slightly different labels for Pins 6 and 7. In order to be consistent with Figure 1, the label of Pin 4 ought to be RESET-bar. (Figure sourced from www.wikipedia.org/wiki/555_timer_ic) Some of the features of this layout are as follows: The three rectangles on the VCC to GND path represent resistors of (nominally) equal value. Therefore, it is quite straightforward to calculate the (nominal) voltages at the nodes at which these resistors are connected. (Hint: use voltage division.) The two triangles just to the right of these resistors are comparators. The circled input can be considered as the reference voltage. When the voltage at the other input is below the reference voltage, the comparator output is low. When the voltage at the other input is above the reference voltage, the comparator output is high. The block with inputs labeled R1, R and S is an RS flip-flop, and the output is the complement of the state of the flip-flop. In this circuit, the flip-flop is use to store some the important transient outputs from the comparators. The operation of the flipflop is described Table 2. The element in the path from the flip-flop to the output is an inverter. When the input is low, the output is high, and vice versa. The transistor in the path between the DISCH pin (7) and the ground is turned on if the output of the flip-flop is high, and is turned off when the output of the flip-flop is low. 3

Table 2: Functional operation of an enabled RS flip-flop, with the output being the complement of the state. [The (High,High) input pair gives rise to an undesirable race condition, and is to be avoided.] Voltage at S Voltage at R Output, Q-bar Low Low Retain the current output Low High Set Q-bar to high High Low Set Q-bar to low 2. Pre-lab Part I: Understanding 555 chip in Astable mode (3 marks) We will use the 555 chip in the Astable mode, which is illustrated in Figure 3. The first part of your prelab is to sketch the waveforms of the important signals in the circuit, including some of those inside the 555 chip. Your sketches should all have the same time scale and should be aligned underneath each other. That way you can follow how events in one part of the circuit trigger events in the other parts. You should sketch the capacitor voltage in volts, the R input to the flip-flop, in terms of low or high voltage levels. Note that it will only be high for a short period of time. the S input to the flip-flop; low or high. Note that with the exception of the initial charge up period, it will only be high for a short period of time. the output of the flip-flop Q-bar ; low or high the state of the discharge switch ; on or off the voltage at the output (pin 3); low or high To help you make these sketches, consider the following description of the circuit. When the power supply is first turned on, the capacitor voltage is zero and the power supply (VCC) charges up the capacitor through R1 and R2. Since the comparator inputs draw very little current, the circuit looks like a single loop with a voltage source VCC, a resistor of value R1+R2, and the capacitor C. Be sure to consider the time constant of the charging of the capacitor. The capacitor continues to charge until the THRES comparator is turned on. That changes the flip-flop output so that Q-bar is high, and hence the discharge switch is turned on. At that point, the equivalent circuit seen by the capacitor is simply a resistor of value R2 connected to the ground. Therefore, the capacitor will begin to discharge. When sketching the capacitor voltage waveform, think carefully about the 4

time constant relative to the time constant of the circuit in the previous phase. Also, think carefully about the length of time that the THRES comparator is turned on, and how long the flip-flop output Q-bar remains high. The capacitor continues to discharge until the TRIG comparator is turned on. That changes the flip-flop output so that Q-bar is low, and hence the discharge switch is turned off. Therefore, the capacitor begins to charge again through a circuit consisting of a voltage source VCC and an equivalent resistor of value R1+R2. Again, think carefully about the time constants, and the length of time that the TRIG comparator is turned on, and how long the flip-flop output Q-bar remains low. Figure 3: 555 timer configured in Astable mode. Note, in our experiments we will not connect the 10nF capacitor to pin 5. 5

3. Pre-lab Part II: Circuit Design (3 marks) Design an Astable circuit using the 555 chip so that the waveform on output pin 3 is a periodic square wave that is high for 0.667ms and low for 0.333ms. Carefully explain your design procedure, using your waveform sketches and time constant computations. Note: Ideally, the timing values are independent of the supply voltage. However, in practice this is not necessarily so. The use of a 9V power supply is recommended. 4. Experiment (2 marks) Build your circuit and compare your predicted theoretical response with your measured response. 5. Report (2 marks) Summarize the outcomes of your design and experiment, and suggest an application for the circuit te up your 6