SlideShare a Scribd company logo
1 of 45
FLIP FLOPS
Binary unit capable of storing one bit – 0 or 1
Flip Flop has two stable states and a transition between these two
states .
Transition is depended on input.

Input
0/1

HIGH /
1/
SET

HIGH

LOW

Transition between states

LOW /
0/
RESET
Types of FLIP FLOPS
FLIP FLOP
RS Flip Flop
JK Flip Flop
T Flip Flop
D Flip Flop
RS - FLIP FLOP
Block Diagram
R
S

RS Flip Flop

Q
Q
RS - FLIP FLOP
RS Latch using NOR Gate
A

R

S

Q

Q
B
RS - FLIP FLOP
TRUTH TABLE
R

S

Q

Case 1

0

0

NC

Case 2

0

1

SET

Case 3

1

0

RESET

Case 4

1

1

*

R

0

A

1

0

0
1
1
0

S

0

1

B

0

Q

Q

NO
CHANGE
RS - FLIP FLOP
TRUTH TABLE
R

S

Q

Case 1

0

0

NC

Case 2

0

1

SET

Case 3

1

0

RESET

Case 4

1

1

*

R

0

A

1

SET

Q

0
01

S

1

B

0

Q
RS - FLIP FLOP
TRUTH TABLE
R

S

Q

Case 1

0

0

NC

Case 2

0

1

SET

Case 3

1

0

RESET

Case 4

1

1

*

R

1

0

01
0

S

0

RESET

A

1

B

Q

Q
RS - FLIP FLOP
TRUTH TABLE
R

S

Q

Case 1

0

0

NC

Case 2

0

1

SET

Case 3

1

0

RESET

Case 4

1

1

*

R

1

A
0

0
0

S

1

0

B

Q

Q
RS - FLIP FLOP
RS Latch using NAND Gate (RS Flip Flop)
A

R

S

Q
Q

B

R

S

Q

0

0

*

0

1

SET

1

0

RESET

1

1

NC
RS - FLIP FLOP
RS Latch using NAND Gate
0

R

0
0

S

1

A

Q

1
1

1

Q

B

0

R

S

Q

0

0

*

0

1

SET

1

0

RESET

1

1

NC

Race
Condition
RS - FLIP FLOP
RS Latch using NAND Gate (RS Flip Flop)

R

0

A
01
01

S

1

Q

01

Q

B

1

R

S

Q

0

0

*

0

1

SET

1

0

RESET

1

1

NC
RS - FLIP FLOP
RS Latch using NAND Gate
1

R

A

10

10

Q

10

S

B

0

1

R

S

Q

0

0

*

0

1

SET

1

0

RESET

1

1

NC

Q
RS - FLIP FLOP
RS Latch using NAND Gate

R

1

10

A

10

Q

10

S

1

10

B

R

S

Q

0

0

*

0

1

SET

1

0

RESET

1

1

NC

Q
Clocked RS Flip Flop
What is the Difference ????

A Clock signal is added to the input
What Clock Signal will do ????

Clock Signal controls the instant at which flip flop changes the state
How to Design ???

Basic NOR- Flip Flop + Two AND Gates + A Clock Signal

R

Q
CLK

nnn
Q

S
Clocked RS Flip Flop
Block Diagram of Clocked RS Flip Flop
R

Q

CLK

S

Q

Rule of RS Flip Flop : Q is always complement of Q
TRUTH TABLE
R

S

CLK

Qn

Qn+1

ACTION

Case

0

0

0

0

0

NC

1

1

1

NC

2

0

0

NC

3

1

1

NC

4

0

0

NC

5

1

1

NC

6

0

1

SET

7

1

1

SET

8

0

0

NC

9

1

1

NC

10

0

0

RESET

11

1

0

RESET

12

0

0

NC

13

1

1

NC

14

0

?

ERROR

15

1

?

ERROR

16

1
0

1

0
1

1

0

0
1

1

1

0
1
Clocked RS Flip Flop

Case 1
R

S

CLK

Qn

Qn+1

ACTION

0

0

0

0

0

NC

0
R

0

Q

10

0

CLK

10
nnn
10

S

0

0

10

Q
Clocked RS Flip Flop

Case 2
R

CLK

Qn

Qn+1

ACTION

0

R

S
0

0

1

1

NC

0

0

Q

0

0

CLK

1
nnn
0

S

0

0

1

Q
Clocked RS Flip Flop

Case 3
R

S

CLK

Qn

Qn+1

ACTION

0

0

1

0

0

NC

0
0

R
CLK

10

Q

10

1

nnn
10

S

0

