EKT 121/4 ELEKTRONIK DIGIT 1

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

Digital Fundamentals: A Systems Approach

LATCHES & FLIP-FLOP. Chapter 7

CHW 261: Logic Design

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

Rangkaian Sekuensial. Flip-flop

CHAPTER 1 LATCHES & FLIP-FLOPS

Chapter 5 Flip-Flops and Related Devices

PGT104 Digital Electronics. PGT104 Digital Electronics

EKT 121/4 ELEKTRONIK DIGIT 1

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

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

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

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

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

FLIP-FLOPS AND RELATED DEVICES

5: Sequential Logic Latches & Flip-flops

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

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

RS flip-flop using NOR gate

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

Sequential Logic Basics

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

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

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

The NOR latch is similar to the NAND latch

Digital Circuits ECS 371

Flip-Flops and Sequential Circuit Design

Experiment 8 Introduction to Latches and Flip-Flops and registers

RS flip-flop using NOR gate

DIGITAL CIRCUIT COMBINATORIAL 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).

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

Chapter 4. Logic Design

Chapter 8 Sequential Circuits

Logic Design. Flip Flops, Registers and Counters

D Latch (Transparent Latch)

CHAPTER 4: Logic Circuits

ELCT201: DIGITAL LOGIC DESIGN

CHAPTER 6 COUNTERS & REGISTERS

EET2411 DIGITAL ELECTRONICS

CHAPTER 4: Logic Circuits

Sequential Logic Circuits

Digital Circuit And Logic Design I. Lecture 8

Digital Circuit And Logic Design I

Synchronous Sequential Logic

Asynchronous (Ripple) Counters

Fig1-1 2-bit asynchronous counter

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

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.

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

Unit 11. Latches and Flip-Flops

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

MC9211 Computer Organization

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

Digital Fundamentals

Combinational vs Sequential

ELCT201: DIGITAL LOGIC DESIGN

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

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

To design a sequential logic circuit using D-Flip-flop. To implement the designed circuit.

Serial In/Serial Left/Serial Out Operation

Topic 8. Sequential Circuits 1

Introduction to Sequential Circuits

Chapter 11 Latches and Flip-Flops

Engr354: Digital Logic Circuits

MUHAMMAD NAEEM LATIF MCS 3 RD SEMESTER KHANEWAL

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

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

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

Sequential Circuits. Output depends only and immediately on the inputs Have no memory (dependence on past values of the inputs)

Introduction to Microprocessor & Digital Logic

INTRODUCTION TO SEQUENTIAL CIRCUITS

Lecture 8: Sequential Logic

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

Counters

Digital Systems Laboratory 3 Counters & Registers Time 4 hours

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.

Sequential Logic and Clocked Circuits

Chapter 7 Counters and Registers

UNIT IV. Sequential circuit

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

Other Flip-Flops. Lecture 27 1

Chapter. Synchronous Sequential Circuits

Module -5 Sequential Logic Design

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

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

Module for Lab #16: Basic Memory Devices

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

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

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

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.

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

Counter dan Register

COSC 243. Sequential Logic. COSC 243 (Computer Architecture) Lecture 5 - Sequential Logic 1

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

CS302 - Digital Logic Design FAQs By

Digital Networks and Systems Laboratory 2 Basic Digital Building Blocks Time 4 hours

Transcription:

EKT 121/4 ELEKTRONIK DIGIT 1 Kolej Universiti Kejuruteraan Utara Malaysia Bistable Storage Devices and Related Devices

Introduction Latches and flip-flops are the basic single-bit memory elements used to build sequential circuit with one or two inputs/outputs, designed using individual logic gates and feedback loops. Latches: The output of a latch depends on its current inputs and on its previous output and its change of state can happen at any time when its inputs change. Flip-Flop: The output of a flip-flop also depends on current inputs and its previous output but the change of state occurs at specific times determined by a clock input.

Latches: S-R R Latch Gate S-R S R Latch Gate D-LatchD Introduction Flip-Flops: Flops: Edge-Triggered Flip-Flop Flop (S-R, J-K, J D) Asynchronous Inputs Master-Slave Flip-Flop Flop Flip-Flop Flop Operating Characteristics Flip-Flop Flop Applications One-shots & The 555 Timer

Latches Type of temporary storage device that has two stable (bistable( bistable) ) states Similar to flip-flop flop the outputs are connected back to opposite inputs Main difference from flip-flop flop is the method used for changing their state S-R R latch, Gated/Enabled S-R S R latch and Gated D latch

S-R R (SET-RESET) Latch Active-HIGH input S-R Latch Active-LOW input S-R Latch

Logic symbols for the S-R and S-R latch.

Negative-OR equivalent of the NAND gate S-R latch

Truth table for an active-low input S-R latch

Assume that Q is initially LOW 1 3 6 7 2 4 5 Waveforms

S-R R latch using NOR Gate Active-HIGH When the Set is high and Reset is low Q is high and Q is low

S-R R latch using NOR Gate (cont d) Active-HIGH Once Set is Q high, then with S and R both LOW nothing change.

S-R R latch using NOR Gate (cont d) Active-HIGH With Reset high and Set low the flip=flop give a Q high and a Q low.

S-R R latch using NOR Gate (cont d) Active-HIGH Toggling the Reset (LOW) changes nothing

S-R R latch using NOR Gate (cont d) Active-HIGH The state of both Set and Reset high is not allowed since it would give a illogical condition. ( INVALID! )

S-R R Latch truth table for NOR Gate Active-HIGH Input S R Q Q 0 0 Q Q hold condition 1 0 1 0 set 0 1 0 1 reset 1 1 0 0 not allowed (Invalid)

