CHW 261: Logic Design

Similar documents
PGT104 Digital Electronics. PGT104 Digital Electronics

Digital Fundamentals: A Systems Approach

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

EKT 121/4 ELEKTRONIK DIGIT 1

Digital Fundamentals

Rangkaian Sekuensial. Flip-flop

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

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

LATCHES & FLIP-FLOP. Chapter 7

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

CHAPTER 1 LATCHES & FLIP-FLOPS

Review of digital electronics. Storage units Sequential circuits Counters Shifters

FLIP-FLOPS AND RELATED DEVICES

DIGITAL CIRCUIT COMBINATORIAL LOGIC

Chapter 5 Flip-Flops and Related Devices

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

Today 3/8/11 Lecture 8 Sequential Logic, Clocks, and Displays

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

5: Sequential Logic Latches & Flip-flops

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

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

ECE 341. Lecture # 2

ELCT201: DIGITAL LOGIC DESIGN

Unit 11. Latches and Flip-Flops

The NOR latch is similar to the NAND latch

Topic 8. Sequential Circuits 1

Introduction. Serial In - Serial Out Shift Registers (SISO)

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

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

Digital Circuits ECS 371

RS flip-flop using NOR gate

ECE 2274 Pre-Lab for Experiment Timer Chip

Sequential Logic Basics

Sequential Logic and Clocked Circuits

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

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

ELCT201: DIGITAL LOGIC DESIGN

Experiment 8 Introduction to Latches and Flip-Flops and registers

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

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

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

INTRODUCTION TO SEQUENTIAL CIRCUITS

Introduction to Microprocessor & Digital Logic

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

Asynchronous counters

Synchronous Sequential Logic

RS flip-flop using NOR gate

(Refer Slide Time: 2:05)

Fig1-1 2-bit asynchronous counter

EKT 121/4 ELEKTRONIK DIGIT 1

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

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

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

MODULAR DIGITAL ELECTRONICS TRAINING SYSTEM

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.

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

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

Asynchronous (Ripple) Counters

Digital Systems Laboratory 3 Counters & Registers Time 4 hours

Chapter 4. Logic Design

MUHAMMAD NAEEM LATIF MCS 3 RD SEMESTER KHANEWAL

MC9211 Computer Organization

Chapter 9 Introduction to Sequential Logic

Logic Design. Flip Flops, Registers and Counters

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

EET2411 DIGITAL ELECTRONICS

ESE 570 STATIC SEQUENTIAL CMOS LOGIC CELLS. Kenneth R. Laker, University of Pennsylvania, updated 25Mar15

Module 4:FLIP-FLOP. Quote of the day. Never think you are nothing, never think you are everything, but think you are something and achieve anything.

Sequential Logic Circuits

Other Flip-Flops. Lecture 27 1

Introduction to Sequential Circuits

CHAPTER 4: Logic Circuits

CMSC 313 Preview Slides

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

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

D Latch (Transparent Latch)

AIM: To study and verify the truth table of logic gates

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

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

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

Physics 120 Lab 10 (2018): Flip-flops and Registers

CHAPTER 4: Logic Circuits

Chapter 4: One-Shots, Counters, and Clocks

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.

Physics 323. Experiment # 10 - Digital Circuits

TEST-3 (DIGITAL ELECTRONICS)-(EECTRONIC)

CHW 261: Logic Design

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

CPE 200L LABORATORY 3: SEQUENTIAL LOGIC CIRCUITS UNIVERSITY OF NEVADA, LAS VEGAS GOALS: BACKGROUND: SR FLIP-FLOP/LATCH

Chapter 11 Latches and Flip-Flops

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

Chapter 1: Switching Algebra Chapter 2: Logical Levels, Timing & Delays. Introduction to latches Chapter 9: Binary Arithmetic

PHY 351/651 LABORATORY 9 Digital Electronics The Basics

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

Engr354: Digital Logic Circuits

Chapter 8 Sequential Circuits

Digital Circuits 4: Sequential Circuits

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

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

Unit-5 Sequential Circuits - 1

Transcription:

CHW 26: Logic Design Instructors: Prof. Hala Zayed Dr. Ahmed Shalaby http://www.bu.edu.eg/staff/halazayed4 http://bu.edu.eg/staff/ahmedshalaby4# Slide

Digital Fundamentals CHAPTER 7 Latches, Flip-Flops and Timers Slide 2

Latches S-R (Set-Reset) latch Gated S-R latch Gated D latch Slide 3

Latches 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 NAND gates. With NOR gates, the latch responds to active-high inputs. With NAND gates, the latch responds to active-low inputs. R S S NOR Active-HIGH Latch R NAND Active-LOW Latch Slide 4

Active-HIGH S-R Latch Latches 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 ( = ), 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. Never apply an active set and reset at the same time (invalid). Slide 5 0 R 0 0 S R S 0 0 0 Latch initially RESET Latch initially SET

Active-HIGH S-R Latch Latches Slide 6

Latches Active-LOW S-R Latch 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 (). To SET the latch ( = ), 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). 0 S 0 0 R S R 0 0 0 Latch initially RESET Latch initially SET Slide 7

Active-LOW S-R Latch Latches Slide 8

Latches Latches The active-low S-R latch is available as the 74LS279A IC. S-R latches are frequently used for switch debounce circuits as shown: (2) (3) () (6) (5) S S2 R 2S 2R (4) (7) 2 V CC () (2) (0) 3S 3S2 3R (9) 3 2 S R S R Position to 2 Position 2 to (5) (4) 4S 4R 74LS279A (3) 4 Slide 9

Latches Latches 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 R 0 Show the output with relation to the input signals. Assume starts LOW. Keep in mind that S and R are only active when EN is HIGH. S R EN Slide 0

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

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

Latches Latches Determine the output for the D latch, given the inputs shown. D EN Notice that the Enable is not active during these times, so the output is latched. Slide 3

Edge-Triggered Flip-Flops Edge-triggered D flip-flop Edge-triggered J-K flip-flop Slide 4

Flip-flops Edge-Triggered 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. D D C C Dynamic input indicator (a) Positive edge-triggered (b) Negative edge-triggered Slide 5

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

Edge-triggered D flip-flop Edge-Triggered Flip-Flops Slide 7

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

Edge-Triggered Flip-Flops Edge-triggered J-K flip-flop J Determine the output for the J-K flip-flop, given the inputs shown. CLK Notice that the outputs change on the leading edge of the clock. K Set Toggle Set Latch CLK J K Slide 9

Flip-flops Edge-Triggered Flip-Flops A D-flip-flop does not have a toggle mode like the J-K flipflop, but you can hardwire a toggle mode by connecting back to D 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. D Inputs CLK Outputs Comments 0 SET 0 0 RESET CLK Inputs D CLK Outputs D Dflip-flop CLK hardwired for a toggle mode 0 SET Comments 0 0 RESET Slide 20

Flip-flop Applications Edge-Triggered Flip-Flops Principal flip-flop applications are for temporary data storage, as frequency dividers, and in Counters (which are covered in detail in Chapter 8). Slide 2

Flip-flop Applications Edge-Triggered Flip-Flops Typically, for data storage applications, a group of flip-flops are connected to parallel data lines and clocked together. Data is stored until the next clock pulse. Slide 22

Flip-flop Applications Edge-Triggered Flip-Flops 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 CLK K J B CLK K f out Waveforms: f out Slide 23

Multivibrator Monostable (One-Shot) Astable. Slide 24

Multivibrator Monostable The monostable or one-shot 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 RC circuit. R EXT Trigger C EXT CX RX/CX Slide 25

Multivibrator Astable An astable multivibrator is a device that has no stable states; it changes back and forth (oscillates) between two unstable states without any external triggering. The resulting output is typically a square wave that is used as a clock signal in many types of sequential logic circuits. Slide 26

Multivibrator The 555 timer The 555 timer can be configured in various ways. A basic monostable is shown. The pulse width is determined by R C and is approximately t W =.R C. +V CC (4) (8) R (7) RESET DISCH V CC The trigger is a negative-going pulse. (6) (2) C THRES () OUT TRIG CONT GND (3) (5) t W =.R C Slide 27

The 555 timer Multivibrator The 555 can be configured as a basic astable multivibrator with the circuit shown. In this circuit C charges through R and R 2 and discharges through only R 2. The output frequency is given by: f.44 R R C R 2 2 (7) R 2 C (6) (2) RESET DISCH THRES +V CC (4) (8) TRIG CONT GND () V CC OUT (3) (5) Slide 28

C (mf) The 555 timer Multivibrator 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 CC 0.0 0 MW MW 00 kw 0 kw kw R (7) RESET DISCH (4) (8) V CC 0. R 2 (6) THRES OUT (3) 0.0 0.00 0..0 0 00.0k 0k 00k C (2) TRIG CONT GND () (5) f (Hz) Slide 29