SlideShare a Scribd company logo
Latches and Flip-Flops
GOVT. Municipal Degree College FSD…
CSI-403
Digital logic and computer design…
Presentation topic.
Latches and Flip-Flops…
Presentation Group # 1.
Group Members:
Name: College Roll# University Roll#
Roll#
1. Mubashir Farooq 1405 30762
2. Asif Ali 1403 307
3. Mohsin Ali 1414 307
4. Allah Dittah(Adill) 1419 307
Table of contents:
In this lecture we will discuses these topics
 what are latches and flip plop.
 what is different between both.
 Different types of flip flop.
 Different types of latches.
 Explanation of all types of latches with diagrams.
 Explanation of all types of flip flop with diagrams.
Difference between both….?
Latches..
 Latches are the building blocks of
sequential circuits.
 latches can be built from gates.
 latch does not have a clock signal.
Flip Flop..
 flip-flops are also the building blocks of
sequential circuits.
 Flip-flops can be built from latches.
 A flip-flop always has a clock Signal
 Both are same but there is a little difference between both.
What are flip flops.
In electronics, a flip-flop or latch is a circuit that has two stable states and
can be used to store state information. A flip-flop is a bistable multivibrator. The
circuit can be made to change state by signals applied to one or more control
inputs and will have one or two outputs. It is the basic storage element
in sequential logic.
Flip-flops maintain their state indefinitely until an input pulse called a
trigger is received. When a trigger is received, the flip-flop outputs change state
according to defined rules and remain in those states until another trigger is
received.
Uses of flip flops.
 Flip flop and latches are the circuits that can store and remember
information. They're the kind of circuits that are used in computers to
store program information like RAM memory and Registers.
 Flip-flops can be used to store one bit, or binary digit, of data. The data
may represent the state of a sequencer, the value of a counter, an ASCII
character in a computer's memory or any other piece of information.
Types Of flip flop..
Some various types of flip-flop circuits are as follows:
 RS flip-flop circuit
 Clocked RS flip flop circuit
 D flip flop circuit
 Jk flip flop circuit
 T flip flop circuit
1. RS flip flop.
 DEFINITION:
“A circuit containing cross coupled connection, which is used to
remain a memory state stable by using asynchronous sequential
circuits, is called direct-coupled or RS flip flop.”
 EXPLANATION:
Each flip flop has two inputs and two outputs. The inputs are
denoted by R and S and outputs are denoted by Q and Q’. These
circuits can be implemented through “NOR” and “NAND” gate
Implementation:
These circuits are implemented through NOR and NAND gates.
Logic Diagram: Truth Table:
S R Q Q’
0 0 1 1 Not Allowed
1 0 0 1 Reset
0 1 1 0 Set
1 1 Q Q’ Memory state
Q
Q'
S'
R'
( a )
Note: By using the sign of invert we can change it into NOR’s table.
How the above circuit works:
Memory State:
In above circuit when two inputs are given as S=0 and R=0 then the memory remains stable.
Re-set state:
When inputs are given as S=0 and R=1, then the output comes Q=0 AND Q’=1.
(“WHEN Q’ comes 1 this state is called RE-SET state”)
Set state:
When inputs are given as S=1 and R=0, then the output comes Q=1 AND Q’=0.
(“WHEN Q comes 1 this state is called SET state”)
Not Allowed state:
When the outputs come against the inputs then this state is called not allowed.
2. Clocked SR Circuit:
 DEFINITION:
“A circuit which is used to remain a memory stable by using “clock signals” is called clocked
SR circuit.”
Clock Signal:
“Is used to perform any process in a circuit is called Clock signal.”
Basically clock signals are electrical pluses which are in the form of 1 or 0.
Note : A process is performed only when it is in the form of “1”
EXPLANATION OF Clocked SR Circuit:
Memory State:
In above circuit when two inputs are given as CLK=0, S=0 and R=0 then the memory remains
stable.
Re-set state:
When inputs are given as clk=1,S=0 and R=1, then the output comes Q=0 AND Q’=1.
(“WHEN Q’ comes 1 this state is called RE-SET state”)
Set state:
When inputs are given as cl1=1,S=1 and R=0, then the output comes Q=1 AND Q’=0.
(“WHEN Q comes 1 this state is called SET state”)
Not Allowed state:
When the outputs come against the inputs then this state is called not allowed.
Clocked SR Circuit:
Logic Diagram: Truth Table:
Clk S R Q Q’
1 1 1 1 1 Not Allowed
1 0 1 0 1 Reset
1 1 0 1 0 Set
1 0 0 Q Q’ Memory state
0 0 0 1 0 Memory state
Clocked SR Circuit:
3. D Flip-Flop:
 DEFINITION:
A circuit which is used to remove Clocked SR Circuit’s “not allowed state” more circuit’s stability is
called D flip flop.
A circuit using Inverter is basically a SR circuit, which reduces the no. of inputs from two to one . It
also called D-Latch.
 EXPLANATION:
It is basically modification of SR clocked circuit by using 5 gates . NAND gates 1 and 2 form a basic
Flip-flop and gates 3 and 4 modify it into a clocked RS flip-flop. Its working is given below by using
circuits…………
 Uses of D Flip-Flop:
The D Flip-Flop receives the designation from its ability to transfer” data” into a flip-flop.
Explanation through circuit :
This circuit is being constructed by using “Inverter with R” .
Memory state:
When Cp=0 and D=don’t care condition then memory stays stable.
Re-set state:
When inputs are given as Cp=1,D=0, then the output comes Q=0 AND Q’=1.
(“WHEN Q’ comes 1 this state is called RE-SET state”)
Set state:
When inputs are given as Cp=1,D=1, then the output comes Q=1 AND Q’=0.
(“WHEN Q comes 1 this state is called SET state”)
Logic Diagram: Truth Table:
Cp D Q Q’
0 0 Memory state
1 1 Set state
1 0 Reset state
D Flip-Flop:
4. JK Flip-Flop:
 Definition:
“A JK flip-flop is a refinement of RS flip-flop circuit in that the determinate state of RS type is defined in
the JK type. Means J and K behave like S and R to set and clear the flip-flop.”
Note: The letter j is used for set and the letter K is used for Reset.
Note: It is also used for removing not allowed state for memory state.
A clocked JK flip-flop circuit is shown in the bellow diagram.
Working Of JK flip-flop:
It is used to give following states when we give suitable inputs.
Memory state:
When Clk=0 and J and K=don’t care conditions then memory stays stable.
ALSO:
When Clk=1 and both J and K are 0,then memory also stays stable.
Set state:
When inputs are given as Clk=1 and J=1 and K=0, then the output comes Q=1 AND Q’=0.
(“WHEN Q comes 1 this state is called SET state”)
ReSet state:
When inputs are given as Clk=1 and J=0 and K=1, then the output comes Q=0 and Q’=1.
(“WHEN Q’ comes 1 this state is called RESET state”)
JK Flip-Flop:
Circuit Diagram: Truth Table:
Clk J K Q Q’
1 0 0 Memory state
0 0 1 Memory state
1 1 0 Set state
1 0 1 Reset state
JK Flip-Flop:
5. T-Flip Flops
The T or "toggle" flip-flop changes its output on each clock edge, giving
an output which is half the frequency of the signal to the T input. It is useful for
constructing binary counters, frequency dividers, and general binary
addition devices. It can be made from a J-K flip-flop.The T flip-flop can be
constructed using a D flip-flop with the two outputs Q and Q' feedback to the D
input through a multiplexer that is controlled by the T input as shown in Figure
Circuit Diagram:
What are latches.
A latch is an example of a bistable multivibrator that is, a device with exactly two stable states.
These states are high-output and low-output. A latch has a feedback path, so information can be
retained by the device. Therefore latches can be memory devices, and can store one bit of data for as
long as the device is powered. As the name suggests, latches are used to "latch onto" information and
hold in place. Latches are very similar to flip-flops, but are not synchronous devices, and do not
operate on clock edges as flip-flops do.
 Some various types of flip-flop circuits are as follows:
 SR latch
 Gated SR latch
 D latch
SR Latches.
An SR latch (Set/Reset) is an asynchronous device: it works independently of control signals
and relies only on the state of the S and R inputs. In the image we can see that an SR latch can be
created with two NOR gates that have a cross-feedback loop. SR latches can also be made from
NAND gates, but the inputs are swapped and negated. In this case, it is sometimes called an SR latch.
Circuit Diagram:
Gated SR latch.
The gated SR latch is a simple extension of the SR latch which provides
an Enable line which must be driven high before data can be latched. Even though a
control line is now required, the SR latch is not synchronous, because the inputs can
change the output even in the middle of an enable pulse.
 Circuit Diagram.
