LATCHES & FLIP-FLOP. Chapter 7

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

EKT 121/4 ELEKTRONIK DIGIT 1

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

CHAPTER 1 LATCHES & FLIP-FLOPS

EET2411 DIGITAL ELECTRONICS

Digital Circuits ECS 371

Rangkaian Sekuensial. Flip-flop

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

Digital Fundamentals: A Systems Approach

Digital Systems Laboratory 3 Counters & Registers Time 4 hours

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

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

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

5: Sequential Logic Latches & Flip-flops

Digital Fundamentals

Experiment 8 Introduction to Latches and Flip-Flops 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).

RS flip-flop using NOR gate

RS flip-flop using NOR gate

Logic Design. Flip Flops, Registers and Counters

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

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

SEQUENTIAL LOGIC. Satish Chandra Assistant Professor Department of Physics P P N College, Kanpur

Chapter. Synchronous Sequential Circuits

The NOR latch is similar to the NAND latch

Engr354: Digital Logic Circuits

Asynchronous (Ripple) Counters

Other Flip-Flops. Lecture 27 1

Unit 11. Latches and Flip-Flops

CHW 261: Logic Design

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

ELCT201: DIGITAL LOGIC DESIGN

Introduction. Serial In - Serial Out Shift Registers (SISO)

Chapter 5 Flip-Flops and Related Devices

ECE 341. Lecture # 2

Introduction to Sequential Circuits

Lecture 8: Sequential Logic

Sequential Logic and Clocked Circuits

Flip-Flops and Related Devices. Wen-Hung Liao, Ph.D. 4/11/2001

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

FLIP-FLOPS AND RELATED DEVICES

ELCT201: DIGITAL LOGIC DESIGN

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

Chapter 4. Logic Design

Chapter 11 Latches and Flip-Flops

IT T35 Digital system desigm y - ii /s - iii

D Latch (Transparent Latch)

Digital Logic Design I

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.

Sequential Logic Circuits

PGT104 Digital Electronics. PGT104 Digital Electronics

Synchronous Sequential Logic

Flip-Flops and Sequential Circuit Design

CHAPTER 6 COUNTERS & REGISTERS

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

Exercise 2: D-Type Flip-Flop

ASYNCHRONOUS COUNTER CIRCUITS

DIGITAL ELECTRONICS MCQs

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

Chapter 8 Sequential Circuits

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.

CHAPTER 4: Logic Circuits

More on Flip-Flops Digital Design and Computer Architecture: ARM Edition 2015 Chapter 3 <98> 98

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.

INTRODUCTION TO SEQUENTIAL CIRCUITS

Digital Fundamentals: A Systems Approach

Counters

Review of digital electronics. Storage units Sequential circuits Counters Shifters

Digital Circuit And Logic Design I. Lecture 8

Digital Circuit And Logic Design I

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

COMP2611: Computer Organization. Introduction to Digital Logic

Final Exam review: chapter 4 and 5. Supplement 3 and 4

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

COE 202: Digital Logic Design Sequential Circuits Part 1. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

UNIVERSITI TEKNOLOGI MALAYSIA

Chapter 5 Sequential Circuits

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

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

Counter dan Register

MC9211 Computer Organization

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

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

CHAPTER 4: Logic Circuits

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

AIM: To study and verify the truth table of logic gates

6. Sequential Logic Flip-Flops

ELE2120 Digital Circuits and Systems. Tutorial Note 7

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

VTU NOTES QUESTION PAPERS NEWS RESULTS FORUMS Registers

Introduction to Microprocessor & Digital Logic

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

CHAPTER1: Digital Logic Circuits

Sequential circuits. Same input can produce different output. Logic circuit. William Sandqvist

DIGITAL CIRCUIT COMBINATORIAL LOGIC

CS302 - Digital Logic Design FAQs By

Digital Fundamentals 11/2/2017. Summary. Summary. Floyd. Chapter 7. Latches

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

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

Transcription:

LATCHES & FLIP-FLOP Chapter 7

INTRODUCTION Latch and flip flops are categorized as bistable devices which have two stable states,called SET and RESET. They can retain either of this states indefinitely making them useful for storage devices. The main difference between between latches and flip flops is in the method used for changing their states.

LATCHES The output of a latch depends on its current inputs and on its previous output and its change of state can happen at any time when its inputs change S-R (Set-Reset) Latch Gated S-R Latch Gated D Latch

FLIP FLOPS The output of a flip-flop also depends on current inputs and its previous output but the change of state occurs at specific times determined by a clock input Edge-Triggered Flip-Flop (S-R, J-K, D) Asynchronous Inputs

S-R LATCH

S-R LATCH

NEGATIVE-OR EQUIVALENT OF THE NAND GATE S -R LATCH 1 1 1 SET state 0 When /R is LOW and /S is HIGH 1 0 Q is LOW and this Condition We call it RESET state 1

Example: Determine the waveform that will be observed on the Q output. Assume that Q is initially LOW

THE GATED S-R LATCH A gated latch requires an Enable input, EN (G is also used to designated an enable input). The S and R inputs control the state to which the latch will go when a HIGH level is applied to the EN input. The latch will not change until EN is HIGH. Initially RESET

TRUTH TABLE FOR GATED S-R LATCH S R EN Q Q 0 0 0 Q Q Hold 1 0 0 Q Q Hold 0 1 0 Q Q Hold 1 1 0 Q Q Hold 0 0 1 Q Q Hold 1 0 1 1 0 Set 0 1 1 0 1 Reset 1 1 1 0 0 not allowed

THE GATED D LATCH Only has one input in addition to EN. This input is called the D (data) input. -When the D input is HIGH and the EN input is HIGH, the latch will SET. -When the D input is LOW and EN is HIGH, the latch will RESET. -Another way, the output Q follows the input D when EN is HIGH Initially RESET

EDGE-TRIGGERED FLIP-FLOPS Edge-triggered S-R flip-flop Edge-triggered D flip-flop Edge-triggered J-K flip-flop

EDGE-TRIGGERED FLIP-FLOP LOGIC SYMBOLS (TOP: POSITIVE EDGE-TRIGGERED; BOTTOM: NEGATIVE EDGE- TRIGGERED).

Clock Signals & Synchronous Sequential Circuits 1 Clock signal 0 Rising edges of the clock (Positive-edge triggered) Falling edges of the clock (Negative-edge triggered) Clock Cycle Time A clock signal is a periodic square wave that indefinitely switches values from 0 to 1 and 1 to 0 at fixed intervals.

THE EDGE-TRIGGERED S-R FLIP- FLOP The S and R inputs of the S-R flip-flop are called synchronous input because data on these inputs are transferred to the flip-flop s output only on the triggering edge of the clock pulse. Operation

OPERATION OF A POSITIVE EDGE- TRIGGERED S-R FLIP-FLOP Example

Example: Determine the Q and Q output waveforms of the flip-flop (Assume is initially RESET)

Exercise: Determine the Q and Q output waveforms of the flip-flop (Assume is initially RESET) and it is a negative edge-triggered device

THE EDGE-TRIGGERED D FLIP-FLOP The D flip-flop is useful when a single data bit (1 or 0) is to be stored. Example

Example: Determine the Q output waveform if the flip-flop starts out RESET Try This: Determine the Q output for the D flip-flop if the D input is inverted

Answer for related question

THE EDGE-TRIGGERED J-K FLIP- FLOP The J-K flip-flop is versatile and is widely used type of flip-flop. The difference is that he J-K flip-flop has no invalid state as does the S-R flip-flop. Example

Example: Determine the Q output, assuming that the flip-flop is initially RESET

Exercise: Determine the Q output, starting in the RESET state.

ASYNCHRONOUS PRESET AND CLEAR INPUTS The state of the flip-flop independent of the clock. The asynchronous inputs override the synchronous inputs. Active-LOW preset and clear inputs

Truth table of J-K flip-flop with Asynchronous inputs PRE CLR Q 0 0 INVALID 0 1 1 (SET) 1 0 0 (RESET) 1 1 SYNCRONOUS(clocked operation) These preset and clear inputs must both be kept HIGH for synchronous operation. When the PRE and the CLR inputs are used inputs J and K have no effect on the operation of the flip-flop. To use the flip-flop with synchronous inputs J-K, the PRE and the CLR inputs are set to logic 1. Setting PRE and the CLR to logic 0 is not allowed.

Example: Determine the Q output for the inputs shown in the timing diagram. Q is initially LOW. SET Toggle RESET

Exercise: Interchange the /PRE and /CLR waveforms, what will the Q output look like?

FLIP-FLOP APPLICATIONS Parallel Data Storage Frequency Division Counting

PARALLEL DATA STORAGE A common requirement in digital systems is to store several bits of data from parallel lines simultaneously in a group of flip-flops.

FREQUENCY DIVISION 2 n : n is number of flip-flops. Example: 2 flip-flop will divided frequency by 4 (2 2 )

Example: Develop the f out waveform for the circuit below when the 8 khz square wave input is applied to the clock input of flip-flop A

COUNTING The Q output of flip flop A clocks flip flop B. If Q A is taken as the least significant bit, a 2 bit sequenced is produced as the flip flop clocked. The binary sequence repeats every 4 clock pulses.

EXAMPLE Determine the output waveform in relation to the clock for Q A,Q B and Q C in the circuit below and show the binary sequence represented by these waveform.