0

10

Q
Clocked RS Flip Flop

Case 4
R

S

CLK

Qn

Qn+1

ACTION

0

0

1

1

1

NC

0
R
CLK

0

1

Q

0

1

nnn
0

S

0

0

1

Q
Clocked RS Flip Flop

Case 5
R

S

CLK

Qn

Qn+1

ACTION

0

1

0

0

0

NC

0

R

Q

nnn
10

S

1 0

0

10

0

CLK

0

1

0

10

Q
Clocked RS Flip Flop

Case 6
R

CLK

Qn

Qn+1

ACTION

0

R

S
1

0

1

1

NC

0

Q
0

CLK

S

1

nnn
Q
Clocked RS Flip Flop

Case 7
R

S

CLK

Qn

Qn+1

ACTION

0

1

1

0

1

SET

R

Q
CLK

nnn
Q

S
Clocked RS Flip Flop

Case 8
R

S

CLK

Qn

Qn+1

ACTION

0

1

1

1

1

SET

R

Q
CLK

nnn
Q

S
Clocked RS Flip Flop

Case 9
R

S

CLK

Qn

Qn+1

ACTION

1

0

0

0

0

NC

R

Q
CLK

nnn
Q

S
Clocked RS Flip Flop

Case 10
R

S

CLK

Qn

Qn+1

ACTION

1

0

0

1

1

NC

R

Q
CLK

nnn
Q

S
Clocked RS Flip Flop

Case 11
R

S

CLK

Qn

Qn+1

ACTION

1

0

1

0

0

RESET

R

Q
CLK

nnn
Q

S
Clocked RS Flip Flop

Case 12
R

S

CLK

Qn

Qn+1

ACTION

1

0

1

1

0

RESET

R

Q
CLK

nnn
Q

S
Clocked RS Flip Flop

Case 13
R

S

CLK

Qn

Qn+1

ACTION

1

1

0

0

0

NC

R

Q
CLK

nnn
Q

S
Clocked RS Flip Flop

Case 14
R

S

CLK

Qn

Qn+1

ACTION

1

1

0

1

1

NC

R

Q
CLK

nnn
Q

S
Clocked RS Flip Flop

Case 15
R

S

CLK

Qn

Qn+1

ACTION

1

1

1

0

?

ERROR

R

Q
CLK

nnn
Q

S
Clocked RS Flip Flop

Case 16
R

S

CLK

Qn

Qn+1

ACTION

1

1

1

1

?

ERROR

R

Q
CLK

nnn
Q

S
D – Flip Flop (Delay Flip Flop) (Clocked)

1. Stores digital info
2. Has Single input
3. It does not have Race Condition
D Flip Flop = One RS Latch + One Inverter
Single Input

D
Clk

D Flip Flop

Q
Q
D – Flip Flop (Delay Flip Flop) (Clocked)

D Flip Flop using NAND Gate
When Clock is LOW :

AND gates of Flip Flop are ENABLE

When Clock is HIGH :

AND gates of Flip Flop are DISABLE

Single Input
D
Q
CLK
Q
D – Flip Flop (Delay Flip Flop) (Clocked)
Truth Table
Clock

Input ( D)

Output (Q)

1

0

0

1

1

1

0

x

No Change

0

1

D

10

Q

10

CLK

bb
10

1

Q
1

0

1
D – Flip Flop (Delay Flip Flop) (Clocked)
Truth Table
Clock

Input ( D)

Output (Q)

1

1

1

0

CLK

0

1

D

0
x

No Change

1

0

1

Q

1 0
1

fff
1 0
Q
0

1

10
D – Flip Flop (Delay Flip Flop) (Clocked)
Truth Table
Clock

Input ( D)

Output (Q)

1

0

0

1

1

1

0

x

No Change

0

1

D
CLK

1 0

Q

1 0
0

1 0
Q
1

1

1 0
D – Flip Flop (Delay Flip Flop) (Clocked)
Truth Table
Clock

Input ( D)

Output (Q)

1

0

0

1

1

1

0

x

No Change

1

1

D
CLK

1

Q

1 0
0

1 0
Q
0

1

1
D – Flip Flop (Delay Flip Flop) (Clocked)

State Transition Diagram
Q (t)

D

Q (t+1)

0

0

0

0

1

1

1

0

0

1

1

1

D

D

0
D

1
D
JK Flip Flop
• Similar to SR Flip Flop
•Input J and K behaves like SET and RESET

When J = K = 1, the Flip Flop Output Toggles
If Q = 0, it switches to 1
if Q = 1, it switches to 0
JK Flip Flop using SR Flip Flop
S=J.Q
J

