Exercise 2: D-Type Flip-Flop

Similar documents
Exercise 2: Connecting the Digital Logic Circuits

Activity Sequential Logic: An Overview

Other Flip-Flops. Lecture 27 1

LATCHES & FLIP-FLOP. Chapter 7

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

Chapter 11 Latches and Flip-Flops

ECE 341. Lecture # 2

Digital Circuit And Logic Design I. Lecture 8

Digital Circuit And Logic Design I

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

Sequential Design Basics

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

Physics 323. Experiment # 10 - Digital Circuits

Experiment 8 Introduction to Latches and Flip-Flops and registers

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

ASYNCHRONOUS COUNTER CIRCUITS

EET 1131 Lab #10 Latches and Flip-Flops

Digital Systems Laboratory 3 Counters & Registers Time 4 hours

Digital Circuits ECS 371

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

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

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

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

DALHOUSIE UNIVERSITY Department of Electrical & Computer Engineering Digital Circuits - ECED 220. Experiment 4 - Latches and Flip-Flops

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

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).

Counters

INTRODUCTION TO SEQUENTIAL CIRCUITS

Digital Logic Design I

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

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

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

EET2411 DIGITAL ELECTRONICS

Asynchronous (Ripple) Counters

Figure 30.1a Timing diagram of the divide by 60 minutes/seconds counter

Flip-Flops. Because of this the state of the latch may keep changing in circuits with feedback as long as the clock pulse remains active.

ELCT201: DIGITAL LOGIC DESIGN

FE REVIEW LOGIC. The AND gate. The OR gate A B AB A B A B 0 1 1

CMSC 313 Preview Slides

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

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

D Latch (Transparent Latch)

Latches, Flip-Flops, and Registers. Dr. Ouiem Bchir

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

Introduction to Sequential Circuits

Unit 9 Latches and Flip-Flops. Dept. of Electrical and Computer Eng., NCTU 1

Digital Fundamentals: A Systems Approach

Engr354: Digital Logic Circuits

Eng. Mohammed Samara. Fall The Islamic University of Gaza. Faculty of Engineering. Computer Engineering Department

Synchronous Sequential Logic

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

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

Universal Asynchronous Receiver- Transmitter (UART)

Digital Fundamentals: A Systems Approach

Mission. Lab Project B

RS flip-flop using NOR gate

ASNT_PRBS20B_1 18Gbps PRBS7/15 Generator Featuring Jitter Insertion, Selectable Sync, and Output Amplitude Control

Module 4:FLIP-FLOP. Quote of the day. Never think you are nothing, never think you are everything, but think you are something and achieve anything.

Sequential Circuits: Latches & Flip-Flops

EXPERIMENT #6 DIGITAL BASICS

Logic Design. Flip Flops, Registers and Counters

ELE2120 Digital Circuits and Systems. Tutorial Note 7

EKT 121/4 ELEKTRONIK DIGIT 1

Chapter 4. Logic Design

CSE140: Components and Design Techniques for Digital Systems. More D-Flip-Flops. Tajana Simunic Rosing. Sources: TSR, Katz, Boriello & Vahid

The NOR latch is similar to the NAND latch

CHAPTER 6 COUNTERS & REGISTERS

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

cascading flip-flops for proper operation clock skew Hardware description languages and sequential logic

ELECTRICAL ENGINEERING DEPARTMENT California Polytechnic State University

CH 11 Latches and Flip-Flops

CHAPTER 1 LATCHES & FLIP-FLOPS

(CSC-3501) Lecture 7 (07 Feb 2008) Seung-Jong Park (Jay) CSC S.J. Park. Announcement

Figure 1 shows a simple implementation of a clock switch, using an AND-OR type multiplexer logic.

Clocks. Sequential Logic. A clock is a free-running signal with a cycle time.

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

Counter dan Register

Report on 4-bit Counter design Report- 1, 2. Report on D- Flipflop. Course project for ECE533

Digital Fundamentals

Registers and Counters

Slide 1. Flip-Flops. Cross-NOR SR flip-flop S R Q Q. hold reset set not used. Cross-NAND SR flip-flop S R Q Q. not used reset set hold 1 Q.

Unit 11. Latches and Flip-Flops

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

Computer Organization & Architecture Lecture #5

LAB #4 SEQUENTIAL LOGIC CIRCUIT

Synchronous Sequential Logic

Sequential Logic. E&CE 223 Digital Circuits and Systems (A. Kennings) Page 1

A clock is a free-running signal with a cycle time. A clock may be either high or low, and alternates between the two states.

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

