SlideShare una empresa de Scribd logo
1 de 15
CSC332-Digital logic design
Semester-# Spring 2023
1
Preamble (Past Lesson Brief)
 Decoder
 Encoder
 Code Converter
 Mux
 DEMUX
Lahore Garrison University
2
Learning Outcome
 Latches
 Flip Flop
Lahore Garrison University
3
Latches
 The latch is a type of temporary storage device that has two stable states (bistable) and is
normally placed in a category separate from that of flip-flops.
 Latches are similar to flip-flops because they are bistable devices that can reside in either of two
states using a feedback arrangement, in which the outputs are connected back to the opposite
inputs.
 The main difference between latches and flip-flops is in the method used for changing their state.
Lahore Garrison University
4
The S-R (SET-RESET) Latch
 Latches are sometimes used for multiplexing data onto a bus. For example, data being input to a
computer from an external source have to share the data bus with data from other sources. When the
data bus becomes unavailable to the external source, the existing data must be temporarily stored, and
latches placed between the external source and the data bus may be used to do this.
 SET means that the Q output is HIGH.
 RESET means that the Q output is LOW.
Lahore Garrison University
5
Lahore Garrison University
6
The S-R (SET-RESET) Latch
Lahore Garrison University
7
The Gated S-R Latch
 A gated latch requires an enable input, EN (G is also used to designate an enable input).
 The S and R inputs control the state to which the latch will go when a HIGH level is applied to the EN input.
 The latch will not change until EN is HIGH; but as long as it remains HIGH, the output is controlled by the state of the S
and R inputs.
 The gated latch is a level-sensitive device. In this circuit, the invalid state occurs when both S and R are simultaneously
HIGH and EN is also HIGH.
Lahore Garrison University
8
The Gated D Latch
 Another type of gated latch is called the D latch.
 It differs from the S-R latch because it has only one input in addition to EN. This input is called the D
(data) input.
 When the D input is HIGH and the EN input is HIGH, the latch will set. When the D input is LOW and
EN is HIGH, the latch will reset. Stated another way, the output Q follows the input D when EN is HIGH.
Lahore Garrison University
9
Flip-Flops
 Flip-flops are synchronous bistable devices, also known as bistable multivibrators.
 The term synchronous means that the output changes state only at a specified point (leading or trailing
edge) on the triggering input called the clock (CLK), which is designated as a control input, C; that is,
changes in the output occur in synchronization with the clock.
 Flip-flops are edge-triggered or edge-sensitive whereas gated latches are level-sensitive.
 An edge-triggered flip-flop changes state either at the positive edge (rising edge) or at the negative
edge (falling edge) of the clock pulse and is sensitive to its inputs only at this transition of the clock.
Lahore Garrison University
10
Flip-Flops
 Two types of edge-triggered flip-flops are covered in this section: D and J-K.
 Notice that each type can be either positive edge-triggered (no bubble at C input) or negative edge-
triggered (bubble at C input).
 The key to identifying an edge-triggered flip-flop by its logic symbol is the small triangle inside the block
at the clock (C) input. This triangle is called the dynamic input indicator.
Lahore Garrison University
11
The D Flip-Flop
 The D input of the D flip-flop is a synchronous input because data on the input are transferred to the
flip-flop’s output only on the triggering edge of the clock pulse. When D is HIGH, the Q output goes
HIGH on the triggering edge of the clock pulse, and the flip-flop is SET. When D is LOW, the Q output
goes LOW on the triggering edge of the clock pulse, and the flip-flop is RESET.
Lahore Garrison University
12
The J-K Flip-Flop
 The J and K inputs of the J-K flip-flop are synchronous inputs because data on these inputs are
transferred to the flip-flop’s output only on the triggering edge of the clock pulse. When J is HIGH and K is
LOW, the Q output goes HIGH on the triggering edge of the clock pulse, and the flip-flop is SET. When J
is LOW and K is HIGH, the Q output goes LOW on the triggering edge of the clock pulse, and the flip-flop
is RESET. When both J and K are LOW, the output does not change from its prior state. When J and K
are both HIGH, the flip-flop changes state. This called the toggle mode.
 The flip-flop cannot change state except on the triggering edge of a clock pulse.
 The J and K inputs can be changed at any time when the clock input is LOW or HIGH (except for a very
short interval around the triggering transition of the clock) without affecting the output.
Lahore Garrison University
13
The J-K Flip-Flop
Lahore Garrison University
14
Q & A
Lahore Garrison University
15

