SlideShare a Scribd company logo
TOPIC 4
Latch & Flip-flop
Logic circuits
Combinational
 i.e NAND, NOR, AND, OR, etc
 Depend on present inputs
Combinational
 i.e NAND, NOR, AND, OR, etc
 Depend on present inputs
Sequential
 D FF, JK FF, RS FF, etc
 Depends on present and previous inputs
 Made up of an assembly of logic gates
Sequential
 D FF, JK FF, RS FF, etc
 Depends on present and previous inputs
 Made up of an assembly of logic gates
Introduction
 A sequential circuit consists of a
feedback path, and employs some
memory elements.
Combinational
logic
Memory
elements
Combinational
outputs Memory outputs
External inputs
Sequential circuit = Combinational logic + Memory Elements
 There are two types of sequential circuits:
synchronous: outputs change only at specific time
asynchronous: outputs change at any time
 Multivibrator: a class of sequential circuits. They can be:
bistable (2 stable states : SET and RESET)
monostable or one-shot (1 stable state)
astable (no stable state)
 Bistable logic devices: latches and flip-flops.
 Latches and flip-flops differ in the method used for
changing their state.
Memory Elements
 Memory element: a device which can
remember value indefinitely, or change
value on command from its inputs.
command
Memory
element stored value
Q
Memory Elements
 Memory element with clock. Flip-flops
are memory elements that change
state on clock signals.
 Clock is usually a square wave.
command
Memory
element stored value
Q
clock
Positive edges Negative edges
Positive pulses
Memory Elements
 Two types of triggering/activation:
pulse-triggered
edge-triggered
 Pulse-triggered
latches
ON = 1, OFF = 0
 Edge-triggered
flip-flops
positive edge-triggered (ON = from 0 to 1; OFF = other
time)
negative edge-triggered (ON = from 1 to 0; OFF =
other time)
Set-Reset Latch (S-R)
SR Latch
 Latch is a type of bistable(2 stable state) / multivibrator.
The latch is type of temporary storage device that has two stable state
 Active HIGH i/put S-R formed with 2 cross-couple NOR gates.
 Active LOW i/put S-R formed with 2 cross-couple NAND gates.
 O/put of each gate is connected to an i/put of the opposite gate.
 Produces the regenerative f/back that is characteristic of all latches & FFs.
ii. Active LOW i/put S-R Latch
S
R
Q
Q
S
R
S R Q Q Comments
0 0 1 1 INVALID
0 1 1 0 SET
1 0 0 1 RESET
1 1 NC NC No Change (remain
present state)
Symbol & Truth Table
i. Active HIGH i/put S-R Latch
S
R
Q
Q
S R Q Q Comments
0 0 NC NC No Change (remain
present state)
0 1 0 1 RESET
1 0 1 0 SET
1 1 0 0 INVALID
Example 1
Determine the w/form that will be observed on the Q o/put. Assume that Q is initially
Low.
S
R
Q
Q
S
R
S
R
Q
1
0
1
0
1
0
Exercise 1
Determine the Q o/put of an active HIGH i/put S-R latch if the w/form in example 1
are inverted & applied to the i/puts.
S
R
Q
Q
S
R
Q
Exercise 2
S
R
Q
Q
>1
A
B
CA
B
C
The i/puts to an active HIGH S-R latch and the circuit diagram are given below.
Draw the timing diagram o/put Q, Q’ for the latch. Assume Q start with 0.
Flip-Flop (FF)
 In digital system, FF is an electronic circuit which has two
stable states and thereby is capable of serving as one bit of
memory, bit 1 or bit 0.
Synchronous means: O/put changes state at specified point
on the triggering i/put (called “CLOCK” - CLK). Clock (C) is
designated as a ctrl input.
Change in the o/put occur in synchronization with the clock.
Flip-Flop (FF)
Edge-triggered ff: changes state either at the +ve edge
(rising edge) / at –ve (falling edge) of the clock pulse &
sensitive to its i/put only at this transition of clock.
 3 types of ff: S-R, D & J-K.
whenever we refer to the the state of the flip flop, we refer
to the state of its normal output (Q)
Input 1
Input 2
Q
Q
C
Normal output
Inverted output
Symbol of FFs
S
R
Q
Q
C
S
R
Q
Q
C
D Q
Q
C
D Q
Q
C
J
K
Q
Q
C
J
K
Q
Q
C
+ve edge triggered (No bubble ‘C’ i/put)
-ve edge triggered (Bubble ‘C’ i/put)
C
 Dynamic i/put indicator
 Identifying an edge triggered ffs, small triangle inside at