CLK
K

Q

S

R =K. Q

J

CLK

Q

R

Q

CLK

K

Q
JK Flip Flop
X
S

J

X

CLK
K

Clock

Q

CLK

R

X

X

S=J.Q

Inputs

Q

R =K. Q

J

K

Output
Qn+1

Action

X

0

0

Qn

NC

1

0

1

0

RESET

1

1

0

1

SET

1

1

1

Qn

TOGGLE
JK Flip Flop
0

S=J.Q

0

J

CLK
K

1

S 0

0

0 Q

CLK

R 0

1

0

0 Q

R =K. Q

0

Clock

Inputs
J

K

Output
Qn+1

Action

X

0

0

Qn

NC

1

0

1

0

RESET

1

1

0

1

SET

1

1

1

Qn

TOGGLE
JK Flip Flop
S=J.Q

0

J

1
1

CLK
K

S0

1

Q

CLK

Q

R0

0

0

0

R = K. Q

Clock

Inputs
J

K

Output
Qn+1

Action

X

0

0

Qn

NC

1

0

1

0

RESET

1

1

0

1

SET

1

1

1

Qn

TOGGLE
JK Flip Flop
S=J.Q
Q

S

J

CLK
K

CLK

Q

R

R =K. Q

Clock

Inputs
J

K

Output
Qn+1

Action

X

0

0

Qn

NC

1

0

1

0

RESET

1

1

0

1

SET

1

1

1

Qn

TOGGLE

More Related Content

What's hot

Computer Oragnization Flipflops
Computer Oragnization FlipflopsComputer Oragnization Flipflops
Computer Oragnization FlipflopsVanitha Chandru
 
2.3 sequantial logic circuit
2.3 sequantial logic circuit2.3 sequantial logic circuit
2.3 sequantial logic circuitWan Afirah
 
flip flop circuits and its applications
flip flop circuits and its applicationsflip flop circuits and its applications
flip flop circuits and its applicationsGaditek
 
Flip flops, counters & registers
Flip flops, counters & registersFlip flops, counters & registers
Flip flops, counters & registersDharit Unadkat
 
Introduction to Sequential circuits and flip flops
Introduction to Sequential circuits and flip flops Introduction to Sequential circuits and flip flops
Introduction to Sequential circuits and flip flops Nt Arvind
 
Flip Flop | Counters & Registers | Computer Fundamental and Organization
Flip Flop | Counters & Registers | Computer Fundamental and OrganizationFlip Flop | Counters & Registers | Computer Fundamental and Organization
Flip Flop | Counters & Registers | Computer Fundamental and OrganizationSmit Luvani
 
Sequential logic circuits flip-flop pt 3
Sequential logic circuits   flip-flop pt 3Sequential logic circuits   flip-flop pt 3
Sequential logic circuits flip-flop pt 3Sarah Sue Calbio
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flopShuaib Hotak
 
Understanding Flip Flops
Understanding Flip FlopsUnderstanding Flip Flops
Understanding Flip Flopsgavhays
 
Unit 4 clocked_flip_flops
Unit 4 clocked_flip_flopsUnit 4 clocked_flip_flops
Unit 4 clocked_flip_flopsUNAD
 
Sequential circuits in digital logic design
Sequential circuits in digital logic designSequential circuits in digital logic design
Sequential circuits in digital logic designNallapati Anindra
 
J - K & MASTERSLAVE FLIPFLOPS
J - K & MASTERSLAVE FLIPFLOPSJ - K & MASTERSLAVE FLIPFLOPS
J - K & MASTERSLAVE FLIPFLOPSKrishma Parekh
 

What's hot (20)

Latches and flip flops
Latches and flip flopsLatches and flip flops
Latches and flip flops
 
Computer Oragnization Flipflops
Computer Oragnization FlipflopsComputer Oragnization Flipflops
Computer Oragnization Flipflops
 
Flip flop
Flip flopFlip flop
Flip flop
 
2.3 sequantial logic circuit
2.3 sequantial logic circuit2.3 sequantial logic circuit
2.3 sequantial logic circuit
 
flip flop circuits and its applications
flip flop circuits and its applicationsflip flop circuits and its applications
flip flop circuits and its applications
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
 
Jk flip flop
Jk flip flopJk flip flop
Jk flip flop
 
Lect19 Engin112
Lect19 Engin112Lect19 Engin112
Lect19 Engin112
 
Flip flops, counters & registers
Flip flops, counters & registersFlip flops, counters & registers
Flip flops, counters & registers
 
