SlideShare a Scribd company logo
Sequential Circuits
Latches and Flip-Flops
Dr. Sonali Vyas
Introduction
 Output depends on current as well as
past inputs
 Depends on the history
 Have “memory” property
 Sequential circuit consists of
» Combinational circuit
» Feedback circuit
 Past input is encoded into a set of state
variables
» Uses feedback (to feed the state
variables)
– Simple feedback
– Uses flip flops
Types of Sequential Circuits
In Asynchronous sequential circuits the output of the logic circuit can
change state at any time, as soon as any input changes its state
whereas in the case of synchronous systems a signal namely clock
signal is used to determine/control the exact time at which any output
can change its state. These are also called as clocked sequential
circuits.
Flip Flop
 A flip flop is a binary storage device. It
can store binary bit either 0 or 1. It has two sta
ble states HIGH and LOW i.e. 1 and 0. It has t
he
property to remain in one state indefinitely until
it is directed by an input signal to switch over t
o the other state.
 It is also called bistable multivibrator.
 The basic formation of flip flop is to store data.
Flip Flop Types:
 SR ("set-reset")
 D ("data" or "delay")
 T ("toggle")
 JK
Flip-flops can be either simple (transparent or
asynchronous) or clocked (synchronous); the
transparent ones are commonly called latches.
The word latch is mainly used for storage
elements, while clocked devices are described
as flip-flops
SR Flip-flop
 The SR (Set-Reset) flip-flop is one of the
simplest sequential circuits and consists of
two gates connected .
 The output of each gate is connected to
one of the inputs of the other gate.
 The circuit has two active low inputs
marked S’ and R’, as well as two outputs,
Q and Q’.
RS Latch
 RS latch have two inputs, S and R. S is called
set and R is called reset.
 The S input is used to produce HIGH on Q ( i.e.
store binary 1 in flip-flop).
 The R input is used to produce LOW on Q (i.e.
store binary 0 in flip-flop). Q' is Q
complementary output, so it always holds the
opposite value of Q.
 The output of the S-R latch depends on current
