CHAPTER 1 LATCHES & FLIP-FLOPS

Similar documents
LATCHES & FLIP-FLOP. Chapter 7

Rangkaian Sekuensial. Flip-flop

Digital Fundamentals: A Systems Approach

EKT 121/4 ELEKTRONIK DIGIT 1

Unit 11. Latches and Flip-Flops

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

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

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

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

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

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

INTRODUCTION TO SEQUENTIAL CIRCUITS

DIGITAL CIRCUIT COMBINATORIAL LOGIC

RS flip-flop using NOR gate

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

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

Chapter 11 Latches and Flip-Flops

Logic Design. Flip Flops, Registers and Counters

Chapter 5 Flip-Flops and Related Devices

CHW 261: Logic Design

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

PGT104 Digital Electronics. PGT104 Digital Electronics

RS flip-flop using NOR gate

D Latch (Transparent Latch)

EET2411 DIGITAL ELECTRONICS

5: Sequential Logic Latches & Flip-flops

ELCT201: DIGITAL LOGIC DESIGN

ELE2120 Digital Circuits and Systems. Tutorial Note 7

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.

Asynchronous (Ripple) Counters

DIGITAL ELECTRONICS MCQs

Sequential Logic Circuits

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

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

Experiment 8 Introduction to Latches and Flip-Flops and registers

Synchronous Sequential Logic

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.

Other Flip-Flops. Lecture 27 1

ELCT201: DIGITAL LOGIC DESIGN

Digital Fundamentals

Digital Circuits ECS 371

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

Sequential Logic Basics

FLIP-FLOPS AND RELATED DEVICES

Engr354: Digital Logic Circuits

Vignana Bharathi Institute of Technology UNIT 4 DLD

Chapter 2. Digital Circuits

Switching Theory And Logic Design UNIT-IV SEQUENTIAL LOGIC CIRCUITS

Lecture 8: Sequential Logic

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

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

Digital Design, Kyung Hee Univ. Chapter 5. Synchronous Sequential Logic

Introduction to Sequential Circuits

Introduction to Microprocessor & Digital Logic

Chapter 5: Synchronous Sequential Logic

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

Chapter 4. Logic Design

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

Module -5 Sequential Logic Design

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-III SEQUENTIAL CIRCUITS

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.

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

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

Unit-5 Sequential Circuits - 1

CHAPTER 11 LATCHES AND FLIP-FLOPS

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

The NOR latch is similar to the NAND latch

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

Digital Logic Design I

6. Sequential Logic Flip-Flops

CHAPTER 6 COUNTERS & REGISTERS

CHAPTER 4: Logic Circuits

Combinational vs Sequential

CHAPTER 4: Logic Circuits

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

Sequential Logic and Clocked Circuits

EEE2135 Digital Logic Design Chapter 6. Latches/Flip-Flops and Registers/Counters 서강대학교 전자공학과

Sequential Circuits: Latches & Flip-Flops

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

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

ECE 341. Lecture # 2

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

MODULE 3. Combinational & Sequential logic

Chapter. Synchronous Sequential Circuits

LAB #4 SEQUENTIAL LOGIC CIRCUIT

MODU LE DAY. Class-A, B, AB and C amplifiers - basic concepts, power, efficiency Basic concepts of Feedback and Oscillation. Day 1

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

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

Chapter 7 Counters and Registers

Logic and Computer Design Fundamentals. Chapter 7. Registers and Counters

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

Topic 8. Sequential Circuits 1

Sequential Design Basics

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

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

Flip-Flops and Sequential Circuit Design

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

Module for Lab #16: Basic Memory Devices

Transcription:

CHAPTER 1 LATCHES & FLIP-FLOPS 1 Outcome After learning this chapter, student should be able to; Recognize the difference between latches and flipflops Analyze the operation of the flip flop Draw the output timing diagram (waveform) for single and combination of latches and flip-flops Troubleshoot basic flip-flops circuits 2 FKEKK 1

Terminology Multivibrator A class of digital circuits in which the output is connected back to the input (i.e. it is fed back to the input, commonly referred to as feedback) to produce either two stable states, one stable state, or no stable states, depending on the configuration. Bistable Having two stable states. Latches and flip-flops are bistable multivibrators Latch An asynchronous bistable multivibrator, used for storing 1 bit Flip-Flop A synchronous bistable multivibrator, used for storing 1 bit 3 Teminology (continue..) Asynchronous There is no fixed timing relationship Synchronous There is a fixed timing relationship, usually through the use of a clock pulse Edge-triggered Flip-Flop A type of flip-flop in which the input data are entered and appear on the output on the same clock edge, either the positive or negative edge 4 FKEKK 2

Introduction: Comparison between combinational circuits and sequential circuits Characteristics of combinational circuits are; Output depends only to current input No feedback from output of the system Unable to remember past values Logic gates AND, OR, XOR, NOT 5 Introduction (continue..) 6 FKEKK 3

Introduction (continue..) Multivibrator any digital circuit employing feedback. Sequential/Multivibrator devices are categorized as; Bistable Two stable states, SET and RESET Latches and flip-flops Monostable Has one stable state Timer Astable No stable state Oscillator (to generate periodic pulse waveforms for timing purposes. ) Fig: inverter with feedback 7 Latches Latches are bistable multivibrator A two stable states digital circuit that produces HIGH or LOW depending on the input For gated (enabled) latches, the output are controlled by the enable (EN) input It is level triggered, means that any input changes during the EN is active, the output will be affected The operation will be observed by examining the timing diagram 8 FKEKK 4

