Module 4
Module 4
Module 4
Syllabus:
Flip-flops: SR, JK, T and D. Triggering of flip-flops- Master slave flip- flops, Edge- triggered flip- flops.
Excitation table and characteristic equation.
Registers: register with parallel load.
Counter design: Asynchronous counters- Binary and BCD counters, timing sequences and state
diagrams. Synchronous counters- Binary Up- down counter, BCD counter.
There are two types of sequential circuits. Their classification depends on the timing of their
signals:
1. Synchronous Sequential Circuits
2. Asynchronous Sequential Circuits
2. Flip Flops
Asynchronous sequential circuit This is a system whose outputs depend upon the order in
which its input variables change and can be affected at any instant of time.
Flip-flop is a circuit that maintains a state until directed by input to change the state.
A circuit that has two stable states is treated as a flip flop.
These stable states are used to store binary data that can be changed by applying varying
inputs.
The flip flops are the fundamental building blocks of the digital system.
Types of flip-flops:
a) SR Flip Flop
b) D Flip Flop
c) JK Flip Flop
d) T Flip Flop
a) S-R Flip Flop
The S-R flip flop is the most common flip flop used in the digital system.
In SR flip flop, when the set input "S" is true, the output Y will be high, and Y' will be
low.
4
Excitation Table
During the design process we usually know the transition from present state to next state and
wish to find the latch input conditions that will cause the required transition.
For this reason, we need a table that lists the required inputs for a given change of state. Such
a table is called an excitation table, and it specifies the excitation behavior of the sequential
circuits.
The excitation of the SR flip flop is as follows:
b) D Flip Flop
D flip flop is a slight modification of SR flip-flop.
From the figure you can see that the D input is connected to the S input and the complement
of the D input is connected to the R input.
d) T Flip Flop
This is a much simpler version of the J-K flip flop.
Both the J and K inputs are connected together and thus are also called a single input J-K flip
flop.
When clock pulse is given to the flip flop, the output begins to toggle.
The next sate of the T flip flop is similar to the current state when the T input is set to 0.
If toggle input is set to 0 and the present state is also 0, the next state will be 0.
If toggle input is set to 0 and the present state is 1, the next state will be 1.
The next state of the flip flop is opposite to the current state when the toggle input is set to 1.
If toggle input is set to 1 and the present state is 0, the next state will be 1.
If toggle input is set to 1 and the present state is 1, the next state will be 0.
7
Timing Diagram of JK Flip Flop
For J-K flip-flop, if J=K=1, and if CLK=1 for a long period of time, then Q output will
toggle as long as CLK is high, which makes the output of the flip-flop unstable or uncertain.
This problem is called race around condition in J-K flip-flop.
This problem can be avoided by ensuring that the clock input is at logic “1” only for a very
short time.
This introduced the concept of Master Slave JK flip flop.
The output from the master flip flop is connected to the two inputs of the slave flip flop whose
output is fed back to inputs of the master flip flop
When the clock makes a positive transition the master section is triggered but the slave section is
not because its clock is inverted. Ie when the clock pulse is 1, the slave flip flop will be in the
isolated state.
5. Binary Counter
A Counter is a device which stores the number of times a particular event or process has
occurred, often in relationship to a clock signal.
Counters are sequential circuit that count the number of pulses can be either in binary code or
BCD form.
Counters are used in digital electronics for counting purpose, they can count specific event
happening in the circuit.
They can also be designed with the help of flip flops.
The main properties of a counter are timing, sequencing, and counting.
Counter works in two modes Up counter and Down counter.
Counters are broadly divided into two categories depending upon clock pulse applied.
1. Asynchronous counter
2. Synchronous counter
In Asynchronous Counter is also known as Ripple Counter, different flip flops are triggered
with different clock, not simultaneously. While in Synchronous Counter, all flip flops are
triggered with same clock simultaneously.
Synchronous Counter is faster than asynchronous counter in operation.
Depending on the way in which the counting progresses, the synchronous or asynchronous
counters are classified as follows –
1. Up counters
2. Down counters
3. Up/Down counters
11
1. Asynchronous Counter
When -ve edge clock pulse is applied and input is given to FF logic 1 then the output state of
FF will toggle for every falling edge.
It is known as binary or mod -2 counter or bit ripple counter.
It has 2 unique output states (0 and 1).
12
Up Counter:
When two FFs are connected in series and output of one FF is act as clock for 2nd FF.
When the output state (i.e. Q) of previous FF is feed as clock to next FF then the counter will
perform up counting.
The state of 2nd FF will change only when output of the 1st FF is logic 0
It can generate 4 different unique states. This is known as divide by 4 circuits or mod 4
ripple counter.
The first negative-going edge of CLK (clock pulse) causes the Q0 output of FF1 to go
HIGH but it has no effect on FF2
After first negative-going edge - Q1Q0 is 01
In the second negative-going edge of CLK causes Q0 to go LOW and triggers FF2, causing
Q1 to go HIGH.
After second negative-going edge - Q1Q0 is 10
In the third negative-going edge of CLK causes Q0 to go HIGH again, it has no effect on
FF2.
After third negative-going edge - Q1Q0 is 11
In the fourth negative-going edge of CLK causes Q0 to go LOW, and triggers FF2 causing
Q1 to go LOW.
After fourth negative-going edge - Q1Q0 is 00
13
Down Counter:
When the complemented output state (i.e. Q’) of previous FF is feed as clock to next FF then
the counter will perform down counting
The state of 2nd FF will change only when output of the 1st FF is logic 1
The first negative-going edge of CLK (clock pulse) causes the Q0 output of FF1 to go
HIGH and Q0’ goes to LOW , it triggers FF2 causing Q1 to toggle from 0 to 1.
After first negative-going edge - Q1Q0 is 11
In the second negative-going edge of CLK causes Q0 to go LOW and Q0’ goes to HIGH, it
has no effect on FF2.
After second negative-going edge - Q1Q0 is 10
In the third negative-going edge of CLK causes Q0 to go HIGH and Q0’ goes to LOW , it
triggers FF2 causing Q1 to toggle from 1 to 0.
After third negative-going edge - Q1Q0 is 01
In the fourth negative-going edge of CLK causes Q0 to go LOW, and Q0’ goes to HIGH, it
has no effect on FF2.
After fourth negative-going edge - Q1Q0 is 00
14
Three FFs are connected in series and output of one FF is act as clock for next FF.
When the output state (i.e. Q) of previous FF is feed as clock to next FF then the counter will perform up
counting.
When the first clock pulse is applied, the FF1 changes state on its negative edge.
Therefore, Q2Q1Q0 = 001
On the negative edge of second clock pulse flip flop FF1 toggle, its output changes from 1 to 0.
This triggers the FF2 and it changes state.
Therefore, Q2Q1Q0 = 010
Similarly, the output of flip flop FF3 changes only when there is negative transition at its input
when fourth clock pulse is applied.
15
Exercise :
Up/Down counter is the combination of both the counters in which we can perform up or
down counting by changing the Mode control input.
Design of 3 bit Asynchronous up/down counter:
In this a mode control input (say M) is used for selecting up and down mode.
A combinational circuit is required between each pair of flip-flop to decide whether to do up
or do down counting.
n n
For n = 3, i.e for 3 bit counter Maximum count = 2 -1 and number of states are 2
1. Synchronous Counter
Unlike the asynchronous counter, synchronous counter has one global clock which drives
each flip flop so output changes in parallel.
The one advantage of synchronous counter over asynchronous counter is, it can operate on
higher frequency than asynchronous counter as it does not have cumulative delay because of
same clock is given to each flip flop.
For synchronous counters, all the flip-flops are using the same CLOCK signal.
Thus, the output would change synchronously.
Procedure to design synchronous counter are as follows:-
Step 1: Determine number of FF used and types of Flip Flops
Step 2: Write excitation table of Flip Flop
Step 3: Draw the State Transition Diagram and Circuit Excitation Table
Step 4: Find a simplified equation for each FF input using K- Map.
Step 5: Draw the circuit diagram
3bit Synchronous Up Counter
Step 3: Draw the State Transition Diagram and Circuit Excitation Table
3
For n= 3, 2 =8 states and Maximum count = 7
The circuit excitation table represents the present states of the counting sequence and the next states
after the clock pulse is applied and input T of the flip-flops. By seeing the transition between the
present state and the next state, we can find the input values of 3 Flip Flops using the Flip Flops
excitation table. The table is designed according to the required counting sequence.
20
Here T = 1, then there is output state (next state changes from previous state) changes i.e Q changes
from 0 to 1 or 1 to 0
T= 0 then, there is no state output state changes i.e Q remains same
Step 4: Find a simplified equation for each FF input using K- Map.
The circuit excitation table represents the present states of the counting sequence and the next states
after the clock pulse is applied and input T of the flip-flops. By seeing the transition between the
present state and the next state, we can find the input values of 3 Flip Flops using the Flip Flops
excitation table. The table is designed according to the required counting sequence.
If there is a change in the output state of a flip flop (i.e. 0 to 1 or 1 to 0), then the corresponding T
value becomes 1 otherwise 0.
23
Step 5: Find a simplified equation for each FF input using K- Map.
The simplified expression for Flip Flops is used to design circuit diagrams.
Here all the connections are made according to simplified expressions for Flip Flops.
24
Timing Diagram
The circuit excitation table represents the present states of the counting sequence and the next states
after the clock pulse is applied and input T of the flip-flops. By seeing the transition between the
present state and the next state, we can find the input values of 4 Flip Flops using the Flip Flops
excitation table. The table is designed according to the required counting sequence.
Here T = 1, then there is output state (next state changes from previous state) changes i.e Q changes
from 0 to 1 or 1 to 0
T= 0 then, there is no state output state changes i.e Q remains same
Step 4: Find a simplified equation for each FF input using K- Map.
26