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

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

Chapter 9 Introduction to Sequential Logic

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

Sequential Logic Basics

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

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

Exercise 2: D-Type Flip-Flop

Physics 323. Experiment # 10 - Digital Circuits

INTRODUCTION TO SEQUENTIAL CIRCUITS

RS flip-flop using NOR gate

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

D Latch (Transparent Latch)

LATCHES & FLIP-FLOP. Chapter 7

Asynchronous (Ripple) Counters

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

Digital Fundamentals: A Systems Approach

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

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.

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

Scanned by CamScanner

RS flip-flop using NOR gate

Digital Circuits ECS 371

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

Rensselaer Polytechnic Institute Computer Hardware Design ECSE Report. Lab Three Xilinx Richards Controller and Logic Analyzer Laboratory

CHAPTER 1 LATCHES & FLIP-FLOPS

Digital Systems Laboratory 3 Counters & Registers Time 4 hours

Other Flip-Flops. Lecture 27 1

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

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

Topics of Discussion

Unit 11. Latches and Flip-Flops

VTU NOTES QUESTION PAPERS NEWS RESULTS FORUMS Registers

CSE115: Digital Design Lecture 23: Latches & Flip-Flops

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

Counters

Digital Circuits 4: Sequential Circuits

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) LATCHES and FLIP-FLOPS

EET 1131 Lab #10 Latches and Flip-Flops

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

Logic Design. Flip Flops, Registers and Counters

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

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

ECE 270 Lab Verification / Evaluation Form. Experiment 8

3 Flip-Flops. The latch is a logic block that has 2 stable states (0) or (1). The RS latch can be forced to hold a 1 when the Set line is asserted.

Synchronous Sequential Logic

CHW 261: Logic Design

ELE2120 Digital Circuits and Systems. Tutorial Note 7

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

COSC 243. Sequential Logic. COSC 243 (Computer Architecture) Lecture 5 - Sequential Logic 1

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

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

EKT 121/4 ELEKTRONIK DIGIT 1

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

CHAPTER 6 COUNTERS & REGISTERS

Review of Flip-Flop. Divya Aggarwal. Student, Department of Physics and Astro-Physics, University of Delhi, New Delhi. their state.

Lecture 8: Sequential Logic

LAB #4 SEQUENTIAL LOGIC CIRCUIT

ECE 341. Lecture # 2

Module -5 Sequential Logic Design

CHAPTER 11 LATCHES AND FLIP-FLOPS

Experiment 8 Introduction to Latches and Flip-Flops and registers

DIGITAL CIRCUIT LOGIC UNIT 11: SEQUENTIAL CIRCUITS (LATCHES AND FLIP-FLOPS)

WINTER 15 EXAMINATION Model Answer

Switching Circuits & Logic Design

Digital Fundamentals

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

CHAPTER 4: Logic Circuits

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

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

Chapter 11 Latches and Flip-Flops

Counter dan Register

Chapter 3: Sequential Logic Systems

EXPERIMENT #6 DIGITAL BASICS

The NOR latch is similar to the NAND latch

Laboratory 9 Digital Circuits: Flip Flops, One-Shot, Shift Register, Ripple Counter

55:131 Introduction to VLSI Design Project #1 -- Fall 2009 Counter built from NAND gates, timing Due Date: Friday October 9, 2009.

ELCT201: DIGITAL LOGIC DESIGN

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

CSE 352 Laboratory Assignment 3

successive approximation register (SAR) Q digital estimate

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

ELCT201: DIGITAL LOGIC DESIGN

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

Laboratory 11. Required Components: Objectives. Introduction. Digital Displays and Logic (modified from lab text by Alciatore)

Experiment # 4 Counters and Logic Analyzer

Introduction to Sequential Circuits

Introduction to Digital Electronics

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

EECS 140 Laboratory Exercise 7 PLD Programming

PGT104 Digital Electronics. PGT104 Digital Electronics

ELECTRICAL ENGINEERING DEPARTMENT California Polytechnic State University

CHAPTER 4: Logic Circuits

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

Engr354: Digital Logic Circuits

EE 109 Homework 6 State Machine Design Name: Score:

PESIT Bangalore South Campus

5: Sequential Logic Latches & Flip-flops

EKT 121/4 ELEKTRONIK DIGIT 1

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

Serial In/Serial Left/Serial Out Operation

Transcription:

Physics 120 Lab 10 (2018): Flip-flops and Registers 10.1 The basic flip-flop: NAND latch This circuit, the most fundamental of flip-flop or memory circuits, can be built with either NANDs or NORs. We will build the NAND form shown in Figure 10.1. Figure 10.1. A simple flip-flop: cross-coupled NAND latch Build this latch and record its operation using three channels of the oscilloscope to measure Set (pin 1), Reset (pin 5), and Q (pin 3); take a SCREENSHOT (2 pts) (Hint: set the scope is on auto/roll and slow enough such that you "catch" the output. Please push the buttons in this order: Reset, Set, Set, Reset.) Complete the logic table below, indicate which of the four combinations define the memory state, and include the table in your report (1 pt). Note which combination of inputs, i.e., "S" and "R", defines a memory", or resilient, state. 10.2 Monitoring switch bounce Bouncing of the contacts in a mechanical switch is hard to see because the bounces do not occur at exactly repeatable times after the switch is pushed (e.g., Figure 10.2). Figure 10.2: Switch bouncing at HIGH to LOW transition (pulled up through 10k) Use the R-S flip-flop (Figure 10.1) as a switch "debouncer" (Figure 10.3). Add pull-up resistors and as input use a "bouncy" SPDT pushbutton with the common terminal grounded (Figure 10.1). Show that your circuit performs correctly by measuring from Set, Reset, and the output Q. Trigger the oscilloscope in the "Normal" mode (hint: start with a time-base of 100 µs/cm and use "S" as the source) and take a SCREENSHOT (2 pts). Lab 10-1