as well as previous inputs or state, and its state
(value stored) can change as soon as its inputs
change.
•When S = 0 and R = 0: If we assume Q = 1 and Q' = 0 as initial condition, then
output Q after input is applied would be Q = (R + Q')' = 1 and Q' = (S + Q)' = 0.
Assuming Q = 0 and Q' = 1 as initial condition, then output Q after the input applied
would be Q = (R + Q')' = 0 and Q' = (S + Q)' = 1. So it is clear that when both S and
R inputs are LOW, the output is retained as before the application of inputs. (i.e.
there is no state change).
•When S = 1 and R = 0: If we assume Q = 1 and Q' = 0 as initial condition, then
output Q after input is applied would be Q = (R + Q')' = 1 and Q' = (S + Q)' = 0.
Assuming Q = 0 and Q' = 1 as initial condition, then output Q after the input applied
would be Q = (R + Q')' = 1 and Q' = (S + Q)' = 0. So in simple words when S is
HIGH and R is LOW, output Q is HIGH.
•When S = 0 and R = 1: If we assume Q = 1 and Q' = 0 as initial condition, then
output Q after input is applied would be Q = (R + Q')' = 0 and Q' = (S + Q)' = 1.
Assuming Q = 0 and Q' = 1 as initial condition, then output Q after the input applied
would be Q = (R + Q')' = 0 and Q' = (S + Q)' = 1. So in simple words when S is
LOW and R is HIGH, output Q is LOW.
•When S = 1 and R =1 : No matter what state Q and Q' are in, application of 1 at
input of NOR gate always results in 0 at output of NOR gate, which results in both Q
and Q' set to LOW (i.e. Q = Q'). LOW in both the outputs basically is wrong, so this
case is invalid
Clocked RS Flip Flop
 The RS latch flip flop required the direct input but no clock. It is
very use full to add clock to control precisely the time at which the
flip flop changes the state of its output.
 In the clocked RS flip flop the appropriate levels applied to their
inputs are blocked till the receipt of a pulse from an other source
called clock. The flip flop changes state only when clock pulse is
applied depending upon the inputs.
 This circuit is formed by adding two AND gates at inputs to the RS
flip flop. In addition to control inputs Set (S) and Reset (R), there is
a clock input (C) also.
The first five lines in the truth table give the static input and output
states.
The last four lines show the state of the outputs after a complete
clock pulse p.
JK Flip Flop
 One of the most useful and versatile flip flop is
the JK flip flop the unique features of a JK flip
flop are:
◦ If the J and K input are both at 1 and the clock pulse is
applied, then the output will change state, regardless
of its previous condition.
◦ If both J and K inputs are at 0 and the clock pulse is
applied there will be no change in the output.
◦ There is no indeterminate condition, in the operation
of JK flip flop i.e. it has no ambiguous state.
 When J = 0 and K = 0,
These J and K inputs disable the NAND gates, therefore
clock pulse have no effect on the flip flop. In other
words, Q returns it last value.
 When J = 0 and K = 1,
The upper NAND gate is disabled the lower NAND gate
is enabled if Q is 1 therefore, flip flop will be reset (Q =
0 , Q’ =1)if not already in that state.
 When J = 1 and K = 0
The lower NAND gate is disabled and the upper NAND
gate is enabled if is at 1, As a result we will be able to
set the flip flop ( Q = 1, Q’ = 0) if not already set.
 When J and K are both high, the clock pulses cause
the JK flip flop to toggle.
Master Slave JK Flip Flop
 A master slave flip flop contains two clocked
flip flops. The first is called master and the
second slave.
 When the clock is high the master is active.
The output of the master is set or reset
according to the state of the input.
 When clock becomes low the output of the
slave flip flop changes because it become
active during low clock period.
 The final output of master slave flip flop is
the output of the slave flip flop. So the
output of master slave flip flop is available at
the end of a clock pulse.
Delay Flip Flop or D-Flip Flop
 The D type flip-flop has one data input 'D' and a clock
input. The circuit edge triggers on the clock input. The
flip-flop also has two outputs Q and Q' (where Q' is the
reverse of Q).
 Such type of flip flop is a modification of clocked RS
flip flop gates from a basic Latch flip flop and NOR
gates modify it in to a clock RS flip flop.
 The D input goes directly to S input and its complement
through NOT gate, is applied to the R input.
 When the clock is low, both AND gates
are disabled, therefore D can change
values without affecting the value of Q.
 When the clock is high, both AND gates
are enabled. In this case, Q is forced equal
to D
 When the clock again goes low, Q retains
or stores the last value of D
Toggle Flip Flop or T-Flip Flop
 The operation of the T type flip-flop is as
follows:
 A '0' input to 'T' will make the next state
the same as the present state (i.e. T = 0
present state = 0 therefore next state = 0).
 However a '1' input to 'T' will change the
next state to the inverse of the present
state (i.e. T = 1 present state = 0 therefore
next state = 1).
Counters
 A counter is a register that goes through a
predetermined sequence of states upon the application
of clock pulses
Asynchronous counters
Synchronous counters
 Asynchronous Counters (or Ripple counters)
 the clock signal (CLK) is only used to clock the first FF.
Each FF (except the first FF) is clocked by the preceding
FF.
 Synchronous Counters
the clock signal (CLK) is applied to all FF, which means
that all FF shares the same clock signal
thus the output will change at the same time
Asynchronous Counters
 The Asynchronous Counter that counts 4 number
starts from 00 01 10 11 and back to 00 is called
MOD-4 Ripple (Asynchronous) Up-Counter.
 The external clock is connected to the clock input of
the first flip-flop (FF0) only. So, FF0 changes state at
the falling edge of each clock pulse, but FF1 changes
only when triggered by the falling edge of the Q
output of FF0.
 Because of the inherent propagation delay through a
flip-flop, the transition of the input clock pulse and a
transition of the Q output of FF0 can never occur at
exactly the same time.
 Therefore, the flip-flops cannot be triggered
simultaneously, producing an asynchronous operation.
The transitions of Q0, Q1 and CLK in the timing diagram below are shown as
simultaneous even though this is an asynchronous counter. Actually, there is
some small delay between the CLK, Q0 and Q1 transitions.
Usually, all the CLEAR inputs are connected together, so that a single pulse can
clear all the flip-flops before counting starts.
The clock pulse fed into FF0 is rippled through the other counters after
propagation delays, like a ripple on water, hence the name Ripple Counter.
 A counter with n flip-flops can have 2 to the power
n states. The number of states in a counter is known as
its mod (modulo) number. Thus a 2-bit counter is
a mod-4 counter.
 For a 4-bit counter, the range of the count is 0000 to
1111 (24-1). A counter may count up or count down or
count up and down depending on the input control. The
count sequence usually repeats itself.
 When counting up, the count sequence goes from 0000,
0001, 0010, ... 1110 , 1111 , 0000, 0001, ... etc.
 When counting down the count sequence goes in the
opposite manner: 1111, 1110, ... 0010, 0001, 0000, 1111,
1110, ... etc.
Synchronous counters
 A synchronous counter, is one whose output bits
change state simultaneously, with no ripple.
 The external clock signal is connected to the
clock input of every individual flip-flop within
the counter so that all of the flip-flops are clocked
together simultaneously (in parallel) at the same
time giving a fixed time relationship.
 The result of this synchronization is that all the
individual output bits changing state at exactly the
same time in response to the common clock signal
with no ripple effect.
 The external clock pulses are fed directly to each of the J-K flip-
flops in the counter chain and that both the J and K inputs are all
tied together in toggle mode.
 In flip-flop FFA(LSB) they are connected HIGH, logic “1”
allowing the flip-flop to toggle on every clock pulse. Then the
synchronous counter follows a predetermined sequence of states
in response to the common clock signal, advancing one state for
each pulse.
 The J and K inputs of flip-flop FFB are connected directly to the
output QA of flip-flop FFA, but the J and K inputs of flip-
flops FFC and FFD are driven from separate AND gates which are
also supplied with signals from the input and output of the
previous stage.
 These additional AND gates generate the required logic for the JK
inputs of the next stage.
 When all the counter stages are triggered in parallel at the same
time, the maximum operating frequency of this type of frequency
counter is much higher than that for a similar asynchronous
counter circuit.

More Related Content

What's hot

Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic Circuit
Ramasubbu .P
 
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
Sid Rehmani
 
Sequential circuits in digital logic design
Sequential circuits in digital logic designSequential circuits in digital logic design
Sequential circuits in digital logic design
Nallapati Anindra
 
Chapter 6: Sequential Logic
Chapter 6: Sequential LogicChapter 6: Sequential Logic
Chapter 6: Sequential Logic
Er. Nawaraj Bhandari
 
D Flip Flop
D Flip Flop D Flip Flop
D Flip Flop
Pradhan Rishi Sharma
 
Flip flops, counters & registers
Flip flops, counters & registersFlip flops, counters & registers
Flip flops, counters & registers
Dharit Unadkat
 
D and T Flip Flop
D and T Flip FlopD and T Flip Flop
D and T Flip Flop
Dhrumil Panchal
 
Flip-Flop || Digital Electronics
Flip-Flop || Digital ElectronicsFlip-Flop || Digital Electronics
Flip-Flop || Digital Electronics
Md Sadequl Islam
 
Multiplexers & Demultiplexers
Multiplexers & DemultiplexersMultiplexers & Demultiplexers
Multiplexers & Demultiplexers
Jayanshu Gundaniya
 
Combinational circuits
Combinational circuits Combinational circuits
Combinational circuits
DrSonali Vyas
 
Types of flip flops ppt
Types of flip flops pptTypes of flip flops ppt
Types of flip flops ppt
Viraj Shah
 
Combinational Circuits & Sequential Circuits
Combinational Circuits & Sequential CircuitsCombinational Circuits & Sequential Circuits
Combinational Circuits & Sequential Circuits
gourav kottawar
 
Counters
CountersCounters
Counters
Ketaki_Pattani
 
Registers
RegistersRegisters
Registers
Sanjeev Patel
 
latches
 latches latches
latches
Unsa Shakir
 
2.3 sequantial logic circuit
2.3 sequantial logic circuit2.3 sequantial logic circuit
2.3 sequantial logic circuitWan Afirah
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
Jamnas Mundakkutty A
 
Jk flip flop
Jk flip flopJk flip flop
Jk flip flop
Priyank Soni
 
Ring counter
Ring counterRing counter
Ring counter
Ghufran Hasan
 

What's hot (20)

Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic Circuit
 
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
 
Flipflop
FlipflopFlipflop
Flipflop
 
Sequential circuits in digital logic design
Sequential circuits in digital logic designSequential circuits in digital logic design
Sequential circuits in digital logic design
 
Chapter 6: Sequential Logic
Chapter 6: Sequential LogicChapter 6: Sequential Logic
Chapter 6: Sequential Logic
 
D Flip Flop
D Flip Flop D Flip Flop
D Flip Flop
 
Flip flops, counters & registers
Flip flops, counters & registersFlip flops, counters & registers
Flip flops, counters & registers
 
D and T Flip Flop
D and T Flip FlopD and T Flip Flop
D and T Flip Flop
 
Flip-Flop || Digital Electronics
Flip-Flop || Digital ElectronicsFlip-Flop || Digital Electronics
Flip-Flop || Digital Electronics
 
Multiplexers & Demultiplexers
Multiplexers & DemultiplexersMultiplexers & Demultiplexers
Multiplexers & Demultiplexers
 
Combinational circuits
Combinational circuits Combinational circuits
Combinational circuits
 
Types of flip flops ppt
Types of flip flops pptTypes of flip flops ppt
Types of flip flops ppt
 
Combinational Circuits & Sequential Circuits
Combinational Circuits & Sequential CircuitsCombinational Circuits & Sequential Circuits
Combinational Circuits & Sequential Circuits
 
Counters
CountersCounters
Counters
 
Registers
RegistersRegisters
Registers
 
latches
 latches latches
latches
 
2.3 sequantial logic circuit
2.3 sequantial logic circuit2.3 sequantial logic circuit
2.3 sequantial logic circuit
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 
Jk flip flop
Jk flip flopJk flip flop
Jk flip flop
 
Ring counter
Ring counterRing counter
Ring counter
 

Similar to Sequential circuits

Sequentialcircuits
SequentialcircuitsSequentialcircuits
Sequentialcircuits
Raghu Vamsi
 
Flip flop slide
Flip flop slideFlip flop slide
Flip flop slide
jyothir19
 
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
Arti Parab Academics
 
Flip flops
Flip flopsFlip flops
Flip flops
Shashi Lata
 
Flipflops and Excitation tables of flipflops
Flipflops and Excitation tables of flipflopsFlipflops and Excitation tables of flipflops
Flipflops and Excitation tables of flipflops
student
 
Digital Electronics Unit_3.pptx
Digital Electronics Unit_3.pptxDigital Electronics Unit_3.pptx
Digital Electronics Unit_3.pptx
Thapar Institute
 
Flip flop
Flip flopFlip flop
08 Latches and Flipflops.pdf
08 Latches and Flipflops.pdf08 Latches and Flipflops.pdf
08 Latches and Flipflops.pdf
DSOOP
 
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
Smit Luvani
 
B sc3 unit 5 sequencial lc
B sc3 unit 5 sequencial lcB sc3 unit 5 sequencial lc
B sc3 unit 5 sequencial lc
MahiboobAliMulla
 
Computer Oragnization Flipflops
Computer Oragnization FlipflopsComputer Oragnization Flipflops
Computer Oragnization Flipflops
Vanitha Chandru
 
best slides latches.pdf
best slides latches.pdfbest slides latches.pdf
best slides latches.pdf
AreebaShoukat4
 
BEEE FLIP FLOP & REGISTERS
BEEE FLIP FLOP & REGISTERSBEEE FLIP FLOP & REGISTERS
BEEE FLIP FLOP & REGISTERS
VinithShenoy
 
J - K & MASTERSLAVE FLIPFLOPS
J - K & MASTERSLAVE FLIPFLOPSJ - K & MASTERSLAVE FLIPFLOPS
J - K & MASTERSLAVE FLIPFLOPS
Krishma Parekh
 
Lab 12 – Latches and Flip-Flops Mugisha OmaryLab 12 .docx
Lab 12 – Latches and Flip-Flops Mugisha OmaryLab 12 .docxLab 12 – Latches and Flip-Flops Mugisha OmaryLab 12 .docx
Lab 12 – Latches and Flip-Flops Mugisha OmaryLab 12 .docx
DIPESH30
 
unit 5.pptx
unit 5.pptxunit 5.pptx
unit 5.pptx
ssuser022fec
 
Flipflop r012
Flipflop   r012Flipflop   r012
Flipflop r012
arunachalamr16
 
Flip flop
Flip flopFlip flop
Flip flop
Moni Adhikary
 
IS 151 Lecture 11
IS 151 Lecture 11IS 151 Lecture 11
IS 151 Lecture 11
wajanga
 

Similar to Sequential circuits (20)

Sequentialcircuits
SequentialcircuitsSequentialcircuits
Sequentialcircuits
 
Flip flop slide
Flip flop slideFlip flop slide
Flip flop slide
 
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
 
Flip flops
Flip flopsFlip flops
Flip flops
 
Flipflops and Excitation tables of flipflops
Flipflops and Excitation tables of flipflopsFlipflops and Excitation tables of flipflops
Flipflops and Excitation tables of flipflops
 
Digital Electronics Unit_3.pptx
Digital Electronics Unit_3.pptxDigital Electronics Unit_3.pptx
Digital Electronics Unit_3.pptx
 
Flip flop
Flip flopFlip flop
Flip flop
 
08 Latches and Flipflops.pdf
08 Latches and Flipflops.pdf08 Latches and Flipflops.pdf
08 Latches and Flipflops.pdf
 
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
 
B sc3 unit 5 sequencial lc
B sc3 unit 5 sequencial lcB sc3 unit 5 sequencial lc
B sc3 unit 5 sequencial lc
 
Computer Oragnization Flipflops
Computer Oragnization FlipflopsComputer Oragnization Flipflops
Computer Oragnization Flipflops
 
best slides latches.pdf
best slides latches.pdfbest slides latches.pdf
best slides latches.pdf
 
BEEE FLIP FLOP & REGISTERS
BEEE FLIP FLOP & REGISTERSBEEE FLIP FLOP & REGISTERS
BEEE FLIP FLOP & REGISTERS
 
J - K & MASTERSLAVE FLIPFLOPS
J - K & MASTERSLAVE FLIPFLOPSJ - K & MASTERSLAVE FLIPFLOPS
J - K & MASTERSLAVE FLIPFLOPS
 
Sequential
SequentialSequential
Sequential
 
Lab 12 – Latches and Flip-Flops Mugisha OmaryLab 12 .docx
Lab 12 – Latches and Flip-Flops Mugisha OmaryLab 12 .docxLab 12 – Latches and Flip-Flops Mugisha OmaryLab 12 .docx
Lab 12 – Latches and Flip-Flops Mugisha OmaryLab 12 .docx
 
unit 5.pptx
unit 5.pptxunit 5.pptx
unit 5.pptx
 
Flipflop r012
Flipflop   r012Flipflop   r012
Flipflop r012
 
Flip flop
Flip flopFlip flop
Flip flop
 
IS 151 Lecture 11
IS 151 Lecture 11IS 151 Lecture 11
IS 151 Lecture 11
 

Recently uploaded

Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
AzmatAli747758
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
Celine George
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
PedroFerreira53928
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
bennyroshan06
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
Excellence Foundation for South Sudan
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 

Recently uploaded (20)

Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 

Sequential circuits

  • 1. Sequential Circuits Latches and Flip-Flops Dr. Sonali Vyas
  • 2. Introduction  Output depends on current as well as past inputs  Depends on the history  Have “memory” property  Sequential circuit consists of » Combinational circuit » Feedback circuit  Past input is encoded into a set of state variables » Uses feedback (to feed the state variables) – Simple feedback – Uses flip flops
  • 3.
  • 4. Types of Sequential Circuits In Asynchronous sequential circuits the output of the logic circuit can change state at any time, as soon as any input changes its state whereas in the case of synchronous systems a signal namely clock signal is used to determine/control the exact time at which any output can change its state. These are also called as clocked sequential circuits.
  • 5. Flip Flop  A flip flop is a binary storage device. It can store binary bit either 0 or 1. It has two sta ble states HIGH and LOW i.e. 1 and 0. It has t he property to remain in one state indefinitely until it is directed by an input signal to switch over t o the other state.  It is also called bistable multivibrator.  The basic formation of flip flop is to store data.
  • 6. Flip Flop Types:  SR ("set-reset")  D ("data" or "delay")  T ("toggle")  JK Flip-flops can be either simple (transparent or asynchronous) or clocked (synchronous); the transparent ones are commonly called latches. The word latch is mainly used for storage elements, while clocked devices are described as flip-flops
  • 7. SR Flip-flop  The SR (Set-Reset) flip-flop is one of the simplest sequential circuits and consists of two gates connected .  The output of each gate is connected to one of the inputs of the other gate.  The circuit has two active low inputs marked S’ and R’, as well as two outputs, Q and Q’.
  • 8.
  • 9. RS Latch  RS latch have two inputs, S and R. S is called set and R is called reset.  The S input is used to produce HIGH on Q ( i.e. store binary 1 in flip-flop).  The R input is used to produce LOW on Q (i.e. store binary 0 in flip-flop). Q' is Q complementary output, so it always holds the opposite value of Q.  The output of the S-R latch depends on current as well as previous inputs or state, and its state (value stored) can change as soon as its inputs change.
  • 10.
  • 11. •When S = 0 and R = 0: If we assume Q = 1 and Q' = 0 as initial condition, then output Q after input is applied would be Q = (R + Q')' = 1 and Q' = (S + Q)' = 0. Assuming Q = 0 and Q' = 1 as initial condition, then output Q after the input applied would be Q = (R + Q')' = 0 and Q' = (S + Q)' = 1. So it is clear that when both S and R inputs are LOW, the output is retained as before the application of inputs. (i.e. there is no state change). •When S = 1 and R = 0: If we assume Q = 1 and Q' = 0 as initial condition, then output Q after input is applied would be Q = (R + Q')' = 1 and Q' = (S + Q)' = 0. Assuming Q = 0 and Q' = 1 as initial condition, then output Q after the input applied would be Q = (R + Q')' = 1 and Q' = (S + Q)' = 0. So in simple words when S is HIGH and R is LOW, output Q is HIGH. •When S = 0 and R = 1: If we assume Q = 1 and Q' = 0 as initial condition, then output Q after input is applied would be Q = (R + Q')' = 0 and Q' = (S + Q)' = 1. Assuming Q = 0 and Q' = 1 as initial condition, then output Q after the input applied would be Q = (R + Q')' = 0 and Q' = (S + Q)' = 1. So in simple words when S is LOW and R is HIGH, output Q is LOW. •When S = 1 and R =1 : No matter what state Q and Q' are in, application of 1 at input of NOR gate always results in 0 at output of NOR gate, which results in both Q and Q' set to LOW (i.e. Q = Q'). LOW in both the outputs basically is wrong, so this case is invalid
  • 12. Clocked RS Flip Flop  The RS latch flip flop required the direct input but no clock. It is very use full to add clock to control precisely the time at which the flip flop changes the state of its output.  In the clocked RS flip flop the appropriate levels applied to their inputs are blocked till the receipt of a pulse from an other source called clock. The flip flop changes state only when clock pulse is applied depending upon the inputs.  This circuit is formed by adding two AND gates at inputs to the RS flip flop. In addition to control inputs Set (S) and Reset (R), there is a clock input (C) also.
  • 13. The first five lines in the truth table give the static input and output states. The last four lines show the state of the outputs after a complete clock pulse p.
  • 14. JK Flip Flop  One of the most useful and versatile flip flop is the JK flip flop the unique features of a JK flip flop are: ◦ If the J and K input are both at 1 and the clock pulse is applied, then the output will change state, regardless of its previous condition. ◦ If both J and K inputs are at 0 and the clock pulse is applied there will be no change in the output. ◦ There is no indeterminate condition, in the operation of JK flip flop i.e. it has no ambiguous state.
  • 15.  When J = 0 and K = 0, These J and K inputs disable the NAND gates, therefore clock pulse have no effect on the flip flop. In other words, Q returns it last value.  When J = 0 and K = 1, The upper NAND gate is disabled the lower NAND gate is enabled if Q is 1 therefore, flip flop will be reset (Q = 0 , Q’ =1)if not already in that state.  When J = 1 and K = 0 The lower NAND gate is disabled and the upper NAND gate is enabled if is at 1, As a result we will be able to set the flip flop ( Q = 1, Q’ = 0) if not already set.  When J and K are both high, the clock pulses cause the JK flip flop to toggle.
  • 16.
  • 17. Master Slave JK Flip Flop
  • 18.  A master slave flip flop contains two clocked flip flops. The first is called master and the second slave.  When the clock is high the master is active. The output of the master is set or reset according to the state of the input.  When clock becomes low the output of the slave flip flop changes because it become active during low clock period.  The final output of master slave flip flop is the output of the slave flip flop. So the output of master slave flip flop is available at the end of a clock pulse.
  • 19.
  • 20. Delay Flip Flop or D-Flip Flop  The D type flip-flop has one data input 'D' and a clock input. The circuit edge triggers on the clock input. The flip-flop also has two outputs Q and Q' (where Q' is the reverse of Q).  Such type of flip flop is a modification of clocked RS flip flop gates from a basic Latch flip flop and NOR gates modify it in to a clock RS flip flop.  The D input goes directly to S input and its complement through NOT gate, is applied to the R input.
  • 21.  When the clock is low, both AND gates are disabled, therefore D can change values without affecting the value of Q.  When the clock is high, both AND gates are enabled. In this case, Q is forced equal to D  When the clock again goes low, Q retains or stores the last value of D
  • 22.
  • 23. Toggle Flip Flop or T-Flip Flop  The operation of the T type flip-flop is as follows:  A '0' input to 'T' will make the next state the same as the present state (i.e. T = 0 present state = 0 therefore next state = 0).  However a '1' input to 'T' will change the next state to the inverse of the present state (i.e. T = 1 present state = 0 therefore next state = 1).
  • 24.
  • 25. Counters  A counter is a register that goes through a predetermined sequence of states upon the application of clock pulses Asynchronous counters Synchronous counters  Asynchronous Counters (or Ripple counters)  the clock signal (CLK) is only used to clock the first FF. Each FF (except the first FF) is clocked by the preceding FF.  Synchronous Counters the clock signal (CLK) is applied to all FF, which means that all FF shares the same clock signal thus the output will change at the same time
  • 26. Asynchronous Counters  The Asynchronous Counter that counts 4 number starts from 00 01 10 11 and back to 00 is called MOD-4 Ripple (Asynchronous) Up-Counter.  The external clock is connected to the clock input of the first flip-flop (FF0) only. So, FF0 changes state at the falling edge of each clock pulse, but FF1 changes only when triggered by the falling edge of the Q output of FF0.  Because of the inherent propagation delay through a flip-flop, the transition of the input clock pulse and a transition of the Q output of FF0 can never occur at exactly the same time.  Therefore, the flip-flops cannot be triggered simultaneously, producing an asynchronous operation.
  • 27. The transitions of Q0, Q1 and CLK in the timing diagram below are shown as simultaneous even though this is an asynchronous counter. Actually, there is some small delay between the CLK, Q0 and Q1 transitions. Usually, all the CLEAR inputs are connected together, so that a single pulse can clear all the flip-flops before counting starts. The clock pulse fed into FF0 is rippled through the other counters after propagation delays, like a ripple on water, hence the name Ripple Counter.
  • 28.  A counter with n flip-flops can have 2 to the power n states. The number of states in a counter is known as its mod (modulo) number. Thus a 2-bit counter is a mod-4 counter.  For a 4-bit counter, the range of the count is 0000 to 1111 (24-1). A counter may count up or count down or count up and down depending on the input control. The count sequence usually repeats itself.  When counting up, the count sequence goes from 0000, 0001, 0010, ... 1110 , 1111 , 0000, 0001, ... etc.  When counting down the count sequence goes in the opposite manner: 1111, 1110, ... 0010, 0001, 0000, 1111, 1110, ... etc.
  • 29.
  • 30. Synchronous counters  A synchronous counter, is one whose output bits change state simultaneously, with no ripple.  The external clock signal is connected to the clock input of every individual flip-flop within the counter so that all of the flip-flops are clocked together simultaneously (in parallel) at the same time giving a fixed time relationship.  The result of this synchronization is that all the individual output bits changing state at exactly the same time in response to the common clock signal with no ripple effect.
  • 31.
  • 32.  The external clock pulses are fed directly to each of the J-K flip- flops in the counter chain and that both the J and K inputs are all tied together in toggle mode.  In flip-flop FFA(LSB) they are connected HIGH, logic “1” allowing the flip-flop to toggle on every clock pulse. Then the synchronous counter follows a predetermined sequence of states in response to the common clock signal, advancing one state for each pulse.  The J and K inputs of flip-flop FFB are connected directly to the output QA of flip-flop FFA, but the J and K inputs of flip- flops FFC and FFD are driven from separate AND gates which are also supplied with signals from the input and output of the previous stage.  These additional AND gates generate the required logic for the JK inputs of the next stage.  When all the counter stages are triggered in parallel at the same time, the maximum operating frequency of this type of frequency counter is much higher than that for a similar asynchronous counter circuit.