EET 1131 Lab #10 Latches and Flip-Flops

Similar documents
EET 1131 Lab #12 - Page 1 Revised 8/10/2018

Digital Fundamentals. Lab 5 Latches & Flip-Flops CETT Name: Date:

LATCHES & FLIP-FLOP. Chapter 7

Name: Date: Suggested Reading Chapter 7, Digital Systems, Principals and Applications; Tocci

Sequential Digital Design. Laboratory Manual. Experiment #7. Counters

Activity Sequential Logic: An Overview

Exercise 2: D-Type Flip-Flop

Laboratory 10. Required Components: Objectives. Introduction. Digital Circuits - Logic and Latching (modified from lab text by Alciatore)

Sequential Digital Design. Laboratory Manual. Experiment #3. Flip Flop Storage Elements

EMT 125 Digital Electronic Principles I CHAPTER 6 : FLIP-FLOP

Physics 323. Experiment # 10 - Digital Circuits

Digital Systems Laboratory 3 Counters & Registers Time 4 hours

Digital Circuits I and II Nov. 17, 1999

CPE 200L LABORATORY 3: SEQUENTIAL LOGIC CIRCUITS UNIVERSITY OF NEVADA, LAS VEGAS GOALS: BACKGROUND: SR FLIP-FLOP/LATCH

Review : 2 Release Date : 2019 Last Amendment : 2013 Course Code : SKEE 2742 Procedure Number : PK-UTM-FKE-(0)-10

Physics 120 Lab 10 (2018): Flip-flops and Registers

Laboratory 1 - Introduction to Digital Electronics and Lab Equipment (Logic Analyzers, Digital Oscilloscope, and FPGA-based Labkit)

ECE 2274 Pre-Lab for Experiment Timer Chip

Digital Circuits ECS 371

NEW MEXICO STATE UNIVERSITY Electrical and Computer Engineering Department. EE162 Digital Circuit Design Fall Lab 5: Latches & Flip-Flops

Experiment # 9. Clock generator circuits & Counters. Digital Design LAB

Laboratory 7. Lab 7. Digital Circuits - Logic and Latching

LAB #4 SEQUENTIAL LOGIC CIRCUIT

CPSC 121: Models of Computation Lab #5: Flip-Flops and Frequency Division

California State University, Bakersfield Computer & Electrical Engineering & Computer Science ECE 3220: Digital Design with VHDL Laboratory 7

Digital Networks and Systems Laboratory 2 Basic Digital Building Blocks Time 4 hours

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

Today 3/8/11 Lecture 8 Sequential Logic, Clocks, and Displays

Laboratory Exercise 3

PRE J. Figure 25.1a J-K flip-flop with Asynchronous Preset and Clear inputs

Lab #11: Register Files

CHAPTER 4 RESULTS & DISCUSSION

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

Laboratory Exercise 7

Experiment # 4 Counters and Logic Analyzer

EET2411 DIGITAL ELECTRONICS

The NOR latch is similar to the NAND latch

EKT 121/4 ELEKTRONIK DIGIT 1

CPSC 121: Models of Computation Lab #5: Flip-Flops and Frequency Division

EXPERIMENT #6 DIGITAL BASICS

Other Flip-Flops. Lecture 27 1

Figure 7.8 Circuit Schematic with Switches, Logic Gate, and Flip-flop

Lecture 10: Programmable Logic

Topic D-type Flip-flops. Draw a timing diagram to illustrate the significance of edge

Logic Gates, Timers, Flip-Flops & Counters. Subhasish Chandra Assistant Professor Department of Physics Institute of Forensic Science, Nagpur

Name Of The Experiment: Sequential circuit design Latch, Flip-flop and Registers

Chapter 4: One-Shots, Counters, and Clocks

Exercise 2: Connecting the Digital Logic Circuits

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) COUNTERS

Laboratory Exercise 7

CSCB58 - Lab 4. Prelab /3 Part I (in-lab) /1 Part II (in-lab) /1 Part III (in-lab) /2 TOTAL /8

Timing Pulses. Important element of laboratory electronics. Pulses can control logical sequences with precise timing.

DIGITAL REGISTERS. Serial Input Serial Output. Block Diagram. Operation

RS flip-flop using NOR gate

CHW 261: Logic Design