clock (C) i/put
S-R FF
 Called synchronous i/put because data on i/put transferred
to the ff o/put only on triggering edge of clock pulse.
Logic Circuit (S-R FF active Low)
No Change condition
Set
Reset
Invalid
Truth Table (+ve edge-triggered S-R FF Active high)
S R CLK Q Q Comments
0 0 X (don’t
care )
Qo Qo NC
0 1 0 1 RESET
1 0 1 0 SET
1 1 ? ? INVALID S
R
Q
Q
C
Example 1
Determine the Q & Q o/put w/form of the ff for the S-R & CLK i/put. Assume that
the +ve edge-triggered ff is initially RESET.
S
R
Q
Q
C
CLK
S
R
Q
Q
1 2 3 4 5 6
Example 2
Determine the Q o/put w/form of the ff for the S-R & CLK i/put. Assume that the -ve
edge triggered ff is initially RESET.
S
R
Q
Q
C
CLK
S
R
Q
1 2 3 4 5 6
Exercise 1
Figure indicates an Ex-OR logic gate is connected to an S-R ff. Based
on figure given, complete the truth table.
S
R
Q
Q
C
SET
CLR
A B S R Q Q’
0 0 1
0 1 0
1 0 0
1 1 1
R
0
1
1
0
Q
1
0
0
1
Q’
0
1
1
0
Truth Table (+ve edge-triggered S-R FF Active Low)
S R CLK Q Q Comments
0 0 X (don’t
care )
Qo Qo INVALID
0 1 1 0 SET
1 0 0 1 RESET
1 1 ? ? NC S
R
Q
Q
C
D FF
 Also known as Data FF
Can be constructed from SR FF or JK FF by addition of an
inverter.
Logic circuit for D FF
S
R
Q
Q
C
SET
CLR
D
CLK
D Q
Q
C
+ve edge-triggered D FF formed with S-R FF & inverter
Truth Table (+ve edge-triggered D FF)
D CLK Q Q Comments
1 1 0 SET (store 1)
0 0 1 RESET (store 0)
Q follow D at the active or triggering clock edge
Example 1
Given the w/form in figure for the D i/put & the clock, determine the Q o/put
w/form if the ff starts out RESET.
D Q
Q
C
1 2 3 4
CLK
D
Q
J-K FF
J-K FF
Circuit (+ve edge-triggered J-K FF)
Basic internal logic for a +ve edge-triggered J-K ff
Truth Table (+ve edge-triggered J-K FF)
J K CLK Q Q Comments
0 0 Qo Qo NC
0 1 0 1 RESET
1 0 1 0 SET
1 1 Qo Qo TOGGLE
J
K
Q
Q
C
Example 1
The w/form in figure are applied to the J-K & clock i/put as
indicated. Determine the Q o/put, assuming that the ff in
initially RESET.
1 2 3 4
CLK
J
Q
5
J
K
Q
Q
C
K
Toggle NC Reset Set Set
The w/form in figure are applied to the ff as shown. Determine the Q o/put,
starting in initially RESET state.
Example 2
J
K
Q
Q
C
CLK
J
K
Q
1 2 3 4 5 6 7
NC Toggle Reset Set Set Toggle Reset
Exercise 1
CLK
J
K
Q
Redraw and complete the output of the timing diagram in figure for J-K ff.
Assume +ve edge ff.
Exercise 2
Figure given indicate an EX-OR logic gate connected to a J-K ff. O/put Q of J-K
is connected to i/put R of S-R ff. Based on figure, complete the truth table in table
given.
J
K
Q
Q
C
SET
CLR
S
R
Q
Q
C
SET
CLR
A B J K S R Q of SR ff
0 0 1 1
0 1 0 0
1 0 0 0
1 1 1 1
J
0
1
1
0
R
0
1
1
0
Q of SR ff
1
0
0
1
Asynchronous Preset & Clear I/put
 FF: (SR, D & JK – synchronous i/put)
- because data on these i/put transferred to ff o/put only on
triggering edge of clock pulse.
- that is, data are transferred synchronous with clock.
 Most integrated circuit ff also have asynchronous i/put.
 These are i/put that affect the state of the ff independent of the
