SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Ähnlich wie latches and flip flop.pptx

Ähnlich wie 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
 

Kürzlich hochgeladen

Day 0- Bootcamp Roadmap for PLC Bootcamp
Day 0- Bootcamp Roadmap for PLC BootcampDay 0- Bootcamp Roadmap for PLC Bootcamp
Day 0- Bootcamp Roadmap for PLC BootcampPLCLeadershipDevelop
 
Agile Coaching Change Management Framework.pptx
Agile Coaching Change Management Framework.pptxAgile Coaching Change Management Framework.pptx
Agile Coaching Change Management Framework.pptxalinstan901
 
Construction Project Management | Coursera 2024
Construction Project Management | Coursera 2024Construction Project Management | Coursera 2024
Construction Project Management | Coursera 2024Alex Marques
 
GENUINE Babe,Call Girls IN Baderpur Delhi | +91-8377087607
GENUINE Babe,Call Girls IN Baderpur  Delhi | +91-8377087607GENUINE Babe,Call Girls IN Baderpur  Delhi | +91-8377087607
GENUINE Babe,Call Girls IN Baderpur Delhi | +91-8377087607dollysharma2066
 
BDSM⚡Call Girls in Sector 99 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 99 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 99 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 99 Noida Escorts >༒8448380779 Escort ServiceDelhi Call girls
 
internal analysis on strategic management
internal analysis on strategic managementinternal analysis on strategic management
internal analysis on strategic managementharfimakarim
 
Call Now Pooja Mehta : 7738631006 Door Step Call Girls Rate 100% Satisfactio...
Call Now Pooja Mehta :  7738631006 Door Step Call Girls Rate 100% Satisfactio...Call Now Pooja Mehta :  7738631006 Door Step Call Girls Rate 100% Satisfactio...
Call Now Pooja Mehta : 7738631006 Door Step Call Girls Rate 100% Satisfactio...Pooja Nehwal
 
Call now : 9892124323 Nalasopara Beautiful Call Girls Vasai virar Best Call G...
Call now : 9892124323 Nalasopara Beautiful Call Girls Vasai virar Best Call G...Call now : 9892124323 Nalasopara Beautiful Call Girls Vasai virar Best Call G...
Call now : 9892124323 Nalasopara Beautiful Call Girls Vasai virar Best Call G...Pooja Nehwal
 
Dealing with Poor Performance - get the full picture from 3C Performance Mana...
Dealing with Poor Performance - get the full picture from 3C Performance Mana...Dealing with Poor Performance - get the full picture from 3C Performance Mana...
Dealing with Poor Performance - get the full picture from 3C Performance Mana...Hedda Bird
 
situational leadership theory by Misba Fathima S
situational leadership theory by Misba Fathima Ssituational leadership theory by Misba Fathima S
situational leadership theory by Misba Fathima Smisbafathima9940
 

Kürzlich hochgeladen (20)

Day 0- Bootcamp Roadmap for PLC Bootcamp
Day 0- Bootcamp Roadmap for PLC BootcampDay 0- Bootcamp Roadmap for PLC Bootcamp
Day 0- Bootcamp Roadmap for PLC Bootcamp
 
Imagine - HR; are handling the 'bad banter' - Stella Chandler.pdf
Imagine - HR; are handling the 'bad banter' - Stella Chandler.pdfImagine - HR; are handling the 'bad banter' - Stella Chandler.pdf
Imagine - HR; are handling the 'bad banter' - Stella Chandler.pdf
 
Discover -CQ Master Class - Rikita Wadhwa.pdf
Discover -CQ Master Class - Rikita Wadhwa.pdfDiscover -CQ Master Class - Rikita Wadhwa.pdf
Discover -CQ Master Class - Rikita Wadhwa.pdf
 
Intro_University_Ranking_Introduction.pptx
Intro_University_Ranking_Introduction.pptxIntro_University_Ranking_Introduction.pptx
Intro_University_Ranking_Introduction.pptx
 