Más contenido relacionado

Similar a latches and flip flop.pptx

Similar a latches and flip flop.pptx (20)

D Flip Flop
D Flip Flop D Flip Flop
D Flip Flop
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic Circuit
 
Lecture 1 6844
Lecture 1 6844Lecture 1 6844
Lecture 1 6844
 
BE PPT (FLIP FLOPS)
BE PPT (FLIP FLOPS)BE PPT (FLIP FLOPS)
BE PPT (FLIP FLOPS)
 
De EE unit-3.pptx
De EE unit-3.pptxDe EE unit-3.pptx
De EE unit-3.pptx
 
8.flip flops and registers
8.flip flops and registers8.flip flops and registers
8.flip flops and registers
 
Unit IV version I.ppt
Unit IV version I.pptUnit IV version I.ppt
Unit IV version I.ppt
 
Bistable multivibators (flip flops)
Bistable multivibators (flip flops)Bistable multivibators (flip flops)
Bistable multivibators (flip flops)
 
Flip flop
Flip flopFlip flop
Flip flop
 
flip flops
flip flops flip flops
flip flops
 
DLD Chapter-5.pdf
DLD Chapter-5.pdfDLD Chapter-5.pdf
DLD Chapter-5.pdf
 
DPCO UNIT 2.pptx
DPCO UNIT 2.pptxDPCO UNIT 2.pptx
DPCO UNIT 2.pptx
 
DPCO UNIT 2.pdf
DPCO UNIT 2.pdfDPCO UNIT 2.pdf
DPCO UNIT 2.pdf
 
Flip & flop by Zaheer Abbas Aghani
Flip & flop by Zaheer Abbas AghaniFlip & flop by Zaheer Abbas Aghani
Flip & flop by Zaheer Abbas Aghani
 
Sequential logics 1
Sequential logics 1Sequential logics 1
Sequential logics 1
 
Sequential logics
Sequential logics Sequential logics
Sequential logics
 
Sequential logics
Sequential logicsSequential logics
Sequential logics
 
Topologies TopologiesTopologiesand TypesD FF.pptx
Topologies TopologiesTopologiesand TypesD FF.pptxTopologies TopologiesTopologiesand TypesD FF.pptx
Topologies TopologiesTopologiesand TypesD FF.pptx
 
FYBSC IT Digital Electronics Unit IV Chapter II Sequential Circuits- Flip-Flops
FYBSC IT Digital Electronics Unit IV Chapter II Sequential Circuits- Flip-FlopsFYBSC IT Digital Electronics Unit IV Chapter II Sequential Circuits- Flip-Flops
FYBSC IT Digital Electronics Unit IV Chapter II Sequential Circuits- Flip-Flops
 
B sc3 unit 5 sequencial lc
B sc3 unit 5 sequencial lcB sc3 unit 5 sequencial lc
B sc3 unit 5 sequencial lc
 

Último

Beyond the Five Whys: Exploring the Hierarchical Causes with the Why-Why Diagram
Beyond the Five Whys: Exploring the Hierarchical Causes with the Why-Why DiagramBeyond the Five Whys: Exploring the Hierarchical Causes with the Why-Why Diagram
Beyond the Five Whys: Exploring the Hierarchical Causes with the Why-Why DiagramCIToolkit
 
Effective learning in the Age of Hybrid Work - Agile Saturday Tallinn 2024
Effective learning in the Age of Hybrid Work - Agile Saturday Tallinn 2024Effective learning in the Age of Hybrid Work - Agile Saturday Tallinn 2024
Effective learning in the Age of Hybrid Work - Agile Saturday Tallinn 2024Giuseppe De Simone
 
原版1:1复刻密西西比大学毕业证Mississippi毕业证留信学历认证
原版1:1复刻密西西比大学毕业证Mississippi毕业证留信学历认证原版1:1复刻密西西比大学毕业证Mississippi毕业证留信学历认证
原版1:1复刻密西西比大学毕业证Mississippi毕业证留信学历认证jdkhjh
 
