SlideShare une entreprise Scribd logo
1  sur  26
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…

Contenu connexe

Tendances

Combinational Circuits & Sequential Circuits
Combinational Circuits & Sequential CircuitsCombinational Circuits & Sequential Circuits
Combinational Circuits & Sequential Circuitsgourav kottawar
 
Digital Electronics - Counters
Digital Electronics - CountersDigital Electronics - Counters
Digital Electronics - CountersJayakrishnan J
 
halfadder & halfsubtractor using 4:1 MUX
halfadder & halfsubtractor using 4:1 MUXhalfadder & halfsubtractor using 4:1 MUX
halfadder & halfsubtractor using 4:1 MUXU Reshmi
 
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 flopShubham Singh
 
Encoder & Decoder
Encoder & DecoderEncoder & Decoder
Encoder & DecoderSyed Saeed
 
Combinational circuits
Combinational circuits Combinational circuits
Combinational circuits DrSonali Vyas
 
Finite state machines
Finite state machinesFinite state machines
Finite state machinesdennis gookyi
 
Programmable array logic
Programmable array logicProgrammable array logic
Programmable array logicGaditek
 
sequential circuits
sequential circuitssequential circuits
sequential circuitsUnsa Shakir
 
8051 Microcontroller ppt
8051 Microcontroller ppt8051 Microcontroller ppt
8051 Microcontroller pptRahul Kumar
 

Tendances (20)

Shift Registers
Shift RegistersShift Registers
Shift Registers
 
Latches and flip flops
Latches and flip flopsLatches and flip flops
Latches and flip flops
 
Combinational Circuits & Sequential Circuits
Combinational Circuits & Sequential CircuitsCombinational Circuits & Sequential Circuits
Combinational Circuits & Sequential Circuits
 
Digital Electronics - Counters
Digital Electronics - CountersDigital Electronics - Counters
Digital Electronics - Counters
 
halfadder & halfsubtractor using 4:1 MUX
halfadder & halfsubtractor using 4:1 MUXhalfadder & halfsubtractor using 4:1 MUX
halfadder & halfsubtractor using 4:1 MUX
 
Flipflop
FlipflopFlipflop
Flipflop
 
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
 
Encoder & Decoder
Encoder & DecoderEncoder & Decoder
Encoder & Decoder
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Registers
RegistersRegisters
Registers
 
Combinational circuits
Combinational circuits Combinational circuits
Combinational circuits
 
Ring counter
Ring counterRing counter
Ring counter
 
latches
 latches latches
latches
 
Finite state machines
Finite state machinesFinite state machines
Finite state machines
 
Programmable array logic
Programmable array logicProgrammable array logic
Programmable array logic
 
D Flip Flop
D Flip Flop D Flip Flop
D Flip Flop
 
sequential circuits
sequential circuitssequential circuits
sequential circuits
 
8051 Microcontroller ppt
8051 Microcontroller ppt8051 Microcontroller ppt
8051 Microcontroller ppt
 
Digital logic families
Digital logic familiesDigital logic families
Digital logic families
 
Digital Logic circuit
Digital Logic circuitDigital Logic circuit
Digital Logic circuit
 

Similaire à Latches and flip flops

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.pptxUtsavDas21
 
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 lcMahiboobAliMulla
 
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.docxbagotjesusa
 
De EE unit-3.pptx
De EE unit-3.pptxDe EE unit-3.pptx
De EE unit-3.pptxMukulThory1
 
Unit 4 sequential circuits
Unit 4  sequential circuitsUnit 4  sequential circuits
Unit 4 sequential circuitsAmrutaMehata
 
Computer Oragnization Flipflops
Computer Oragnization FlipflopsComputer Oragnization Flipflops
Computer Oragnization FlipflopsVanitha 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 GOYATAmanGoyat2
 
UNIT - III.pptx
UNIT - III.pptxUNIT - III.pptx
UNIT - III.pptxamudhak10
 
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 1Sarah Sue Calbio
 
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptxSEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptxThanmayiKumar
 
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.pptxSaini71
 