Becoming an Inclusive Leader - Bernadette Thompson
Becoming an Inclusive Leader - Bernadette ThompsonBecoming an Inclusive Leader - Bernadette Thompson
Becoming an Inclusive Leader - Bernadette Thompson
 
Agile Coaching Change Management Framework.pptx
Agile Coaching Change Management Framework.pptxAgile Coaching Change Management Framework.pptx
Agile Coaching Change Management Framework.pptx
 
Construction Project Management | Coursera 2024
Construction Project Management | Coursera 2024Construction Project Management | Coursera 2024
Construction Project Management | Coursera 2024
 
Abortion pills in Jeddah |• +966572737505 ] GET CYTOTEC
Abortion pills in Jeddah |• +966572737505 ] GET CYTOTECAbortion pills in Jeddah |• +966572737505 ] GET CYTOTEC
Abortion pills in Jeddah |• +966572737505 ] GET CYTOTEC
 
GENUINE Babe,Call Girls IN Baderpur Delhi | +91-8377087607
GENUINE Babe,Call Girls IN Baderpur  Delhi | +91-8377087607GENUINE Babe,Call Girls IN Baderpur  Delhi | +91-8377087607
GENUINE Babe,Call Girls IN Baderpur Delhi | +91-8377087607
 
BDSM⚡Call Girls in Sector 99 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 99 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 99 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 99 Noida Escorts >༒8448380779 Escort Service
 
Disrupt or be Disrupted - Kirk Vallis.pdf
Disrupt or be Disrupted - Kirk Vallis.pdfDisrupt or be Disrupted - Kirk Vallis.pdf
Disrupt or be Disrupted - Kirk Vallis.pdf
 
Unlocking the Future - Dr Max Blumberg, Founder of Blumberg Partnership
Unlocking the Future - Dr Max Blumberg, Founder of Blumberg PartnershipUnlocking the Future - Dr Max Blumberg, Founder of Blumberg Partnership
Unlocking the Future - Dr Max Blumberg, Founder of Blumberg Partnership
 
internal analysis on strategic management
internal analysis on strategic managementinternal analysis on strategic management
internal analysis on strategic management
 
Call Now Pooja Mehta : 7738631006 Door Step Call Girls Rate 100% Satisfactio...
Call Now Pooja Mehta :  7738631006 Door Step Call Girls Rate 100% Satisfactio...Call Now Pooja Mehta :  7738631006 Door Step Call Girls Rate 100% Satisfactio...
Call Now Pooja Mehta : 7738631006 Door Step Call Girls Rate 100% Satisfactio...
 
Call now : 9892124323 Nalasopara Beautiful Call Girls Vasai virar Best Call G...
Call now : 9892124323 Nalasopara Beautiful Call Girls Vasai virar Best Call G...Call now : 9892124323 Nalasopara Beautiful Call Girls Vasai virar Best Call G...
Call now : 9892124323 Nalasopara Beautiful Call Girls Vasai virar Best Call G...
 
Dealing with Poor Performance - get the full picture from 3C Performance Mana...
Dealing with Poor Performance - get the full picture from 3C Performance Mana...Dealing with Poor Performance - get the full picture from 3C Performance Mana...
Dealing with Poor Performance - get the full picture from 3C Performance Mana...
 
situational leadership theory by Misba Fathima S
situational leadership theory by Misba Fathima Ssituational leadership theory by Misba Fathima S
situational leadership theory by Misba Fathima S
 
Peak Performance & Resilience - Dr Dorian Dugmore
Peak Performance & Resilience - Dr Dorian DugmorePeak Performance & Resilience - Dr Dorian Dugmore
Peak Performance & Resilience - Dr Dorian Dugmore
 
Empowering Local Government Frontline Services - Mo Baines.pdf
Empowering Local Government Frontline Services - Mo Baines.pdfEmpowering Local Government Frontline Services - Mo Baines.pdf
Empowering Local Government Frontline Services - Mo Baines.pdf
 
LoveLocalGov - Chris Twigg, Inner Circle
LoveLocalGov - Chris Twigg, Inner CircleLoveLocalGov - Chris Twigg, Inner Circle
LoveLocalGov - Chris Twigg, Inner Circle
 

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