clock.
Normally labeled as Preset (PRE) & Clear (CLR)/ Direct Set
(SD) & Direct Reset (RD).
 An active level on the Preset i/put will set ff & an active level
on the Clear i/put will reset it.
 A logic symbol for J-K ff with Preset & Clear i/put as below:
 These i/put are active LOW, as indicated by the bubbles.
 In normal operation, Preset & Clear would not be LOW at the
same time.
J
K
Q
Q
C
PRE
CLR
J-K ff with active LOW Preset & Clear i/put
Logic diagram for a basic JK ff with active LOW Preset & Clear
Example 1
If interchange the PRE & CLR w/form in example 1, what will the Q o/put look
like?
J
K
Q
Q
C
PRE
CLR
HIGH
1 2 3 4 5 6 7 8 9
ToggleCLR active LOW
PRE active LOW
CLK
PRE
CLR
Q
Initial LOW

More Related Content

PPTX
Latches and flip flops
sheheryar ahmed
 
PDF
Sequential circuits in Digital Electronics
Vinoth Loganathan
 
PDF
Circuitos secuenciales sincronos y asincronos
Alexa Ramirez
 
PDF
Flip flop
JAGMIT Jamkhandi
 
PPT
Understanding Flip Flops
gavhays
 
PPTX
Flip flops
Shashi Lata
 
PPTX
State equations for physical systems
Sarah Krystelle
 
PPTX
D and T Flip Flop
Dhrumil Panchal
 
Latches and flip flops
sheheryar ahmed
 
Sequential circuits in Digital Electronics
Vinoth Loganathan
 
Circuitos secuenciales sincronos y asincronos
Alexa Ramirez
 
Flip flop
JAGMIT Jamkhandi
 
Understanding Flip Flops
gavhays
 
Flip flops
Shashi Lata
 
State equations for physical systems
Sarah Krystelle
 
D and T Flip Flop
Dhrumil Panchal
 

What's hot (20)

PPTX
Sequential logic circuits flip-flop pt 1
Sarah Sue Calbio
 
PPTX
Flip flop
Moni Adhikary
 
PPTX
Latches and flip flop
Shuaib Hotak
 
PPTX
Sección 2.6: Sistemas descritos mediante ecuaciones en diferencias
Juan Palacios
 
PPT
Z transfrm ppt
SWATI MISHRA
 
PPTX
Encoder and decoder
Then Murugeshwari
 
PPT
Flipflops and Excitation tables of flipflops
student
 
PDF
Binary multipliers
Syed Saeed
 
PPTX
Code conversions.pptx415.pptx
MariaJoseph591921
 
PPTX
JK flip flop in Digital electronics
Easy n Inspire L
 
PDF
Digital Counter Design
GargiKhanna1
 
PDF
Lecture 5: The Convolution Sum
Jawaher Abdulwahab Fadhil
 
PPTX
Moore and mealy machine
Mian Munib
 
PPTX
Types of flip flops ppt
Viraj Shah
 
PPTX
4. Boolean Function and Their Representation.pptx
NaveenPunia5
 
PPTX
Combinational circuits
DrSonali Vyas
 
PPTX
Hdl
Areeba Gill
 
PPTX
Assembly Language and microprocessor
Khaled Sany
 
PPT
decoder and encoder
Unsa Shakir
 
PPTX
flip flops
Unsa Shakir
 
Sequential logic circuits flip-flop pt 1
Sarah Sue Calbio
 
Flip flop
Moni Adhikary
 
Latches and flip flop
Shuaib Hotak
 
Sección 2.6: Sistemas descritos mediante ecuaciones en diferencias
Juan Palacios
 
Z transfrm ppt
SWATI MISHRA
 
Encoder and decoder
Then Murugeshwari
 
Flipflops and Excitation tables of flipflops
student
 
Binary multipliers
Syed Saeed
 
Code conversions.pptx415.pptx
MariaJoseph591921
 
JK flip flop in Digital electronics
Easy n Inspire L
 
Digital Counter Design
GargiKhanna1
 
Lecture 5: The Convolution Sum
Jawaher Abdulwahab Fadhil
 
Moore and mealy machine
Mian Munib
 
Types of flip flops ppt
Viraj Shah
 
4. Boolean Function and Their Representation.pptx
NaveenPunia5
 
Combinational circuits
DrSonali Vyas
 