Chapter4flipflop forstudents-131112193906-phpapp02
Chapter4flipflop forstudents-131112193906-phpapp02Chapter4flipflop forstudents-131112193906-phpapp02
Chapter4flipflop forstudents-131112193906-phpapp02Seshu Chakravarthy
 

Similaire à 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
 

Dernier

Abortion pills in Riyadh +966572737505 <> buy cytotec <> unwanted kit Saudi A...
Abortion pills in Riyadh +966572737505 <> buy cytotec <> unwanted kit Saudi A...Abortion pills in Riyadh +966572737505 <> buy cytotec <> unwanted kit Saudi A...
Abortion pills in Riyadh +966572737505 <> buy cytotec <> unwanted kit Saudi A...samsungultra782445
 
Minimalist Orange Portfolio by Slidesgo.pptx
Minimalist Orange Portfolio by Slidesgo.pptxMinimalist Orange Portfolio by Slidesgo.pptx
Minimalist Orange Portfolio by Slidesgo.pptxbalqisyamutia
 
How to Turn a Picture Into a Line Drawing in Photoshop
How to Turn a Picture Into a Line Drawing in PhotoshopHow to Turn a Picture Into a Line Drawing in Photoshop
How to Turn a Picture Into a Line Drawing in PhotoshopZenith Clipping
 
怎样办理巴斯大学毕业证(Bath毕业证书)成绩单留信认证
怎样办理巴斯大学毕业证(Bath毕业证书)成绩单留信认证怎样办理巴斯大学毕业证(Bath毕业证书)成绩单留信认证
怎样办理巴斯大学毕业证(Bath毕业证书)成绩单留信认证eeanqy
 
Just Call Vip call girls Fatehpur Escorts ☎️8617370543 Two shot with one girl...
Just Call Vip call girls Fatehpur Escorts ☎️8617370543 Two shot with one girl...Just Call Vip call girls Fatehpur Escorts ☎️8617370543 Two shot with one girl...
Just Call Vip call girls Fatehpur Escorts ☎️8617370543 Two shot with one girl...Nitya salvi
 
Lecture 01 Introduction To Multimedia.pptx
Lecture 01 Introduction To Multimedia.pptxLecture 01 Introduction To Multimedia.pptx
Lecture 01 Introduction To Multimedia.pptxShoaibRajper1
 
poliovirus-190801072449. pptx
poliovirus-190801072449.            pptxpoliovirus-190801072449.            pptx
poliovirus-190801072449. pptxssuser0ad194
 