Latches (continue..) Four types; S-R latch S-R latch Gated S-R latch Gated D latch 9 S-R (Set-Reset) Latch Logic circuit Symbol Truth table 10 FKEKK 5

S-R Latch Timing Diagram 11 S-R (Set-Reset) Latch Logic circuit Symbol Truth table 12 FKEKK 6

S-R Latch Timing Diagram 13 Gated S-R Latch Logic circuit Symbol Truth table 14 FKEKK 7

Gated S-R Latch Timing Diagram 15 Gated D latch Logic circuit Symbol Truth table 16 FKEKK 8

Gated D Latch Timing Diagram 17 How does S-R latch works? By using DeMorgan s Theorem NAND gate Negative-OR gate The equivalent logic circuit 18 FKEKK 9

How does S-R latch works? (continue..) Assume that S = 0 and R = 1, therefore Q = 1 and Q = 0 Change both S and R to 1, therefore both Q and Q are still the same as previous value 19 How does S-R latch works? (continue..) Now, change S = 1 and R = 0, therefore Q = 0 and Q = 1 Change both S and R to 1, therefore both Q and Q are still the same as previous value 20 FKEKK 10

How does S-R latch works? (continue..) Now, set both input to 0, hence, both Q and Q are 1 which is invalid This state should be avoided since the changing state from invalid is unpredictable. Prove it!!! 21 Gated D Latch Exercises 22 FKEKK 11

Latch applications SR and D latches are among the simplest and least expensive types of memory elements used in logic circuits. Fig: Typical use of latches in a computer s input/output circuits 23 Edge-Triggered Flip-Flops Flip-flops are synchronous bistable multivibrator. Synchronous means the output changes state only occur at a triggering point called clock Edge-triggered can be either positive (rising) edge or negative (falling) edge of the clock Edge triggered flip-flops change state either at positive or negative clock Clock input for flip-flops 24 FKEKK 12

Edge-Triggered Flip-Flops (continue..) Four types; Positive-edge triggered Negative-edge triggered S-R flip flops D flip-flops J-K flip-flops T flip-flops 25 Edge-Triggered S-R Flip-Flop Positive-edge S-R FF 26 FKEKK 13

Edge-Triggered S-R Flip-Flop Exercises 27 Edge-Triggered D Flip-Flop Positive-edge D FF 28 FKEKK 14

Edge-Triggered D Flip-Flop Exercises 29 Edge-Triggered J-K Flip-Flop Positive-edge J-K FF 30 FKEKK 15

Edge-Triggered J-K Flip-Flop Exercises 31 Edge-Triggered T Flip-Flop Positive-edge T FF 32 FKEKK 16

Edge-Triggered T Flip-Flop Exercises 33 Latch and Flip-Flop Exercise Draw the output waveform for the JK flip flop and D latch whose input are as given 34 FKEKK 17

Master Slave Flip-Flops Introduced to overcome timing problem that might be occurred to flip-flop Two similar flip-flops are connected with different clock The output is stable even though input changes Qo Q1 35 Asynchronous Preset and Clear Most integrated circuit FF have asynchronous inputs These input change the FF output without clock triggering Normally label as preset (PRE) and clear (CLR) For example, take the T FF /PRE /CLR OUTPUT 0 0 Invalid 0 1 Q = 1 (Set) 1 0 Q = 0 (Reset) 1 1 Flip-flop normal operation 36 FKEKK 18

Flip-Flop Operating Characteristics Propagation Delay Times Required time interval for output signal to occur after an input signal has been applied CLK Q 50% CLK Q tphl tplh Set-up Time Minimum time interval for the signal to retain the value before clock pulse is triggered D CLK ts 37 Flip-Flop Operating Characteristics Hold time Minimum time interval for the signal to retain the value after clock pulse is triggered CLK D th Maximum Clock Frequency Highest rate at which a flip-flop can respond to the input signal fmax 38 FKEKK 19

Flip-Flop Operating Characteristics (continue..) Pulse Width Minimum clock pulse width is smallest time between HIGH and LOW Power Dissipation Total power consumption of the flip-flops For example, a 7474 chip has two D flip-flops which each of the flip-flop operates at +5Vdc and draws 5mA P = Vcc x Icc = 5 x 5 = 25mW P T = 2 x 25 mw = 50mW I = 50mW/5V = 10mA Therefore, the chip must be supplied by +5Vdc supply with at least 10mA of current. 39 Flip-Flop Applications Parallel data storage You will learn more in Chapter 3 40 FKEKK 20

Flip-Flop Applications (continue..) Frequency division 41 Flip-Flop Applications (continue..) Counting You will learn more in Chapter 2 42 FKEKK 21

Exercises (a) What is the difference between latch and flip-flop operation? (b) List 3 applications of flip-flops. Explain briefly each of the application of the flipflops. (c) Give the definition and describe the propagation delay time in flip-flop operating characteristics. 43 Exercises (Continue) (d) For negative edge triggered J-K flip-flop with preset (/PRE) and (/ CLR) inputs, determine the Q output for the input shown in the timing diagram in Figure Q1(d). Assume Q starts with 1 and the input J and K always 1. 44 FKEKK 22