D Latch.
 The D latch (D for "data") or transparent latch is a simple extension of the gated SR latch
that removes the possibility of invalid input states.
 Since the gated SR latch allows us to latch the output without using the S or R inputs, we
can remove one of the inputs by driving both the Set and Reset inputs with a
complementary driver: we remove one input and automatically make it the inverse of the
remaining input.
 Circuit Diagram:
Question...????
Any Confusion
mfmalik93@gmail.com
For attention…

More Related Content

What's hot

Combinational circuits
Combinational circuits Combinational circuits
Combinational circuits
DrSonali Vyas
 
D flip Flop
D flip FlopD flip Flop
D flip Flop
Talha Mudassar
 
D and T Flip Flop
D and T Flip FlopD and T Flip Flop
D and T Flip Flop
Dhrumil Panchal
 
Jk flip flop
Jk flip flopJk flip flop
Jk flip flop
Priyank Soni
 
JK flip flop in Digital electronics
JK flip flop in Digital electronicsJK flip flop in Digital electronics
JK flip flop in Digital electronics
Easy n Inspire L
 
D Flip Flop
D Flip Flop D Flip Flop
D Flip Flop
Pradhan Rishi Sharma
 
SHIFT REGISTERS
SHIFT REGISTERSSHIFT REGISTERS
SHIFT REGISTERS
kumari36
 
Race around and master slave flip flop
Race around and master slave flip flopRace around and master slave flip flop
Race around and master slave flip flop
Shubham Singh
 
J - K & MASTERSLAVE FLIPFLOPS
J - K & MASTERSLAVE FLIPFLOPSJ - K & MASTERSLAVE FLIPFLOPS
J - K & MASTERSLAVE FLIPFLOPS
Krishma Parekh
 
Presentation On Flip-Flop
Presentation On Flip-FlopPresentation On Flip-Flop
flip flop circuits and its applications
flip flop circuits and its applicationsflip flop circuits and its applications
flip flop circuits and its applications
Gaditek
 
Latches and flip flops
Latches and flip flopsLatches and flip flops
Latches and flip flops
sheheryar ahmed
 
sequential circuits
sequential circuitssequential circuits
sequential circuits
Unsa Shakir
 
digital Counter
digital Counterdigital Counter
digital Counter
shamshad alam
 
Counters
CountersCounters
Counters
Ketaki_Pattani
 
Flip flop
Flip flopFlip flop
Flip flop
JAGMIT Jamkhandi
 
Shift Registers
Shift RegistersShift Registers
Shift Registers
Abhilash Nair
 
MASTER SLAVE JK FLIP FLOP & T FLIP FLOP
MASTER SLAVE JK FLIP FLOP & T FLIP FLOPMASTER SLAVE JK FLIP FLOP & T FLIP FLOP
MASTER SLAVE JK FLIP FLOP & T FLIP FLOP
Smit Shah
 
Sr Latch or Flip Flop
Sr Latch or Flip FlopSr Latch or Flip Flop
Sr Latch or Flip Flop
Muhammad Anas Mustafvi
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic Circuit
Ramasubbu .P
 

What's hot (20)

Combinational circuits
Combinational circuits Combinational circuits
Combinational circuits
 
D flip Flop
D flip FlopD flip Flop
D flip Flop
 
D and T Flip Flop
D and T Flip FlopD and T Flip Flop
D and T Flip Flop
 
Jk flip flop
Jk flip flopJk flip flop
Jk flip flop
 
JK flip flop in Digital electronics
JK flip flop in Digital electronicsJK flip flop in Digital electronics
JK flip flop in Digital electronics
 
D Flip Flop
D Flip Flop D Flip Flop
D Flip Flop
 
SHIFT REGISTERS
SHIFT REGISTERSSHIFT REGISTERS
SHIFT REGISTERS
 
Race around and master slave flip flop
Race around and master slave flip flopRace around and master slave flip flop
Race around and master slave flip flop
 
