SlideShare a Scribd company logo
1 of 52
Download to read offline
Chapter 4:

FLIP FLOPS
(Sequential Circuits)

By:

Siti Sabariah Hj. Salihin
ELECTRICAL ENGINEERING DEPARTMENT

EE 202 : DIGITAL ELECTRONICS

1
CHAPTER 4 : FLIP FLOPS
EE 202 : DIGITAL ELECTRONICS

Programme Learning Outcomes, PLO
Upon completion of the programme, graduates should be able to:
PLO 1 : Apply knowledge of mathematics, scince and engineering
fundamentals to well defined electrical and electronic engineering
procedures and practices
Course Learning Outcomes, CLO
� CLO 2 : Simplify and design combinational and sequential logic
circuits by using the Boolean Algebra and the Karnaugh Maps.
� CLO 3 : Draw Logic Diagrams, truth tables and timing diagrams for
all common flip flops and use these to implement sequential logic
circuits correctly.
�

EE 202 : DIGITAL ELECTRONICS
Learning outcomes For Chapter 4:
Flip Flops(Sequential Circuits)
Upon completion of this chapter, students
should be able to:
1. Understand Types of Flip-Flop, Truth Tables, Symbols,
Timing Diagram and its application in Logic Circuits.
2. Construct Types of Flip Flop using Types of Logic
Gates by Drawing Symbols and Truth Tables, and
Timing Diagram.

EE 202 : DIGITAL ELECTRONICS
Chapter's Summary
Flip-Flops
- Types Of Flip Flops: SR Flip-Flop,
Clocked SR Flip-Flop, T Flip-Flop and JK
Flip-Flop.
- Symbols Truth Tables and Timing.
Symbols,
- T Flip-Flops and D Flip-Flops
built using JK Flip-Flops.
�

EE 202 : DIGITAL ELECTRONICS
4.0 Introduction
Sequential Circuits
�

The output of circuit depends on the previous output and the
present inputs.

�

The inputs must follow a specific sequence to produce a required
output.

�

In order to follow a sequence of inputs the circuits must contain
some form of memory to retain knowledge of those inputs, which
have already occurred.

�

This memory are obtained by feedback connections, which are
made so that history of the previous inputs is maintained .

�

Most sequential systems are based on a small number of simple
sequential circuit elements known as Bistables or Flip Flops.

EE 202 : DIGITAL ELECTRONICS

5
4.0 Flip Flop (Sequential Circuits)
What is Flip flop?
Answer:
� In digital circuits, the flip-flop is a kind
flip-flop,
of bistable multivibrator.
multivibrator.
� It is a Sequential Circuits / an
electronic circuit which has two stable
states and thereby is capable of
serving as one bit of memory , bit 1 or
bit 0.
�

EE 202 : DIGITAL ELECTRONICS

6
4.0 Introduction – Flip Flop

Q

Q

They are 1 (HIGH) or 0
(LOW).
Whenever we refer to the
state of flip flop, we refer to
the state of its normal output
(Q).

�

Inputs

�

�

Figure 4.0.1 : General Flip flop
symbol

More complicated Flip flop
use a clock as the control
input. These clocked flip-flops
are used whenever the input
and output signals must
occur within a particular
sequence.

Normal output

Inverted Output

They have two stable conditions and
can be switched from one to the
other by appropriate inputs. These
stable conditions are usually called
the states of the circuit.

EE 202 : DIGITAL ELECTRONICS

7
Introduction: Types Of Flip Flop
1.

SR Flip Flop
a. SR Flip Flop Active Low = NAND gates
b. SR Flip Flop Active High = NOR gates

2.
3.
4.
5.
6.

Clocked SR Flip Flop
JK Flip Flop
JK Flip Flop With Preset And Clear
T Flip Flop
D Flip Flop
The Used of Flip Flop
For Memory circuits
� For Logic Control Devices
� For Counter Devices
� For Register Devices
�
4.1 SR Flip Flop
�
�
�

�
�
�
�

The most basic Flip Flop is called SR Flip Flop.
The basic RS flip flop is an asynchronous device.
In asynchronous device, the outputs is immediately
changed anytime one or more of the inputs change
just as in combinational logic circuits.
It does not operate in step with a clock or timing.
These basic Flip Flop circuit can be constructed using
two NAND gates latch or two NOR gates latch.
SR Flip Flop Active Low = NAND gates
SR Flip Flop Active High = NOR gates

EE 202 : DIGITAL ELECTRONICS

10
4.1 SR Flip Flop
�
�

Figure 4.1.1:
SR Flip Flop logic
Symbol

�

The SR Flip Flop has two
inputs, SET (S) and RESET
(R).

�

The SR Flip Flop has two
outputs, Q and ¯
Q

�

The Q output is considered
the normal output and is the
one most used.

�

The other output ¯ is simply
Q
the compliment of output Q.

EE 202 : DIGITAL ELECTRONICS

11
4.1 SR Flip Flop - NAND GATE LATCH
�

Two outputs, Q as normal
output and Q as inverted output
¯
and feedback mechanism.

�

The feedback mechanism is
required to form a sequential
circuit by connecting the output
of NAND-1 to the input of
NAND-2 and vice versa.

�

NAND GATE LATCH

The NAND gate version has two
inputs, SET (S) and RESET (R).

�

�

The circuit outputs depends on
the inputs and also on the
outputs.

1

2

�

Figure 4.1.2: SR NAND (Active
LOW) Logic circuit.

EE 202 : DIGITAL ELECTRONICS

12
4.1 SR Flip Flop - NAND GATE LATCH
�

Figure 4.1.3 Feedback Mechanism

EE 202 : DIGITAL ELECTRONICS

13
4.1SR Flip Flop - NAND GATE LATCH
�
1

�
�

Normal Resting
State Figure 4.1.4.a
1

0

0
0

�

1

2

1

1
1

�

Input S=1 , R=1 ,
This is the normal
resting state of the
circuit and it has no
Q
effect of the output
states.
Output Q and ¯ will
remain in whatever state
they were in prior to the
occurrence of this input
condition.
It works in HOLD mode
of operation.

EE 202 : DIGITAL ELECTRONICS

14
4.1 SR Flip Flop - NAND GATE LATCH
�

Figure 4.1.4.b

�
�

0

1

�
1

0

1

2

1