From Red to Green: Enhancing Decision-Making with Traffic Light Assessment
From Red to Green: Enhancing Decision-Making with Traffic Light AssessmentFrom Red to Green: Enhancing Decision-Making with Traffic Light Assessment
From Red to Green: Enhancing Decision-Making with Traffic Light AssessmentCIToolkit
 
Simplifying Complexity: How the Four-Field Matrix Reshapes Thinking
Simplifying Complexity: How the Four-Field Matrix Reshapes ThinkingSimplifying Complexity: How the Four-Field Matrix Reshapes Thinking
Simplifying Complexity: How the Four-Field Matrix Reshapes ThinkingCIToolkit
 
Paired Comparison Analysis: A Practical Tool for Evaluating Options and Prior...
Paired Comparison Analysis: A Practical Tool for Evaluating Options and Prior...Paired Comparison Analysis: A Practical Tool for Evaluating Options and Prior...
Paired Comparison Analysis: A Practical Tool for Evaluating Options and Prior...CIToolkit
 
Shaping Organizational Culture Beyond Wishful Thinking
Shaping Organizational Culture Beyond Wishful ThinkingShaping Organizational Culture Beyond Wishful Thinking
Shaping Organizational Culture Beyond Wishful ThinkingGiuseppe De Simone
 
Unlocking Productivity and Personal Growth through the Importance-Urgency Matrix
Unlocking Productivity and Personal Growth through the Importance-Urgency MatrixUnlocking Productivity and Personal Growth through the Importance-Urgency Matrix
Unlocking Productivity and Personal Growth through the Importance-Urgency MatrixCIToolkit
 
Digital PR Summit - Leadership Lessons: Myths, Mistakes, & Toxic Traits
Digital PR Summit - Leadership Lessons: Myths, Mistakes, & Toxic TraitsDigital PR Summit - Leadership Lessons: Myths, Mistakes, & Toxic Traits
Digital PR Summit - Leadership Lessons: Myths, Mistakes, & Toxic TraitsHannah Smith
 
Reflecting, turning experience into insight
Reflecting, turning experience into insightReflecting, turning experience into insight
Reflecting, turning experience into insightWayne Abrahams
 
Farmer Representative Organization in Lucknow | Rashtriya Kisan Manch
Farmer Representative Organization in Lucknow | Rashtriya Kisan ManchFarmer Representative Organization in Lucknow | Rashtriya Kisan Manch
Farmer Representative Organization in Lucknow | Rashtriya Kisan ManchRashtriya Kisan Manch
 
Call Us🔝⇛+91-97111🔝47426 Call In girls Munirka (DELHI)
Call Us🔝⇛+91-97111🔝47426 Call In girls Munirka (DELHI)Call Us🔝⇛+91-97111🔝47426 Call In girls Munirka (DELHI)
Call Us🔝⇛+91-97111🔝47426 Call In girls Munirka (DELHI)jennyeacort
 
How-How Diagram: A Practical Approach to Problem Resolution
How-How Diagram: A Practical Approach to Problem ResolutionHow-How Diagram: A Practical Approach to Problem Resolution
How-How Diagram: A Practical Approach to Problem ResolutionCIToolkit
 
Measuring True Process Yield using Robust Yield Metrics
Measuring True Process Yield using Robust Yield MetricsMeasuring True Process Yield using Robust Yield Metrics
Measuring True Process Yield using Robust Yield MetricsCIToolkit
 
From Goals to Actions: Uncovering the Key Components of Improvement Roadmaps
From Goals to Actions: Uncovering the Key Components of Improvement RoadmapsFrom Goals to Actions: Uncovering the Key Components of Improvement Roadmaps
From Goals to Actions: Uncovering the Key Components of Improvement RoadmapsCIToolkit
 
The Final Activity in Project Management
The Final Activity in Project ManagementThe Final Activity in Project Management
The Final Activity in Project ManagementCIToolkit
 

Último (16)

Beyond the Five Whys: Exploring the Hierarchical Causes with the Why-Why Diagram
Beyond the Five Whys: Exploring the Hierarchical Causes with the Why-Why DiagramBeyond the Five Whys: Exploring the Hierarchical Causes with the Why-Why Diagram
Beyond the Five Whys: Exploring the Hierarchical Causes with the Why-Why Diagram
 
