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

Contenu connexe

Tendances

Chapter 4 flip flop for students
Chapter 4 flip flop for studentsChapter 4 flip flop for students
Chapter 4 flip flop for students
CT Sabariah Salihin
 

Tendances (20)

latches
 latches latches
latches
 
Counters
CountersCounters
Counters
 
555 timer as Astable Multivibrator
555 timer as Astable Multivibrator555 timer as Astable Multivibrator
555 timer as Astable Multivibrator
 
carry look ahead adder
carry look ahead addercarry look ahead adder
carry look ahead adder
 
Introduction to Counters
Introduction to CountersIntroduction to Counters
Introduction to Counters
 
Differentiator OP Amp
Differentiator OP AmpDifferentiator OP Amp
Differentiator OP Amp
 
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
 
Latches and flip flops
Latches and flip flopsLatches and flip flops
Latches and flip flops
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
 
Chapter 4 flip flop for students
Chapter 4 flip flop for studentsChapter 4 flip flop for students
Chapter 4 flip flop for students
 
Combinational circuit
Combinational circuitCombinational circuit
Combinational circuit
 
Delta modulation
Delta modulationDelta modulation
Delta modulation
 
Digital Logic circuit
Digital Logic circuitDigital Logic circuit
Digital Logic circuit
 
Counters
CountersCounters
Counters
 
JK flip flops
JK flip flopsJK flip flops
JK flip flops
 
JK flip flop in Digital electronics
JK flip flop in Digital electronicsJK flip flop in Digital electronics
JK flip flop in Digital electronics
 
Ripple counter
Ripple counterRipple counter
Ripple counter
 
Flip-Flop || Digital Electronics
Flip-Flop || Digital ElectronicsFlip-Flop || Digital Electronics
Flip-Flop || Digital Electronics
 
STLD-Combinational logic design
STLD-Combinational  logic design STLD-Combinational  logic design
STLD-Combinational logic design
 
Sequential circuits in Digital Electronics
Sequential circuits in Digital ElectronicsSequential circuits in Digital Electronics
Sequential circuits in Digital Electronics
 

En vedette

BE PPT (FLIP FLOPS)
BE PPT (FLIP FLOPS)BE PPT (FLIP FLOPS)
BE PPT (FLIP FLOPS)
DHANESHRKNAIR01
 
Sequential Circuits - Flip Flops (Part 2)
Sequential Circuits - Flip Flops (Part 2)Sequential Circuits - Flip Flops (Part 2)
Sequential Circuits - Flip Flops (Part 2)
Abhilash Nair
 
Microwave Devices Lecture12
Microwave Devices Lecture12Microwave Devices Lecture12
Microwave Devices Lecture12
Amr Al-Awamry
 

En vedette (20)

BE PPT (FLIP FLOPS)
BE PPT (FLIP FLOPS)BE PPT (FLIP FLOPS)
BE PPT (FLIP FLOPS)
 
Computers – A Gateway to Information(Memory)
Computers – A Gateway to Information(Memory)Computers – A Gateway to Information(Memory)
Computers – A Gateway to Information(Memory)
 
Sequential circuit-Digital Electronics
Sequential circuit-Digital ElectronicsSequential circuit-Digital Electronics
Sequential circuit-Digital Electronics
 
All flipflop
All flipflopAll flipflop
All flipflop
 
Digital e chap 4
Digital e   chap 4Digital e   chap 4
Digital e chap 4
 
Lecture 5 1_mass_and_density
Lecture 5 1_mass_and_densityLecture 5 1_mass_and_density
Lecture 5 1_mass_and_density
 
Marijuana
MarijuanaMarijuana
Marijuana
 
Statistics Introduction
Statistics IntroductionStatistics Introduction
Statistics Introduction
 
Lecture 8 2_magnetic_force
Lecture 8 2_magnetic_forceLecture 8 2_magnetic_force
Lecture 8 2_magnetic_force
 
Sequential Circuits - Flip Flops (Part 2)
Sequential Circuits - Flip Flops (Part 2)Sequential Circuits - Flip Flops (Part 2)
Sequential Circuits - Flip Flops (Part 2)
 
Different Kinds of Probability
Different Kinds of ProbabilityDifferent Kinds of Probability
Different Kinds of Probability
 
Lecture 5 2_archimedes_principle
Lecture 5 2_archimedes_principleLecture 5 2_archimedes_principle
Lecture 5 2_archimedes_principle
 
Filtre Tasarımı ve Temel Filtreler
Filtre Tasarımı ve Temel FiltrelerFiltre Tasarımı ve Temel Filtreler
Filtre Tasarımı ve Temel Filtreler
 
Multiplexer & de multiplexer
Multiplexer & de multiplexerMultiplexer & de multiplexer
Multiplexer & de multiplexer
 
Generating Electricity
Generating ElectricityGenerating Electricity
Generating Electricity
 
Coupler and power divider design in awr
Coupler and power divider design in awrCoupler and power divider design in awr
Coupler and power divider design in awr
 
Microwave Devices Lecture12
Microwave Devices Lecture12Microwave Devices Lecture12
Microwave Devices Lecture12
 
Semiconductor memory
Semiconductor memorySemiconductor memory
Semiconductor memory
 
Electrical Safety
Electrical SafetyElectrical Safety
Electrical Safety
 
Flipflops JK T SR D All FlipFlop Slides
Flipflops JK T SR D All FlipFlop SlidesFlipflops JK T SR D All FlipFlop Slides
Flipflops JK T SR D All FlipFlop Slides
 

Similaire à Ds flip flop

SEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptxSEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
ThanmayiKumar
 
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptxDigital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
UtsavDas21
 

Similaire à Ds flip flop (20)