Input, S = 0, R = 1
This will set Q = 1.
It works in SET mode
operation.

0

EE 202 : DIGITAL ELECTRONICS

15
4.1 SR Flip Flop - NAND GATE LATCH
�

Figure 4.1.4.c

�
�

1

0

�
1

1

2

0

0

Input S = 1, R = 0
This will reset Q = 0.
It works in RESET mode
operation.

1

EE 202 : DIGITAL ELECTRONICS

16
4.1 SR Flip Flop - NAND GATE LATCH
�

0

0

This condition tries to set and
reset the NAND gate latch at the
same time.
� It produces Q = Q = 1
¯
� This is unexpected condition,
since the two outputs should be
inverses of each other.
� If the inputs are returned to 1
simultaneously, the output states
are unpredictable.
� This input condition should not
be used and when circuits are
constructed, the design should
make this condition
S = R = 0 never arises.
It is called INVALID/PROHIBITED
�

Figure 4.1.4.d
1

0

2

1

1

1

EE 202 : DIGITAL ELECTRONICS

17
4.1 SR Flip Flop - NAND GATE LATCH
�

From the description of the NAND gate
latch operation, it shows that the SET and
RESET inputs are active LOW.

�

The SET input will set Q = 1 when SET is
0 (LOW).RESET input will reset Q = 0
when RESET is 0 (LOW)

�

In the prohibited/INVALID state both
outputs are 1. This condition is not used
on the RS flip-flop. The set condition
means setting the output Q to 1.

�

Likewise, the reset condition means
resetting (clearing) the output Q to 0. The
last row shows the disabled, or hold,
condition of the RS flip-flop. The outputs
remain as they were before the hold
condition existed. There is no change in
the outputs from the previous states.

�

Figure 4.1.5 : SR NAND gate
latch Truth Table

S R Q Q
¯

STATUS

0

0 1 1

INVALID

0

1 1 0

SET

1

0 0 1

RESET

1

1 Q Q
¯

HOLD
(NoChange)

The flip-flop memorizes the previous
condition.

EE 202 : DIGITAL ELECTRONICS

18
4.1 SR NAND Flip Flop-Waveforms
Example 4.1.1: Determine the
output of NAND gate latch which Q
initialy 0 for the given input waveform.

S
R
Q

Exercise 4.1.1:
Determine the output of NAND
gate latch which Q initially 1 for
the given input waveforms.

S
R
Q

¯Q
Q
¯
EE 202 : DIGITAL ELECTRONICS

19
4.1 SR Flip Flop - NOR GATE LATCH

�

�

NOR GATE LATCH

The latch circuit can also be
constructed using two NOR
gates latch.

�

�

The construction is similar to
the NAND latch except that
the normal output Q and
inverted output ¯ have
Q
reversed positions.

Figure 4.1.6: SR NOR
(Active HIGH) Logic circuit
EE 202 : DIGITAL ELECTRONICS

20
4.1 SR Flip Flop - NOR GATE LATCH
SR FLIP FLOP NOR
(Active HIGH) Logic circuit

The analysis of a SR FLIP FLOP
NOR :
* S = 0, R = 0; This is the normal
resting state of the circuit and it
has no effect of the output states.
Q and Q will remain in whatever
¯
state they were in prior to the
occurrence of this input condition.
It works in HOLD (no change)
mode operation.
•

S = 0, R = 1; This will reset Q to
0, it works in RESET mode
operation.

EE 202 : DIGITAL ELECTRONICS

21
4.1 SR Flip Flop - NOR GATE LATCH
S = 1, R = 0; This will set Q to 1, it works in SET mode operation.
� S = 1, R = 1; This condition tries to set and reset the NOR gate
latch at the same time, and it produces Q = Q = 0. This is an
¯
unexpected condition and are not used.
�

Since the two outputs should be inverse of each other. If the inputs
are returned to 1 simultaneously, the output states are unpredictable.
This input condition should not be used and when circuits are
constructed, the design should make this condition
SET=RESET = 1 never arises.

EE 202 : DIGITAL ELECTRONICS

22
4.1 SR Flip Flop - NOR GATE LATCH
�

�

From the description of the
NOR gate latch operation, it
shows that the SET and
RESET inputs are Active
HIGH.
The SET input will set Q = 1
when SET is 1 (HIGH).
RESET input will reset Q
when RESET is 1 (HIGH).

�

Figure 4.1.7 : SR NOR gate latch
Truth Table

S R Q Q
¯
_
0 0 Q Q
0 1 0 1
1

0 1 0

1

1 0

EE 202 : DIGITAL ELECTRONICS

0

STATUS
HOLD
(NoChange)

RESET
SET
INVALID

23
4.1 SR NOR Flip Flop -Waveforms
�

Example 4.1.2: Determine the
output of NOR gate latch which
Q initially 0 for the given input
waveforms.

Exercise 4.1.2 : Determine the
output of NOR gate latch which
Q initially 1 for the given input
waveforms.

�

S

S

R

R

Q

Q

¯
Q

¯
Q

EE 202 : DIGITAL ELECTRONICS

24
4.2 The CLOCK
�

�

�

In synchronous device, the exact times at
which any output can change states are
controlled by a signal commonly called the
clock.
The clock signal is generally a rectangular
pulse train or a square wave as shown in
figure 4.9.
The clock is distributed to all parts of the
system, and most of the system outputs can
change state only when the clock makes a
transition.

EE 202 : DIGITAL ELECTRONICS

25
4.2 The CLOCK
When the clock changes from a LOW state to a HIGH
state, this is called the positive-going transition (PGT)
or positive edge triggered.
� When the clock changes from a HIGH state to a LOW
state, it is called negative going transition (NGT) or
negative edge triggered.
Figure 4.2.1: Clock Pulse-Train
Enable
�

(a) Positive going transition

Disable

(b) Negative going transition
EE 202 : DIGITAL ELECTRONICS

26
4.2 Clocked SR Flip Flop
Additional clock input is
added to change the SR flipflop from an element used in
asynchronous sequential
circuits to one, which can be
used in synchronous circuits.
� The clocked SR flip flop logic
symbol that is triggered by
the PGT is shown in Figure
4.2.2
� Its means that the flip flop
can change the output states
only when clock signal makes
a transition from LOW to
HIGH.
�

�

Figure 4.2.2 : PGT Clocked SR Flip
flop symbol

