Module 3 - 2. Synchronous Sequential Circuits
Module 3 - 2. Synchronous Sequential Circuits
4 SYNCHRONOUS COUNTERS 11
5 SHIFT REGISTERS 17
5.1 Serial-in parallel-out shift register 17
5.2 Serial-in serial-out shift register 18
5.3 Parallel-in parallel-out shift register 18
5.4 Parallel-in serial-out shift register 19
5.5 Universal shift register 20
6 SHIFT COUNTERS 21
6.1 Ring counter 21
6.2 Johnson counter 22
ANALYSIS PROCEDURE
1. Determine the flip-flop input and the circuit output functions from the logic
diagram.
2. Determine the next state equations using characteristic equation of flip flops
3. Derive the state table.
4. Draw the state diagram.
State table
The state table consists of four sections which are present state, input, next state and
output.
l The present state designates the states of flip-flops before the occurrence of a
clock pulse.
l The next state shows the states of flip-flops after the application of a clock
pulse.
l The output section lists the values of the output variables during the present
state.
State diagram
l State diagram is a pictorial representation of information available in state
table.
Problems
2
1) Derive the state table and state diagram of the following sequential circuit
Q (t+1) = Q ⊕ T
Substitute input function in above equation
2) A sequential circuit has two JK flip-flops, one input x, and one output y. The logic
diagram of the circuit is shown below. Derive the state table and state diagram of the
circuit.
3
3) A sequential circuit has two JK flip-flops A and B; one inputs x and one output z, the flip-
flop input functions and the circuit output functions are as follows
'
J A =B ; J B=x
' ' '
K A =B x ; K B= A x + x A = A ⨁ x ; Z= A ⨁ B
4
4. A sequential circuit has one JK flip-flop; one input, x; and no output. The logic diagram of
the circuit is shown below. Derive the state table and draw the state diagram.
5
2. Determine the number of flip-flops required using the condition given below and
assign a letter to the output of each flipflop.
2n ≥ N N = Number of states
n = Number of flip-flops
3. Derive the flipflop inputs and outputs from the state table
4. Obtain the flip-flop input functions and output functions using K-map method
Design Problems:
1. Design a sequential circuit using D flip-fop for the state diagram given below. The
circuit has one input T and no output.
D = Q⊕T
(v) Logic Diagram
7
2. Design a sequential circuit with two JK flip-flops (A, B), one input (x) and one
output (y) for the given state diagram
JA = B KA = B'
JB = (A⊕X)' KB = (A⊕X)'
Y = A⊕B⊕X
3. Design a sequential circuit with two D flip-flops (A, B), one input (X) and one
output (Y) for the given state diagram
4 SYNCHRONOUS COUNTERS
11
A sequential circuit that goes through a sequence of states, when input pulses (clock
pulses) are applied is called a counter. A counter which changes its states with each clock
pulse is a synchronous counter. The sequence it follows may be the binary number sequence
or any other sequence of states (non-binary).
A counter that follows the binary number sequence is called as a binary counter. An
n-bit binary counter consists of n- flip-flops and can count in binary from 0 to 2 n -1. Counters
are used for counting the number of occurrences of an event and for generating timing
sequence to control operation in digital system.
MOD-2 counter counts 2 discrete states (0 and 1) and it consists of a single flip-flop.
MOD-3 counter counts 3 discrete states (00, 01 and 10) and it consists of (2 2 ≥ 3) = 2 flip-
flops. The two flip-flop counter has natural count of 4 discrete states. But mod-3 counter is
designed in such a way that it skips over the fourth state (i.e. 11) and repeats only the three
counts. Similarly, a MOD-10 counter (decade counter) has 10 distinct states, so it has 10
counts and (24 ≥ 10) = 4 flip-flops.
State diagram of a 3-bit counter is shown in Figure. The flip-flop outputs repeat the
binary sequence after 111 with a return to 000. The state of counter changes with application
of clock pulse, which is the only input to the circuit. The flip-flop remains in the same state if
no clock pulse occurs. The outputs are specified by present state of flip-flops.
The 3-bit binary counter is also a MOD-8 counter, which follows a binary sequence with
12
8 distinct states.
The binary counters can be constructed with any flip-flops. Generally, T flip-flops
are used because of their complementing property.
The excitation table for the 3-bit binary counter is shown below:
Flipflop inputs
Present State Next State
(from excitation table)
A2 A1 A0 A2(t+1) A1(t+1) A0(t+1) TA2 TA1 TA0
0 0 0 0 0 1 0 0 1
0 0 1 0 1 0 0 1 1
0 1 0 0 1 1 0 0 1
0 1 1 1 0 0 1 1 1
1 0 0 1 0 1 0 0 1
1 0 1 1 1 0 0 1 1
1 1 0 1 1 1 0 0 1
1 1 1 0 0 0 1 1 1
The excitation for the T- inputs of the T flip-flop is obtained using excitation table of
T flip-flop by looking at the present state and next state of flip-flops in the state table.
13
BINARY UP COUNTER:
An n-bit synchronous binary up counter goes through the binary states in order
from 0 to 2n-1. For example, a 2-bit binary up counter goes through the binary states in
order from 0 to 3 i.e. it goes like 00,01,10,11 and again goes back to 00 to repeat the count
for each clock pulse.
A 2-bit synchronous binary up counter is designed as follows:
State diagram for 2-bit binary counter:
Excitation table:
A B A(t+1) B(t+1) JA KA JB KB
0 0 0 1 0 x 1 x
0 1 1 0 1 x x 1
1 0 1 1 x 0 1 x
1 1 0 0 x 1 x 1
An-bit synchronous binary down counter goes through the binary states in reverse
order from 2n– 1 to 0. For example a binary 4-bit down counter (24–1 = 15 to 0) counts
down from 1111 to 0000 and back to 1111 to repeat the count.
2n ≥ N, where N is the number of states and n is the number of flip-flops required. So,
here 2n ≥ 4, as there are 4 states (00, 01, 10, and 11).
n=2 is the minimum number of flip-flop required for designing the 2-bit up-counter circuit.
Excitation table:
A counter capable of counting either up or down can be combined in one circuit with
a selection input.
The circuit of a 2-bit up–down binary counter using T flip‐flops has an up/down
control input X. When the input X is 1, the circuit counts up (00 to 11) and when the input X
is 0, the circuit counts down (11 to 00).
Excitation table:
Input Flip-flop
Present state Next state
Up/Down Input
X A B A(t+1) B(t+1) TA TB
1 0 0 0 1 0 1
1 0 1 1 0 1 1
1 1 0 1 1 0 1
1 1 1 0 0 1 1
0 1 1 1 0 0 1
0 1 0 0 1 1 1
0 0 1 0 0 0 1
0 0 0 1 1 1 1
5 SHIFT REGISTERS
If a logic ‘1’ is connected to the DATA input pin of FF A (flipflop – A) then on the first
clock pulse, the output of FFA will be set HIGH ie., QA becomes ‘1’ and the remaining
flipflops may have a logic ‘1’ or logic ‘0’ (specified as don’t cares in the logic table given
below). Assume now that the DATA input pin of FFA is logic ‘0’.
The next clock pulse will change the output of FF A to logic ‘0’ and the output of FF B
and QB HIGH to logic ‘1’. The logic ‘1’ has now moved or been ‘shifted’ one place along the
18
register to the right. When the third clock pulse arrives this logic ‘1’ values moves to the
output of FFc (Qc) and so on.
The effect of each clock pulse is to shift the DATA contents of each stage one place to
the right, and this is shown in the following table. After the complete DATA is stored, it can
be read directly from the outputs of QA to QD. The DATA has been converted from a Serial
Data to a Parallel Data.
This type of shift register also acts as a temporary storage device or as a time delay device,
with the amount of time delay being controlled by the number of stages in the register, 4, 8,
16 etc. by varying the application of the clock pulses.
19
Parallel-in serial-out shift register accepts data in parallel and produces the stored
information on its output in serial form. Each flipflop accepts its input data at the same time
and the stored data will be available at the output one after the other in the serial form.
The DATA is applied in parallel form to the parallel input pins D A to DD of the register
and is then read out serially from the last flip flop output Q D, one bit at a time on each clock
cycle.
4 – bit Parallel in serial out Shift register
20
As this type of shift register converts parallel data into serial data, it can be used to multiplex
many different input lines into a single serial DATA stream which can be sent directly to a
computer or transmitted over communication lines.
5.5 Universal Shift Register
A shift register that can shift left and shift right is called a bidirectional shift
register. If a register has both shifts (shift left and shift right) and parallel load capability then
it is a universal shift register.
OPERATION
6 SHIFT COUNTERS
6.1 RING COUNTER
The ring counter is a circular shift register in which the output of the last flip-flop is
connected to the input of the first flip-flop and the output of the first flip flop is connected to
input of second flip flop and so on. Initially, only the last flip-flops (FF D) is preset with logic
21
1 and all the other flip-flops (FFA to FFC) are RESET (using CLEAR input) ie., the initial
value of the register is “0001”.
When the clock pulse is applied, the output of a flipflop will be shifted to the next
flipflop and the last flipflop’s output is shifted to the input of the first flip-flop.
Note: An n-stage Ring counter produces n states, so it may be considered to be a
mod-n counter.
Logic diagram of 4 bit Ring counter:
Logic Table:
CLK QA QB QC QD
0 0 0 0 1 Initial condition
1 1 0 0 0
2 0 1 0 0
3 0 0 1 0
4 0 0 0 1
5 1 0 0 0 Sequence repeats
content is shifted once to the right and at the same time the complemented output value of the
last flip-flop is transferred into the first flipflop.
Note: An n-stage Johnson counter will go through a sequence of 2n states.
Logic Table:
Clock
QA QB QC QD
Pulse
0 0 0 0 0 Initial condition
1 1 0 0 0
2 1 1 0 0
3 1 1 1 0
4 1 1 1 1
5 0 1 1 1
6 0 0 1 1
7 0 0 0 1
8 0 0 0 0 Sequence repeats