Professional Documents
Culture Documents
Digital Electronics: CT 304N Unit-4 (Part:1) Flip Flops & Sequential Logic and Circuits
Digital Electronics: CT 304N Unit-4 (Part:1) Flip Flops & Sequential Logic and Circuits
Unit–4 (Part:1)
Flip Flops
&
Sequential Logic and Circuits
2
Sequential circuits
• Sequential circuits :
Sequential circuits are those which are dependent on clock cycles and
depends on present as well as past inputs to generate any output.
3
Difference
Sr. No. Combinational Circuit Sequential Circuit
3 Clock signals are not required and it is not Clock signals are required and it is dependent on
dependent on time. time and clock so need triggering.
5
Sequential circuits
Sequential circuits can be Asynchronous or
synchronous.
Asynchronous sequential circuits change their states
and output values whenever a change in input
values occurs.
Synchronous sequential circuits change their states
and output values at fixed points of time, i.e. clock
signals.
6
Synchronous Clocked Sequential Circuit
7
Memory Devices
Latches A latch is a memory element whose excitation
signals control the state of the device. A latch has two
stages set and reset. Set stage sets the output to 1.
Reset stage set the output to 0.
Flip-flops A flip-flop is a memory device that has clock
signals control the state of the device.
8
Latches: SR Latch
9
SR Latch with NAND Gates
10
Timing Diagram of RS-Latch
11
SR Latch with Control Input
The operation of the basic SR latch can be modified by
providing an additional control input that determines when
the state of the latch can be changed. In Fig. 5-5, it consists
of the basic SR latch and two additional NAND gates.
12
D Latch
13
Graphic Symbols for latches
A latch is designated by a rectangular block with inputs on
the left and outputs on the right. One output designates the
normal output, and the other designates the complement
output.
14
Flip-Flops
• The state of a latch or flip-flop is switched by a change in the control input.
• This momentary change is called a trigger and the transition it cause is
said to trigger the flip-flop.
• The D latch with pulses in its control input is essentially a flip-flop that is
triggered every time the pulse goes to the logic 1 level.
• As long as the pulse input remains in the level, any changes in the data
input will change the output and the state of the latch.
15
Clock Response in Latch
16
Clock Response in Flip-Flop
17
Latch Flip-flop
18
Latch and Flip-Flop Devices
Device # of Description
Elements
74LS73A 2 Negative-edge triggered JK flip-flop with clear
7474 2 Positive-edge triggered D flip-flop with preset and clear
74LS75 4 D Latch with enable
7476 2 Pulse-edge triggered JK flip-flop with preset and clear
74111 2 Master-slave JK flip-flop with preset, clear, and data lock out
74116 2 4-bit hazard-free D latch with clear and dual enable
74175 4 Positive-edge triggered D flip-flop with clear
74273 8 Positive-edge triggered D flip-flop with clear
74276 4 Negative-edge triggered JK flip-flop with preset and clear
74279 4 SR latch with active-low inputs
19
Edge-Triggered D Flip-Flop
The first latch is called the master and the second the
slave. The circuit samples the D input and changes its output
Q only at the negative-edge of the controlling clock.
D 110011…
Y 110011…
Q ? 1 1 0 0 1 ….
CLK
20
D-Type Positive-Edge-Triggered Flip-Flop
21
Graphic Symbol for Edge-Triggered D Flip-Flop
22
JK Flip Flop
Clk J K Qn+1
No
X X X
change
No
1 0 0
change
1 0 1 0
1 1 0 1
Toggle
1 1 1
(Q’)
23
Racing in JK Flip Flop
• For this simple J K flip flop, the toggling will occur as soon as J=k=1
and clock is high (1) and the rate of toggling would be determined by
the propagation delay around the circuit. Thus, this makes the output
of the flip flop unpredictable at anytime from the clock state. This is
called ‘race around condition’ or racing.
• Therefore, to avoid such a condition we use a Master Slave circuit
arrangement. Using this makes the transmission of the J value
delayed by half a clock cycle to the output and thus not immediately
fed back to the input side.
24
Master-Slave JK Flip-Flop
25
JK Flip-Flop
There are three operations that can be performed with a flip-flop: set it to 1,
reset it to 0, or complement its output. The JK flip-flop performs all three
operations. The circuit diagram of a JK flip-flop constructed with a D flip-
flop and gates.
26
JK Flip-Flop
The J input sets the flip-flop to 1, the K input resets it to 0, and when both
inputs are enabled, the output is complemented. This can be verified by
investigating the circuit applied to the D input:
D = J Q` + K` Q
27
T Flip-Flop
28
T Flip-Flop
29
Characteristic Tables
31
Characteristic Tables (cont.)
D Flip-Flop
D Q(t+1) Operation
0 0 Set
1 1 Reset
32
Characteristic Equations
Q(t + 1) = D
33
JK Flip Flop
34
Direct Inputs
• Some flip-flops have asynchronous inputs that are used to force the flip-
flop to a particular state independent of the clock.
• The input that sets the flip-flop to 1 is called preset or direct set.
• The input that clears the flip-flop to 0 is called clear or direct reset.
• When power is turned on a digital system, the state of the flip-flops is
unknown.
• The direct inputs are useful for bringing all flip-flops in the system to a
known starting state prior to the clocked operation.
35
D Flip-Flop with Asynchronous Reset
36
D Flip-Flop with Asynchronous Reset
37
Applications of Flip Flops
• There are various applications of the flip flops as they are one of the
most basic unit in electronic circuits. Some are specified as follows:
• Shift Registers
• Frequency dividers
• Storage registers (Memory)
• Counters
38
Unit-4 (Part:1)
The End
39