RS flip-flop using NOR gate

JABATAN KEJURUTERAAN ELEKTRIK

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

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Sequential Circuits

Modeling Latches and Flip-flops

Registers and Counters

Lecture 7: Sequential Networks

Last time, we saw how latches can be used as memory in a circuit

CHAPTER 4: Logic Circuits

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

Modeling Latches and Flip-flops

Transcription:

Flip-Flops Digital Logic Fundamentals Exercise 2: D-Type Flip-Flop EXERCISE OBJECTIVE When you have completed this exercise, you will be able to determine the characteristics of a D-type results with an oscilloscope. EXERCISE DISCUSSION There is one data input (D) and a clock input (CLK). The two outputs, Q and Q, are complementary. T a. b. 162 FACET by Lab-Volt

Digital Logic Fundamentals Flip-Flops A low (logic 0) at PR sets Q high (logic 1). A low at CLR resets Q low. respectively; data or clock signals have no effect on Q and Q. A low (logic 0) at PR sets Q a. high (logic 1). b. low (logic 0). The small circle and triangle at the CLK input indicate that the negative edge of the clock signal activates the data (D) input. FACET by Lab-Volt 163

Flip-Flops Digital Logic Fundamentals a. high to low. b. low to high. This is a timing diagram showing the relationship between the data input (D), the outputs (Q and Q), and the clock signal (CLK). Q equals the D input after the negative edge of the CLK. Q is the complement of D and Q. Q until there is another negative edge of the CLK signal. The Q output is logic 1. If input D is logic 0 during the next negative edge of the clock signal, the Q output a. stays logic 1. b. changes to logic 0. 164 FACET by Lab-Volt

Digital Logic Fundamentals Flip-Flops Q is logic 1. The logic states of D and CLK do not affect the outputs. If PR is logic 0, CLR is logic 1, and D is logic 0, what logic state will Q be after the next negative edge of the CLK? a. logic 0 b. logic 1 FACET by Lab-Volt 165

Flip-Flops Digital Logic Fundamentals If PR is logic 1, CLR is logic 1, and D is logic 0, what logic state will Q be after the next negative edge of the CLK? a. logic 0 b. logic 1 If PR is logic 1, CLR is logic 1, and D is logic 1, what logic state will Q be when the CLK changes from logic 0 to logic 1? a. Q will remain in its existing state. b. logic 1 PROCEDURE Locate the INPUT SIGNALS, SET/RESET FLIP-FLOP, and D-TYPE FLIP-FLOP circuit blocks. 166 FACET by Lab-Volt

Digital Logic Fundamentals Flip-Flops Connect A at the INPUT SIGNALS circuit block to A (D input) on the D-TYPE FLIP-FLOP circuit block. Connect the Q output of the SET/RESET FLIP-FLOP circuit block to B (CLK input) on the D-TYPE FLIP-FLOP circuit block. Set toggle switch A in the HIGH position to put a logic high (1) at the D input. Place a two-post connector in the S (SET) position on the SET/RESET FLIP-FLOP circuit block. This puts a high (1) clock signal to CLK. Connect the oscilloscope channel 1 probe to the Q output, and connect the channel 2 probe to the Q Connect the probe ground clips to a ground terminal on the circuit board. FACET by Lab-Volt 167

Flip-Flops Digital Logic Fundamentals This puts a logic 0 (low) at PR. Observe the logic states of Q (channel 1) and Q (channel 2) on the oscilloscope screen to answer the following questions. Preset Output Logic States The Q output is a. logic 1. b. logic 0. The Q output is a. logic 1. b. logic 0. Are the Q and Q outputs complementary? Remove the two-post connector at PRESET. Did the Q and Q outputs remain logic 1 and logic 0, respectively? 168 FACET by Lab-Volt

Digital Logic Fundamentals Flip-Flops This puts a logic 0 (low) at CLEAR. Clear Output Logic States The Q output is a. logic 1. b. logic 0. The Q output is a. logic 1. b. logic 0. Are the Q and Q outputs complementary? Remove the two-post connector at CLEAR. Did the Q and Q outputs remain logic 0 and logic 1, respectively? FACET by Lab-Volt 169

Flip-Flops Digital Logic Fundamentals to logic 1 by moving toggle switch A from HIGH to LOW and back to HIGH on the INPUT SIGNALS circuit block. Did the Q and Q output states change when the data input logic state was changed? Q and Q did not change because the Q and Q outputs respond to the data signal a. when the clock signal is logic 0. b. only on the negative edge (from high to low) of the clock signal. 170 FACET by Lab-Volt