Effective learning in the Age of Hybrid Work - Agile Saturday Tallinn 2024
Effective learning in the Age of Hybrid Work - Agile Saturday Tallinn 2024Effective learning in the Age of Hybrid Work - Agile Saturday Tallinn 2024
Effective learning in the Age of Hybrid Work - Agile Saturday Tallinn 2024
 
原版1:1复刻密西西比大学毕业证Mississippi毕业证留信学历认证
原版1:1复刻密西西比大学毕业证Mississippi毕业证留信学历认证原版1:1复刻密西西比大学毕业证Mississippi毕业证留信学历认证
原版1:1复刻密西西比大学毕业证Mississippi毕业证留信学历认证
 
From Red to Green: Enhancing Decision-Making with Traffic Light Assessment
From Red to Green: Enhancing Decision-Making with Traffic Light AssessmentFrom Red to Green: Enhancing Decision-Making with Traffic Light Assessment
From Red to Green: Enhancing Decision-Making with Traffic Light Assessment
 
Simplifying Complexity: How the Four-Field Matrix Reshapes Thinking
Simplifying Complexity: How the Four-Field Matrix Reshapes ThinkingSimplifying Complexity: How the Four-Field Matrix Reshapes Thinking
Simplifying Complexity: How the Four-Field Matrix Reshapes Thinking
 
Paired Comparison Analysis: A Practical Tool for Evaluating Options and Prior...
Paired Comparison Analysis: A Practical Tool for Evaluating Options and Prior...Paired Comparison Analysis: A Practical Tool for Evaluating Options and Prior...
Paired Comparison Analysis: A Practical Tool for Evaluating Options and Prior...
 
Shaping Organizational Culture Beyond Wishful Thinking
Shaping Organizational Culture Beyond Wishful ThinkingShaping Organizational Culture Beyond Wishful Thinking
Shaping Organizational Culture Beyond Wishful Thinking
 
Unlocking Productivity and Personal Growth through the Importance-Urgency Matrix
Unlocking Productivity and Personal Growth through the Importance-Urgency MatrixUnlocking Productivity and Personal Growth through the Importance-Urgency Matrix
Unlocking Productivity and Personal Growth through the Importance-Urgency Matrix
 
Digital PR Summit - Leadership Lessons: Myths, Mistakes, & Toxic Traits
Digital PR Summit - Leadership Lessons: Myths, Mistakes, & Toxic TraitsDigital PR Summit - Leadership Lessons: Myths, Mistakes, & Toxic Traits
Digital PR Summit - Leadership Lessons: Myths, Mistakes, & Toxic Traits
 
Reflecting, turning experience into insight
Reflecting, turning experience into insightReflecting, turning experience into insight
Reflecting, turning experience into insight
 
Farmer Representative Organization in Lucknow | Rashtriya Kisan Manch
Farmer Representative Organization in Lucknow | Rashtriya Kisan ManchFarmer Representative Organization in Lucknow | Rashtriya Kisan Manch
Farmer Representative Organization in Lucknow | Rashtriya Kisan Manch
 
Call Us🔝⇛+91-97111🔝47426 Call In girls Munirka (DELHI)
Call Us🔝⇛+91-97111🔝47426 Call In girls Munirka (DELHI)Call Us🔝⇛+91-97111🔝47426 Call In girls Munirka (DELHI)
Call Us🔝⇛+91-97111🔝47426 Call In girls Munirka (DELHI)
 
How-How Diagram: A Practical Approach to Problem Resolution
How-How Diagram: A Practical Approach to Problem ResolutionHow-How Diagram: A Practical Approach to Problem Resolution
How-How Diagram: A Practical Approach to Problem Resolution
 
Measuring True Process Yield using Robust Yield Metrics
Measuring True Process Yield using Robust Yield MetricsMeasuring True Process Yield using Robust Yield Metrics
Measuring True Process Yield using Robust Yield Metrics
 
From Goals to Actions: Uncovering the Key Components of Improvement Roadmaps
From Goals to Actions: Uncovering the Key Components of Improvement RoadmapsFrom Goals to Actions: Uncovering the Key Components of Improvement Roadmaps
From Goals to Actions: Uncovering the Key Components of Improvement Roadmaps
 
The Final Activity in Project Management
The Final Activity in Project ManagementThe Final Activity in Project Management
The Final Activity in Project Management
 