Assembly Language and microprocessor
Khaled Sany
 
decoder and encoder
Unsa Shakir
 
flip flops
Unsa Shakir
 
Ad

Viewers also liked (20)

PDF
Chapter 4 flip flop for students
CT Sabariah Salihin
 
PPTX
BE PPT (FLIP FLOPS)
DHANESHRKNAIR01
 
PPTX
Computers – A Gateway to Information(Memory)
Tallat Satti
 
PDF
JK flip flops
Zakariae EL IDRISSI
 
PPTX
Flip flops, counters & registers
Dharit Unadkat
 
PPT
Sequential circuit-Digital Electronics
Bipul Roy Bpl
 
DOCX
All flipflop
DHEERAJ CHOKSE
 
PPT
Digital e chap 4
Mohammad Bappy
 
PDF
Lecture 5 1_mass_and_density
Khairul Azhar
 
DOCX
Marijuana
Maria Romina Angustia
 
PPTX
Statistics Introduction
Maria Romina Angustia
 
PDF
Lecture 8 2_magnetic_force
Khairul Azhar
 
PPT
Sequential Circuits - Flip Flops (Part 2)
Abhilash Nair
 
DOCX
Different Kinds of Probability
Maria Romina Angustia
 
PDF
Lecture 5 2_archimedes_principle
Khairul Azhar
 
PPTX
Filtre Tasarımı ve Temel Filtreler
Şarlatan Avcısı
 
PPTX
Multiplexer & de multiplexer
vishalgohel12195
 
PPT
Generating Electricity
Maria Romina Angustia
 
PDF
Coupler and power divider design in awr
Antul Kashyap
 
PPTX
Microwave Devices Lecture12
Amr Al-Awamry
 
Chapter 4 flip flop for students
CT Sabariah Salihin
 
BE PPT (FLIP FLOPS)
DHANESHRKNAIR01
 
Computers – A Gateway to Information(Memory)
Tallat Satti
 
JK flip flops
Zakariae EL IDRISSI
 
Flip flops, counters & registers
Dharit Unadkat
 
Sequential circuit-Digital Electronics
Bipul Roy Bpl
 
All flipflop
DHEERAJ CHOKSE
 
Digital e chap 4
Mohammad Bappy
 
Lecture 5 1_mass_and_density
Khairul Azhar
 
Statistics Introduction
Maria Romina Angustia
 
Lecture 8 2_magnetic_force
Khairul Azhar
 
Sequential Circuits - Flip Flops (Part 2)
Abhilash Nair
 
Different Kinds of Probability
Maria Romina Angustia
 
Lecture 5 2_archimedes_principle
Khairul Azhar
 
Filtre Tasarımı ve Temel Filtreler
Şarlatan Avcısı
 
Multiplexer & de multiplexer
vishalgohel12195
 
Generating Electricity
Maria Romina Angustia
 
Coupler and power divider design in awr
Antul Kashyap
 
Microwave Devices Lecture12
Amr Al-Awamry
 
Ad

Similar to Ds flip flop (20)

PDF
Digital Electronics-Design of SYNCHRONOUS SEQUENTIAL CIRCUITS
C.Helen Sulochana
 
PPTX
GROUP 4 DIGITAL elect S-R FLIP FLOP.pptx
LeanderNanneteMlambo
 
PPTX
Chapter 6: Sequential Logic
Er. Nawaraj Bhandari
 
PPTX
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
ThanmayiKumar
 
PPTX
Digital Fundamental Material for the student
jainyshah20
 
PPTX
DIGITAL ELECTRONICS: UNIT-III SYNCHRONOUS SEQUENTIAL CIRCUITS
Sridhar191373
 
PPTX
Unit 4 sequential circuits
AmrutaMehata
 
PPT
16148_flip-flopaaaaaaaaaaaaaaaaa1[1].ppt
AdityaGupta221734
 
PDF
498947837-chapter6.pdf sequential logic circuit latch flip flop
dhfsgf6
 
PPTX
Flip Flop | Counters & Registers | Computer Fundamental and Organization
Smit Luvani
 
PPTX
De EE unit-3.pptx
MukulThory1
 
PPTX
Flipflop
sohamdodia27
 
PPTX
Flip flop
Bhaskar Kumar Jha
 
PDF
FYBSC IT Digital Electronics Unit IV Chapter II Sequential Circuits- Flip-Flops
Arti Parab Academics
 