Top profile Call Girls In Sonipat [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In Sonipat [ 7014168258 ] Call Me For Genuine Models W...Top profile Call Girls In Sonipat [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In Sonipat [ 7014168258 ] Call Me For Genuine Models W...nirzagarg
 
Raebareli Girl Whatsapp Number 📞 8617370543 | Girls Number for Friendship
Raebareli Girl Whatsapp Number 📞 8617370543 | Girls Number for FriendshipRaebareli Girl Whatsapp Number 📞 8617370543 | Girls Number for Friendship
Raebareli Girl Whatsapp Number 📞 8617370543 | Girls Number for FriendshipNitya salvi
 
一比一定(购)滑铁卢大学毕业证(UW毕业证)成绩单学位证
一比一定(购)滑铁卢大学毕业证(UW毕业证)成绩单学位证一比一定(购)滑铁卢大学毕业证(UW毕业证)成绩单学位证
一比一定(购)滑铁卢大学毕业证(UW毕业证)成绩单学位证wpkuukw
 
Q4-Trends-Networks-Module-3.pdfqquater days sheets123456789
Q4-Trends-Networks-Module-3.pdfqquater days sheets123456789Q4-Trends-Networks-Module-3.pdfqquater days sheets123456789
Q4-Trends-Networks-Module-3.pdfqquater days sheets123456789CristineGraceAcuyan
 
一比一定(购)卡尔顿大学毕业证(CU毕业证)成绩单学位证
一比一定(购)卡尔顿大学毕业证(CU毕业证)成绩单学位证一比一定(购)卡尔顿大学毕业证(CU毕业证)成绩单学位证
一比一定(购)卡尔顿大学毕业证(CU毕业证)成绩单学位证wpkuukw
 
The hottest UI and UX Design Trends 2024
The hottest UI and UX Design Trends 2024The hottest UI and UX Design Trends 2024
The hottest UI and UX Design Trends 2024Ilham Brata
 
Top profile Call Girls In Mysore [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Mysore [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Mysore [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Mysore [ 7014168258 ] Call Me For Genuine Models We...gajnagarg
 
Madhyamgram \ (Genuine) Escort Service Kolkata | Service-oriented sexy call g...
Madhyamgram \ (Genuine) Escort Service Kolkata | Service-oriented sexy call g...Madhyamgram \ (Genuine) Escort Service Kolkata | Service-oriented sexy call g...
Madhyamgram \ (Genuine) Escort Service Kolkata | Service-oriented sexy call g...HyderabadDolls
 
TRose UXPA Experience Design Concord .pptx
TRose UXPA Experience Design Concord .pptxTRose UXPA Experience Design Concord .pptx
TRose UXPA Experience Design Concord .pptxtrose8
 
How to Create a Productive Workspace Trends and Tips.pdf
How to Create a Productive Workspace Trends and Tips.pdfHow to Create a Productive Workspace Trends and Tips.pdf
How to Create a Productive Workspace Trends and Tips.pdfOffice Furniture Plus - Irving
 
Top profile Call Girls In Mau [ 7014168258 ] Call Me For Genuine Models We ar...
Top profile Call Girls In Mau [ 7014168258 ] Call Me For Genuine Models We ar...Top profile Call Girls In Mau [ 7014168258 ] Call Me For Genuine Models We ar...
Top profile Call Girls In Mau [ 7014168258 ] Call Me For Genuine Models We ar...nirzagarg
 
LANDSCAPE ARCHITECTURE PORTFOLIO - MAREK MITACEK
LANDSCAPE ARCHITECTURE PORTFOLIO - MAREK MITACEKLANDSCAPE ARCHITECTURE PORTFOLIO - MAREK MITACEK
LANDSCAPE ARCHITECTURE PORTFOLIO - MAREK MITACEKMarekMitek1
 

Dernier (20)

Abortion pills in Riyadh +966572737505 <> buy cytotec <> unwanted kit Saudi A...
Abortion pills in Riyadh +966572737505 <> buy cytotec <> unwanted kit Saudi A...Abortion pills in Riyadh +966572737505 <> buy cytotec <> unwanted kit Saudi A...
Abortion pills in Riyadh +966572737505 <> buy cytotec <> unwanted kit Saudi A...
 
Minimalist Orange Portfolio by Slidesgo.pptx
Minimalist Orange Portfolio by Slidesgo.pptxMinimalist Orange Portfolio by Slidesgo.pptx
Minimalist Orange Portfolio by Slidesgo.pptx
 
How to Turn a Picture Into a Line Drawing in Photoshop
How to Turn a Picture Into a Line Drawing in PhotoshopHow to Turn a Picture Into a Line Drawing in Photoshop
How to Turn a Picture Into a Line Drawing in Photoshop
 
怎样办理巴斯大学毕业证(Bath毕业证书)成绩单留信认证
怎样办理巴斯大学毕业证(Bath毕业证书)成绩单留信认证怎样办理巴斯大学毕业证(Bath毕业证书)成绩单留信认证
怎样办理巴斯大学毕业证(Bath毕业证书)成绩单留信认证
 
Just Call Vip call girls Fatehpur Escorts ☎️8617370543 Two shot with one girl...
Just Call Vip call girls Fatehpur Escorts ☎️8617370543 Two shot with one girl...Just Call Vip call girls Fatehpur Escorts ☎️8617370543 Two shot with one girl...
Just Call Vip call girls Fatehpur Escorts ☎️8617370543 Two shot with one girl...
 
Lecture 01 Introduction To Multimedia.pptx
Lecture 01 Introduction To Multimedia.pptxLecture 01 Introduction To Multimedia.pptx
Lecture 01 Introduction To Multimedia.pptx
 
poliovirus-190801072449. pptx
poliovirus-190801072449.            pptxpoliovirus-190801072449.            pptx
poliovirus-190801072449. pptx
 
Top profile Call Girls In Sonipat [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In Sonipat [ 7014168258 ] Call Me For Genuine Models W...Top profile Call Girls In Sonipat [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In Sonipat [ 7014168258 ] Call Me For Genuine Models W...
 
Raebareli Girl Whatsapp Number 📞 8617370543 | Girls Number for Friendship
Raebareli Girl Whatsapp Number 📞 8617370543 | Girls Number for FriendshipRaebareli Girl Whatsapp Number 📞 8617370543 | Girls Number for Friendship
Raebareli Girl Whatsapp Number 📞 8617370543 | Girls Number for Friendship
 
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman MuscatAbortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
 
一比一定(购)滑铁卢大学毕业证(UW毕业证)成绩单学位证
一比一定(购)滑铁卢大学毕业证(UW毕业证)成绩单学位证一比一定(购)滑铁卢大学毕业证(UW毕业证)成绩单学位证
一比一定(购)滑铁卢大学毕业证(UW毕业证)成绩单学位证
 
Q4-Trends-Networks-Module-3.pdfqquater days sheets123456789
Q4-Trends-Networks-Module-3.pdfqquater days sheets123456789Q4-Trends-Networks-Module-3.pdfqquater days sheets123456789
Q4-Trends-Networks-Module-3.pdfqquater days sheets123456789
 
一比一定(购)卡尔顿大学毕业证(CU毕业证)成绩单学位证
一比一定(购)卡尔顿大学毕业证(CU毕业证)成绩单学位证一比一定(购)卡尔顿大学毕业证(CU毕业证)成绩单学位证
一比一定(购)卡尔顿大学毕业证(CU毕业证)成绩单学位证
 
The hottest UI and UX Design Trends 2024
The hottest UI and UX Design Trends 2024The hottest UI and UX Design Trends 2024
The hottest UI and UX Design Trends 2024
 
Top profile Call Girls In Mysore [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Mysore [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Mysore [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Mysore [ 7014168258 ] Call Me For Genuine Models We...
 
Madhyamgram \ (Genuine) Escort Service Kolkata | Service-oriented sexy call g...
Madhyamgram \ (Genuine) Escort Service Kolkata | Service-oriented sexy call g...Madhyamgram \ (Genuine) Escort Service Kolkata | Service-oriented sexy call g...
Madhyamgram \ (Genuine) Escort Service Kolkata | Service-oriented sexy call g...
 
TRose UXPA Experience Design Concord .pptx
TRose UXPA Experience Design Concord .pptxTRose UXPA Experience Design Concord .pptx
TRose UXPA Experience Design Concord .pptx
 
How to Create a Productive Workspace Trends and Tips.pdf
How to Create a Productive Workspace Trends and Tips.pdfHow to Create a Productive Workspace Trends and Tips.pdf
How to Create a Productive Workspace Trends and Tips.pdf
 
Top profile Call Girls In Mau [ 7014168258 ] Call Me For Genuine Models We ar...
Top profile Call Girls In Mau [ 7014168258 ] Call Me For Genuine Models We ar...Top profile Call Girls In Mau [ 7014168258 ] Call Me For Genuine Models We ar...
Top profile Call Girls In Mau [ 7014168258 ] Call Me For Genuine Models We ar...
 
LANDSCAPE ARCHITECTURE PORTFOLIO - MAREK MITACEK
LANDSCAPE ARCHITECTURE PORTFOLIO - MAREK MITACEKLANDSCAPE ARCHITECTURE PORTFOLIO - MAREK MITACEK
LANDSCAPE ARCHITECTURE PORTFOLIO - MAREK MITACEK
 

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: