Digital Fundamentals

Similar documents
PGT104 Digital Electronics. PGT104 Digital Electronics

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

Review of digital electronics. Storage units Sequential circuits Counters Shifters

CHW 261: Logic Design

Digital Fundamentals: A Systems Approach

LATCHES & FLIP-FLOP. Chapter 7

Digital Circuits ECS 371

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

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

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.

Unit 11. Latches and Flip-Flops

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

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

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

INTRODUCTION TO SEQUENTIAL CIRCUITS

Engr354: Digital Logic Circuits

FLIP-FLOPS AND RELATED DEVICES

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 1 LATCHES & FLIP-FLOPS

Chapter 11 Latches and Flip-Flops

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

Chapter 5 Flip-Flops and Related Devices

RS flip-flop using NOR gate

Lecture 8: 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).

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

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

ASYNCHRONOUS COUNTER CIRCUITS

The NOR latch is similar to the NAND latch

RS flip-flop using NOR gate

D Latch (Transparent Latch)

Experiment 8 Introduction to Latches and Flip-Flops and registers

Synchronous Sequential Logic

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

EKT 121/4 ELEKTRONIK DIGIT 1

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

EET2411 DIGITAL ELECTRONICS

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

Sequential Design Basics

Rangkaian Sekuensial. Flip-flop

Asynchronous (Ripple) Counters

DIGITAL ELECTRONICS MCQs

EKT 121/4 ELEKTRONIK DIGIT 1

Digital Logic Design ENEE x. Lecture 19

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

Sequential Logic Basics

Logic Design. Flip Flops, Registers and Counters

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

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

CHAPTER 11 LATCHES AND FLIP-FLOPS

5: Sequential Logic Latches & Flip-flops

Chapter 2. Digital Circuits

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

Other Flip-Flops. Lecture 27 1

Fundamentals of Computer Systems

ECE 341. Lecture # 2

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.

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

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

cascading flip-flops for proper operation clock skew Hardware description languages and sequential logic

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

Chapter 4. Logic Design

Asynchronous counters

Sequential Logic and Clocked Circuits

CHAPTER 6 COUNTERS & REGISTERS

Vignana Bharathi Institute of Technology UNIT 4 DLD

ELE2120 Digital Circuits and Systems. Tutorial Note 7

Topics of Discussion

ELCT201: DIGITAL LOGIC DESIGN

Counters

Asynchronous Counter

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

Basis of sequential circuits: the R-S latch

6. Sequential Logic Flip-Flops

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

Fundamentals of Computer Systems

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

Advanced Digital Logic Design EECS 303

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

Topic D-type Flip-flops. Draw a timing diagram to illustrate the significance of edge

Digital Fundamentals: A Systems Approach

L4: Sequential Building Blocks (Flip-flops, Latches and Registers)

Sri Vidya College of Engineering And Technology. Virudhunagar Department of Electrical and Electronics Engineering

Digital Systems Laboratory 3 Counters & Registers Time 4 hours

Module -5 Sequential Logic Design

DEPARTMENT OF ELECTRICAL &ELECTRONICS ENGINEERING DIGITAL DESIGN

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified)

ELCT201: DIGITAL LOGIC DESIGN

CHAPTER 4: Logic Circuits

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

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

Counter dan Register

(Refer Slide Time: 2:05)

CHAPTER 4: Logic Circuits

Introduction to Sequential Circuits

Switching Circuits & Logic Design

Lec 24 Sequential Logic Revisited Sequential Circuit Design and Timing

HCF40193B PRESETTABLE UP/DOWN COUNTERS (DUAL CLOCK WITH RESET) BINARY TYPE

`COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

UNIT 11 LATCHES AND FLIP-FLOPS

Transcription:

igital Fundamentals Tenth Edition Floyd Chapter 7 Modified by Yuttapong Jiraraksopakun Floyd, igital Fundamentals, 10 th 2008 Pearson Education ENE, KMUTT ed 2009

Summary Latches A latch is a temporary storage device that has two stable states (bistable). It is a basic form of memory. The S-R (Set-Reset) latch is the most basic type. It can be constructed from NOR gates or NAN gates. With NOR gates, the latch responds to active-high inputs; with NAN gates, it responds to active-low inputs. R S S R NOR Active-HIGH Latch NAN Active-LOW Latch

Latches Summary The active-high S-R latch is in a stable (latched) condition when both inputs are LOW. Assume the latch is initially RESET ( = 0) and the inputs are at their inactive level (0). To SET the latch ( = 1), a momentary HIGH signal is applied to the S input while the R remains LOW. To RESET the latch ( = 0), a momentary HIGH signal is applied to the R input while the S remains LOW. 0 R 01 0 0 0 S R S 01 01 10 Latch initially RESET Latch initially SET

Latches Summary The active-low S-R latch is in a stable (latched) condition when both inputs are HIGH. Assume the latch is initially RESET ( = 0) and the inputs are at their inactive level (1). To SET the latch ( = 1), a momentary LOW signal is applied to the S input while the R remains HIGH. To RESET the latch a momentary LOW is applied to the R input while S is HIGH. Never apply an active set and reset at the same time (invalid). 1 S 10 1 1 R S 1 R 01 01 10 Latch initially RESET Latch initially SET

Summary Latches R S S R NOR Active-HIGH Latch NAN Active-LOW Latch

Latches Summary The active-low S-R latch is available as the 74LS279A IC. It features four internal latches with two having two S inputs. To SET any of the latches, the S line is pulsed low. It is available in several packages. S-R latches are frequently used for switch debounce circuits as shown: 1 2 V CC S R S R Position 1 to 2 Position 2 to 1 (2) (3) (1) (6) (5) (11) (12) (10) (15) (14) 1S1 1S2 1R 2S 2R 3S1 3S2 3R 4S 4R 74LS279A (4) (7) (9) (13) 1 2 3 4

Gated S-R Latches Summary A gated latch is a variation on the basic latch. The gated latch has an additional input, called enable (EN) that must be HIGH in order for the latch to respond to the S and R inputs. S EN Show the output with relation to the input signals. R Assume starts LOW. Keep in mind that S and R are only active when EN is HIGH. S R EN

Gated Latches Summary The latch is an variation of the S-R latch but combines the S and R inputs into a single input as shown: EN EN A simple rule for the latch is: follows when the Enable is active.

Gated Latches Summary The truth table for the latch summarizes its operation. If EN is LOW, then there is no change in the output and it is latched. 0 1 X Inputs EN 1 1 0 Outputs 0 1 0 1 0 0 Comments RESET SET No change

Summary Gated Latches etermine the output for the latch, given the inputs shown. EN EN Notice that the Enable is not active during these times, so the output is latched.

Flip-flops Summary A flip-flop differs from a latch in the manner it changes states. A flip-flop is a clocked device, in which only the clock edge determines when a new bit is entered. The active edge can be positive or negative. C C ynamic input indicator (a) Positive edge-triggered (b) Negative edge-triggered

Summary S-R Flip-flops

Summary S-R Flip-flops

Summary S-R Flip-flops

Summary Flip-flops The truth table for a positive-edge triggered flip-flop shows an up arrow to remind you that it is sensitive to its input only on the rising edge of the clock; otherwise it is latched. The truth table for a negative-edge triggered flip-flop is identical except for the direction of the arrow. Inputs Outputs Inputs Outputs Comments Comments 1 1 0 SET 0 0 1 RESET 1 1 0 SET 0 0 1 RESET (a) Positive-edge triggered (b) Negative-edge triggered

Summary J-K Flip-flops The J-K flip-flop is more versatile than the flip flop. In addition to the clock input, it has two inputs, labeled J and K. When both J and K = 1, the output changes states (toggles) on the active clock edge (in this case, the rising edge). J Inputs K Outputs Comments 0 0 0 0 No change 0 1 0 1 RESET 1 0 1 0 SET 1 1 Toggle 0 0

Summary J-K Flip-flops J etermine the output for the J-K flip-flop, given the inputs shown. Notice that the outputs change on the leading edge of the clock. K Set Toggle Set Latch J K

Summary Flip-flops A -flip-flop does not have a toggle mode like the J-K flipflop, but you can hardwire a toggle mode by connecting back to as shown. This is useful in some counters as you will see in Chapter 8. For example, if is LOW, is HIGH and the flip-flop will toggle on the next clock edge. Because the flip-flop only changes on the active edge, the output will only change once for each clock pulse. flip-flop hardwired for a toggle mode

Summary Asynchronous Preset and Clear Synchronous inputs are transferred in the triggering edge of the clock (for example the or J-K inputs). Most flipflops have other inputs that are asynchronous, meaning they affect the output independent of the clock. Two such inputs are normally labeled preset (PRE) and clear (CLR). These inputs are usually active LOW. A J-K flip flop with active LOW preset and CLR is shown. PRE J K CLR

Summary Asynchronous Preset and Clear

Summary PRE Flip-flops etermine the output for the J-K flip-flop, given the inputs shown. J K J K PRE CLR Set Toggle Set Reset Toggle Set Reset CLR Latch

Flip-flop Characteristics Propagation delay time is specified for the rising and falling outputs. It is measured between the 50% level of the clock to the 50% level of the output transition. 50% point on triggering edge Summary 50% point 50% point on LOW-to- HIGH transition of 50% point on HIGH-to- LOW transition of t PLH t PHL The typical propagation delay time for the 74AHC family (CMOS) is 4 ns. Even faster logic is available for specialized applications.

Flip-flop Characteristics Summary Another propagation delay time specification is the time required for an asynchronous input to cause a change in the output. Again it is measured from the 50% levels. The 74AHC family has specified delay times under 5 ns. PRE 50% point CLR 50% point 50% point 50% point t PHL t PLH

Flip-flop Characteristics Summary Set-up time and hold time are times required before and after the clock transition that data must be present to be reliably clocked into the flip-flop. Setup time is the minimum time for the data to be present before the clock. Set-up time, t s Hold time is the minimum time for the data to remain after the clock. Hold time, t H

Flip-flop Characteristics Summary Other specifications include maximum clock frequency, minimum pulse widths for various inputs, and power dissipation. The power dissipation is the product of the supply voltage and the average current required. A useful comparison between logic families is the speed-power product which uses two of the specifications discussed: the average propagation delay and the average power dissipation. The unit is energy. What is the speed-power product for 74AHC74A? Use the data from Table 7-5 to determine the answer. From Table 7-5, the average propagation delay is 4.6 ns. The quiescent power dissipated is 1.1 mw. Therefore, the speed-power product is 5 pj

Summary Flip-flop Applications Principal flip-flop applications are for temporary data storage, as frequency dividers, and in counters (which are covered in detail in Chapter 8). C C R Output lines 0 1 R Typically, for data storage applications, a group of flip-flops are connected to parallel data lines and clocked together. ata is stored until the next clock pulse. Parallel data input lines Clock C R C 2 3 Clear R

Flip-flop Applications Summary For frequency division, it is simple to use a flip-flop in the toggle mode or to chain a series of toggle flip flops to continue to divide by two. HIGH HIGH One flip-flop will divide f in by 2, two flip-flops will divide f in by 4 (and so on). A side benefit of frequency division is that the output has an exact 50% duty cycle. f in f in J A K J B K f out Waveforms: f out

Homework 10 Chapter 7 (5, 8, 16, 17, 25)