Introduction to Sequential circuits and flip flops
Introduction to Sequential circuits and flip flops Introduction to Sequential circuits and flip flops
Introduction to Sequential circuits and flip flops
 
Flip Flop | Counters & Registers | Computer Fundamental and Organization
Flip Flop | Counters & Registers | Computer Fundamental and OrganizationFlip Flop | Counters & Registers | Computer Fundamental and Organization
Flip Flop | Counters & Registers | Computer Fundamental and Organization
 
Sequential logic circuits flip-flop pt 3
Sequential logic circuits   flip-flop pt 3Sequential logic circuits   flip-flop pt 3
Sequential logic circuits flip-flop pt 3
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flop
 
Understanding Flip Flops
Understanding Flip FlopsUnderstanding Flip Flops
Understanding Flip Flops
 
Unit 4 clocked_flip_flops
Unit 4 clocked_flip_flopsUnit 4 clocked_flip_flops
Unit 4 clocked_flip_flops
 
Sequential circuits in digital logic design
Sequential circuits in digital logic designSequential circuits in digital logic design
Sequential circuits in digital logic design
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
 
Flip flop
Flip flopFlip flop
Flip flop
 
J - K & MASTERSLAVE FLIPFLOPS
J - K & MASTERSLAVE FLIPFLOPSJ - K & MASTERSLAVE FLIPFLOPS
J - K & MASTERSLAVE FLIPFLOPS
 
JK FLIPFLOP WITH TOGGLE
JK FLIPFLOP WITH TOGGLEJK FLIPFLOP WITH TOGGLE
JK FLIPFLOP WITH TOGGLE
 

Viewers also liked

Viewers also liked (6)

Flipflop
FlipflopFlipflop
Flipflop
 
Sequential circuit-Digital Electronics
Sequential circuit-Digital ElectronicsSequential circuit-Digital Electronics
Sequential circuit-Digital Electronics
 
Los Flip Flops
Los Flip FlopsLos Flip Flops
Los Flip Flops
 
Flip flops (ff)
Flip flops (ff)Flip flops (ff)
Flip flops (ff)
 
Digital 1 8
Digital 1 8Digital 1 8
Digital 1 8
 
Flipflop
FlipflopFlipflop
Flipflop
 

Similar to Flip flops

08 Latches and Flipflops.pdf
08 Latches and Flipflops.pdf08 Latches and Flipflops.pdf
08 Latches and Flipflops.pdfDSOOP
 
Logic Design - Chapter 6: Flip Flops
Logic Design - Chapter 6: Flip FlopsLogic Design - Chapter 6: Flip Flops
Logic Design - Chapter 6: Flip FlopsGouda Mando
 
B sc cs i bo-de u-iv sequential circuit
B sc cs i bo-de u-iv sequential circuitB sc cs i bo-de u-iv sequential circuit
B sc cs i bo-de u-iv sequential circuitRai University
 
Types of flip flops ppt
Types of flip flops pptTypes of flip flops ppt
Types of flip flops pptViraj Shah
 
Flip flop slide
Flip flop slideFlip flop slide
Flip flop slidejyothir19
 
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptxSEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptxThanmayiKumar
 
Edge Trigged Flip Flops
Edge Trigged Flip FlopsEdge Trigged Flip Flops
Edge Trigged Flip FlopsFaizan Janjua
 
Sequentialcircuits
SequentialcircuitsSequentialcircuits
SequentialcircuitsRaghu Vamsi
 
best slides latches.pdf
best slides latches.pdfbest slides latches.pdf
best slides latches.pdfAreebaShoukat4
 
Remote control of electrical equipment(eee499.blogspot.com)
Remote control of electrical equipment(eee499.blogspot.com)Remote control of electrical equipment(eee499.blogspot.com)
Remote control of electrical equipment(eee499.blogspot.com)slmnsvn
 
Chapter4flipflop forstudents-131112193906-phpapp02
Chapter4flipflop forstudents-131112193906-phpapp02Chapter4flipflop forstudents-131112193906-phpapp02
Chapter4flipflop forstudents-131112193906-phpapp02Seshu Chakravarthy
 

Similar to Flip flops (20)

Flip flops
Flip flopsFlip flops
Flip flops
 
08 Latches and Flipflops.pdf
08 Latches and Flipflops.pdf08 Latches and Flipflops.pdf
08 Latches and Flipflops.pdf
 
flip-flop1.ppt
flip-flop1.pptflip-flop1.ppt
flip-flop1.ppt
 
10529144.ppt
10529144.ppt10529144.ppt
10529144.ppt
 
Cs1104 11
Cs1104 11Cs1104 11
Cs1104 11
 
