Flip-Flops and Related Devices

Slides:



Advertisements
Similar presentations
Registers and Counters
Advertisements

© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals with PLD Programming.
Sequential Logic Building Blocks – Flip-flops
Flip-Flops Basic concepts. 1/50A. Yaicharoen2 Flip-Flops A flip-flop is a bi-stable device: a circuit having 2 stable conditions (0 or 1) 3 classes of.
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
Flip-Flops, Registers, Counters, and a Simple Processor
Digital Logic Chapter 5 Presented by Prof Tim Johnson
EEE515J1_L3-1/55 EEE515J1 ASICs and DIGITAL DESIGN Ian McCrumRoom 5D03B Tel: voice mail on 6 th ring.
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Flip-Flops and Related Devices Wen-Hung Liao, Ph.D.
Sequential Logic Latches & Flip-flops
ReturnNext  Latch : a sequential device that watches all of its inputs continuously and changes its outputs at any time, independent of a clocking signal.
1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.
1 Sequential Circuits –Digital circuits that use memory elements as part of their operation –Characterized by feedback path –Outputs depend not only on.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Figure 7–1 Two versions of SET-RESET (S-R) latches
Chapter 5 – Flip-Flops and Related Devices
Sequential Logic Flip-Flops and Related Devices Dr. Rebhi S. Baraka Logic Design (CSCI 2301) Department of Computer Science Faculty.
Flip-Flops and Related Devices Wen-Hung Liao, Ph.D. 4/10/2002.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Counters and Registers
ENGIN112 L20: Sequential Circuits: Flip flops October 20, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 20 Sequential Circuits: Flip.
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.
Introduction Flip-flops are synchronous bistable devices. The term synchronous means the output changes state only when the clock input is triggered. That.
Chapter 3: Sequential Logic Circuit EKT 121 / 4 ELEKTRONIK DIGIT 1.
SEQUENTIAL CIRCUITS USING TTL 74XX ICS
Objectives: Given input logice levels, state the output of an RS NAND and RS NOR. Given a clock signal, determine the PGT and NGT. Define “Edge Triggered”
Astable: Having no stable state. An astable multivibrator oscillates between two quasistable states. Asynchronous Having no fixed time relationship Bistable.
COE 202: Digital Logic Design Sequential Circuits Part 1
Flip-flops. Outline  Edge-Triggered Flip-flops  S-R Flip-flop  D Flip-flop  J-K Flip-flop  T Flip-flop  Asynchronous Inputs.
Chap 4. Sequential Circuits
5-21 Schmitt-Trigger Devices
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
Flip-Flops and Registers
FLIP FLOP By : Pn Siti Nor Diana Ismail CHAPTER 1.
Company LOGO DKT 122/3 DIGITAL SYSTEM 1 WEEK #12 LATCHES & FLIP-FLOPS.
Introduction to Chapter 5  Logic circuits studied so far have outputs that respond immediately to inputs at some instant in time.  We now introduce the.
Introduction to Sequential Logic
1 Digital Fundamentals Chapter 8 Flip-Flops and Related Devices Resource: CYU / CSIE / Yu-Hua Lee / Not made by Engr. Umar Talha,
Sequential logic circuits
AGBell – EECT by Andrew G. Bell (260) Lecture 5.
Flip Flop Chapter 15 Subject: Digital System Year: 2009.
Chapter 10 Flip-Flops and Registers 1. Objectives You should be able to: Explain the internal circuit operation of S-R and gated S-R flip-flops. Explain.
1 COMP541 Sequential Circuits Montek Singh Feb 1, 2007.
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
EKT 121 / 4 ELEKTRONIK DIGIT I
Chapter 6 – Digital Electronics – Part 1 1.D (Data) Flip Flops 2.RS (Set-Reset) Flip Flops 3.T Flip Flops 4.JK Flip Flops 5.JKMS Flip Flops Information.
Chapter5: Synchronous Sequential Logic – Part 1
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Flip Flops Engr. Micaela Renee Bernardo. A latch is a temporary storage device that has two stable states (bistable). It is a basic form of memory. Latches.
Flip Flops 3.1 Latches and Flip-Flops 3 ©Paul Godin Created September 2007 Last Edit Aug 2013.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Ch.5 Flip Flops and Related Devices
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Flip-Flop Flip-flops Objectives Upon completion of this chapter, you will be able to :  Construct and analyze the operation of a latch flip-flop made.
Copyright ©2009 by Pearson Higher Education, Inc. Upper Saddle River, New Jersey All rights reserved. Digital Fundamentals, Tenth Edition Thomas.
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
Digital Logic & Design Dr. Waseem Ikram Lecture No. 25.
FLIP FLOPS Binary unit capable of storing one bit – 0 or 1
LATCHED, FLIP-FLOPS,AND TIMERS
Flip-Flops and Related Devices
EI205 Lecture 8 Dianguang Ma Fall 2008.
Digital Fundamentals Floyd Chapter 7 Tenth Edition
Chapter 5 – Flip-Flops and Related Devices
Digital Fundamentals Floyd Chapter 7 Tenth Edition
CS1104 – Computer Organization
FLIP-FLOPS.
Presentation transcript:

Flip-Flops and Related Devices Wen-Hung Liao, Ph.D.