EE 202 : DIGITAL ELECTRONICS

27
4.2 Clocked RS Flip Flop
Figure 4.2.3: Truth Table for
clocked SR Flip Flop
clock

S R Q Q
¯
_
0 0 Q Q

STATUS

0 1 0 1

RESET

1 0 1 0

SET

1 1 0 0

INVALID

HOLD
(NoChange)

•The Truth Table in figure
4.2.3 shows how the flip
flop output will respond to
the PGT at the clocked
input for the various
combinations of SR inputs
and output.
• The up arrow symbol
indicates PGT.

EE 202 : DIGITAL ELECTRONICS

28
4.2 Clocked SR Flip Flop
�

Example 4.2.1: Determine the
output of PGT clocked SR flip
flop which Q initially 0 for the
given input waveforms

�

Cp

Cp

S

S

R

R

Q

Q

¯
Q

Exercise 4.2.1: Determine the
output of PGT clocked SR flip
flop which Q initially 1 for the
given input waveforms.

¯
Q

EE 202 : DIGITAL ELECTRONICS

29
4.2 Clocked SR Flip Flop
�

Figure 4.2.4 : NGT Clocked
SR Flip flop symbol

�

�

The clocked SR Flip
Flop logic symbol
that is triggered by
the NGT is shown in
Figure 4.2.4
It means that the Flip
flop can change the
output states only
when clocked signal
makes a transition
from HIGH to LOW.

EE 202 : DIGITAL ELECTRONICS

30
4.2 Clocked SR Flip Flop
�

Figure 4.2.5: CLOCKED SR
FLIP FLOP LOGIC CIRCUIT

EE 202 : DIGITAL ELECTRONICS

31
4.2 Clocked SR Flip Flop
�

Figure 4.2.6: CLOCKED SR
FLIP FLOP LOGIC CIRCUIT

�

If used NOR Gate, must used
AND Gate in front.

EE 202 : DIGITAL ELECTRONICS

32
4.2 Clocked SR Flip Flop

Cp

Exercise 4.2.2: Determine the
output of NGT clocked SR flip
flop which Q initially 1 for the
given input waveforms.
Cp

S

S

R

R

Q

Q

¯
Q

¯
Q

�

Example 4.2.2: Determine the
output of NGT clocked SR flip
flop which Q initially 0 for the
given input waveforms

�

EE 202 : DIGITAL ELECTRONICS

33
4.3 JK Flip Flop - Symbol
�
�

�
�

�

Another types of Flip flop is JK
flip flop.
It differs from the RS flip flops
when J=K=1 condition is not
indeterminate but it is defined to
give a very useful changeover
(toggle) action.
Toggle means that Q and ¯ will
Q
switch to their opposite states.
The JK Flip flop has clock input
Cp and two control inputs J and
K.
Operation of Jk Flip Flop is
completely described by truth
table in Figure 4.3.3.

�

Figure 4.3.1 : PGT JK Flip
flop symbol

�

Figure 4.3.2 : NGT JK Flip
flop symbol

EE 202 : DIGITAL ELECTRONICS

34
4.3 JK Flip Flop – Truth Table And Logic Circuit
Figure 4.3.3: Truth Table for JK
Flip Flop
clock

J K Q ¯
Q
0 0

_
Q Q

�

Figure 4.3.4: JK FLIP FLOP
LOGIC CIRCUIT

STATUS
HOLD
(No Change)

0 1 1 0

RESET

1 0 0 1

SET

1 1

_
Q Q

Toggle

EE 202 : DIGITAL ELECTRONICS

35
4.3 JK Flip Flop - waveforms
Example 4.3.1 : Determine the output of PGT clocked JK flip flop for
the given input waveforms which the Q initially 0.

Clk
J
K
Q

EE 202 : DIGITAL ELECTRONICS

36
4.3 JK Flip Flop - waveforms
Exercise 4.3.1
4.3.1:Determine the output
of NGT clocked JK flip flop for the
given input waveforms which the
Q initially 0.

Exercise 4.3.2
4.3.2:Determine the output
of PGT clocked JK flip flop for the
given input waveforms which the
Q initially 0.

Cp

Cp

J

J

K

K

Q

Q

¯
Q

¯
Q

EE 202 : DIGITAL ELECTRONICS

37
4.4 JK Flip Flop with Asynchronous Input
�

The J and K inputs are called synchronous inputs
since they only influence the state of the flip flop when
the clocked pulse is present.

�

This flip flop can also have other inputs called Preset
(or SET) and clear that can be used for setting the flip
flop to 1 or resetting it to 0 by applying the appropriate
signal to the Preset and Clear inputs.

�

These inputs can change the state of the flip flop
regardless of synchronous inputs or the clock.
EE 202 : DIGITAL ELECTRONICS

38
4.4 JK Flip Flop with Preset and Clear

Figure 4.4.1 : Symbol and Truth Table

EE 202 : DIGITAL ELECTRONICS

39
4.4 JK Flip Flop with Asynchronous Input
�

Example 4.4.2 : The output of clocked JK flip flop which output initially 0
for the given input waveforms.

Cp
Preset
Clear
J
K
Q
Q

EE 202 : DIGITAL ELECTRONICS

40
4.4 JK Flip Flop with Asynchronous Input
�

Exercise 4.4.3 : The output of clocked JK flip flop which output
initially 0 for the given input waveforms.
Cp
Preset
Clear
J
K
Q

EE 202 : DIGITAL ELECTRONICS

41
4.5 T Flip Flop - Symbol
�

�

The T flip flop has only
the Toggle and Hold
Operation.
If Toggle mode
operation. The output
will toggle from 1 to 0 or
vice versa.

�

Figure 4.5.1: Symbol for T
Flip Flop
T
CP

Figure 4.5.2 :Truth Table for T Flip Flop

T

clock

Q Q

0

Q Q

1

Q Q

EE 202 : DIGITAL ELECTRONICS

status

HOLD
TOGOL

42
4.5 T Flip Flop – Logic Circuit
Logic circuit T Flip flop
using NOR gate

Logic circuit T Flip flop
using NAND gate

T
T

Cp

�Figure

4.5.3: Logic circuit for T Flip Flop

EE 202 : DIGITAL ELECTRONICS

43
4.5 T Flip Flop – Waveforms
Example 4.5.1 : Determine the output of PGT T flip flop for
the given input waveforms which the Q initially 0.

Clk
T
Q
Q

EE 202 : DIGITAL ELECTRONICS

44
4.5 T Flip Flop – Wave forms
Exercise 4.5.1 : Determine the output of
PGT T flip flop for the given input
waveforms which the Q initially 0.

Exercise 4.5.2 : Determine the output of
NGT T flip flop for the given input
waveforms which the Q initially 0.

Cp

Cp

T

T

Q

Q

Q

Q

EE 202 : DIGITAL ELECTRONICS

45
4.6 D Flip Flop
Also Known as Data Flip flop
� Can be constructed from RS
Flip Flop or JK Flip flop by
addition of an inverter.
� Inverter is connected so that
the R input is always the
inverse of S (or J input is
always complementary of K).
� The D flip flop will act as a
storage element for a single
binary digit (Bit).
�

�

Figure 4.6.1 :

� D Flip flop symbol

EE 202 : DIGITAL ELECTRONICS

46
4.6 D Flip Flop - Symbol
�

PGT

�

NGT

Positive Edge
Q
D

Negative Edge
Q
D

D
Flip Flop

D
Flip Flop

Clk

Clk

Q

Q

Figure 4.6.2 : D Flip flop symbol using JK Flip Flop / SR Flip Flop

EE 202 : DIGITAL ELECTRONICS

47
4.6 D Flip Flop- Logic circuit-Truth Table
�

Figure 4.6.3: Logic
circuit for D Flip Flop

�

Figure 4.6.4: Truth
Table for D Flip Flop
Q Q
¯

status

0

0

1

RESET

1

1

0

SET

D

clock

Cp

EE 202 : DIGITAL ELECTRONICS

48
4.6 D Flip Flop – Waveforms
Example 4.6.1 : Determine the output of

�

PGT D flip flop for the given input
waveforms which the Q initially 0.

Exercise 4.6.1 Determine the output
of NGT D flip flop for the given input
waveforms, which output Q initially 0.

Cp
Cp
D
D

Q

Q

Q

Q

EE 202 : DIGITAL ELECTRONICS

49
4.7 T Flip Flops and D Flip Flops can be
Built using JK Flip Flop
The JK flip flop is considered
as a universal flip flop.
� A combination of Jk flip flop
and an inverter can construct
a D Flip Flop as shown in
Figure 4.18
� It also can construct T Flip
Flop by combine both J and K
inputs with HIGH level input
as shown in Figure 4.19
�

�

Figure 4.7.1 : D Flip flop
symbol using JK Flip Flop / SR
Flip Flop

�

Figure 4.7.2 : T Flip flop
symbol using JK Flip Flop / SR
Flip Flop
T

EE 202 : DIGITAL ELECTRONICS

50
References
1. "Digital Systems Principles And Application"
Sixth Editon, Ronald J. Tocci.
2. "Digital Systems Fundamentals"
P.W Chandana Prasad, Lau Siong Hoe,
Dr. Ashutosh Kumar Singh, Muhammad
Suryanata.
Download Tutorials EE202 @ CIDOS
http://www.cidos.edu.my
The END…….
Review Chapter Flip flop
by Lecturer

EE 202 : DIGITAL ELECTRONICS

52

More Related Content

What's hot (20)

D Flip Flop
D Flip Flop D Flip Flop
D Flip Flop
 
Presentation on Flip Flop
Presentation  on Flip FlopPresentation  on Flip Flop
Presentation on Flip Flop
 
Chapter 6 register
Chapter 6 registerChapter 6 register
Chapter 6 register
 
Shift Registers
Shift RegistersShift Registers
Shift Registers
 
Flipflop
FlipflopFlipflop
Flipflop
 
Sequential logic circuits flip-flop pt 1
Sequential logic circuits   flip-flop pt 1Sequential logic circuits   flip-flop pt 1
Sequential logic circuits flip-flop pt 1
 
Types of flip flops ppt
Types of flip flops pptTypes of flip flops ppt
Types of flip flops ppt
 
Divide by N clock
Divide by N clockDivide by N clock
Divide by N clock
 
SHIFT REGISTERS
SHIFT REGISTERSSHIFT REGISTERS
SHIFT REGISTERS
 
Flip flop
Flip flopFlip flop
Flip flop
 
Sequential circuit
Sequential circuitSequential circuit
Sequential circuit
 
Latches and flip flops
Latches and flip flopsLatches and flip flops
Latches and flip flops
 
Registers
RegistersRegisters
Registers
 
flip flops
flip flops flip flops
flip flops
 
Unit 4 sequential circuits
Unit 4  sequential circuitsUnit 4  sequential circuits
Unit 4 sequential circuits
 
Flip flop
Flip flopFlip flop
Flip flop
 
Programmable Timer 8253/8254
Programmable Timer 8253/8254Programmable Timer 8253/8254
Programmable Timer 8253/8254
 
Chapter 6: Sequential Logic
Chapter 6: Sequential LogicChapter 6: Sequential Logic
Chapter 6: Sequential Logic
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
 
Edge Trigged Flip Flops
Edge Trigged Flip FlopsEdge Trigged Flip Flops
Edge Trigged Flip Flops
 

Similar to Chapter 4 flip flop for students

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 partSITI SABARIAH SALIHIN
 
Chapter4flipflop forstudents-131112193906-phpapp02
Chapter4flipflop forstudents-131112193906-phpapp02Chapter4flipflop forstudents-131112193906-phpapp02
Chapter4flipflop forstudents-131112193906-phpapp02Seshu Chakravarthy
 
Sr jk flip flop by AMAN GOYAT
Sr jk flip flop by AMAN GOYATSr jk flip flop by AMAN GOYAT
Sr jk flip flop by AMAN GOYATAmanGoyat2
 
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptxDigital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptxUtsavDas21
 
De EE unit-3.pptx
De EE unit-3.pptxDe EE unit-3.pptx
De EE unit-3.pptxMukulThory1
 
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptxSEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptxThanmayiKumar
 
Introduction to Sequential DevicesChapter 66.1 M.docx
Introduction to Sequential DevicesChapter 66.1 M.docxIntroduction to Sequential DevicesChapter 66.1 M.docx
Introduction to Sequential DevicesChapter 66.1 M.docxbagotjesusa
 
Digital Electronics Unit_3.pptx
Digital Electronics Unit_3.pptxDigital Electronics Unit_3.pptx
Digital Electronics Unit_3.pptxThapar Institute
 
counter using 4 master slave flip-flops
counter using 4 master slave flip-flops counter using 4 master slave flip-flops
counter using 4 master slave flip-flops ZunAib Ali
 
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 .docxDIPESH30
 
DIGITAL ELECTRONICS PPT 1.ppt
DIGITAL ELECTRONICS PPT 1.pptDIGITAL ELECTRONICS PPT 1.ppt
DIGITAL ELECTRONICS PPT 1.pptAmitpaswan23
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flopShuaib Hotak
 
Logic design alexander1 christopher
Logic design alexander1  christopherLogic design alexander1  christopher
Logic design alexander1 christopherworld_chris
 
Computer Oragnization Flipflops
Computer Oragnization FlipflopsComputer Oragnization Flipflops
Computer Oragnization FlipflopsVanitha Chandru
 
Lecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential LogicLecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential LogicJames Evangelos
 

Similar to Chapter 4 flip flop for students (20)

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
 
Chapter4flipflop forstudents-131112193906-phpapp02
Chapter4flipflop forstudents-131112193906-phpapp02Chapter4flipflop forstudents-131112193906-phpapp02
Chapter4flipflop forstudents-131112193906-phpapp02
 
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
 
Lecture 1 6844
Lecture 1 6844Lecture 1 6844
Lecture 1 6844
 
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
 
Ds flip flop
Ds flip flopDs flip flop
Ds flip flop
 
Assignment#5
Assignment#5Assignment#5
Assignment#5
 
Latches and flip flops
Latches and flip flopsLatches and flip flops
Latches and flip flops
 
De EE unit-3.pptx
De EE unit-3.pptxDe EE unit-3.pptx
De EE unit-3.pptx
 
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptxSEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
 
Introduction to Sequential DevicesChapter 66.1 M.docx
Introduction to Sequential DevicesChapter 66.1 M.docxIntroduction to Sequential DevicesChapter 66.1 M.docx
Introduction to Sequential DevicesChapter 66.1 M.docx
 
Digital Electronics Unit_3.pptx
Digital Electronics Unit_3.pptxDigital Electronics Unit_3.pptx
Digital Electronics Unit_3.pptx
 
counter using 4 master slave flip-flops
counter using 4 master slave flip-flops counter using 4 master slave flip-flops
counter using 4 master slave flip-flops
 
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
 
Flip flops
Flip flopsFlip flops
Flip flops
 
DIGITAL ELECTRONICS PPT 1.ppt
DIGITAL ELECTRONICS PPT 1.pptDIGITAL ELECTRONICS PPT 1.ppt
DIGITAL ELECTRONICS PPT 1.ppt
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flop
 
Logic design alexander1 christopher
Logic design alexander1  christopherLogic design alexander1  christopher
Logic design alexander1 christopher
 
Computer Oragnization Flipflops
Computer Oragnization FlipflopsComputer Oragnization Flipflops
Computer Oragnization Flipflops
 
Lecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential LogicLecture 5 Synchronous Sequential Logic
Lecture 5 Synchronous Sequential Logic
 

More from CT Sabariah Salihin

More from CT Sabariah Salihin (6)

Ee 202 chapter 1 number and code system
Ee 202 chapter 1 number and code system Ee 202 chapter 1 number and code system
Ee 202 chapter 1 number and code system
 
Chapter 5 counter1
Chapter 5 counter1Chapter 5 counter1
Chapter 5 counter1
 
Chapter 5 counter
Chapter 5 counterChapter 5 counter
Chapter 5 counter
 
Chapter 2 boolean part c
Chapter 2 boolean part cChapter 2 boolean part c
Chapter 2 boolean part c
 
Chapter 2 part b boolean soppos
Chapter 2 part b boolean sopposChapter 2 part b boolean soppos
Chapter 2 part b boolean soppos
 
Chapter 2 ee202 boolean part a
Chapter 2 ee202 boolean part aChapter 2 ee202 boolean part a
Chapter 2 ee202 boolean part a
 

Recently uploaded

Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 

Recently uploaded (20)

Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 