Chapter 6: Sequential Logic
Chapter 6: Sequential LogicChapter 6: Sequential Logic
Chapter 6: Sequential Logic
 
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptxSEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
 
Digital Fundamental Material for the student
Digital Fundamental Material for the studentDigital Fundamental Material for the student
Digital Fundamental Material for the student
 
Flip flops
Flip flopsFlip flops
Flip flops
 
Unit 4 sequential circuits
Unit 4  sequential circuitsUnit 4  sequential circuits
Unit 4 sequential circuits
 
Lecture 1 6844
Lecture 1 6844Lecture 1 6844
Lecture 1 6844
 
De EE unit-3.pptx
De EE unit-3.pptxDe EE unit-3.pptx
De EE unit-3.pptx
 
Flipflop
FlipflopFlipflop
Flipflop
 
Flip flop
Flip flopFlip flop
Flip flop
 
FYBSC IT Digital Electronics Unit IV Chapter II Sequential Circuits- Flip-Flops
FYBSC IT Digital Electronics Unit IV Chapter II Sequential Circuits- Flip-FlopsFYBSC IT Digital Electronics Unit IV Chapter II Sequential Circuits- Flip-Flops
FYBSC IT Digital Electronics Unit IV Chapter II Sequential Circuits- Flip-Flops
 
Dee2034 chapter 4 flip flop for students part
Dee2034 chapter 4 flip flop  for students partDee2034 chapter 4 flip flop  for students part
Dee2034 chapter 4 flip flop for students part
 
DLD Chapter-5.pdf
DLD Chapter-5.pdfDLD Chapter-5.pdf
DLD Chapter-5.pdf
 
Chapter4flipflop forstudents-131112193906-phpapp02
Chapter4flipflop forstudents-131112193906-phpapp02Chapter4flipflop forstudents-131112193906-phpapp02
Chapter4flipflop forstudents-131112193906-phpapp02
 
DIGITAL ELECTRONICS PPT 1.ppt
DIGITAL ELECTRONICS PPT 1.pptDIGITAL ELECTRONICS PPT 1.ppt
DIGITAL ELECTRONICS PPT 1.ppt
 
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
 
Sequentialcircuits
SequentialcircuitsSequentialcircuits
Sequentialcircuits
 
UNIT - III.pptx
UNIT - III.pptxUNIT - III.pptx
UNIT - III.pptx
 
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
 
Flipflops and Excitation tables of flipflops
Flipflops and Excitation tables of flipflopsFlipflops and Excitation tables of flipflops
Flipflops and Excitation tables of flipflops
 
B sc3 unit 5 sequencial lc
B sc3 unit 5 sequencial lcB sc3 unit 5 sequencial lc
B sc3 unit 5 sequencial lc
 

Plus de Khairul Azhar (18)

Chapter4 dc motor
Chapter4 dc motor Chapter4 dc motor
Chapter4 dc motor
 
Chapter1 magnetic and induction
Chapter1 magnetic and inductionChapter1 magnetic and induction
Chapter1 magnetic and induction
 
Transformer
TransformerTransformer
Transformer
 
Fire Alarm, Smoke Detector and Automatic Sprinkle System
Fire Alarm, Smoke Detector and Automatic Sprinkle SystemFire Alarm, Smoke Detector and Automatic Sprinkle System
Fire Alarm, Smoke Detector and Automatic Sprinkle System
 
Lecture 8 3_n_8_4_magnetic_force
Lecture 8 3_n_8_4_magnetic_forceLecture 8 3_n_8_4_magnetic_force
Lecture 8 3_n_8_4_magnetic_force
 
Lecture 8 1_magnetic_field
Lecture 8 1_magnetic_fieldLecture 8 1_magnetic_field
Lecture 8 1_magnetic_field
 
Lecture 6 4_electric_flux_and_gauss_law
Lecture 6 4_electric_flux_and_gauss_lawLecture 6 4_electric_flux_and_gauss_law
Lecture 6 4_electric_flux_and_gauss_law
 
Lecture 6 3_coulumbs_law
Lecture 6 3_coulumbs_lawLecture 6 3_coulumbs_law
Lecture 6 3_coulumbs_law
 
Lecture 6 2_ohms_law2
Lecture 6 2_ohms_law2Lecture 6 2_ohms_law2
Lecture 6 2_ohms_law2
 
Lecture 6 1_electricity
Lecture 6 1_electricityLecture 6 1_electricity
Lecture 6 1_electricity
 
Lecture 5 3_pascal_principle
Lecture 5 3_pascal_principleLecture 5 3_pascal_principle
Lecture 5 3_pascal_principle
 
Lecture 4 static_equilibrium
Lecture 4 static_equilibriumLecture 4 static_equilibrium
Lecture 4 static_equilibrium
 
Lecture 4 equilibrium_of_forces
Lecture 4 equilibrium_of_forcesLecture 4 equilibrium_of_forces
Lecture 4 equilibrium_of_forces
 
Lecture 3 newton_laws
Lecture 3 newton_lawsLecture 3 newton_laws
Lecture 3 newton_laws
 
Lecture 3 net_force
Lecture 3 net_forceLecture 3 net_force
Lecture 3 net_force
 
Lecture 2 kinematics
Lecture 2 kinematicsLecture 2 kinematics
Lecture 2 kinematics
 
Lecture 2 kinematics
Lecture 2 kinematicsLecture 2 kinematics
Lecture 2 kinematics
 
Lecture 1 physics_and_measurement
Lecture 1 physics_and_measurementLecture 1 physics_and_measurement
Lecture 1 physics_and_measurement
 

Dernier

AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 

Dernier (20)

Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 

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

Notes de l'éditeur

  1. 0 1 0 1 0 1 1 0 1 0 1 0
  2. J R Q 0 0 1 1 1 0 1 1 0 0 0 1