PPSX
Dee2034 chapter 4 flip flop for students part
SITI SABARIAH SALIHIN
 
PDF
DLD Chapter-5.pdf
TamiratDejene1
 
PDF
Chapter4flipflop forstudents-131112193906-phpapp02
Seshu Chakravarthy
 
PPT
DIGITAL ELECTRONICS PPT 1.ppt
Amitpaswan23
 
PPTX
Sr jk flip flop by AMAN GOYAT
AmanGoyat2
 
Digital Electronics-Design of SYNCHRONOUS SEQUENTIAL CIRCUITS
C.Helen Sulochana
 
GROUP 4 DIGITAL elect S-R FLIP FLOP.pptx
LeanderNanneteMlambo
 
Chapter 6: Sequential Logic
Er. Nawaraj Bhandari
 
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
ThanmayiKumar
 
Digital Fundamental Material for the student
jainyshah20
 
DIGITAL ELECTRONICS: UNIT-III SYNCHRONOUS SEQUENTIAL CIRCUITS
Sridhar191373
 
Unit 4 sequential circuits
AmrutaMehata
 
16148_flip-flopaaaaaaaaaaaaaaaaa1[1].ppt
AdityaGupta221734
 
498947837-chapter6.pdf sequential logic circuit latch flip flop
dhfsgf6
 
Flip Flop | Counters & Registers | Computer Fundamental and Organization
Smit Luvani
 
De EE unit-3.pptx
MukulThory1
 
Flipflop
sohamdodia27
 
FYBSC IT Digital Electronics Unit IV Chapter II Sequential Circuits- Flip-Flops
Arti Parab Academics
 
Dee2034 chapter 4 flip flop for students part
SITI SABARIAH SALIHIN
 
DLD Chapter-5.pdf
TamiratDejene1
 
Chapter4flipflop forstudents-131112193906-phpapp02
Seshu Chakravarthy
 
DIGITAL ELECTRONICS PPT 1.ppt
Amitpaswan23
 
Sr jk flip flop by AMAN GOYAT
AmanGoyat2
 

More from Khairul Azhar (18)

PDF
Chapter4 dc motor
Khairul Azhar
 
PDF
Chapter1 magnetic and induction
Khairul Azhar
 
PPTX
Transformer
Khairul Azhar
 
PPTX
Fire Alarm, Smoke Detector and Automatic Sprinkle System
Khairul Azhar
 
PDF
Lecture 8 3_n_8_4_magnetic_force
Khairul Azhar
 
PDF
Lecture 8 1_magnetic_field
Khairul Azhar
 
PDF
Lecture 6 4_electric_flux_and_gauss_law
Khairul Azhar
 
PDF
Lecture 6 3_coulumbs_law
Khairul Azhar
 
PDF
Lecture 6 2_ohms_law2
Khairul Azhar
 
PDF
Lecture 6 1_electricity
Khairul Azhar
 
PDF
Lecture 5 3_pascal_principle
Khairul Azhar
 
PDF
Lecture 4 static_equilibrium
Khairul Azhar
 
PDF
Lecture 4 equilibrium_of_forces
Khairul Azhar
 
PDF
Lecture 3 newton_laws
Khairul Azhar
 
PDF
Lecture 3 net_force
Khairul Azhar
 
PPTX
Lecture 2 kinematics
Khairul Azhar
 
PDF
Lecture 2 kinematics
Khairul Azhar
 
PDF
Lecture 1 physics_and_measurement
Khairul Azhar
 
Chapter4 dc motor
Khairul Azhar
 
Chapter1 magnetic and induction
Khairul Azhar
 
Transformer
Khairul Azhar
 
Fire Alarm, Smoke Detector and Automatic Sprinkle System
Khairul Azhar
 
Lecture 8 3_n_8_4_magnetic_force
Khairul Azhar
 
Lecture 8 1_magnetic_field
Khairul Azhar
 
Lecture 6 4_electric_flux_and_gauss_law
Khairul Azhar
 
Lecture 6 3_coulumbs_law
Khairul Azhar
 
Lecture 6 2_ohms_law2
Khairul Azhar
 
Lecture 6 1_electricity
Khairul Azhar
 
Lecture 5 3_pascal_principle
Khairul Azhar
 
Lecture 4 static_equilibrium
Khairul Azhar
 