latches and flip flop.pptx

  • 2. Preamble (Past Lesson Brief)  Decoder  Encoder  Code Converter  Mux  DEMUX Lahore Garrison University 2
  • 3. Learning Outcome  Latches  Flip Flop Lahore Garrison University 3
  • 4. Latches  The latch is a type of temporary storage device that has two stable states (bistable) and is normally placed in a category separate from that of flip-flops.  Latches are similar to flip-flops because they are bistable devices that can reside in either of two states using a feedback arrangement, in which the outputs are connected back to the opposite inputs.  The main difference between latches and flip-flops is in the method used for changing their state. Lahore Garrison University 4
  • 5. The S-R (SET-RESET) Latch  Latches are sometimes used for multiplexing data onto a bus. For example, data being input to a computer from an external source have to share the data bus with data from other sources. When the data bus becomes unavailable to the external source, the existing data must be temporarily stored, and latches placed between the external source and the data bus may be used to do this.  SET means that the Q output is HIGH.  RESET means that the Q output is LOW. Lahore Garrison University 5
  • 7. The S-R (SET-RESET) Latch Lahore Garrison University 7
  • 8. The Gated S-R Latch  A gated latch requires an enable input, EN (G is also used to designate an enable input).  The S and R inputs control the state to which the latch will go when a HIGH level is applied to the EN input.  The latch will not change until EN is HIGH; but as long as it remains HIGH, the output is controlled by the state of the S and R inputs.  The gated latch is a level-sensitive device. In this circuit, the invalid state occurs when both S and R are simultaneously HIGH and EN is also HIGH. Lahore Garrison University 8
  • 9. The Gated D Latch  Another type of gated latch is called the D latch.  It differs from the S-R latch because it has only one input in addition to EN. This input is called the D (data) input.  When the D input is HIGH and the EN input is HIGH, the latch will set. When the D input is LOW and EN is HIGH, the latch will reset. Stated another way, the output Q follows the input D when EN is HIGH. Lahore Garrison University 9
  • 10. Flip-Flops  Flip-flops are synchronous bistable devices, also known as bistable multivibrators.  The term synchronous means that the output changes state only at a specified point (leading or trailing edge) on the triggering input called the clock (CLK), which is designated as a control input, C; that is, changes in the output occur in synchronization with the clock.  Flip-flops are edge-triggered or edge-sensitive whereas gated latches are level-sensitive.  An edge-triggered flip-flop changes state either at the positive edge (rising edge) or at the negative edge (falling edge) of the clock pulse and is sensitive to its inputs only at this transition of the clock. Lahore Garrison University 10
  • 11. Flip-Flops  Two types of edge-triggered flip-flops are covered in this section: D and J-K.  Notice that each type can be either positive edge-triggered (no bubble at C input) or negative edge- triggered (bubble at C input).  The key to identifying an edge-triggered flip-flop by its logic symbol is the small triangle inside the block at the clock (C) input. This triangle is called the dynamic input indicator. Lahore Garrison University 11
  • 12. The D Flip-Flop  The D input of the D flip-flop is a synchronous input because data on the input are transferred to the flip-flop’s output only on the triggering edge of the clock pulse. When D is HIGH, the Q output goes HIGH on the triggering edge of the clock pulse, and the flip-flop is SET. When D is LOW, the Q output goes LOW on the triggering edge of the clock pulse, and the flip-flop is RESET. Lahore Garrison University 12
  • 13. The J-K Flip-Flop  The J and K inputs of the J-K flip-flop are synchronous inputs because data on these inputs are transferred to the flip-flop’s output only on the triggering edge of the clock pulse. When J is HIGH and K is LOW, the Q output goes HIGH on the triggering edge of the clock pulse, and the flip-flop is SET. When J is LOW and K is HIGH, the Q output goes LOW on the triggering edge of the clock pulse, and the flip-flop is RESET. When both J and K are LOW, the output does not change from its prior state. When J and K are both HIGH, the flip-flop changes state. This called the toggle mode.  The flip-flop cannot change state except on the triggering edge of a clock pulse.  The J and K inputs can be changed at any time when the clock input is LOW or HIGH (except for a very short interval around the triggering transition of the clock) without affecting the output. Lahore Garrison University 13
  • 14. The J-K Flip-Flop Lahore Garrison University 14
  • 15. Q & A Lahore Garrison University 15