CSE Latches and Flip-flops Dr. Izadi. NOR gate property: A B Z Cross coupled NOR gates: S M S R Q M

OFC & VLSI SIMULATION LAB MANUAL

The University of Texas at Dallas Department of Computer Science CS 4141: Digital Systems Lab

Unit 11. Latches and Flip-Flops

Chapter 2. Digital Circuits

ASYNCHRONOUS COUNTER CIRCUITS

To design a sequential logic circuit using D-Flip-flop. To implement the designed circuit.

Introduction. NAND Gate Latch. Digital Logic Design 1 FLIP-FLOP. Digital Logic Design 1

UNIVERSITI TEKNOLOGI MALAYSIA

Laboratory Exercise 6

HDL & High Level Synthesize (EEET 2035) Laboratory II Sequential Circuits with VHDL: DFF, Counter, TFF and Timer

Chapter 5 Flip-Flops and Related Devices

CSE 352 Laboratory Assignment 3

Digital Fundamentals: A Systems Approach

10.1 Sequential logic circuits are a type of logic circuit where the output of the circuit depends not only on

Chapter 6. Flip-Flops and Simple Flip-Flop Applications

University of Victoria. Department of Electrical and Computer Engineering. CENG 290 Digital Design I Lab Manual

Synchronous Sequential Logic

Sequential Logic and Clocked Circuits

Digital Circuit And Logic Design I. Lecture 8

Digital Circuit And Logic Design I

Microcontrollers and Interfacing week 7 exercises

D Latch (Transparent Latch)

ECE 341. Lecture # 2

Digital Fundamentals

Lab #12: 4-Bit Arithmetic Logic Unit (ALU)

Slide Set 7. for ENEL 353 Fall Steve Norman, PhD, PEng. Electrical & Computer Engineering Schulich School of Engineering University of Calgary

Digital Circuits 4: Sequential Circuits

Topics. Microelectronics Revolution. Digital Circuits Part 1 Logic Gates. Introductory Medical Device Prototyping

MODEL QUESTIONS WITH ANSWERS THIRD SEMESTER B.TECH DEGREE EXAMINATION DECEMBER CS 203: Switching Theory and Logic Design. Time: 3 Hrs Marks: 100

Module for Lab #16: Basic Memory Devices

EE 367 Lab Part 1: Sequential Logic

Solar Power for Small Hall

EKT 121/4 ELEKTRONIK DIGIT 1

The outputs are formed by a combinational logic function of the inputs to the circuit or the values stored in the flip-flops (or both).

The basic logic gates are the inverter (or NOT gate), the AND gate, the OR gate and the exclusive-or gate (XOR). If you put an inverter in front of

Switching Circuits & Logic Design, Fall Final Examination (1/13/2012, 3:30pm~5:20pm)

ELECTRICAL ENGINEERING DEPARTMENT California Polytechnic State University

Unit 12 Design Solutions Solutions to Unit 12 Design and Simulation Problems

Sequential Design Basics

PRACTICAL WORK BOOK For Academic Session Semester. DIGITAL LOGIC DESIGN (TC-203) For SE (TC)

FLIP-FLOPS AND RELATED DEVICES

Digital Logic Design I

STATIC RANDOM-ACCESS MEMORY

Laboratory Sequential Circuits

Transcription:

Name OBJECTIVES: 1. To study the operation of a D latch. 2. To study the operation of a D flip-flop. 3. To study the operation of a J-K flip-flop. EQUIPMENT REQUIRED: Safety glasses ICs: 7474, 7475, 74LS76 (not a standard 7476) Digital Circuit Trainer Multisim simulation software Quartus II software and Altera DE2-115 board EET 1131 Lab #10 Latches and Flip-Flops PART 1. 7475 Gated D Latches Part 1(A). The 7475 chip contains four gated D latches. Shown below is the symbol for onehalf of this chip (two of the latches). Using the datasheet from www.ti.com (search for sn7475), find the pin numbers for the first two latches on a 7475, and label these pin numbers on the diagram below. Pin number for V CC = Pin number for Ground = Now place a 7475 on the breadboard and connect its inputs as follows: Connect the three input pins to three of the trainer s data switches. Connect the two active-high output pins to two LEDs. Provide the 7475 chip with power and ground. With the Enable pin set HIGH to enable the latches, complete Table 1 by setting the data switches in the sequence shown and observing the LEDs. Table 1 EN D1 D2 Q1 Q2 1 0 0 1 0 1 1 1 0 1 1 1 EET1131 Lab #10 - Page 1 Revised 1/11/2018