Lecture 4 equilibrium_of_forces
Khairul Azhar
 
Lecture 3 newton_laws
Khairul Azhar
 
Lecture 3 net_force
Khairul Azhar
 
Lecture 2 kinematics
Khairul Azhar
 
Lecture 2 kinematics
Khairul Azhar
 
Lecture 1 physics_and_measurement
Khairul Azhar
 

Recently uploaded (20)

PDF
Zero carbon Building Design Guidelines V4
BassemOsman1
 
PDF
Unit I Part II.pdf : Security Fundamentals
Dr. Madhuri Jawale
 
PDF
20ME702-Mechatronics-UNIT-1,UNIT-2,UNIT-3,UNIT-4,UNIT-5, 2025-2026
Mohanumar S
 
PPTX
MULTI LEVEL DATA TRACKING USING COOJA.pptx
dollysharma12ab
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PPT
Understanding the Key Components and Parts of a Drone System.ppt
Siva Reddy
 
PDF
top-5-use-cases-for-splunk-security-analytics.pdf
yaghutialireza
 
PPTX
Tunnel Ventilation System in Kanpur Metro
220105053
 
PDF
2010_Book_EnvironmentalBioengineering (1).pdf
EmilianoRodriguezTll
 
PDF
Zero Carbon Building Performance standard
BassemOsman1
 
PPTX
Inventory management chapter in automation and robotics.
atisht0104
 
PPTX
Victory Precisions_Supplier Profile.pptx
victoryprecisions199
 
PPTX
quantum computing transition from classical mechanics.pptx
gvlbcy
 
PPTX
MT Chapter 1.pptx- Magnetic particle testing
ABCAnyBodyCanRelax
 
PDF
Biodegradable Plastics: Innovations and Market Potential (www.kiu.ac.ug)
publication11
 
PPTX
22PCOAM21 Session 2 Understanding Data Source.pptx
Guru Nanak Technical Institutions
 
PPTX
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
PDF
Cryptography and Information :Security Fundamentals
Dr. Madhuri Jawale
 
PPTX
IoT_Smart_Agriculture_Presentations.pptx
poojakumari696707
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
Zero carbon Building Design Guidelines V4
BassemOsman1
 
Unit I Part II.pdf : Security Fundamentals
Dr. Madhuri Jawale
 
20ME702-Mechatronics-UNIT-1,UNIT-2,UNIT-3,UNIT-4,UNIT-5, 2025-2026
Mohanumar S
 
MULTI LEVEL DATA TRACKING USING COOJA.pptx
dollysharma12ab
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
Understanding the Key Components and Parts of a Drone System.ppt
Siva Reddy
 
top-5-use-cases-for-splunk-security-analytics.pdf
yaghutialireza
 
Tunnel Ventilation System in Kanpur Metro
220105053
 
2010_Book_EnvironmentalBioengineering (1).pdf
EmilianoRodriguezTll
 
Zero Carbon Building Performance standard
BassemOsman1
 
Inventory management chapter in automation and robotics.
atisht0104
 
Victory Precisions_Supplier Profile.pptx
victoryprecisions199
 
quantum computing transition from classical mechanics.pptx
gvlbcy
 
MT Chapter 1.pptx- Magnetic particle testing
ABCAnyBodyCanRelax
 
Biodegradable Plastics: Innovations and Market Potential (www.kiu.ac.ug)
publication11
 
22PCOAM21 Session 2 Understanding Data Source.pptx
Guru Nanak Technical Institutions
 
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
Cryptography and Information :Security Fundamentals
Dr. Madhuri Jawale
 
IoT_Smart_Agriculture_Presentations.pptx
poojakumari696707
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 

Ds flip flop

  • 1. TOPIC 4 Latch & Flip-flop
  • 2. Logic circuits Combinational  i.e NAND, NOR, AND, OR, etc  Depend on present inputs Combinational  i.e NAND, NOR, AND, OR, etc  Depend on present inputs Sequential  D FF, JK FF, RS FF, etc  Depends on present and previous inputs  Made up of an assembly of logic gates Sequential  D FF, JK FF, RS FF, etc  Depends on present and previous inputs  Made up of an assembly of logic gates
  • 3. Introduction  A sequential circuit consists of a feedback path, and employs some memory elements. Combinational logic Memory elements Combinational outputs Memory outputs External inputs Sequential circuit = Combinational logic + Memory Elements
  • 4.  There are two types of sequential circuits: synchronous: outputs change only at specific time asynchronous: outputs change at any time  Multivibrator: a class of sequential circuits. They can be: bistable (2 stable states : SET and RESET) monostable or one-shot (1 stable state) astable (no stable state)  Bistable logic devices: latches and flip-flops.  Latches and flip-flops differ in the method used for changing their state.
  • 5. Memory Elements  Memory element: a device which can remember value indefinitely, or change value on command from its inputs. command Memory element stored value Q
  • 6. Memory Elements  Memory element with clock. Flip-flops are memory elements that change state on clock signals.  Clock is usually a square wave. command Memory element stored value Q clock Positive edges Negative edges Positive pulses
  • 7. Memory Elements  Two types of triggering/activation: pulse-triggered edge-triggered  Pulse-triggered latches ON = 1, OFF = 0  Edge-triggered flip-flops positive edge-triggered (ON = from 0 to 1; OFF = other time) negative edge-triggered (ON = from 1 to 0; OFF = other time)
  • 8. Set-Reset Latch (S-R) SR Latch  Latch is a type of bistable(2 stable state) / multivibrator. The latch is type of temporary storage device that has two stable state  Active HIGH i/put S-R formed with 2 cross-couple NOR gates.  Active LOW i/put S-R formed with 2 cross-couple NAND gates.  O/put of each gate is connected to an i/put of the opposite gate.  Produces the regenerative f/back that is characteristic of all latches & FFs.
  • 9. ii. Active LOW i/put S-R Latch S R Q Q S R S R Q Q Comments 0 0 1 1 INVALID 0 1 1 0 SET 1 0 0 1 RESET 1 1 NC NC No Change (remain present state) Symbol & Truth Table i. Active HIGH i/put S-R Latch S R Q Q S R Q Q Comments 0 0 NC NC No Change (remain present state) 0 1 0 1 RESET 1 0 1 0 SET 1 1 0 0 INVALID
  • 10. Example 1 Determine the w/form that will be observed on the Q o/put. Assume that Q is initially Low. S R Q Q S R S R Q 1 0 1 0 1 0
  • 11. Exercise 1 Determine the Q o/put of an active HIGH i/put S-R latch if the w/form in example 1 are inverted & applied to the i/puts. S R Q Q S R Q
  • 12. Exercise 2 S R Q Q >1 A B CA B C The i/puts to an active HIGH S-R latch and the circuit diagram are given below. Draw the timing diagram o/put Q, Q’ for the latch. Assume Q start with 0.
  • 13. Flip-Flop (FF)  In digital system, FF is an electronic circuit which has two stable states and thereby is capable of serving as one bit of memory, bit 1 or bit 0. Synchronous means: O/put changes state at specified point on the triggering i/put (called “CLOCK” - CLK). Clock (C) is designated as a ctrl input. Change in the o/put occur in synchronization with the clock.
  • 14. Flip-Flop (FF) Edge-triggered ff: changes state either at the +ve edge (rising edge) / at –ve (falling edge) of the clock pulse & sensitive to its i/put only at this transition of clock.  3 types of ff: S-R, D & J-K. whenever we refer to the the state of the flip flop, we refer to the state of its normal output (Q) Input 1 Input 2 Q Q C Normal output Inverted output
  • 15. Symbol of FFs S R Q Q C S R Q Q C D Q Q C D Q Q C J K Q Q C J K Q Q C +ve edge triggered (No bubble ‘C’ i/put) -ve edge triggered (Bubble ‘C’ i/put) C  Dynamic i/put indicator  Identifying an edge triggered ffs, small triangle inside at clock (C) i/put
  • 16. S-R FF  Called synchronous i/put because data on i/put transferred to the ff o/put only on triggering edge of clock pulse. Logic Circuit (S-R FF active Low)
  • 18. Set
  • 19. Reset
  • 21. Truth Table (+ve edge-triggered S-R FF Active high) S R CLK Q Q Comments 0 0 X (don’t care ) Qo Qo NC 0 1 0 1 RESET 1 0 1 0 SET 1 1 ? ? INVALID S R Q Q C
  • 22. Example 1 Determine the Q & Q o/put w/form of the ff for the S-R & CLK i/put. Assume that the +ve edge-triggered ff is initially RESET. S R Q Q C CLK S R Q Q 1 2 3 4 5 6
  • 23. Example 2 Determine the Q o/put w/form of the ff for the S-R & CLK i/put. Assume that the -ve edge triggered ff is initially RESET. S R Q Q C CLK S R Q 1 2 3 4 5 6
  • 24. Exercise 1 Figure indicates an Ex-OR logic gate is connected to an S-R ff. Based on figure given, complete the truth table. S R Q Q C SET CLR A B S R Q Q’ 0 0 1 0 1 0 1 0 0 1 1 1 R 0 1 1 0 Q 1 0 0 1 Q’ 0 1 1 0
  • 25. Truth Table (+ve edge-triggered S-R FF Active Low) S R CLK Q Q Comments 0 0 X (don’t care ) Qo Qo INVALID 0 1 1 0 SET 1 0 0 1 RESET 1 1 ? ? NC S R Q Q C
  • 26. D FF  Also known as Data FF Can be constructed from SR FF or JK FF by addition of an inverter. Logic circuit for D FF
  • 27. S R Q Q C SET CLR D CLK D Q Q C +ve edge-triggered D FF formed with S-R FF & inverter Truth Table (+ve edge-triggered D FF) D CLK Q Q Comments 1 1 0 SET (store 1) 0 0 1 RESET (store 0) Q follow D at the active or triggering clock edge
  • 28. Example 1 Given the w/form in figure for the D i/put & the clock, determine the Q o/put w/form if the ff starts out RESET. D Q Q C 1 2 3 4 CLK D Q
  • 30. J-K FF Circuit (+ve edge-triggered J-K FF) Basic internal logic for a +ve edge-triggered J-K ff
  • 31. Truth Table (+ve edge-triggered J-K FF) J K CLK Q Q Comments 0 0 Qo Qo NC 0 1 0 1 RESET 1 0 1 0 SET 1 1 Qo Qo TOGGLE J K Q Q C
  • 32. Example 1 The w/form in figure are applied to the J-K & clock i/put as indicated. Determine the Q o/put, assuming that the ff in initially RESET. 1 2 3 4 CLK J Q 5 J K Q Q C K Toggle NC Reset Set Set
  • 33. The w/form in figure are applied to the ff as shown. Determine the Q o/put, starting in initially RESET state. Example 2 J K Q Q C CLK J K Q 1 2 3 4 5 6 7 NC Toggle Reset Set Set Toggle Reset
  • 34. Exercise 1 CLK J K Q Redraw and complete the output of the timing diagram in figure for J-K ff. Assume +ve edge ff.
  • 35. Exercise 2 Figure given indicate an EX-OR logic gate connected to a J-K ff. O/put Q of J-K is connected to i/put R of S-R ff. Based on figure, complete the truth table in table given. J K Q Q C SET CLR S R Q Q C SET CLR A B J K S R Q of SR ff 0 0 1 1 0 1 0 0 1 0 0 0 1 1 1 1 J 0 1 1 0 R 0 1 1 0 Q of SR ff 1 0 0 1
  • 36. Asynchronous Preset & Clear I/put  FF: (SR, D & JK – synchronous i/put) - because data on these i/put transferred to ff o/put only on triggering edge of clock pulse. - that is, data are transferred synchronous with clock.  Most integrated circuit ff also have asynchronous i/put.  These are i/put that affect the state of the ff independent of the clock.
  • 37. Normally labeled as Preset (PRE) & Clear (CLR)/ Direct Set (SD) & Direct Reset (RD).  An active level on the Preset i/put will set ff & an active level on the Clear i/put will reset it.
  • 38.  A logic symbol for J-K ff with Preset & Clear i/put as below:  These i/put are active LOW, as indicated by the bubbles.  In normal operation, Preset & Clear would not be LOW at the same time. J K Q Q C PRE CLR J-K ff with active LOW Preset & Clear i/put
  • 39. Logic diagram for a basic JK ff with active LOW Preset & Clear
  • 40. Example 1 If interchange the PRE & CLR w/form in example 1, what will the Q o/put look like? J K Q Q C PRE CLR HIGH 1 2 3 4 5 6 7 8 9 ToggleCLR active LOW PRE active LOW CLK PRE CLR Q Initial LOW

Editor's Notes

  • #25: 0 1 0 1 0 1 1 0 1 0 1 0
  • #36: J R Q 0 0 1 1 1 0 1 1 0 0 0 1