Objectives Recognize the various IEEE/ANSI flip-flop symbols. Use state transition diagrams to describe counter operation. Use flip-flops in synchronization circuits. Connect shift registers as data transfer circuits. Employ flip-flops as frequency-division and counting circuits. Understand the typical characteristics of Schmitt triggers. Apply two different types of one-shots in circuit design. Design a free-running oscillator using a 555 timer. Recognize and predict the effects of clock skew on synchronous circuits.

Clocked Flip-Flops Controlled inputs + CLK Setup and Hold times Clocked S-C Flip-Flop Clocked J-K Flip-Flop Clocked D Flip-Flop

Setup and Hold Times

Setup and Hold Times (cont’d) The setup time ts is the time interval immediately proceeding the active transition of the CLK signal during which the control input signal must be maintained at the proper level. The hold time tH, is the time interval immediately following the active transition of the CLK signal during which the control input signal must be maintained at the proper level.

Clocked S-C Flip Flops PGT S-C FF

Clocked S-C FF: Waveform Figure 5-17

Internal Circuitry of S-C FF Consists of: a basic NAND latch a pulse steering circuit an edge-detector circuit (Figure 5.20)

J-K Flip-Flop J=K=1 does not result in an ambiguous output. Goes to the opposite state instead.

Internal Circuitry of J-K FF The only difference between J-K FF and S-C FF is that Q and Q’ outputs are fed back to the pulse-steering NAND gates. Analyze the condition: J=K=1 and Qbefore=0

Clocked D Flip-flop Has only one control input D, which stands for data. Operation is simple: Q will go to the same state that is present on the D input when a PGT occurs at CLK. In other words, the level presented at D will be stored in the FF at the instant the PGT occurs.

Clocked D Flip-Flop (cont’d) Application: Parallel Data Transfer Using D FF (P.203, Figure 5.26)

Implementation of the D Flip-Flop

D Latch D FF without the edge detector. Has an enable input. (Figure 5-27) Behave somewhat differently.

D Latch (cont’d)

Asynchronous Inputs Used to set the FF to the 1 state or clear to the 0 state at any time, regardless of the condition at the other inputs. (Figure 5.29) Also known as override inputs.

IEEE/ANSI Symbols D latch Q D C Q’ Enable

Flip-Flop Timing Considerations Setup (tS)and hold time(tH): for reliable FF triggering, minimum values are specified. Propagation delays (tPHL, tPLH): the time the signal is applied to the time when output makes its change, maximum value is specified. (Fig 5-33)

Timing Considerations (cont’d) Maximum clocking frequency, f MAX: the highest frequency that can be applied to the CLK input of a FF and still have it trigger reliably.

Timing Considerations (cont’d) Clock pulse HIGH and LOW times: the minimum time duration that the CLK must remain LOW before it goes HIGH, tw(L), and vice versa for tw(H). Asynchronous active pulse width: the minimum time duration that a PRESET or CLEAR input must be kept in its active state in order to reliably set or clear the FF. Clock transition times: for reliable triggering, the clock waveform transition times must be kept very short.

Table 5-2

Potential Timing Problem Refer to Figure 5-35, problem can occur when output of one FF is connected to the input of another FF, and both FFs are triggered by the same clock signal. What if hold time requirement of Q2 is greater than propagation delay of Q1? Fortunately, all modern edge-triggered FFs have very short tH, so there wouldn’t be a problem.

Figure 5-35

Master/Slave Flip-Flops Used to solve the potential timing problem before the development of edge-triggered FFs with little or no hold-time requirement. Can be treated as a negative-edge-triggered FF.

Flip-Flop Synchronization Example 5-11 Figure 5-37: asynchronous signal A can produce partial pulses at X. Figure 5-38: Use edge-triggered D flip-flop to synchronize the enabling of the AND gate to the NGT of the clock.

Flip-Flop Applications Detecting an input sequence using J-K FFs. (Figure 5-39)

More Flip-Flop Applications Data storage and transfer: synchronous and asynchronous transfer (Figure 5-40,41)

Asynchronous Transfer

Parallel Data Transfer (Figure 5-42)

Serial Data Transfer: Shift Register A shift register is a group of FFs arranged so that the binary numbers stored in the FFs are shifted from one FF to the next the every clock pulse. Refer to Figure 5-43

Serial Transfer Between Registers Figure 5-44

Frequency Division and Counting J-K flip-flops wired as a three-bit binary counter J=K=1

Waveform Counting operation State transition diagram MOD number Frequency division: Using N flip-flops --> 1/2^N Counting operation State transition diagram MOD number

Microcomputer Application Figure 5-48: example of a microprocessor transfer binary data to an external register.

Schmitt-Trigger Devices A device that has a Schmitt-trigger type of input is designed to accept slow-changing signals and produce an output that has oscillation-free transitions. See Figure 5-49, a Schmitt-trigger INVERTER

Figure 5-49 Positive-going threshold voltage Negative-going threshold voltage

One-Shot Has only one stable output state (normally Q=0, Q’=1), also known as monostable multivibrator Once triggered, the output switches to the opposite state and remains in that ‘quasi-stable state’ for a fixed period of time, tp. Non-retriggerable OS Retriggerable OS

Analyzing Sequential Circuits Step 1: Examine the circuit. Look for familiar components. Step 2:Write down the logic levels present at each I/O prior to the occurrence of the first clock pulse. Step 3:Using the initial conditions to determine the new states of each FFs in response to the first clock pulse. Step 4: go back and repeat Steps 2,3 for the 2nd, 3rd …clock pulse

Example 5-16