Logic Design - Chapter 6: Flip Flops
Logic Design - Chapter 6: Flip FlopsLogic Design - Chapter 6: Flip Flops
Logic Design - Chapter 6: Flip Flops
 
B sc cs i bo-de u-iv sequential circuit
B sc cs i bo-de u-iv sequential circuitB sc cs i bo-de u-iv sequential circuit
B sc cs i bo-de u-iv sequential circuit
 
Types of flip flops ppt
Types of flip flops pptTypes of flip flops ppt
Types of flip flops ppt
 
Trts d flip flop1
Trts d flip flop1Trts d flip flop1
Trts d flip flop1
 
Flip flop slide
Flip flop slideFlip flop slide
Flip flop slide
 
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptxSEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
 
India..pptx
India..pptxIndia..pptx
India..pptx
 
Edge Trigged Flip Flops
Edge Trigged Flip FlopsEdge Trigged Flip Flops
Edge Trigged Flip Flops
 
Sequentialcircuits
SequentialcircuitsSequentialcircuits
Sequentialcircuits
 
best slides latches.pdf
best slides latches.pdfbest slides latches.pdf
best slides latches.pdf
 
Remote control of electrical equipment(eee499.blogspot.com)
Remote control of electrical equipment(eee499.blogspot.com)Remote control of electrical equipment(eee499.blogspot.com)
Remote control of electrical equipment(eee499.blogspot.com)
 
D flip Flop
D flip FlopD flip Flop
D flip Flop
 
Flip flops & registers
Flip flops & registersFlip flops & registers
Flip flops & registers
 
Sequential circuit
Sequential circuitSequential circuit
Sequential circuit
 
Chapter4flipflop forstudents-131112193906-phpapp02
Chapter4flipflop forstudents-131112193906-phpapp02Chapter4flipflop forstudents-131112193906-phpapp02
Chapter4flipflop forstudents-131112193906-phpapp02
 

More from jyoti_lakhani

CG02 Computer Graphic Systems.ppsx
CG02 Computer Graphic Systems.ppsxCG02 Computer Graphic Systems.ppsx
CG02 Computer Graphic Systems.ppsxjyoti_lakhani
 
CG04 Color Models.ppsx
CG04 Color Models.ppsxCG04 Color Models.ppsx
CG04 Color Models.ppsxjyoti_lakhani
 
CG03 Random Raster Scan displays and Color CRTs.ppsx
CG03 Random Raster Scan displays and Color CRTs.ppsxCG03 Random Raster Scan displays and Color CRTs.ppsx
CG03 Random Raster Scan displays and Color CRTs.ppsxjyoti_lakhani
 
CG02 Computer Graphic Systems.pptx
CG02 Computer Graphic Systems.pptxCG02 Computer Graphic Systems.pptx
CG02 Computer Graphic Systems.pptxjyoti_lakhani
 
CG01 introduction.ppsx
CG01 introduction.ppsxCG01 introduction.ppsx
CG01 introduction.ppsxjyoti_lakhani
 
Tree terminology and introduction to binary tree
Tree terminology and introduction to binary treeTree terminology and introduction to binary tree
Tree terminology and introduction to binary treejyoti_lakhani
 
Ds006 linked list- delete from front
Ds006   linked list- delete from frontDs006   linked list- delete from front
Ds006 linked list- delete from frontjyoti_lakhani
 
Ds06 linked list- insert a node after a given node
Ds06   linked list-  insert a node after a given nodeDs06   linked list-  insert a node after a given node
Ds06 linked list- insert a node after a given nodejyoti_lakhani
 
Ds06 linked list- insert a node at end
Ds06   linked list- insert a node at endDs06   linked list- insert a node at end
Ds06 linked list- insert a node at endjyoti_lakhani
 
Ds06 linked list- insert a node at beginning
Ds06   linked list- insert a node at beginningDs06   linked list- insert a node at beginning
Ds06 linked list- insert a node at beginningjyoti_lakhani
 
Ds06 linked list- intro and create a node
Ds06   linked list- intro and create a nodeDs06   linked list- intro and create a node
Ds06 linked list- intro and create a nodejyoti_lakhani
 
Ds04 abstract data types (adt) jyoti lakhani
Ds04 abstract data types (adt) jyoti lakhaniDs04 abstract data types (adt) jyoti lakhani
Ds04 abstract data types (adt) jyoti lakhanijyoti_lakhani
 
Ds03 part i algorithms by jyoti lakhani
Ds03 part i algorithms   by jyoti lakhaniDs03 part i algorithms   by jyoti lakhani
Ds03 part i algorithms by jyoti lakhanijyoti_lakhani
 
Ds03 algorithms jyoti lakhani
Ds03 algorithms jyoti lakhaniDs03 algorithms jyoti lakhani
Ds03 algorithms jyoti lakhanijyoti_lakhani
 
Ds02 flow chart and pseudo code
Ds02 flow chart and pseudo codeDs02 flow chart and pseudo code
Ds02 flow chart and pseudo codejyoti_lakhani
 
Ds01 data structure introduction - by jyoti lakhani
Ds01 data structure  introduction - by jyoti lakhaniDs01 data structure  introduction - by jyoti lakhani
Ds01 data structure introduction - by jyoti lakhanijyoti_lakhani
 

More from jyoti_lakhani (20)

CG02 Computer Graphic Systems.ppsx
CG02 Computer Graphic Systems.ppsxCG02 Computer Graphic Systems.ppsx
CG02 Computer Graphic Systems.ppsx
 
Projections.pptx
Projections.pptxProjections.pptx
Projections.pptx
 
CG04 Color Models.ppsx
CG04 Color Models.ppsxCG04 Color Models.ppsx
CG04 Color Models.ppsx
 
CG03 Random Raster Scan displays and Color CRTs.ppsx
CG03 Random Raster Scan displays and Color CRTs.ppsxCG03 Random Raster Scan displays and Color CRTs.ppsx
CG03 Random Raster Scan displays and Color CRTs.ppsx
 
CG02 Computer Graphic Systems.pptx
CG02 Computer Graphic Systems.pptxCG02 Computer Graphic Systems.pptx
CG02 Computer Graphic Systems.pptx
 
CG01 introduction.ppsx
CG01 introduction.ppsxCG01 introduction.ppsx
CG01 introduction.ppsx
 
Doubly linked list
Doubly linked listDoubly linked list
Doubly linked list
 
Double ended queue
Double ended queueDouble ended queue
Double ended queue
 
Tree terminology and introduction to binary tree
Tree terminology and introduction to binary treeTree terminology and introduction to binary tree
Tree terminology and introduction to binary tree
 
Priority queue
Priority queuePriority queue
Priority queue
 
Ds006 linked list- delete from front
Ds006   linked list- delete from frontDs006   linked list- delete from front
Ds006 linked list- delete from front
 
Ds06 linked list- insert a node after a given node
Ds06   linked list-  insert a node after a given nodeDs06   linked list-  insert a node after a given node
Ds06 linked list- insert a node after a given node
 
Ds06 linked list- insert a node at end
Ds06   linked list- insert a node at endDs06   linked list- insert a node at end
Ds06 linked list- insert a node at end
 
Ds06 linked list- insert a node at beginning
Ds06   linked list- insert a node at beginningDs06   linked list- insert a node at beginning
Ds06 linked list- insert a node at beginning
 
Ds06 linked list- intro and create a node
Ds06   linked list- intro and create a nodeDs06   linked list- intro and create a node
Ds06 linked list- intro and create a node
 
Ds04 abstract data types (adt) jyoti lakhani
Ds04 abstract data types (adt) jyoti lakhaniDs04 abstract data types (adt) jyoti lakhani
Ds04 abstract data types (adt) jyoti lakhani
 
Ds03 part i algorithms by jyoti lakhani
Ds03 part i algorithms   by jyoti lakhaniDs03 part i algorithms   by jyoti lakhani
Ds03 part i algorithms by jyoti lakhani
 
Ds03 algorithms jyoti lakhani
Ds03 algorithms jyoti lakhaniDs03 algorithms jyoti lakhani
Ds03 algorithms jyoti lakhani
 
Ds02 flow chart and pseudo code
Ds02 flow chart and pseudo codeDs02 flow chart and pseudo code
Ds02 flow chart and pseudo code
 
Ds01 data structure introduction - by jyoti lakhani
Ds01 data structure  introduction - by jyoti lakhaniDs01 data structure  introduction - by jyoti lakhani
Ds01 data structure introduction - by jyoti lakhani
 

Recently uploaded

Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 

Recently uploaded (20)

Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 

