Other Flip-Flops. Lecture 27 1

Similar documents
Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

ELCT201: DIGITAL LOGIC DESIGN

Unit 11. Latches and Flip-Flops

ELCT201: DIGITAL LOGIC DESIGN

Introduction to Sequential Circuits

Chapter. Synchronous Sequential Circuits

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

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

RS flip-flop using NOR gate

ECE 341. Lecture # 2

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

Synchronous Sequential Logic

ELE2120 Digital Circuits and Systems. Tutorial Note 7

RS flip-flop using NOR gate

Digital Circuits ECS 371

Chapter 2. Digital Circuits

Asynchronous (Ripple) Counters

EET2411 DIGITAL ELECTRONICS

Lecture 8: Sequential Logic

B.Tech CSE Sem. 3 15CS202 DIGITAL SYSTEM DESIGN (Regulations 2015) UNIT -IV

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

CHAPTER 4: Logic Circuits

Chapter 5: 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.

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

CHAPTER 4: Logic Circuits

Chapter 5 Sequential Circuits

Flip-Flops and Registers

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

Digital Circuit And Logic Design I. Lecture 8

Digital Circuit And Logic Design I

Synchronous Sequential Logic

Chapter 11 Latches and Flip-Flops

LATCHES & FLIP-FLOP. Chapter 7

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

Sequential Circuits: Latches & Flip-Flops

Counter dan Register

CHAPTER1: Digital Logic Circuits

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

Sequential Design Basics

Course Administration

D Latch (Transparent Latch)

MC9211 Computer Organization

Experiment 8 Introduction to Latches and Flip-Flops and registers

Flip-Flops and Sequential Circuit Design

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

Digital Logic Design I

Registers and Counters

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

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

INTRODUCTION TO SEQUENTIAL CIRCUITS

Chapter 5 Synchronous Sequential Logic

LAB 7. Latches & Flip Flops

Analysis of Clocked Sequential Circuits

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

Exercise 2: D-Type Flip-Flop

Part II. Chapter2: Synchronous Sequential Logic

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

Counters

Engr354: Digital Logic Circuits

Logic Design. Flip Flops, Registers and Counters

Synchronous Sequential Logic

CMSC 313 Preview Slides

Registers and Counters

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

Sequential Logic Circuits

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

Rangkaian Sekuensial. Flip-flop

Chapter 4. Logic Design

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

Chapter 8 Sequential Circuits

Serial In/Serial Left/Serial Out Operation

Universal Asynchronous Receiver- Transmitter (UART)

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

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

Vignana Bharathi Institute of Technology UNIT 4 DLD

UNIVERSITI TEKNOLOGI MALAYSIA

Synchronous Sequential Logic

Module -5 Sequential Logic Design

Synchronous Sequential Logic

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

CHAPTER 1 LATCHES & FLIP-FLOPS

The word digital implies information in computers is represented by variables that take a limited number of discrete values.

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.

CHAPTER 6 COUNTERS & REGISTERS

`COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

EE292: Fundamentals of ECE

Digital Fundamentals: A Systems Approach

Sequential Logic and Clocked Circuits

Digital Fundamentals: A Systems Approach

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

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

UNIT III. Combinational Circuit- Block Diagram. Sequential Circuit- Block Diagram

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

LAB #4 SEQUENTIAL LOGIC CIRCUIT

(Refer Slide Time: 2:05)

ELE2120 Digital Circuits and Systems. Tutorial Note 8

DIGITAL CIRCUIT COMBINATORIAL LOGIC

Flip Flop. S-R Flip Flop. Sequential Circuits. Block diagram. Prepared by:- Anwar Bari

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

Transcription:

Other Flip-Flops Other types of flip-flops can be constructed by using the D flip-flop and external logic. Two flip-flops less widely used in the design of digital systems are the JK and T flip-flops. There are three operations that can be performed with a flip-flop: Set it to 1, reset it to 0, or complement its output. With only a single input, the D flip-flop can set or reset the output, depending on the value of the D input immediately before the clock transition. Synchronized by a clock signal, the JK flip-flop (invented by Jack Kilby) has two inputs and performs all three operations. The circuit diagram of a JK flip-flop constructed with a D flip-flop and gates is shown in the next slide. Lecture 27 1

The J input sets the flip-flop to 1, the K input resets it to 0, and when both inputs are enabled, the output is complemented. This can be verified by investigating the circuit applied to the D input: D = JQ + K Q When J = 1 and K = 0, D = Q + Q = 1, so the next clock edge sets the output to 1. When J = 0 and K = 1, D = 0, so the next clock edge resets the output to 0. When both J = K = 1 and D = Q, the next clock edge complements the output. When both J = K = 0 and D = Q, the clock edge leaves the output unchanged. Lecture 27 2

An alternative way to build JK flip-flop is shown below: -In the truth table, Q n represents the current value of Q while Q n+1 represents the next value of Q - Now, when J = K = 0, we have a latch that is no change status. The ff keeps the same value, that is, Q n+1 = Q n Lecture 27 3

An alternative way to build JK flip-flop is shown below: - When J = 0, K = 1, we have a Reset status. The Q n+1 becomes 0. - When J = 1, K = 0, we have a Set status. The Q n+1 becomes 1. When J = 1, K = 1, we have a Toggle status. The Q n+1 becomes the inverse of Q n Lecture 27 4

The T (toggle) flip-flop is a complementing flip-flop and can be obtained from a JK flip-flop when inputs J and K are tied together. When T = 0 (J = K = 0), a clock edge does not change the output. When T = 1 (J = K = 1), a clock edge complements the output. The complementing flip-flop is useful for designing binary counters. Lecture 27 5

The T flip-flop can be constructed with a D flip-flop and an exclusive- OR gate as shown in the figure below. The expression for the D input is D = T Q = TQ + T Q When T = 0, D = Q and there is no change in the output. When T = 1, D = Q and the output complements. The graphic symbol for this flipflop has a T symbol in the input. Lecture 27 6

Characteristic Tables A characteristic table defines the logical properties of a flip-flop by describing its operation in tabular form. The characteristic tables of three types of flip-flops are presented in the following table. They define the next state (i.e., the state that results from a clock transition) as a function of the inputs and the present state. Q ( t ) refers to the present state (i.e., the state present prior to the application of a clock edge). Q(t + 1) is the next state one clock period later. Lecture 27 7

The characteristic table for the JK flip-flop shows that the next state is equal to the present state when inputs J and K are both equal to 0. This condition can be expressed as Q(t + 1) = Q(t), indicating that the clock produces no change of state. When K = 1 and J = 0, the clock resets the flip-flop and Q(t + 1) = 0. With J = 1 and K = 0, the flip-flop sets and Q(t + 1) = 1. When both J and K are equal to 1, the next state changes to the complement of the present state, a transition that can be expressed as Q(t + 1) = Q (t). Lecture 27 8

The next state of a D flipflop is dependent only on the D input and is independent of the present state. This can be expressed as Q(t + 1) = D. It means that the next-state value is equal to the value of D. Note that the D flip-flop does not have a no-change condition. Such a condition can be accomplished either by disabling the clock or by operating the clock by having the output of the flipflop connected into the D input. Either method effectively circulates the output of the flip-flop when the state of the flipflop must remain unchanged. Lecture 27 9

The characteristic table of the T flip-flop has only two conditions: When T = 0, the clock edge does not change the state; when T = 1, the clock edge complements the state of the flip-flop. Lecture 27 10

Timing Diagram SR NAND FF Truth Table & Timing Diagram Lecture 27 11

D FF Truth Table & Timing Diagram Lecture 27 12

Jk FF Truth Table & Timing Diagram Lecture 27 13

T FF Truth Table & Timing Diagram Lecture 27 14

Direct Inputs Some flip-flops have asynchronous inputs that are used to force the flip-flop to a particular state independently of the clock. The input that sets the flip-flop to 1 is called preset or direct set. The input that clears the flip-flop to 0 is called clear or direct reset. When power is turned on in a digital system, the state of the flipflops is unknown. The direct inputs are useful for bringing all flipflops in the system to a known starting state prior to the clocked operation. Lecture 27 15

The basic JK Flip Flop has J,K inputs and a clock input and outputs Q and Q (the inverse of Q). Optionally it may also include the PR (Preset) and CLR (Clear) control inputs. -The clock input is usually drawn with a triangular input. This flip-flop is a negative edge-triggered flip flop. This means that the flip flop changes output value only when the clock is at a negative edge (or falling clock edge). Lecture 27 16

-PR and CLR are asynchronous inputs - that is the output responds to these input immediately. They are active low inputs. - PR presets the output to 1 and CLR clears the output to 0. - Both PR and CLR cannot be low at the same time - the output is undefined. -Q depends on the J and K inputs on the falling edge of CLK only when both PR and CLR are high. - When CLK remains low (or high i.e. no clock transition), changing the J, K inputs will not affect the Q output (or Q equals to Q0, the previous state). - J and K are synchronous inputs - i.e. the output changes only at the presence of clock edge. - By setting both PR and CLR to high, it is identical to a basic JK Flip Flop without these 2 control signals. Lecture 27 17

Lecture 27 18