Chapter 4 flip flop for students

  • 1. Chapter 4: FLIP FLOPS (Sequential Circuits) By: Siti Sabariah Hj. Salihin ELECTRICAL ENGINEERING DEPARTMENT EE 202 : DIGITAL ELECTRONICS 1
  • 2. CHAPTER 4 : FLIP FLOPS EE 202 : DIGITAL ELECTRONICS Programme Learning Outcomes, PLO Upon completion of the programme, graduates should be able to: PLO 1 : Apply knowledge of mathematics, scince and engineering fundamentals to well defined electrical and electronic engineering procedures and practices Course Learning Outcomes, CLO � CLO 2 : Simplify and design combinational and sequential logic circuits by using the Boolean Algebra and the Karnaugh Maps. � CLO 3 : Draw Logic Diagrams, truth tables and timing diagrams for all common flip flops and use these to implement sequential logic circuits correctly. � EE 202 : DIGITAL ELECTRONICS
  • 3. Learning outcomes For Chapter 4: Flip Flops(Sequential Circuits) Upon completion of this chapter, students should be able to: 1. Understand Types of Flip-Flop, Truth Tables, Symbols, Timing Diagram and its application in Logic Circuits. 2. Construct Types of Flip Flop using Types of Logic Gates by Drawing Symbols and Truth Tables, and Timing Diagram. EE 202 : DIGITAL ELECTRONICS
  • 4. Chapter's Summary Flip-Flops - Types Of Flip Flops: SR Flip-Flop, Clocked SR Flip-Flop, T Flip-Flop and JK Flip-Flop. - Symbols Truth Tables and Timing. Symbols, - T Flip-Flops and D Flip-Flops built using JK Flip-Flops. � EE 202 : DIGITAL ELECTRONICS
  • 5. 4.0 Introduction Sequential Circuits � The output of circuit depends on the previous output and the present inputs. � The inputs must follow a specific sequence to produce a required output. � In order to follow a sequence of inputs the circuits must contain some form of memory to retain knowledge of those inputs, which have already occurred. � This memory are obtained by feedback connections, which are made so that history of the previous inputs is maintained . � Most sequential systems are based on a small number of simple sequential circuit elements known as Bistables or Flip Flops. EE 202 : DIGITAL ELECTRONICS 5
  • 6. 4.0 Flip Flop (Sequential Circuits) What is Flip flop? Answer: � In digital circuits, the flip-flop is a kind flip-flop, of bistable multivibrator. multivibrator. � It is a Sequential Circuits / an electronic circuit which has two stable states and thereby is capable of serving as one bit of memory , bit 1 or bit 0. � EE 202 : DIGITAL ELECTRONICS 6
  • 7. 4.0 Introduction – Flip Flop Q Q They are 1 (HIGH) or 0 (LOW). Whenever we refer to the state of flip flop, we refer to the state of its normal output (Q). � Inputs � � Figure 4.0.1 : General Flip flop symbol More complicated Flip flop use a clock as the control input. These clocked flip-flops are used whenever the input and output signals must occur within a particular sequence. Normal output Inverted Output They have two stable conditions and can be switched from one to the other by appropriate inputs. These stable conditions are usually called the states of the circuit. EE 202 : DIGITAL ELECTRONICS 7
  • 8. Introduction: Types Of Flip Flop 1. SR Flip Flop a. SR Flip Flop Active Low = NAND gates b. SR Flip Flop Active High = NOR gates 2. 3. 4. 5. 6. Clocked SR Flip Flop JK Flip Flop JK Flip Flop With Preset And Clear T Flip Flop D Flip Flop
  • 9. The Used of Flip Flop For Memory circuits � For Logic Control Devices � For Counter Devices � For Register Devices �
  • 10. 4.1 SR Flip Flop � � � � � � � The most basic Flip Flop is called SR Flip Flop. The basic RS flip flop is an asynchronous device. In asynchronous device, the outputs is immediately changed anytime one or more of the inputs change just as in combinational logic circuits. It does not operate in step with a clock or timing. These basic Flip Flop circuit can be constructed using two NAND gates latch or two NOR gates latch. SR Flip Flop Active Low = NAND gates SR Flip Flop Active High = NOR gates EE 202 : DIGITAL ELECTRONICS 10
  • 11. 4.1 SR Flip Flop � � Figure 4.1.1: SR Flip Flop logic Symbol � The SR Flip Flop has two inputs, SET (S) and RESET (R). � The SR Flip Flop has two outputs, Q and ¯ Q � The Q output is considered the normal output and is the one most used. � The other output ¯ is simply Q the compliment of output Q. EE 202 : DIGITAL ELECTRONICS 11
  • 12. 4.1 SR Flip Flop - NAND GATE LATCH � Two outputs, Q as normal output and Q as inverted output ¯ and feedback mechanism. � The feedback mechanism is required to form a sequential circuit by connecting the output of NAND-1 to the input of NAND-2 and vice versa. � NAND GATE LATCH The NAND gate version has two inputs, SET (S) and RESET (R). � � The circuit outputs depends on the inputs and also on the outputs. 1 2 � Figure 4.1.2: SR NAND (Active LOW) Logic circuit. EE 202 : DIGITAL ELECTRONICS 12
  • 13. 4.1 SR Flip Flop - NAND GATE LATCH � Figure 4.1.3 Feedback Mechanism EE 202 : DIGITAL ELECTRONICS 13
  • 14. 4.1SR Flip Flop - NAND GATE LATCH � 1 � � Normal Resting State Figure 4.1.4.a 1 0 0 0 � 1 2 1 1 1 � Input S=1 , R=1 , This is the normal resting state of the circuit and it has no Q effect of the output states. Output Q and ¯ will remain in whatever state they were in prior to the occurrence of this input condition. It works in HOLD mode of operation. EE 202 : DIGITAL ELECTRONICS 14
  • 15. 4.1 SR Flip Flop - NAND GATE LATCH � Figure 4.1.4.b � � 0 1 � 1 0 1 2 1 Input, S = 0, R = 1 This will set Q = 1. It works in SET mode operation. 0 EE 202 : DIGITAL ELECTRONICS 15
  • 16. 4.1 SR Flip Flop - NAND GATE LATCH � Figure 4.1.4.c � � 1 0 � 1 1 2 0 0 Input S = 1, R = 0 This will reset Q = 0. It works in RESET mode operation. 1 EE 202 : DIGITAL ELECTRONICS 16
  • 17. 4.1 SR Flip Flop - NAND GATE LATCH � 0 0 This condition tries to set and reset the NAND gate latch at the same time. � It produces Q = Q = 1 ¯ � This is unexpected condition, since the two outputs should be inverses of each other. � If the inputs are returned to 1 simultaneously, the output states are unpredictable. � This input condition should not be used and when circuits are constructed, the design should make this condition S = R = 0 never arises. It is called INVALID/PROHIBITED � Figure 4.1.4.d 1 0 2 1 1 1 EE 202 : DIGITAL ELECTRONICS 17
  • 18. 4.1 SR Flip Flop - NAND GATE LATCH � From the description of the NAND gate latch operation, it shows that the SET and RESET inputs are active LOW. � The SET input will set Q = 1 when SET is 0 (LOW).RESET input will reset Q = 0 when RESET is 0 (LOW) � In the prohibited/INVALID state both outputs are 1. This condition is not used on the RS flip-flop. The set condition means setting the output Q to 1. � Likewise, the reset condition means resetting (clearing) the output Q to 0. The last row shows the disabled, or hold, condition of the RS flip-flop. The outputs remain as they were before the hold condition existed. There is no change in the outputs from the previous states. � Figure 4.1.5 : SR NAND gate latch Truth Table S R Q Q ¯ STATUS 0 0 1 1 INVALID 0 1 1 0 SET 1 0 0 1 RESET 1 1 Q Q ¯ HOLD (NoChange) The flip-flop memorizes the previous condition. EE 202 : DIGITAL ELECTRONICS 18
  • 19. 4.1 SR NAND Flip Flop-Waveforms Example 4.1.1: Determine the output of NAND gate latch which Q initialy 0 for the given input waveform. S R Q Exercise 4.1.1: Determine the output of NAND gate latch which Q initially 1 for the given input waveforms. S R Q ¯Q Q ¯ EE 202 : DIGITAL ELECTRONICS 19
  • 20. 4.1 SR Flip Flop - NOR GATE LATCH � � NOR GATE LATCH The latch circuit can also be constructed using two NOR gates latch. � � The construction is similar to the NAND latch except that the normal output Q and inverted output ¯ have Q reversed positions. Figure 4.1.6: SR NOR (Active HIGH) Logic circuit EE 202 : DIGITAL ELECTRONICS 20
  • 21. 4.1 SR Flip Flop - NOR GATE LATCH SR FLIP FLOP NOR (Active HIGH) Logic circuit The analysis of a SR FLIP FLOP NOR : * S = 0, R = 0; This is the normal resting state of the circuit and it has no effect of the output states. Q and Q will remain in whatever ¯ state they were in prior to the occurrence of this input condition. It works in HOLD (no change) mode operation. • S = 0, R = 1; This will reset Q to 0, it works in RESET mode operation. EE 202 : DIGITAL ELECTRONICS 21
  • 22. 4.1 SR Flip Flop - NOR GATE LATCH S = 1, R = 0; This will set Q to 1, it works in SET mode operation. � S = 1, R = 1; This condition tries to set and reset the NOR gate latch at the same time, and it produces Q = Q = 0. This is an ¯ unexpected condition and are not used. � Since the two outputs should be inverse of each other. If the inputs are returned to 1 simultaneously, the output states are unpredictable. This input condition should not be used and when circuits are constructed, the design should make this condition SET=RESET = 1 never arises. EE 202 : DIGITAL ELECTRONICS 22
  • 23. 4.1 SR Flip Flop - NOR GATE LATCH � � From the description of the NOR gate latch operation, it shows that the SET and RESET inputs are Active HIGH. The SET input will set Q = 1 when SET is 1 (HIGH). RESET input will reset Q when RESET is 1 (HIGH). � Figure 4.1.7 : SR NOR gate latch Truth Table S R Q Q ¯ _ 0 0 Q Q 0 1 0 1 1 0 1 0 1 1 0 EE 202 : DIGITAL ELECTRONICS 0 STATUS HOLD (NoChange) RESET SET INVALID 23
  • 24. 4.1 SR NOR Flip Flop -Waveforms � Example 4.1.2: Determine the output of NOR gate latch which Q initially 0 for the given input waveforms. Exercise 4.1.2 : Determine the output of NOR gate latch which Q initially 1 for the given input waveforms. � S S R R Q Q ¯ Q ¯ Q EE 202 : DIGITAL ELECTRONICS 24
  • 25. 4.2 The CLOCK � � � In synchronous device, the exact times at which any output can change states are controlled by a signal commonly called the clock. The clock signal is generally a rectangular pulse train or a square wave as shown in figure 4.9. The clock is distributed to all parts of the system, and most of the system outputs can change state only when the clock makes a transition. EE 202 : DIGITAL ELECTRONICS 25
  • 26. 4.2 The CLOCK When the clock changes from a LOW state to a HIGH state, this is called the positive-going transition (PGT) or positive edge triggered. � When the clock changes from a HIGH state to a LOW state, it is called negative going transition (NGT) or negative edge triggered. Figure 4.2.1: Clock Pulse-Train Enable � (a) Positive going transition Disable (b) Negative going transition EE 202 : DIGITAL ELECTRONICS 26
  • 27. 4.2 Clocked SR Flip Flop Additional clock input is added to change the SR flipflop from an element used in asynchronous sequential circuits to one, which can be used in synchronous circuits. � The clocked SR flip flop logic symbol that is triggered by the PGT is shown in Figure 4.2.2 � Its means that the flip flop can change the output states only when clock signal makes a transition from LOW to HIGH. � � Figure 4.2.2 : PGT Clocked SR Flip flop symbol EE 202 : DIGITAL ELECTRONICS 27
  • 28. 4.2 Clocked RS Flip Flop Figure 4.2.3: Truth Table for clocked SR Flip Flop clock S R Q Q ¯ _ 0 0 Q Q STATUS 0 1 0 1 RESET 1 0 1 0 SET 1 1 0 0 INVALID HOLD (NoChange) •The Truth Table in figure 4.2.3 shows how the flip flop output will respond to the PGT at the clocked input for the various combinations of SR inputs and output. • The up arrow symbol indicates PGT. EE 202 : DIGITAL ELECTRONICS 28
  • 29. 4.2 Clocked SR Flip Flop � Example 4.2.1: Determine the output of PGT clocked SR flip flop which Q initially 0 for the given input waveforms � Cp Cp S S R R Q Q ¯ Q Exercise 4.2.1: Determine the output of PGT clocked SR flip flop which Q initially 1 for the given input waveforms. ¯ Q EE 202 : DIGITAL ELECTRONICS 29
  • 30. 4.2 Clocked SR Flip Flop � Figure 4.2.4 : NGT Clocked SR Flip flop symbol � � The clocked SR Flip Flop logic symbol that is triggered by the NGT is shown in Figure 4.2.4 It means that the Flip flop can change the output states only when clocked signal makes a transition from HIGH to LOW. EE 202 : DIGITAL ELECTRONICS 30
  • 31. 4.2 Clocked SR Flip Flop � Figure 4.2.5: CLOCKED SR FLIP FLOP LOGIC CIRCUIT EE 202 : DIGITAL ELECTRONICS 31
  • 32. 4.2 Clocked SR Flip Flop � Figure 4.2.6: CLOCKED SR FLIP FLOP LOGIC CIRCUIT � If used NOR Gate, must used AND Gate in front. EE 202 : DIGITAL ELECTRONICS 32
  • 33. 4.2 Clocked SR Flip Flop Cp Exercise 4.2.2: Determine the output of NGT clocked SR flip flop which Q initially 1 for the given input waveforms. Cp S S R R Q Q ¯ Q ¯ Q � Example 4.2.2: Determine the output of NGT clocked SR flip flop which Q initially 0 for the given input waveforms � EE 202 : DIGITAL ELECTRONICS 33
  • 34. 4.3 JK Flip Flop - Symbol � � � � � Another types of Flip flop is JK flip flop. It differs from the RS flip flops when J=K=1 condition is not indeterminate but it is defined to give a very useful changeover (toggle) action. Toggle means that Q and ¯ will Q switch to their opposite states. The JK Flip flop has clock input Cp and two control inputs J and K. Operation of Jk Flip Flop is completely described by truth table in Figure 4.3.3. � Figure 4.3.1 : PGT JK Flip flop symbol � Figure 4.3.2 : NGT JK Flip flop symbol EE 202 : DIGITAL ELECTRONICS 34
  • 35. 4.3 JK Flip Flop – Truth Table And Logic Circuit Figure 4.3.3: Truth Table for JK Flip Flop clock J K Q ¯ Q 0 0 _ Q Q � Figure 4.3.4: JK FLIP FLOP LOGIC CIRCUIT STATUS HOLD (No Change) 0 1 1 0 RESET 1 0 0 1 SET 1 1 _ Q Q Toggle EE 202 : DIGITAL ELECTRONICS 35
  • 36. 4.3 JK Flip Flop - waveforms Example 4.3.1 : Determine the output of PGT clocked JK flip flop for the given input waveforms which the Q initially 0. Clk J K Q EE 202 : DIGITAL ELECTRONICS 36
  • 37. 4.3 JK Flip Flop - waveforms Exercise 4.3.1 4.3.1:Determine the output of NGT clocked JK flip flop for the given input waveforms which the Q initially 0. Exercise 4.3.2 4.3.2:Determine the output of PGT clocked JK flip flop for the given input waveforms which the Q initially 0. Cp Cp J J K K Q Q ¯ Q ¯ Q EE 202 : DIGITAL ELECTRONICS 37
  • 38. 4.4 JK Flip Flop with Asynchronous Input � The J and K inputs are called synchronous inputs since they only influence the state of the flip flop when the clocked pulse is present. � This flip flop can also have other inputs called Preset (or SET) and clear that can be used for setting the flip flop to 1 or resetting it to 0 by applying the appropriate signal to the Preset and Clear inputs. � These inputs can change the state of the flip flop regardless of synchronous inputs or the clock. EE 202 : DIGITAL ELECTRONICS 38
  • 39. 4.4 JK Flip Flop with Preset and Clear Figure 4.4.1 : Symbol and Truth Table EE 202 : DIGITAL ELECTRONICS 39
  • 40. 4.4 JK Flip Flop with Asynchronous Input � Example 4.4.2 : The output of clocked JK flip flop which output initially 0 for the given input waveforms. Cp Preset Clear J K Q Q EE 202 : DIGITAL ELECTRONICS 40
  • 41. 4.4 JK Flip Flop with Asynchronous Input � Exercise 4.4.3 : The output of clocked JK flip flop which output initially 0 for the given input waveforms. Cp Preset Clear J K Q EE 202 : DIGITAL ELECTRONICS 41
  • 42. 4.5 T Flip Flop - Symbol � � The T flip flop has only the Toggle and Hold Operation. If Toggle mode operation. The output will toggle from 1 to 0 or vice versa. � Figure 4.5.1: Symbol for T Flip Flop T CP Figure 4.5.2 :Truth Table for T Flip Flop T clock Q Q 0 Q Q 1 Q Q EE 202 : DIGITAL ELECTRONICS status HOLD TOGOL 42
  • 43. 4.5 T Flip Flop – Logic Circuit Logic circuit T Flip flop using NOR gate Logic circuit T Flip flop using NAND gate T T Cp �Figure 4.5.3: Logic circuit for T Flip Flop EE 202 : DIGITAL ELECTRONICS 43
  • 44. 4.5 T Flip Flop – Waveforms Example 4.5.1 : Determine the output of PGT T flip flop for the given input waveforms which the Q initially 0. Clk T Q Q EE 202 : DIGITAL ELECTRONICS 44
  • 45. 4.5 T Flip Flop – Wave forms Exercise 4.5.1 : Determine the output of PGT T flip flop for the given input waveforms which the Q initially 0. Exercise 4.5.2 : Determine the output of NGT T flip flop for the given input waveforms which the Q initially 0. Cp Cp T T Q Q Q Q EE 202 : DIGITAL ELECTRONICS 45
  • 46. 4.6 D Flip Flop Also Known as Data Flip flop � Can be constructed from RS Flip Flop or JK Flip flop by addition of an inverter. � Inverter is connected so that the R input is always the inverse of S (or J input is always complementary of K). � The D flip flop will act as a storage element for a single binary digit (Bit). � � Figure 4.6.1 : � D Flip flop symbol EE 202 : DIGITAL ELECTRONICS 46
  • 47. 4.6 D Flip Flop - Symbol � PGT � NGT Positive Edge Q D Negative Edge Q D D Flip Flop D Flip Flop Clk Clk Q Q Figure 4.6.2 : D Flip flop symbol using JK Flip Flop / SR Flip Flop EE 202 : DIGITAL ELECTRONICS 47
  • 48. 4.6 D Flip Flop- Logic circuit-Truth Table � Figure 4.6.3: Logic circuit for D Flip Flop � Figure 4.6.4: Truth Table for D Flip Flop Q Q ¯ status 0 0 1 RESET 1 1 0 SET D clock Cp EE 202 : DIGITAL ELECTRONICS 48
  • 49. 4.6 D Flip Flop – Waveforms Example 4.6.1 : Determine the output of � PGT D flip flop for the given input waveforms which the Q initially 0. Exercise 4.6.1 Determine the output of NGT D flip flop for the given input waveforms, which output Q initially 0. Cp Cp D D Q Q Q Q EE 202 : DIGITAL ELECTRONICS 49
  • 50. 4.7 T Flip Flops and D Flip Flops can be Built using JK Flip Flop The JK flip flop is considered as a universal flip flop. � A combination of Jk flip flop and an inverter can construct a D Flip Flop as shown in Figure 4.18 � It also can construct T Flip Flop by combine both J and K inputs with HIGH level input as shown in Figure 4.19 � � Figure 4.7.1 : D Flip flop symbol using JK Flip Flop / SR Flip Flop � Figure 4.7.2 : T Flip flop symbol using JK Flip Flop / SR Flip Flop T EE 202 : DIGITAL ELECTRONICS 50
  • 51. References 1. "Digital Systems Principles And Application" Sixth Editon, Ronald J. Tocci. 2. "Digital Systems Fundamentals" P.W Chandana Prasad, Lau Siong Hoe, Dr. Ashutosh Kumar Singh, Muhammad Suryanata. Download Tutorials EE202 @ CIDOS http://www.cidos.edu.my
  • 52. The END……. Review Chapter Flip flop by Lecturer EE 202 : DIGITAL ELECTRONICS 52