J - K & MASTERSLAVE FLIPFLOPS
J - K & MASTERSLAVE FLIPFLOPSJ - K & MASTERSLAVE FLIPFLOPS
J - K & MASTERSLAVE FLIPFLOPS
 
Presentation On Flip-Flop
Presentation On Flip-FlopPresentation On Flip-Flop
Presentation On Flip-Flop
 
flip flop circuits and its applications
flip flop circuits and its applicationsflip flop circuits and its applications
flip flop circuits and its applications
 
Latches and flip flops
Latches and flip flopsLatches and flip flops
Latches and flip flops
 
sequential circuits
sequential circuitssequential circuits
sequential circuits
 
digital Counter
digital Counterdigital Counter
digital Counter
 
Counters
CountersCounters
Counters
 
Flip flop
Flip flopFlip flop
Flip flop
 
Shift Registers
Shift RegistersShift Registers
Shift Registers
 
MASTER SLAVE JK FLIP FLOP & T FLIP FLOP
MASTER SLAVE JK FLIP FLOP & T FLIP FLOPMASTER SLAVE JK FLIP FLOP & T FLIP FLOP
MASTER SLAVE JK FLIP FLOP & T FLIP FLOP
 
Sr Latch or Flip Flop
Sr Latch or Flip FlopSr Latch or Flip Flop
Sr Latch or Flip Flop
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic Circuit
 

Similar to Latches and flip flops

Chapter 6: Sequential Logic
Chapter 6: Sequential LogicChapter 6: Sequential Logic
Chapter 6: Sequential Logic
Er. Nawaraj Bhandari
 
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptxDigital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
UtsavDas21
 
Assignment#5
Assignment#5Assignment#5
Assignment#5
Sunita Milind Dol
 
Lecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential LogicLecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential LogicJames Evangelos
 
B sc3 unit 5 sequencial lc
B sc3 unit 5 sequencial lcB sc3 unit 5 sequencial lc
B sc3 unit 5 sequencial lc
MahiboobAliMulla
 
FLIP FLOP (1).ppt
FLIP FLOP (1).pptFLIP FLOP (1).ppt
FLIP FLOP (1).ppt
vinayakjadhav94
 
Introduction to Sequential DevicesChapter 66.1 M.docx
Introduction to Sequential DevicesChapter 66.1 M.docxIntroduction to Sequential DevicesChapter 66.1 M.docx
Introduction to Sequential DevicesChapter 66.1 M.docx
bagotjesusa
 
De EE unit-3.pptx
De EE unit-3.pptxDe EE unit-3.pptx
De EE unit-3.pptx
MukulThory1
 
Unit 4 sequential circuits
Unit 4  sequential circuitsUnit 4  sequential circuits
Unit 4 sequential circuits
AmrutaMehata
 
Computer Oragnization Flipflops
Computer Oragnization FlipflopsComputer Oragnization Flipflops
Computer Oragnization Flipflops
Vanitha Chandru
 
Sr jk flip flop by AMAN GOYAT
Sr jk flip flop by AMAN GOYATSr jk flip flop by AMAN GOYAT
Sr jk flip flop by AMAN GOYAT
AmanGoyat2
 
UNIT - III.pptx
UNIT - III.pptxUNIT - III.pptx
UNIT - III.pptx
amudhak10
 
Sequential logic circuits flip-flop pt 1
Sequential logic circuits   flip-flop pt 1Sequential logic circuits   flip-flop pt 1
Sequential logic circuits flip-flop pt 1
Sarah Sue Calbio
 
latchesandflipflops.ppt
latchesandflipflops.pptlatchesandflipflops.ppt
latchesandflipflops.ppt
MuhammadSheraz836877
 
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptxSEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
ThanmayiKumar
 
Introduction to flipflops basic of elctronics COA.pptx
Introduction to flipflops basic of elctronics COA.pptxIntroduction to flipflops basic of elctronics COA.pptx
Introduction to flipflops basic of elctronics COA.pptx
Saini71
 
Chapter4flipflop forstudents-131112193906-phpapp02
Chapter4flipflop forstudents-131112193906-phpapp02Chapter4flipflop forstudents-131112193906-phpapp02
Chapter4flipflop forstudents-131112193906-phpapp02
Seshu Chakravarthy
 
Flip flop
Flip flop Flip flop
Flip flop
AttaRahmanQureshi
 

Similar to Latches and flip flops (20)

Chapter 6: Sequential Logic
Chapter 6: Sequential LogicChapter 6: Sequential Logic
Chapter 6: Sequential Logic
 
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptxDigital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
 
Assignment#5
Assignment#5Assignment#5
Assignment#5
 
Lecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential LogicLecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential Logic
 
B sc3 unit 5 sequencial lc
B sc3 unit 5 sequencial lcB sc3 unit 5 sequencial lc
B sc3 unit 5 sequencial lc
 
FLIP FLOP (1).ppt
FLIP FLOP (1).pptFLIP FLOP (1).ppt
FLIP FLOP (1).ppt
 
Lecture 1 6844
Lecture 1 6844Lecture 1 6844
Lecture 1 6844
 
Introduction to Sequential DevicesChapter 66.1 M.docx
Introduction to Sequential DevicesChapter 66.1 M.docxIntroduction to Sequential DevicesChapter 66.1 M.docx
Introduction to Sequential DevicesChapter 66.1 M.docx
 
De EE unit-3.pptx
De EE unit-3.pptxDe EE unit-3.pptx
De EE unit-3.pptx
 
Unit 4 sequential circuits
Unit 4  sequential circuitsUnit 4  sequential circuits
Unit 4 sequential circuits
 
Computer Oragnization Flipflops
Computer Oragnization FlipflopsComputer Oragnization Flipflops
Computer Oragnization Flipflops
 
Sr jk flip flop by AMAN GOYAT
Sr jk flip flop by AMAN GOYATSr jk flip flop by AMAN GOYAT
Sr jk flip flop by AMAN GOYAT
 
UNIT - III.pptx
UNIT - III.pptxUNIT - III.pptx
UNIT - III.pptx
 
Flip & flop by Zaheer Abbas Aghani
Flip & flop by Zaheer Abbas AghaniFlip & flop by Zaheer Abbas Aghani
Flip & flop by Zaheer Abbas Aghani
 
Sequential logic circuits flip-flop pt 1
Sequential logic circuits   flip-flop pt 1Sequential logic circuits   flip-flop pt 1
Sequential logic circuits flip-flop pt 1
 
latchesandflipflops.ppt
latchesandflipflops.pptlatchesandflipflops.ppt
latchesandflipflops.ppt
 
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptxSEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
 
Introduction to flipflops basic of elctronics COA.pptx
Introduction to flipflops basic of elctronics COA.pptxIntroduction to flipflops basic of elctronics COA.pptx
Introduction to flipflops basic of elctronics COA.pptx
 
Chapter4flipflop forstudents-131112193906-phpapp02
Chapter4flipflop forstudents-131112193906-phpapp02Chapter4flipflop forstudents-131112193906-phpapp02
Chapter4flipflop forstudents-131112193906-phpapp02
 
Flip flop
Flip flop Flip flop
Flip flop
 

Recently uploaded

一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
smpc3nvg
 
White wonder, Work developed by Eva Tschopp
White wonder, Work developed by Eva TschoppWhite wonder, Work developed by Eva Tschopp
White wonder, Work developed by Eva Tschopp
Mansi Shah
 
Book Formatting: Quality Control Checks for Designers
Book Formatting: Quality Control Checks for DesignersBook Formatting: Quality Control Checks for Designers
Book Formatting: Quality Control Checks for Designers
Confidence Ago
 
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Mansi Shah
 
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
jyz59f4j
 
Borys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior designBorys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior design
boryssutkowski
 
Portfolio.pdf
Portfolio.pdfPortfolio.pdf
Portfolio.pdf
garcese
 
National-Learning-Camp 2024 deped....pptx
National-Learning-Camp 2024 deped....pptxNational-Learning-Camp 2024 deped....pptx
National-Learning-Camp 2024 deped....pptx
AlecAnidul
 
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
n0tivyq
 
CA OFFICE office office office _VIEWS.pdf
CA OFFICE office office office _VIEWS.pdfCA OFFICE office office office _VIEWS.pdf
CA OFFICE office office office _VIEWS.pdf
SudhanshuMandlik
 
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
9a93xvy
 
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
smpc3nvg
 