S-R R Latch using NAND Gate Set high Reset low Q high Q low

S-R R Latch using NAND Gate (cont d) Reset high Set low give a Q low and Q high

S-R R Latch using NAND Gate (cont d) Both low no change

S-R R Latch using NAND Gate (cont d) Both Set and Reset high is not allowed but give both Q and Q as high

S-R R Latch truth table for NAND Gate S R Q Q 0 0 Q Q hold condition 1 0 1 0 set 0 1 0 1 reset 1 1 1 1 not allowed

Gated S-R Latch A gate input is added to the S-R latch to make the latch synchronous. In order for the set and reset inputs to change the latch, the gate input must be active (high/enable). When the gate input is low, the latch remains in the hold condition.

A gated S-R latch.

Gated S-R latch waveform. 1 2 3 4 5

Truth Table for Gated S-R S R Latch S R G Q Q 0 0 0 Q Q Hold 1 0 0 Q Q Hold 0 1 0 Q Q Hold 1 1 0 Q Q hold 0 0 1 Q Q hold 1 0 1 1 0 set 0 1 1 0 1 reset 1 1 1 0 0 not allowed

Gated D Latch (74LS75) The D (data) latch has a single input that is used to set and to reset the flip-flop. When the gate is high, the Q output will follow the D input. When the gate is low, the Q output will hold.

Gated S-R Latch Q output waveform if the inputs are as shown. The output follows the input when the gate is high but is in a hold when the gate is low.

Gated D Latch (74LS75)

Edge-triggered Flip-flop Logic Positive edge triggered and Negative edge-triggered All the above flip-flops have the triggering input called clock (CLK/C)

Clock Signals & Synchronous Sequential Circuits 1 Clock signal 0 Rising edges of the clock (Positive-edge triggered) Falling edges of the clock (Negative-edge triggered) Clock Cycle Time A clock signal is a periodic square wave that indefinitely switches values from 0 to 1 and 1 to 0 at fixed intervals.

Operation of a positive edge-triggered S-R flip-flop. (d) S=1, R=1 is invalid or not allowed

Example

A positive edge-triggered D flip-flop formed with an S-R flip-flop and an inverter. D CLK/C Q Q 1 1 0 SET (stores a 1) 0 0 1 RESET (stores a 0)

Example

Edge-triggered J-K J K flip-flop flop The edge-triggered J-K will only accept the J and K inputs during the active edge of the clock. The small triangle on the clock input indicates that the device is edge-triggered. A bubble on the clock input indicates that the device responds to the negative edge. no bubble would indicate a positive edge-triggered device.

Truth Table for J-K J K Flip Flop J K CLK Q Q 0 0 Q 0 Q 0 Hold 0 1 0 1 Reset 1 0 1 0 Set 1 1 Q 0 Q 0 Toggle (opposite state)

A simplified logic diagram for a positive edge-triggered J-K flip-flop.

Example: Positive edge-triggered

Example: Negative edge-triggered

Logic symbol for a J-K flip-flop with active- LOW preset and clear inputs.

Logic diagram for a basic J-K flip-flop with active-low preset and clear inputs.

Example:

A Master-Slave J-K Flip-Flop The J-K flip-flop has a toggle mode of operation when both J and K inputs are high.toggle means that the Q output will change states on each active clock edge. J, K and Cp are all synchronous inputs. The master-slave flip-flop is constructed with two latches. The master latch is loaded with the condition of the J-K inputs while the clock is high. When the clock goes low, the slave takes on the state of the master and the master is latched. The master-slave is a level-triggered device. The master-slave can interpret unwanted signals on the J-K inputs.

Basic logic diagram for a Master-Slave J-K flip-flop.

Pulse-triggered (master-slave) J-K flipflop logic symbols.

Truth Table for Master-Slave J-K Flip Flop J K CLK Q Q 0 0 Q 0 Q 0 Hold 0 1 0 1 Reset 1 0 1 0 Set 1 1 Q 0 Q 0 Toggle (opposite state)

Example: The flip-fop starts out RESET and the clock is active -LOW

Flip-Flop Applications Parallel Data Storage Frequency Division Counting

Application : Example of flip-flops used in a basic register for parallel data storage.

Application: The J-K flip-flop as a divide-by-2 device. Q is one-half the frequency of CLK.

Example : Two J-K flip-flops used to divide the clock frequency by 4. Q A is one-half and Q B is one-fourth the frequency of CLK.

Application: Flip-flops used to generate a binary count sequence. Two repetitions (00, 01, 10, 11) are shown.

ONE-SHOTS A monostable multivibrator, a device with only one stable state. Normally in its stable state and will change to its unstable state only when triggered. Once triggered, will remains in its unstable state for a predetermined length of time and will automatically returns to its stable state. The time it stays in its unstable state determines the pulse width of its output

A simple one-shot circuit.

Basic one-shot logic symbols. CX and RX stand for external components.

Nonretriggerable one-shot action.

Retriggerable one-shot action.

THE 555 TIMER Versatile and widely used IC because it can be configured in two different modes as either a monostable multivibrator (one-shots) or as an astable multivibrator (oscillator). An astable multivibrator has no stable states and therefore changes back and forth (oscillates) between two unstable states without any external triggering.

Internal functional diagram of a 555 timer (pin numbers are in parenthesis).

The 555 timer connected as a nonretriggerable one-shot.

The 555 timer connected as an astable multivibrator (oscillator).

Next week Sequential Circuit - Thank you -