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

Similar documents
PGT104 Digital Electronics. PGT104 Digital Electronics

Digital Fundamentals

Digital Fundamentals: A Systems Approach

Review of digital electronics. Storage units Sequential circuits Counters Shifters

CHW 261: Logic Design

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

EKT 121/4 ELEKTRONIK DIGIT 1

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

Chapter 5 Flip-Flops and Related Devices

Rangkaian Sekuensial. Flip-flop

CHAPTER 1 LATCHES & FLIP-FLOPS

FLIP-FLOPS AND RELATED DEVICES

LATCHES & FLIP-FLOP. Chapter 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.

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.

Digital Circuits ECS 371

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

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

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

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

D Latch (Transparent Latch)

RS flip-flop using NOR gate

INTRODUCTION TO SEQUENTIAL CIRCUITS

Lecture 8: Sequential Logic

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

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

Engr354: Digital Logic Circuits

5: Sequential Logic Latches & Flip-flops

DIGITAL CIRCUIT COMBINATORIAL LOGIC

Chapter 5 Sequential Circuits

`COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

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

DIGITAL ELECTRONICS MCQs

Unit 11. Latches and Flip-Flops

Basis of sequential circuits: the R-S latch

SEQUENTIAL LOGIC. Sequential Logic

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

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

Fundamentals of Computer Systems

Sequential Logic Basics

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

RS flip-flop using NOR gate

MUHAMMAD NAEEM LATIF MCS 3 RD SEMESTER KHANEWAL

6. Sequential Logic Flip-Flops

Experiment 8 Introduction to Latches and Flip-Flops and registers

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

Logic Design. Flip Flops, Registers and Counters

Chapter 11 Latches and Flip-Flops

The NOR latch is similar to the NAND latch

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

UNIT 11 LATCHES AND FLIP-FLOPS

Chapter 9 Introduction to Sequential Logic

Fundamentals of Computer Systems

Synchronous Sequential Logic

Fig1-1 2-bit asynchronous counter

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

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

EET2411 DIGITAL ELECTRONICS

Introduction to Microprocessor & Digital Logic

Chapter 4: One-Shots, Counters, and Clocks

Chapter 4. Logic Design

ASYNCHRONOUS COUNTER CIRCUITS

CHAPTER 4: Logic Circuits

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

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

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

CHAPTER 4: Logic Circuits

Asynchronous counters

DEPARTMENT OF ELECTRICAL &ELECTRONICS ENGINEERING DIGITAL DESIGN

Asynchronous (Ripple) Counters

12/31/2010. Overview. 12-Latches and Flip Flops Text: Unit 11. Sequential Circuits. Sequential Circuits. Feedback. Feedback

EKT 121/4 ELEKTRONIK DIGIT 1

ECB DIGITAL ELECTRONICS PROJECT BASED LEARNING PROJECT REPORT ON 7 SEGMENT DIGITAL STOP WATCH USING DECODER

Vignana Bharathi Institute of Technology UNIT 4 DLD

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

Overview of Chapter 4

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

Switching Circuits & Logic Design

ELCT201: DIGITAL LOGIC DESIGN

CHAPTER 11 LATCHES AND FLIP-FLOPS

Sequential Logic and Clocked Circuits

Sequential logic. Circuits with feedback. How to control feedback? Sequential circuits. Timing methodologies. Basic registers

Report on 4-bit Counter design Report- 1, 2. Report on D- Flipflop. Course project for ECE533

Fundamentals of Computer Systems

Agenda. EE 260: Introduction to Digital Design Counters and Registers. Asynchronous (Ripple) Counters. Asynchronous (Ripple) Counters

Counters

Asynchronous Counter

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

Topics of Discussion

Chapter 5 Sequential Circuits

Digital Logic Design ENEE x. Lecture 19

Module -5 Sequential Logic Design

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

Problems with D-Latch

Chapter 6. sequential logic design. This is the beginning of the second part of this course, sequential logic.

Advanced Digital Logic Design EECS 303

Chapter 3 Unit Combinational

MODULE 3. Combinational & Sequential logic

Sequential Circuits. Sequential Logic. Circuits with Feedback. Simplest Circuits with Feedback. Memory with Cross-coupled Gates.

Transcription:

igital Fundamentals Tenth Edition Floyd hapter 7 2009 Pearson Education, Upper 2008 Pearson Saddle iver, Education N 07458. All ights eserved A latch is a temporary storage device that has two stable states (bistable). It is a basic form of memory. The S- (Set-eset) latch is the most basic type. It can be constructed from NO gates or NAN gates. With NO gates, the latch responds to active-high inputs; with NAN gates, it responds to active-low inputs. S S NO Active-HIGH Latch NAN Active-LOW Latch The active-high S- latch is in a stable (latched) condition when both inputs are LOW. Assume the latch is initially ESET ( = 0) and the inputs are at their inactive level (0). To SET the latch ( = ), a momentary HIGH signal is applied to the S input while the remains LOW. To ESET the latch ( = 0), a momentary HIGH signal is applied to the input while the S remains LOW. 0 0 Latch initially ESET 0 0 S 0 0 S 0 Latch initially SET 0

The active-low S- latch is in a stable (latched) condition when both inputs are HIGH. Assume the latch is initially ESET ( = 0) and the inputs are at their inactive level (). To SET the latch ( = ), a momentary LOW signal is applied to the S input while the remains HIGH. To ESET the latch a momentary LOW is applied to the input while S is HIGH. Never apply an active set and reset at the same time (invalid). S 0 Latch initially ESET 0 S 0 Latch initially 0 SET The active-low S- latch is available as the 74LS279A I. 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- latches are frequently used for switch debounce circuits as shown: 2 V S S Position to 2 Position 2 to (2) (3) () (6) (5) () (2) (0) (5) (4) S S2 2S 2 3S 3S2 3 4S 4 74LS279A (4) (7) (9) (3) 2 3 4 A gated latch is a variation on the basic latch. The gated latch has an additional S input, called enable (EN) that must be HIGH in order for the latch to EN respond to the S and inputs. Show the output with relation to the input signals. Assume starts LOW. eep in mind that S and are only active when EN is HIGH. S EN 2

The latch is an variation of the S- latch but combines the S and inputs into a single input as shown: EN EN A simple rule for the latch is: follows when the Enable is active. 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. Inputs EN 0 X 0 Outputs omments 0 ESET 0 SET 0 0 No change 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. 3

Flip-flops 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. ynamic input indicator (a) Positive edge-triggered (b) Negative edge-triggered 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 omments 0 SET 0 0 ESET Inputs Outputs omments 0 SET 0 0 ESET (a) Positive-edge triggered (b) Negative-edge triggered Flip-flops The - flip-flop is more versatile than the flip flop. In addition to the clock input, it has two inputs, labeled and. When both and =, the output changes states (toggles) on the active clock edge (in this case, the rising edge). Inputs Outputs omments 0 0 0 0 No change 0 0 ESET 0 0 SET 0 0 Toggle 4

Flip-flops etermine the output for the - flip-flop, given the inputs shown. Notice that the outputs change on the leading edge of the clock. Set Toggle Set Latch Flip-flops A -flip-flop does not have a toggle mode like the - 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 hapter 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 Flip-flops Synchronous inputs are transferred in the triggering edge of the clock (for example the or - 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 (PE) and clear (L). These inputs are usually active LOW. A - flip flop with active LOW preset and L is shown. PE L 5

PE Flip-flops etermine the output for the - flip-flop, given the inputs shown. Set Toggle Set eset Toggle L Latch PE L Set eset Flip-flop haracteristics 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 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 74AH family (MOS) is 4 ns. Even faster logic is available for specialized applications. Flip-flop haracteristics 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 74AH family has specified delay times under 5 ns. PE 50% point L 50% point 50% point 50% point t PHL t PLH 6

Flip-flop haracteristics 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 haracteristics 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 74AH74A? 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. mw. Therefore, the speed-power product is 5 p Flip-flop Applications Principal flip-flop applications are for temporary data storage, as frequency dividers, and in counters (which are covered in detail in hapter 8). Output lines 0 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 lock 2 3 lear 7

Flip-flop Applications 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 A B f out Waveforms: f out One-Shots The one-shot or monostable multivibrator is a device with only one stable state. When triggered, it goes to its unstable state for a predetermined length of time, then returns to its stable state. +V For most one-shots, the length of time in the unstable state (t W ) is determined by an external circuit. Trigger t W EXT EXT X X/X Trigger One-Shots Nonretriggerable one-shots do not respond to any triggers that occur during the unstable state. etriggerable one-shots respond to any trigger, even if it occurs in the unstable state. If it occurs during the unstable state, the state is extended by an amount equal to the pulse width. etriggerable one-shot: Trigger etriggers t W 8

One-Shots An application for a retriggerable one-shot is a power failure detection circuit. Triggers are derived from the ac power source, and continue to retrigger the one shot. In the event of a power failure, the one-shot is not triggered and an alarm can be initiated. Triggers derived from ac Missing trigger due to power failure etriggers etriggers Power failure indication t W t W t W The 555 timer The 555 timer can be configured in various ways, including as a one-shot. A basic one shot is shown. The pulse width is determined by and is approximately +V t W =.. The trigger is a negative-going pulse. (4) (8) (7) ESET V ISH (6) (3) THES OUT (2) (5) TIG ONT GN () t W =. The 555 timer etermine the pulse width for the circuit shown. t W =. =.(0 k )(2.2 F) = 24.2 ms +V +5 V 0 k 2.2 F (4) (8) (7) ESET V ISH (6) (3) THES OUT (2) (5) TIG ONT GN () t W =. 9

The 555 timer The 555 can be configured as a basic astable multivibrator with the circuit shown. In this circuit charges through and 2 and discharges through only 2. The output frequency is given by: +V.44 f 22 (4) (8) The frequency and duty cycle are set by these components. 2 ESET V (7) ISH (6) THES OUT (2) TIG ONT GN () (3) (5) The 555 timer Given the components, you can read the frequency from the chart. Alternatively, you can use the chart to pick components for a desired frequency. 00 +V ( F) 0.0 0. 0.0 0 M M 00 k 0 k k 0.00 0..0 0 00.0k 0k 00k f (Hz) 2 (4) (8) ESET V (7) ISH (6) (3) THES OUT (2) (5) TIG ONT GN () Selected ey Terms Latch Bistable lock flip-flop - flip-flop A bistable digital circuit used for storing a bit. Having two stable states. and flip-flops are bistable multivibrators. A triggering input of a flip-flop. A type of bistable multivibrator in which the output assumes the state of the input on the triggering edge of a clock pulse. A type of flip-flop that can operate in the SET, ESET, no-change, and toggle modes. 0

Selected ey Terms Propagation delay time Set-up time Hold time Timer The interval of time required after an input signal has been applied for the resulting output signal to change. The time interval required for the input levels to be on a digital circuit. The time interval required for the input levels to remain steady to a flip-flop after the triggering edge in order to reliably activate the device. A circuit that can be used as a one-shot or as an oscillator.. The output of a latch will not change if a. the output is LOW b. Enable is not active c. is LOW d. all of the above 2. The flip-flop shown will a. set on the next clock pulse b. reset on the next clock pulse c. latch on the next clock pulse d. toggle on the next clock pulse

3. For the - flip-flop shown, the number of inputs that are asynchronous is PE a. b. 2 c. 3 d. 4 L 4. Assume the output is initially HIGH on a leading edge triggered - flip flop. For the inputs shown, the output will go from HIGH to LOW on which clock pulse? a. b. 2 c. 3 d. 4 2 3 4 5. The time interval illustrated is called a. t PHL 50% point on triggering edge b. t PLH c. set-up time d. hold time? 50% point on LOW-to- HIGH transition of 2

6. The time interval illustrated is called a. t PHL b. t PLH c. set-up time d. hold time? 7. The application illustrated is a a. astable multivibrator HIGH HIGH b. data storage device c. frequency multiplier d. frequency divider f in A B f out 8. The application illustrated is a a. astable multivibrator b. data storage device c. frequency multiplier d. frequency divider Parallel data input lines Output lines 0 2 lock 3 lear 3

9. A retriggerable one-shot with an active HIGH output has a pulse width of 20 ms and is triggered from a 60 Hz line. The output will be a a. series of 6.7 ms pulses b. series of 20 ms pulses c. constant LOW d. constant HIGH 0. The circuit illustrated is a a. astable multivibrator b. monostable multivibrator c. frequency multiplier d. frequency divider 2 +V (4) (8) ESET V (7) ISH (6) (3) THES OUT (2) (5) TIG ONT GN () Answers:. b 6. d 2. d 7. d 3. b 8. b 4. c 9. d 5. b 0. a 4