Why does the latch a circuit designed to remember an input work as a "debouncer" (1 pt)? Figure 10.3. NAND latch as switch debouncer Keep this circuit for the remainder of the exercises. 10.3 D flip-flops The R-S latch is instructive but rarely used in circuit design. A more complicated version, the clocked flip-flop, is much easier to work with. The simplest of the clocked flip-flops, the D, simply saves at its output (O) what is present at its input (D, for "data") just before the previous clocking edge (Figure 10.4). The particular D flip-flop used below, the 74HC74, responds to a rising edge of the clock input. Figure 10.4. D flip-flop. The 74 DIP package includes two D flip-flops. Tie the inputs of the unused flip-flop high (through a 10KW resistor). Dis-assert R (active low Reset) and S (active low Set, sometimes called Clear or Preset) by tying them high (as these are active LOW inputs) with 10 kω resistors to +5 V (pins 1, 2 & 4) to ease switching from HIGH to LOW. Ditto for input D. Clock the flip-flop with the debounced push button that you built. Confirm that the D flip-flop ignores information presented to its input (D) until the flipflop is clocked through input CLK (for "clock"). Demonstrate this with a SCREENSHOT; use a slow time-base and show CLK, D, and Q (2 pts). Try asserting R. Demonstrate this with a SCREENSHOT; show at least R and Q (1 pt). You can do this with a jumper wire; bounce is harmless here. Why (1 pt)? What Lab 10-2

happens if you try to clock in a HIGH at D while asserting R. Demonstrate this with a SCREENSHOT as well (1 pt). Try asserting R and S at the same time, something you would never purposely do in a useful circuit, with jumpers (hint: ground them simultaneously through a single wire). What happens (hint: Look at both the Q and Q outputs). Demonstrate this with a SCREENSHOT; show at least R, Q and Q (1 pt). What determines what state the flipflop rests in after you release both (1 pt)? 10.4 A toggle D flip-flop with feedback The addition of negative feedback to a D flip flop leads to a circuit (Figure 10.5) that would appear to have an oscillatory output. Yet the need for a clock breaks the feedback path. Build the circuit and try it! Figure 10.5. D flip-flop with inhibitory feedback Clock the circuit manually using the "debounced" push-button. Document with a Clock the circuit with a square wave (0 to 5V) from the function generator. Measure CLK and Q on the oscilloscope and document with a What is the relation between f clock and the frequency of the output, f QUT (1 pt); document with a Increase the clock rate toward the function generator s maximum and measure the flipflop s propagation delay. You will have to consider what CLK and output Q levels to use when you measure the time elapsed (hint: just what it is that is propagating. ) Document with a SCREENSHOT (2 pts). At the high clock rate, measure the expected difference in the transition onset at Q versus Q. Document with a SCREENSHOT (1 pt) (hint: you may need to use the averaging feature on the oscilloscope). Why might the transitions occur at different instances (1 pt)? 10.5 Shift register We consider a circuit (Figure 10.6) delays the a (possibly periodic) signal called IN connected to D of the first flip-flop, and synchronizes it to the faster CLK. Build the circuit (Figure 10.6). Use two function generators to periodic inputs that vary from 0 to +5 V, and choose f CLK > 10 f IN. Lab 10-3

Figure 10.6. Shift register One flip-flop: Synchronizer Use the oscilloscope to watch CLK, IN, and QA; trigger the scope on IN and supply a What accounts for the jitter (i.e., fluctuation in timing) in signal QA (1 pt)? Several flip-flops: Delay Now watch the later outputs, i.e., QB, QC, or QD, along with CLK, IN, and QA; trigger the scope on IN and supply SCREENSHOTs for all cases (3 pt). Make a composite timing diagram on the propagation for flip flop A to B to C to D (1 pt). 10.6 "Double-Barreled" one-shot. A shift register (Figure 10.6) plus NAND gates yield a "Double-Barreled" one-shot. (Figure 10.7). Before we start, we will need a pair of read-out indicators. Build two of the n-channel MOSFET LED drivers (Figure 10.8). These will be used to display the output from the D flip-flop register in the following exercise. Figure 10.7. Digitally-timed (synchronous) one-shot (double-barreled) Add NAND gates to the shift register circuit of figure 10.6 (Figure 10.7) Hint: use the debounced pushbutton to drive TRIG, and set the clock rate to one Hertz or less. Watch the two one-shot outputs, along with TRIG, with oscilloscope probes. Watch the buffered LEDs. You should see first one LED then the other wink low, in response to this low-to-high transition. Lab 10-4

When you are satisfied that the circuit works, drive TRIG from one function generator, while CLK is driven by the other function generator, and choose f CLK > 10 f TRG for clarity. Show a SCREENSHOT of TRIG, CLK, and outputs 1 and 2 (3 pts). Fig. 10.8. N-channel MOSFET LED drive To ensure you understand what this circuit is doing, draw a timing diagram (to be included with your report), showing TRIG, clock, the four flip-flop outputs, and outputs 1 and 2 from the NAND gates (3 pts). What are the strengths and weaknesses of this circuit as a one-shot (pulse) circuit relative to an analog one-shot (1 pt)? 34 points total Lab 10-5