Exploring the Future of Smart Garages.pdf
Exploring the Future of Smart Garages.pdfExploring the Future of Smart Garages.pdf
Exploring the Future of Smart Garages.pdf
fastfixgaragedoor
 
Top 5 Indian Style Modular Kitchen Designs
Top 5 Indian Style Modular Kitchen DesignsTop 5 Indian Style Modular Kitchen Designs
Top 5 Indian Style Modular Kitchen Designs
Finzo Kitchens
 
一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理
一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理
一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理
h7j5io0
 
Common Designing Mistakes and How to avoid them
Common Designing Mistakes and How to avoid themCommon Designing Mistakes and How to avoid them
Common Designing Mistakes and How to avoid them
madhavlakhanpal29
 
Top Israeli Products and Brands - Plan it israel.pdf
Top Israeli Products and Brands - Plan it israel.pdfTop Israeli Products and Brands - Plan it israel.pdf
Top Israeli Products and Brands - Plan it israel.pdf
PlanitIsrael
 
Research 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdfResearch 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdf
ameli25062005
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
cy0krjxt
 
Expert Accessory Dwelling Unit (ADU) Drafting Services
Expert Accessory Dwelling Unit (ADU) Drafting ServicesExpert Accessory Dwelling Unit (ADU) Drafting Services
Expert Accessory Dwelling Unit (ADU) Drafting Services
ResDraft
 

Recently uploaded (20)

一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
 
White wonder, Work developed by Eva Tschopp
White wonder, Work developed by Eva TschoppWhite wonder, Work developed by Eva Tschopp
White wonder, Work developed by Eva Tschopp
 
Book Formatting: Quality Control Checks for Designers
Book Formatting: Quality Control Checks for DesignersBook Formatting: Quality Control Checks for Designers
Book Formatting: Quality Control Checks for Designers
 
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
 
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
 
Borys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior designBorys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior design
 
Portfolio.pdf
Portfolio.pdfPortfolio.pdf
Portfolio.pdf
 
National-Learning-Camp 2024 deped....pptx
National-Learning-Camp 2024 deped....pptxNational-Learning-Camp 2024 deped....pptx
National-Learning-Camp 2024 deped....pptx
 
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
 
CA OFFICE office office office _VIEWS.pdf
CA OFFICE office office office _VIEWS.pdfCA OFFICE office office office _VIEWS.pdf
CA OFFICE office office office _VIEWS.pdf
 
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
 
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
 
Exploring the Future of Smart Garages.pdf
Exploring the Future of Smart Garages.pdfExploring the Future of Smart Garages.pdf
Exploring the Future of Smart Garages.pdf
 
Top 5 Indian Style Modular Kitchen Designs
Top 5 Indian Style Modular Kitchen DesignsTop 5 Indian Style Modular Kitchen Designs
Top 5 Indian Style Modular Kitchen Designs
 
一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理
一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理
一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理
 
Common Designing Mistakes and How to avoid them
Common Designing Mistakes and How to avoid themCommon Designing Mistakes and How to avoid them
Common Designing Mistakes and How to avoid them
 
Top Israeli Products and Brands - Plan it israel.pdf
Top Israeli Products and Brands - Plan it israel.pdfTop Israeli Products and Brands - Plan it israel.pdf
Top Israeli Products and Brands - Plan it israel.pdf
 
Research 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdfResearch 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdf
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
 
Expert Accessory Dwelling Unit (ADU) Drafting Services
Expert Accessory Dwelling Unit (ADU) Drafting ServicesExpert Accessory Dwelling Unit (ADU) Drafting Services
Expert Accessory Dwelling Unit (ADU) Drafting Services
 