Digital Logic Fundamentals Flip-Flops The data signal should be logic 1 (toggle switch A set to HIGH). While observing the Q and Q outputs on the oscilloscope screen, change the clock signal from logic 1 to 0 by setting the two-post connector from S to R on the SET/RESET FLIP-FLOP circuit block. The Q output a. changed to logic 1. b. stayed at logic 0. The Q output is a. logic 1. b. logic 0. Why did Q go to logic 1 and Q to logic 0? a. Because the data input (D) was logic 1 during the negative edge of the clock signal b. Because the Q and Q outputs change on a negative clock signal FACET by Lab-Volt 171

Flip-Flops Digital Logic Fundamentals While observing the Q and Q outputs on the oscilloscope screen, set the data signal to logic 0 by placing toggle switch A to LOW on the INPUT SIGNALS circuit block. Did the Q and Q output states change when the data input logic state was changed to logic 0? What will make the Q and Q output states respond to a data input change from logic 1 to 0? a. a logic 0 signal at PRESET b. a negative edge of a clock signal 172 FACET by Lab-Volt

Digital Logic Fundamentals Flip-Flops While observing the Q and Q outputs on the oscilloscope screen, create a negative edge of a clock signal by placing the two-post connector to the S position and then back to the R on the SET/RESET FLIP-FLOP circuit block. negative edge of the clock signal? The Q output is a. logic 1. b. logic 0. The Q output is a. logic 1. b. logic 0. FACET by Lab-Volt 173

Flip-Flops Digital Logic Fundamentals While observing the Q and Q outputs on the oscilloscope screen, set the two-post connector from R to S to R on the SET/RESET FLIP-FLOP circuit block. This cycles the clock signal from low to high to low, causing a negative edge. low? The outputs did not change because a. the data signal remained at logic 0 during the negative edge of the clock signal. b. Modify your test circuit by connecting the CLK (clock) input of the D-TYPE FLIP-FLOP circuit block to the CLOCK circuit block. The CLK input is receiving a 50 khz clock signal with a peak-to-peak amplitude of about 5 V. This means that there is a negative edge of the clock signal 50,000 times per second. 174 FACET by Lab-Volt

Digital Logic Fundamentals Flip-Flops Do the Q and Q outputs change when the D input remains at logic 0? While observing the Q and Q outputs on the oscilloscope screen, change the D input to logic 1 and back to logic 0 several times by changing the position of toggle switch A from LOW to HIGH and back to LOW several times. continuous 50 khz clock signal? a. Q b. Q FACET by Lab-Volt 175

Flip-Flops Digital Logic Fundamentals While observing the Q and Q outputs on the oscilloscope screen, reset the CLR input to logic 0 by putting the two-post connector in the terminals at CLEAR. Move toggle switch A to HIGH and back to LOW several times to change the logic state of D. While observing the Q and Q outputs of the oscilloscope screen, set the PR input by putting the two-post connector in the terminals at PRESET. 176 FACET by Lab-Volt

Digital Logic Fundamentals Flip-Flops Move the toggle switch A to HIGH and back to LOW several times to change the logic state of D. Based on your observation, does a logic 0 at the PR or CLR inputs initialize the logic state of the outputs? FACET by Lab-Volt 177

Flip-Flops Digital Logic Fundamentals CONCLUSION A PR (preset) input sets the Q output to a logic 1 state. A CLR (clear) input resets the Q output to a logic 0 state. The two outputs, Q and Q, are complementary. When PR and CLR are logic 1, Q equals the D input after the negative edge of the CLK signal. RESET state, respectively. REVIEW QUESTIONS 1. a. immediately passes all input data (D) state changes to its output. b. does not react to input data (D) state changes until clocked. c. must be triggered with a negative clock edge to accept PR or CLR inputs. d. changes its output state at every negative clock edge. 2. A logic 0 at the PR (PRESET) input sets the Q output to logic a. 1. b. 0. c. 0 on a positive clock edge. d. 1 on a negative clock edge. 178 FACET by Lab-Volt

Digital Logic Fundamentals Flip-Flops 3. A logic 0 at the CLR (CLEAR) input resets the Q output to logic a. 1. b. 0. c. 0 on a positive clock edge. d. 1 on a negative clock edge. 4. a. Q output follows the logic state of the D input. b. Q output follows the logic state of the CLK signal. c. outputs are both logic 0. d. outputs are locked in either the set or reset state, respectively. 5. a. the output follows all input data (D) state changes. b. PR and CLR inputs are locked out. c. the Q and Q outputs are no longer complements. d. FACET by Lab-Volt 179