Now set the Enable pin LOW to disable the latches. With the Enable pin set LOW, complete Table 2 by setting the data switches in the sequence shown and observing the LEDs. Table 2 EN D1 D2 Q1 Q2 0 1 1 0 1 0 0 0 1 0 0 0 Based on your data of Tables 1 and 2 above, explain clearly (and in complete sentences) how a gated D Latch works. Part 1(B). In Multisim, build the circuit shown below. After building the circuit in Multisim, start the simulation and follow these steps: (a) We want to start with all of the LEDs dark. If your LEDs are already all dark, skip to step (b). But if any of your LEDs are lit up, do this: Set all five switches LOW. Set switch 7 HIGH. Now all of your LEDs should be dark. EET1131 Lab #10 - Page 2 Revised 1/11/2018

(b) (c) (d) (e) (f) (g) (h) (i) (j) (k) (l) Disable the latches by using the appropriate switch to set the Enable inputs to their inactive state. Using the switches, place the binary number 1001 2 on the D inputs. Enable the latches by switching the Enable inputs to their active state. Place the binary number 0111 2 on the D inputs. Disable the latches by setting the Enable inputs to their inactive state. Place the binary number 0100 2 on the D inputs. Add an EET 1131 title block to your drawing that shows: Your name Today s date The title Lab 10 Part 1 With the switches for the D inputs set to 0100 2 with the latches still disabled, get a printout, and turn it in with this lab. What conclusions can you draw from this exercise? Explain clearly and in complete sentences. Part 1(C). Create a Quartus II project named Lab10DLatch and a bdf file with the same name. In the bdf file, build the same circuit as above. Compile your design and download it to the Cyclone chip. Repeat steps (a) through (l) above on your downloaded circuit. You should find it to behave the same as your Multisim circuit. When your circuit works correctly, ask me to check your work. EET1131 Lab #10 - Page 3 Revised 1/11/2018

PART 2. 7474 D Flip-flops Part 2(A). The 7474 chip contains two D flip-flops. Shown below is the symbol for one of these flip-flops. Judging by the symbol, is this flip-flop positive-edge triggered or negative-edge triggered? Using a datasheet, find the pin numbers for the first flip-flop on a 7474, and label these pin numbers on the diagram below. Pin number for V CC = Pin number for Ground = Now place a 7474 on the breadboard and connect its inputs as follows: Connect the flip-flop s PRE input, CLR input, and D input to three of the trainer s data switches. Connect the flip-flop s CLK input to the trainer s pulse switch A. With this connection, by repeatedly pressing and releasing the pulse switch, you will apply positive clock pulses to the flip-flop s clock input. Connect the flip-flop s Q output to an LED. Provide the 7474 chip with power and ground. EET1131 Lab #10 - Page 4 Revised 1/11/2018

Complete Table 3 by setting the data switches appropriately and pressing the pulse switch whenever you wish to apply a clock pulse. PRE Table 3 CLR D CLK Q 1 1 1 1 1 0 0 1 1 0 1 0 1 0 1 1 0 0 1 1 1 No Pulse 1 1 0 No Pulse Based on your data of Table 3 above, explain clearly (and using complete sentences): a. Ignoring the PRE and CLR inputs, how does a positive edge triggered D- Flip Flop work? b. How does the PRE input work? c. How does theclr input work? EET1131 Lab #10 - Page 5 Revised 1/11/2018

d. Why should the PRE and CLR inputs not be made low at the same time? Part 2(B). 1. The glossary on pages 470-472 of your textbook defines the word register. Copy this definition below and make sure you understand what it means. A register is In Multisim, build the 4-bit register circuit shown below. After building the circuit in Multisim, start the simulation and follow these steps: (a) To clear all four flip-flops, use the appropriate switch to set the CLR inputs to their active state. Then return the CLR inputs to their inactive state. (b) Using the switches, place the binary number 1001 2 on the D inputs. (c) Before you pulse the clock input, what binary code is displayed on the LEDs? (d) (e) Pulse the clock input by pressing and then releasing the push button PA. EET1131 Lab #10 - Page 6 Revised 1/11/2018