Flip flops

  • 1. FLIP FLOPS Binary unit capable of storing one bit – 0 or 1 Flip Flop has two stable states and a transition between these two states . Transition is depended on input. Input 0/1 HIGH / 1/ SET HIGH LOW Transition between states LOW / 0/ RESET
  • 2. Types of FLIP FLOPS FLIP FLOP RS Flip Flop JK Flip Flop T Flip Flop D Flip Flop
  • 3. RS - FLIP FLOP Block Diagram R S RS Flip Flop Q Q
  • 4. RS - FLIP FLOP RS Latch using NOR Gate A R S Q Q B
  • 5. RS - FLIP FLOP TRUTH TABLE R S Q Case 1 0 0 NC Case 2 0 1 SET Case 3 1 0 RESET Case 4 1 1 * R 0 A 1 0 0 1 1 0 S 0 1 B 0 Q Q NO CHANGE
  • 6. RS - FLIP FLOP TRUTH TABLE R S Q Case 1 0 0 NC Case 2 0 1 SET Case 3 1 0 RESET Case 4 1 1 * R 0 A 1 SET Q 0 01 S 1 B 0 Q
  • 7. RS - FLIP FLOP TRUTH TABLE R S Q Case 1 0 0 NC Case 2 0 1 SET Case 3 1 0 RESET Case 4 1 1 * R 1 0 01 0 S 0 RESET A 1 B Q Q
  • 8. RS - FLIP FLOP TRUTH TABLE R S Q Case 1 0 0 NC Case 2 0 1 SET Case 3 1 0 RESET Case 4 1 1 * R 1 A 0 0 0 S 1 0 B Q Q
  • 9. RS - FLIP FLOP RS Latch using NAND Gate (RS Flip Flop) A R S Q Q B R S Q 0 0 * 0 1 SET 1 0 RESET 1 1 NC
  • 10. RS - FLIP FLOP RS Latch using NAND Gate 0 R 0 0 S 1 A Q 1 1 1 Q B 0 R S Q 0 0 * 0 1 SET 1 0 RESET 1 1 NC Race Condition
  • 11. RS - FLIP FLOP RS Latch using NAND Gate (RS Flip Flop) R 0 A 01 01 S 1 Q 01 Q B 1 R S Q 0 0 * 0 1 SET 1 0 RESET 1 1 NC
  • 12. RS - FLIP FLOP RS Latch using NAND Gate 1 R A 10 10 Q 10 S B 0 1 R S Q 0 0 * 0 1 SET 1 0 RESET 1 1 NC Q
  • 13. RS - FLIP FLOP RS Latch using NAND Gate R 1 10 A 10 Q 10 S 1 10 B R S Q 0 0 * 0 1 SET 1 0 RESET 1 1 NC Q
  • 14. Clocked RS Flip Flop What is the Difference ???? A Clock signal is added to the input What Clock Signal will do ???? Clock Signal controls the instant at which flip flop changes the state How to Design ??? Basic NOR- Flip Flop + Two AND Gates + A Clock Signal R Q CLK nnn Q S
  • 15. Clocked RS Flip Flop Block Diagram of Clocked RS Flip Flop R Q CLK S Q Rule of RS Flip Flop : Q is always complement of Q
  • 17. Clocked RS Flip Flop Case 1 R S CLK Qn Qn+1 ACTION 0 0 0 0 0 NC 0 R 0 Q 10 0 CLK 10 nnn 10 S 0 0 10 Q
  • 18. Clocked RS Flip Flop Case 2 R CLK Qn Qn+1 ACTION 0 R S 0 0 1 1 NC 0 0 Q 0 0 CLK 1 nnn 0 S 0 0 1 Q
  • 19. Clocked RS Flip Flop Case 3 R S CLK Qn Qn+1 ACTION 0 0 1 0 0 NC 0 0 R CLK 10 Q 10 1 nnn 10 S 0 0 10 Q
  • 20. Clocked RS Flip Flop Case 4 R S CLK Qn Qn+1 ACTION 0 0 1 1 1 NC 0 R CLK 0 1 Q 0 1 nnn 0 S 0 0 1 Q
  • 21. Clocked RS Flip Flop Case 5 R S CLK Qn Qn+1 ACTION 0 1 0 0 0 NC 0 R Q nnn 10 S 1 0 0 10 0 CLK 0 1 0 10 Q
  • 22. Clocked RS Flip Flop Case 6 R CLK Qn Qn+1 ACTION 0 R S 1 0 1 1 NC 0 Q 0 CLK S 1 nnn Q
  • 23. Clocked RS Flip Flop Case 7 R S CLK Qn Qn+1 ACTION 0 1 1 0 1 SET R Q CLK nnn Q S
  • 24. Clocked RS Flip Flop Case 8 R S CLK Qn Qn+1 ACTION 0 1 1 1 1 SET R Q CLK nnn Q S
  • 25. Clocked RS Flip Flop Case 9 R S CLK Qn Qn+1 ACTION 1 0 0 0 0 NC R Q CLK nnn Q S
  • 26. Clocked RS Flip Flop Case 10 R S CLK Qn Qn+1 ACTION 1 0 0 1 1 NC R Q CLK nnn Q S
  • 27. Clocked RS Flip Flop Case 11 R S CLK Qn Qn+1 ACTION 1 0 1 0 0 RESET R Q CLK nnn Q S
  • 28. Clocked RS Flip Flop Case 12 R S CLK Qn Qn+1 ACTION 1 0 1 1 0 RESET R Q CLK nnn Q S
  • 29. Clocked RS Flip Flop Case 13 R S CLK Qn Qn+1 ACTION 1 1 0 0 0 NC R Q CLK nnn Q S
  • 30. Clocked RS Flip Flop Case 14 R S CLK Qn Qn+1 ACTION 1 1 0 1 1 NC R Q CLK nnn Q S
  • 31. Clocked RS Flip Flop Case 15 R S CLK Qn Qn+1 ACTION 1 1 1 0 ? ERROR R Q CLK nnn Q S
  • 32. Clocked RS Flip Flop Case 16 R S CLK Qn Qn+1 ACTION 1 1 1 1 ? ERROR R Q CLK nnn Q S
  • 33. D – Flip Flop (Delay Flip Flop) (Clocked) 1. Stores digital info 2. Has Single input 3. It does not have Race Condition D Flip Flop = One RS Latch + One Inverter Single Input D Clk D Flip Flop Q Q
  • 34. D – Flip Flop (Delay Flip Flop) (Clocked) D Flip Flop using NAND Gate When Clock is LOW : AND gates of Flip Flop are ENABLE When Clock is HIGH : AND gates of Flip Flop are DISABLE Single Input D Q CLK Q
  • 35. D – Flip Flop (Delay Flip Flop) (Clocked) Truth Table Clock Input ( D) Output (Q) 1 0 0 1 1 1 0 x No Change 0 1 D 10 Q 10 CLK bb 10 1 Q 1 0 1
  • 36. D – Flip Flop (Delay Flip Flop) (Clocked) Truth Table Clock Input ( D) Output (Q) 1 1 1 0 CLK 0 1 D 0 x No Change 1 0 1 Q 1 0 1 fff 1 0 Q 0 1 10
  • 37. D – Flip Flop (Delay Flip Flop) (Clocked) Truth Table Clock Input ( D) Output (Q) 1 0 0 1 1 1 0 x No Change 0 1 D CLK 1 0 Q 1 0 0 1 0 Q 1 1 1 0
  • 38. D – Flip Flop (Delay Flip Flop) (Clocked) Truth Table Clock Input ( D) Output (Q) 1 0 0 1 1 1 0 x No Change 1 1 D CLK 1 Q 1 0 0 1 0 Q 0 1 1
  • 39. D – Flip Flop (Delay Flip Flop) (Clocked) State Transition Diagram Q (t) D Q (t+1) 0 0 0 0 1 1 1 0 0 1 1 1 D D 0 D 1 D
  • 40. JK Flip Flop • Similar to SR Flip Flop •Input J and K behaves like SET and RESET When J = K = 1, the Flip Flop Output Toggles If Q = 0, it switches to 1 if Q = 1, it switches to 0
  • 41. JK Flip Flop using SR Flip Flop S=J.Q J CLK K Q S R =K. Q J CLK Q R Q CLK K Q
  • 42. JK Flip Flop X S J X CLK K Clock Q CLK R X X S=J.Q Inputs Q R =K. Q J K Output Qn+1 Action X 0 0 Qn NC 1 0 1 0 RESET 1 1 0 1 SET 1 1 1 Qn TOGGLE
  • 43. JK Flip Flop 0 S=J.Q 0 J CLK K 1 S 0 0 0 Q CLK R 0 1 0 0 Q R =K. Q 0 Clock Inputs J K Output Qn+1 Action X 0 0 Qn NC 1 0 1 0 RESET 1 1 0 1 SET 1 1 1 Qn TOGGLE
  • 44. JK Flip Flop S=J.Q 0 J 1 1 CLK K S0 1 Q CLK Q R0 0 0 0 R = K. Q Clock Inputs J K Output Qn+1 Action X 0 0 Qn NC 1 0 1 0 RESET 1 1 0 1 SET 1 1 1 Qn TOGGLE
  • 45. JK Flip Flop S=J.Q Q S J CLK K CLK Q R R =K. Q Clock Inputs J K Output Qn+1 Action X 0 0 Qn NC 1 0 1 0 RESET 1 1 0 1 SET 1 1 1 Qn TOGGLE