Latches and flip flops

  • 1. Latches and Flip-Flops GOVT. Municipal Degree College FSD… CSI-403 Digital logic and computer design… Presentation topic.
  • 2. Latches and Flip-Flops… Presentation Group # 1. Group Members: Name: College Roll# University Roll# Roll# 1. Mubashir Farooq 1405 30762 2. Asif Ali 1403 307 3. Mohsin Ali 1414 307 4. Allah Dittah(Adill) 1419 307
  • 3. Table of contents: In this lecture we will discuses these topics  what are latches and flip plop.  what is different between both.  Different types of flip flop.  Different types of latches.  Explanation of all types of latches with diagrams.  Explanation of all types of flip flop with diagrams.
  • 4. Difference between both….? Latches..  Latches are the building blocks of sequential circuits.  latches can be built from gates.  latch does not have a clock signal. Flip Flop..  flip-flops are also the building blocks of sequential circuits.  Flip-flops can be built from latches.  A flip-flop always has a clock Signal  Both are same but there is a little difference between both.
  • 5. What are flip flops. In electronics, a flip-flop or latch is a circuit that has two stable states and can be used to store state information. A flip-flop is a bistable multivibrator. The circuit can be made to change state by signals applied to one or more control inputs and will have one or two outputs. It is the basic storage element in sequential logic. Flip-flops maintain their state indefinitely until an input pulse called a trigger is received. When a trigger is received, the flip-flop outputs change state according to defined rules and remain in those states until another trigger is received.
  • 6. Uses of flip flops.  Flip flop and latches are the circuits that can store and remember information. They're the kind of circuits that are used in computers to store program information like RAM memory and Registers.  Flip-flops can be used to store one bit, or binary digit, of data. The data may represent the state of a sequencer, the value of a counter, an ASCII character in a computer's memory or any other piece of information.
  • 7. Types Of flip flop.. Some various types of flip-flop circuits are as follows:  RS flip-flop circuit  Clocked RS flip flop circuit  D flip flop circuit  Jk flip flop circuit  T flip flop circuit
  • 8. 1. RS flip flop.  DEFINITION: “A circuit containing cross coupled connection, which is used to remain a memory state stable by using asynchronous sequential circuits, is called direct-coupled or RS flip flop.”  EXPLANATION: Each flip flop has two inputs and two outputs. The inputs are denoted by R and S and outputs are denoted by Q and Q’. These circuits can be implemented through “NOR” and “NAND” gate
  • 9. Implementation: These circuits are implemented through NOR and NAND gates. Logic Diagram: Truth Table: S R Q Q’ 0 0 1 1 Not Allowed 1 0 0 1 Reset 0 1 1 0 Set 1 1 Q Q’ Memory state Q Q' S' R' ( a ) Note: By using the sign of invert we can change it into NOR’s table.
  • 10. How the above circuit works: Memory State: In above circuit when two inputs are given as S=0 and R=0 then the memory remains stable. Re-set state: When inputs are given as S=0 and R=1, then the output comes Q=0 AND Q’=1. (“WHEN Q’ comes 1 this state is called RE-SET state”) Set state: When inputs are given as S=1 and R=0, then the output comes Q=1 AND Q’=0. (“WHEN Q comes 1 this state is called SET state”) Not Allowed state: When the outputs come against the inputs then this state is called not allowed.
  • 11. 2. Clocked SR Circuit:  DEFINITION: “A circuit which is used to remain a memory stable by using “clock signals” is called clocked SR circuit.” Clock Signal: “Is used to perform any process in a circuit is called Clock signal.” Basically clock signals are electrical pluses which are in the form of 1 or 0. Note : A process is performed only when it is in the form of “1” EXPLANATION OF Clocked SR Circuit: Memory State: In above circuit when two inputs are given as CLK=0, S=0 and R=0 then the memory remains stable.
  • 12. Re-set state: When inputs are given as clk=1,S=0 and R=1, then the output comes Q=0 AND Q’=1. (“WHEN Q’ comes 1 this state is called RE-SET state”) Set state: When inputs are given as cl1=1,S=1 and R=0, then the output comes Q=1 AND Q’=0. (“WHEN Q comes 1 this state is called SET state”) Not Allowed state: When the outputs come against the inputs then this state is called not allowed. Clocked SR Circuit:
  • 13. Logic Diagram: Truth Table: Clk S R Q Q’ 1 1 1 1 1 Not Allowed 1 0 1 0 1 Reset 1 1 0 1 0 Set 1 0 0 Q Q’ Memory state 0 0 0 1 0 Memory state Clocked SR Circuit:
  • 14. 3. D Flip-Flop:  DEFINITION: A circuit which is used to remove Clocked SR Circuit’s “not allowed state” more circuit’s stability is called D flip flop. A circuit using Inverter is basically a SR circuit, which reduces the no. of inputs from two to one . It also called D-Latch.  EXPLANATION: It is basically modification of SR clocked circuit by using 5 gates . NAND gates 1 and 2 form a basic Flip-flop and gates 3 and 4 modify it into a clocked RS flip-flop. Its working is given below by using circuits…………  Uses of D Flip-Flop: The D Flip-Flop receives the designation from its ability to transfer” data” into a flip-flop.
  • 15. Explanation through circuit : This circuit is being constructed by using “Inverter with R” . Memory state: When Cp=0 and D=don’t care condition then memory stays stable. Re-set state: When inputs are given as Cp=1,D=0, then the output comes Q=0 AND Q’=1. (“WHEN Q’ comes 1 this state is called RE-SET state”) Set state: When inputs are given as Cp=1,D=1, then the output comes Q=1 AND Q’=0. (“WHEN Q comes 1 this state is called SET state”)
  • 16. Logic Diagram: Truth Table: Cp D Q Q’ 0 0 Memory state 1 1 Set state 1 0 Reset state D Flip-Flop:
  • 17. 4. JK Flip-Flop:  Definition: “A JK flip-flop is a refinement of RS flip-flop circuit in that the determinate state of RS type is defined in the JK type. Means J and K behave like S and R to set and clear the flip-flop.” Note: The letter j is used for set and the letter K is used for Reset. Note: It is also used for removing not allowed state for memory state. A clocked JK flip-flop circuit is shown in the bellow diagram. Working Of JK flip-flop: It is used to give following states when we give suitable inputs.
  • 18. Memory state: When Clk=0 and J and K=don’t care conditions then memory stays stable. ALSO: When Clk=1 and both J and K are 0,then memory also stays stable. Set state: When inputs are given as Clk=1 and J=1 and K=0, then the output comes Q=1 AND Q’=0. (“WHEN Q comes 1 this state is called SET state”) ReSet state: When inputs are given as Clk=1 and J=0 and K=1, then the output comes Q=0 and Q’=1. (“WHEN Q’ comes 1 this state is called RESET state”) JK Flip-Flop:
  • 19. Circuit Diagram: Truth Table: Clk J K Q Q’ 1 0 0 Memory state 0 0 1 Memory state 1 1 0 Set state 1 0 1 Reset state JK Flip-Flop:
  • 20. 5. T-Flip Flops The T or "toggle" flip-flop changes its output on each clock edge, giving an output which is half the frequency of the signal to the T input. It is useful for constructing binary counters, frequency dividers, and general binary addition devices. It can be made from a J-K flip-flop.The T flip-flop can be constructed using a D flip-flop with the two outputs Q and Q' feedback to the D input through a multiplexer that is controlled by the T input as shown in Figure Circuit Diagram:
  • 21. What are latches. A latch is an example of a bistable multivibrator that is, a device with exactly two stable states. These states are high-output and low-output. A latch has a feedback path, so information can be retained by the device. Therefore latches can be memory devices, and can store one bit of data for as long as the device is powered. As the name suggests, latches are used to "latch onto" information and hold in place. Latches are very similar to flip-flops, but are not synchronous devices, and do not operate on clock edges as flip-flops do.  Some various types of flip-flop circuits are as follows:  SR latch  Gated SR latch  D latch
  • 22. SR Latches. An SR latch (Set/Reset) is an asynchronous device: it works independently of control signals and relies only on the state of the S and R inputs. In the image we can see that an SR latch can be created with two NOR gates that have a cross-feedback loop. SR latches can also be made from NAND gates, but the inputs are swapped and negated. In this case, it is sometimes called an SR latch. Circuit Diagram:
  • 23. Gated SR latch. The gated SR latch is a simple extension of the SR latch which provides an Enable line which must be driven high before data can be latched. Even though a control line is now required, the SR latch is not synchronous, because the inputs can change the output even in the middle of an enable pulse.  Circuit Diagram.
  • 24. D Latch.  The D latch (D for "data") or transparent latch is a simple extension of the gated SR latch that removes the possibility of invalid input states.  Since the gated SR latch allows us to latch the output without using the S or R inputs, we can remove one of the inputs by driving both the Set and Reset inputs with a complementary driver: we remove one input and automatically make it the inverse of the remaining input.  Circuit Diagram: