3 Frequency Divider. LAB Objectives. 3.1 Background

Similar documents
MATERIALS. Multisim screen shots sent to TA.

Counters and Decoders

Digital Fundamentals. Lab 8 Asynchronous Counter Applications

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

CHAPTER 11: Flip Flops

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

1.1 The 7493 consists of 4 flip-flops with J-K inputs unconnected. In a TTL chip, unconnected inputs

Design: a mod-8 Counter

ECE380 Digital Logic

EXPERIMENT NUMBER 5 BASIC OSCILLOSCOPE OPERATIONS

DIGITAL COUNTERS. Q B Q A = 00 initially. Q B Q A = 01 after the first clock pulse.

Module 3: Floyd, Digital Fundamental

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

The 104 Duke_ACC Machine

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

FREQUENCY RESPONSE OF AN AUDIO AMPLIFIER

The components. E3: Digital electronics. Goals:

Data Acquisition Using NI-DAQmx

Lecture 8: Synchronous Digital Systems

PLL frequency synthesizer

EXPERIMENT 8. Flip-Flops and Sequential Circuits

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

Jianjian Song LogicWorks 4 Tutorials (5/15/03) Page 1 of 14

Lesson 12 Sequential Circuits: Flip-Flops

Annex: VISIR Remote Laboratory

Upon completion of unit 1.1, students will be able to

Step Response of RC Circuits

Operating Manual Ver.1.1

Lab 1: The Digital Oscilloscope

Design Example: Counters. Design Example: Counters. 3-Bit Binary Counter. 3-Bit Binary Counter. Other useful counters:

Sequential Logic: Clocks, Registers, etc.

Lab 3: Introduction to Data Acquisition Cards

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

Chapter 9 Latches, Flip-Flops, and Timers

RC & RL Transient Response

Digital Electronics Detailed Outline

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

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

ASYNCHRONOUS COUNTERS

LOGICOS SERIE Precios sujetos a variación. Ref. Part # Descripción Precio Foto Ref. Quad 2-Input NOR Buffered B Series Gate / PDIP-14

74LS193 Synchronous 4-Bit Binary Counter with Dual Clock

A Lesson on Digital Clocks, One Shots and Counters

A Lesson on Digital Clocks, One Shots and Counters

Digital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng

Digital circuits make up all computers and computer systems. The operation of digital circuits is based on

Lab 1: Introduction to PSpice

Digital Logic Elements, Clock, and Memory Elements

81110A Pulse Pattern Generator Simulating Distorted Signals for Tolerance Testing

LABORATORY 2 THE DIFFERENTIAL AMPLIFIER

Making Basic Measurements. Publication Number August Training Kit for the Agilent Technologies Series Logic Analysis System

Oscilloscope, Function Generator, and Voltage Division

LAB 7 MOSFET CHARACTERISTICS AND APPLICATIONS

DM74LS112A Dual Negative-Edge-Triggered Master-Slave J-K Flip-Flop with Preset, Clear, and Complementary Outputs

Mentor Tools tutorial Bold Browser Design Manager Design Architect Library Components Quicksim Creating and Compiling the VHDL Model.

ECE124 Digital Circuits and Systems Page 1

PSPICE TUTORIAL (BASIC)

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

Flip-Flops, Registers, Counters, and a Simple Processor

Electrical Resonance

Design Project: Power inverter

WEEK 8.1 Registers and Counters. ECE124 Digital Circuits and Systems Page 1

Lab 1: Full Adder 0.0

AC Measurements Using the Oscilloscope and Multimeter by Mr. David Fritz

Asynchronous counters, except for the first block, work independently from a system clock.

Digital Logic Design Sequential circuits

DS1621 Digital Thermometer and Thermostat

Embest DSO2300 USB Oscilloscope

Set-Reset (SR) Latch

ELEC EXPERIMENT 1 Basic Digital Logic Circuits

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

So far we have investigated combinational logic for which the output of the logic devices/circuits depends only on the present state of the inputs.

User s Guide DDS-3X25 USB ARBITRARY FUNCTION GENERATOR

Figure 1: Multiple unsynchronized snapshots of the same sinusoidal signal.

Flip-Flops and Sequential Circuit Design. ECE 152A Winter 2012

Flip-Flops and Sequential Circuit Design

DM74LS193 Synchronous 4-Bit Binary Counter with Dual Clock

Latches, the D Flip-Flop & Counter Design. ECE 152A Winter 2012

CHAPTER 3 Boolean Algebra and Digital Logic

After opening the Programs> Xilinx ISE 8.1i > Project Navigator, you will come to this screen as start-up.

Asynchronous Counters. Asynchronous Counters

Sequential Logic. (Materials taken from: Principles of Computer Hardware by Alan Clements )

Fundamentals of Digital Electronics

Simulating Power Supply Sequences for Power Manager Devices Using PAC-Designer LogiBuilder

Lab #9: AC Steady State Analysis

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

1. Oscilloscope is basically a graph-displaying device-it draws a graph of an electrical signal.

PCM Encoding and Decoding:

Gates, Circuits, and Boolean Algebra

DM74LS191 Synchronous 4-Bit Up/Down Counter with Mode Control

EE 42/100 Lecture 24: Latches and Flip Flops. Rev B 4/21/2010 (2:04 PM) Prof. Ali M. Niknejad

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

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

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

EXPERIMENT NUMBER 8 CAPACITOR CURRENT-VOLTAGE RELATIONSHIP

Beginners Guide to the TDS 210 and TDS 220 Oscilloscopes

RC Circuits and The Oscilloscope Physics Lab X

Electronic WorkBench tutorial

Transcription:

Frequency Divider LAB Objectives This LAB experiment builds on the previous experiment to introduce more advance topics in schematic editing and system simulation using Proteus Virtual System Modeling (VSM). The experiment is design to guide the students through the process of designing, editing and simulating a frequency-divider circuit based on the modulo-n counter designed in the previous experiment. The LAB covers more advance schematic editing and simulation topics such as multiple design sheets and virtual instruments.. Background In this experiment, we will design an odd frequency divider with 50% duty cycle. A frequency divider, also called a clock divider, is a circuit that takes an input signal of a frequency, fin, and generates an output signal of a frequency : fout = fin /n where n is an integer. Figure. shows an example of the output of a frequency divider with fin = 8kHz and n = 4. The duty cycle of a clock signal is the percentage of the time the signal is high in one clock cycle. For example a clock signal with a 60% duty cycle is high during 60% of its cycle and low for the remaining 40% as illustrated in Figure.. The frequency divider circuit that we are going to design will divide the input frequency by 5 with a 50% duty cycle. This circuit will designed based on the modulo-5 binary counter that we have implemented in the previous experiment. Conceptually, the easiest way to create an odd frequency divider circuit with a 50% duty cycle is to generate two reference clocks fx and fy at half the desired output frequency (i.e. fx = fy = fin /) with a constant 90 deg phase difference between the two reference

Frequency Divider f in = 8 khz - T in = /f in = 0. 5 x 0s e c o n d s T in f out = f in /n = 8/ 4 = khz,t out = /f out = 0. 5 x - 0 s e c o n d s f out = khz T out Figure. The output of a frequency divider with f in = 8kHz and n = 4. 60% 40% T Figure. Example of a clock signal with 60% duty cycle. clocks. You can then generate the output frequency by exclusive-oring the two waveforms together. Because of the constant 90 deg phase offset, only one transition occurs at a time on the input of the exclusive-or gate, effectively eliminating any glitches on the output waveform. The two reference clocks with 90 deg phase difference can be generated with the help of a modulo-n counter. The first reference clock f x is set high with the rising edge of the clock whenever the count equals 0, whereas the second reference clock f y is set high with the falling edge of the clock whenever the count equals n/. As an example, consider the timing diagram of a frequency divider by 5 shown in Figure.. The first reference clock f x is set high with the rising edge of the clock on count equals 0. On the other hand, the second reference clock f y is set high with falling edge of the clock on count equals 5/ =. 0 4 0 4 f in f x f y f o u t Figure. Timing diagram of a frequency divider by 5 with 50% duty cycle.

J J 4 4 S S 6 6. Required Components In order to create an odd frequency divider (e.g. divide by, 5, 7,..., etc.) with a 50% duty cycle using the previously described approach, we can apply the follow procedure (See Figure.4) :. Create a modulo-n counter that counts from 0 to (n ), where n is the natural number by which the input reference clock is supposed to be divided (n is an odd number).. Take two JK flip-flops, x and y, and connect their inputs as follows : (a) J x = K x = (Count == 0) (b) J y = K y = (Count == n/ ). Connect the clock inputs of the two flip-flops as follows : (a) CLK x = f in (b) CLK y = ˉ f in 4. Exclusive-OR the outputs of the two flip-flops (f x and f y ) to generate the output frequency (i.e. f out = f x f y ). V CC N O T 7 4 LS 0 4 X O R M O D _ 5_ CO U N T E R Q 0 N O R 7 4 LS 7 X CLK K 7 4 LS Q Q 5 7 4 LS 8 6 F o u t F i n 5 CLK Q Q M O D 5CN T R Q 4 A N D 7 4 LS 0 8 Y CLK K 7 4 LS Q Q 5 Figure.4 Frequency divider by 5 with 50% duty cycle. Exercise. Show how to design a frequency divider by with 50% duty cycle using modulo- binary counter and two JK flip-flops. Repeat the exercise for frequency divider by 4, 6 and 7.. Required Components. Hex Inverters (74LS04). Triple -Input Positive NOR Gates (74LS7). Quad -Input XOR Gate (74LS86) 4. Dual Negative-Edge-Triggered JK Flip-Flop With Set (74LS). Schematic Entry In this section, we will design the frequency divider by 5 with 50% duty cycle. It is common in larger designs to split the schematic into multiple sheets. This serves both to reduce clutter

4 Frequency Divider on the schematic and also to organize the design into logical blocks. ISIS fully supports this methodology and we have arranged our tutorial design into two sheets in order to cover the relevant procedures. The work we have done so far to design the modulo-5 counter has been to complete the first sheet. The second part of our design (i.e. designing the logic for the two reference clocks) will be done on a separate sheet. The procedure to design our frequency divider circuit is summarized below :. Open the modulo-5 counter project file created in LAB and save it with a new name of your choice (say "frequency_divider.pdsprj").. Get the required circuit components from the Library.. Add a new sheet to you design (Section..). 4. On the newly added sheet, place the circuit components required for building the logic of the two reference clocks. 5. On the same sheet, place an oscilloscope device (Section..). 6. Connect the circuit components as shown in Figure.6. Note that in order to connect two terminals in two separate design sheets, you need to assign the same name to both terminals... Adding Sheets to a Design To add a new sheet to the schematic we simply invoke the command from the Design menu as shown in Figure.5. Figure.5 Add new design sheet.. Place Virtual Instruments In this experiment, we need to use an oscilloscope device to compare the input and output frequencies of the frequency divider circuit. To insert an oscilloscope choose Virtual Mode then select OSCILLOSCOPE from Instruments List Box as shown in Figure.7.

. Schematic Entry 5 Figure.6 Schematic of the reference clocks. Figure.7 Inserting an oscilloscope.

6 Frequency Divider.4 Testing the Design Run the simulation and observe the input and output frequencies on the oscilloscope as shown in Figure.8. If the oscilloscope window does not pop-up when you run the simulation, then you need to open it manually by right clicking on the oscilloscope component and then select "Digital Oscilloscope". Figure.8 Comparing the input and output frequencies of the frequency divider using the oscilloscope. We will refer to Figure.9 to illustrate the usage of the oscilloscope. This oscilloscope consists of three main parts : () input channels, () display scree and () control panels. Figure.9 Illustrating different parts of the oscilloscope. The considered oscilloscope has four input channels labeled A, B, C and D as shown in

.4 Testing the Design 7 Figure.6. You can trace a given signal by connecting its terminal (or wire) to one of the four channels. The trace signals connected to the input channels of the oscilloscope will be displayed on the screen. The x-axis of the screen represents time, while the y-axis represents voltage. The control panels consist of a trigger control, horizontal control and channel control (one for each channel). The trigger control panel, as illustrated in Figure.0, provides the user with the following control functions : Change the position the horizontal reference line. Specify signal display type : analog (AC) or digital (DC). Complement the input signals display. Enable/disable continuous tracing of input signals. Enable/disable one-shot tracing of input signals. This option works for periodical signals only, and it will freeze the display so the user can perform any required analysis for the input signal. Enable/disable cursors. When this control is enabled, a cursor can be inserted by clicking on any place on the display screen. When a cursor is inserted it will display the time measure between the vertical reference line and the inserted cursor. Focus the display by selecting the main source of input channels. This is useful when displaying signals with large difference in their frequencies which my distort the display. P osition the horiz ontal referenc e line Change signal display from analog to digital and vise versa Complement signal E nab le/ disab le c ontinu ou s trac ing of inpu t signals E nab le/ disab le one shot trac ing of inpu t signals ( for periodic al signals) E nab le/ disab le c u rsors S elec t main inpu t c hannel Figure.0 Trigger panel functions. The horizontal control panel, as illustrated in Figure., provides the user with the following control functions : Change the position of the signal trace on the x-axis. Change time division scale which allows the user to zoom-in or zoom-out on the x-axis.

8 Frequency Divider Change the position of the signal trace on the x-axis Change tim e d iv ision scale Figure. Horizontal panel functions. The channel control panel, as illustrated in Figure., provides the user with the following control functions for the specified channel (A, B, C or D) : Change the position of the signal trace on the y-axis Change the type of signal display : analog (AC), digital (CD), ground (GND) or turn the signal off (OFF). Complement the signal trace. Combine two signals (A + B or C + D) in one signal trace by adding their amplitudes. Change voltage division scale which allows the user to zoom-in or zoom-out on the y-axis. Change the position of the signal trace on the y-axis Change the type of signal d isplay Com plem ent the signal trace A d d tw o signals Change v oltage d iv ision scale Figure. Channel panel functions. Exercise. Referring to Figure.6, complete the reference clocks circuit on the new design sheet, run the simulation and with the help of your instructor learn how to utilize the oscilloscope to compare the input and output frequencies.