Module2 DDCO FF
Module2 DDCO FF
Sequential Circuits
Sequential Logic - Introduction
• By adding gates to the inputs of the basic circuit, the flip-flop can
be made to respond to input levels during the occurrence of a
clock pulse.
• The clocked RS flip-flop shown in Fig. 6-4(a) consists of a basic
NOR flip-flop and two AND gates.
• The outputs of the two AND gates remain at 0 as long as the clock
pulse (abbreviated CP) is 0, regardless of the S and R input values.
• When the clock pulse goes to 1, information from the S and R
inputs is allowed to reach the basic flip-flop.
• The set state is reached with S = 1, R = 0. and CP = 1. To change to
the clear state, the inputs must be S = 0, R = 1, and CP = 1. With
both S = 1 and R = 1, the occurrence of a clock pulse causes both
outputs to momentarily go to 0.
• It is possible to strobe or clock the flip-flop in
order to store information (set it or reset it) at
any time, and then hold the stored
information for any desired period of time.
This FF is called a gated or Clocked RS
flip-flop.
D Flip-Flop
S
R
• The D flip-flop shown in Fig. is a modification of the
clocked RS flip-flop.
• NAND gates 1 and 2 form a basic flip-flop and gates 3
and 4 modify it into a clocked RS flip-flop.
• The D input goes directly to the S input, and its
complement, through gate 5, is applied to the R
input.
• As long as the clock pulse input is at 0, gates 3 and 4
have a 1 in their outputs, regardless of the value of
the other inputs.
• The D input is sampled during the occurrence of a
clock pulse, if it is 1, the output of gate 3 goes to 0,
switching the flip-flop to the set state (unless it was
already set). If it is 0, the output of gate 4 goes to 0,
switching the flip-flop to the clear state.
• The D flip-flop receives the designation from its
ability to transfer “data” into a flip-flop.
• It is basically an RS flip-flop with an inverter in the R
input. The added inverter reduces the number of
inputs from two to one. This type of flip-flop is
sometimes called a gated D-latch.
• The CP input is often given the variable designation G
(for gate) to indicate that this input enables the
gated latch to make possible the data entry into the
flip-flop.
Clocked D flip-flop
JK Flip-Flop
• A JK flip-flop is a refinement of the RS flip-flop in that
the indeterminate state of the RS type is defined in
the JK type.
• Inputs J and K behave like inputs S and R to set and
clear the flip-flop (note that in a JK flip-flop, the letter
J is for set and the letter K is for clear).
• When inputs are applied to both J and K
simultaneously, the flip-flop switches to its
complement state, that is, if Q = 1, it switches to Q =
0, and vice versa.
• A clocked JK flip-flop is shown in Fig. Output Q is ANDed with
K and CP inputs so that the flip-flop is cleared during a clock
pulse only if Q was previously 1.
• Similarly, output Q′ is ANDed with J and CP inputs so that the
flip-flop is set with a clock pulse only if Q′ was previously 1.
• The JK flip-flop behaves like an RS flip-flop, except when both J
and K are equal to 1. When both J and K are 1, the clock pulse
is transmitted through one AND gate only—the one whose
input is connected to the flip-flop output which is presently
equal to 1.
• Thus, if Q = 1, the output of the upper AND gate becomes 1
upon application of a clock pulse, and the flip-flop is cleared.
• If Q′ = 1, the output of the lower AND gate becomes a 1 and
the flip-flop is set. In either case, the output state of the flip-
flop is complemented.
T Flip-flop