(f) (g) (h) (i) (j) (k) (l) (m) (n) (o) (p) (q) (r) Place the binary number 0111 2 on D inputs. Before you pulse the clock input, what binary code is displayed on the LEDs? Pulse the clock input. Now set CLR low and leave it low through the following steps, which are the same as steps (b) through (i) above. Place the binary number 1001 2 on the D inputs. Before you pulse the clock input, what binary code is displayed on the LEDs? Pulse the clock input. Place the binary number 0111 2 on D inputs. Before you pulse the clock input, what binary code is displayed on the LEDs? Pulse the clock input. Add an EET 1131 title block to your drawing that shows: Your name Today s date The title Lab 10 Part 2 With the switches for the D inputs set to 0111 2, get a printout, and turn it in with this lab. What conclusions can you draw from this exercise? Explain clearly. Part 2(C). Create a Quartus II project named Lab10DFlipFlop and a bdf file with the same name. In the bdf file, build the same circuit as above. Compile your design and download it to the Cyclone chip. Repeat steps (a) through (r) above on your downloaded circuit. You should find it to behave the same as your Multisim circuit. When your circuit works correctly, ask me to check your work. EET1131 Lab #10 - Page 7 Revised 1/11/2018

PART 3. 74LS76 J-K Flip-flops Part 3(A). The 74LS76 chip contains two J-K flip-flops. Shown below is the symbol for one of these flip-flops. Judging by the symbol, is this flip-flop positive-edge triggered or negative-edge triggered? Using a datasheet, find the pin numbers for the first flip-flop on a 74LS76, and label these pin numbers on the diagram below. Pin number for V CC = Pin number for Ground = Now place a 74LS76 on the breadboard and connect its inputs as follows: Connect the flip-flop s PRE input, CLR input, J input, and K input to four of the trainer s data switches. Connect the flip-flop s CLK input to the trainer s pulse switch A. With this connection, by repeatedly pressing and releasing the pulse switch, you will apply clock pulses to the flip-flop s clock input. Connect the flip-flop s Q output to an LED. Provide the 74LS76 chip with power and ground. Complete Table 4, performing the steps in the order shown. Use the data switches to set the PRE, CLR, J, and K inputs to the specified values. To apply a clock pulse, press and release the pulse switch. Table 4 PRE CLR J K CLK Q 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0 1 0 0 1 1 0 1 0 1 0 1 1 1 1 1 0 1 1 0 0 1 1 0 1 1 1 0 0 1 1 1 1 1 1 0 0 1 1 1 1 EET1131 Lab #10 - Page 8 Revised 1/11/2018

Part 3(B) In Multisim, place a single 74LS76 J-K flip-flop on the workspace. Connect its J and K inputs to V CC to make them permanently HIGH. Connect the PRE and CLR inputs to two SPDT switches, so that they can be switched between LOW and HIGH. Connect the CLK input to a square wave (the Multisim component called CLOCK_VOLTAGE), and set this wave s frequency to 10 khz. (a) Next: Set PRE and CLR both to HIGH. Display the CLK input on the oscilloscope s Channel A. Display output Q on the oscilloscope s Channel B. Arrange the waveforms on the oscilloscope s screen so that Channel A is located in the top half of the screen and Channel B is located in the bottom half. Adjust the scope s controls to show about five cycles of Channel B s waveform. Press the oscilloscope s REVERSE button so that the waveforms are displayed against a white background instead of a black background. Get one printout showing the circuit (titled Lab 10 Part 3 in the title block), and another printout showing the oscilloscope face with waveforms. Turn the printouts in with this lab. (b) Set PRE to LOW, and observe the waveforms on the oscilloscope. What do you see on the Q pin? (c) Return PRE to HIGH, and set CLR to LOW. Observe the waveforms on the oscilloscope. What do you see on the Q pin? From the Multisim oscilloscope printout that you made above, what is the mathematical relationship between the flip-flop s input frequency at its CLK pin and the output frequency at its Q pin? Based on your data and observations in Parts 3(A) and 3(B), what conclusions can you draw about J-K flip-flop operation? EET1131 Lab #10 - Page 9 Revised 1/11/2018