Counter
Counter
1
1 FF F1= F / 2
=> = 16 / 2 =
8Hz
2 FF 2
F2= F / 2
=> = 16 / 4 =
4 Hz
3
3 FF F3= F / 2
=> = 16 / 8 = 2
Hz
4
4 FF F4= F / 2
=> = 16 /
16
= 1 Hz
4 4
8 200 Hz
100 Hz 400 Hz
50 Hz
2
16
Clock Input
800 Hz
q Counter may be UP – Counter or Down Counter
q A Down counter counts in downward direction i.e.….6,5,4,3,2,1,0 etc i.e. N,N-1, N- 2, N- 3…..1,0
q The number of states through which the counter passes before returning to starting state is called
q Since 2 bit counter has four states, its is called as mod – 4 counter. It requires two flip flops. It divides
q Similarly 3 bit counter uses 3 flip flop and has 23 = 8 states hence called as mod – 8 counter.
q In general, an 8 bit counter will have n FF and 2 n states and divides the input frequency by
q A mod-6 counter has six stable states 000, 001, 010, 011, 100,101.
q When sixth clock pulse will come counter will automatically goes
Clock Q3 Q2 Q1 Output of
reset
to 110 but immediately resets to 000.
logic R
q Number of FF requires are 3.
0 0 0 0 0
1 0 0 1 0
2 0 1 0 0
3 0 1 1 0
4 1 0 0 0
5 1 0 1 0
6 1 1 0 1
Q2Q1
Q3 00 01 11 10
1
X 1
R = Q3.Q2
DESIGN MOD-10 ASYNCHRONOUS /RIPPLE COUNTER USING T FLIP FLOP
q A mod-10 counter has six stable states 0000, 0001, 0010, 0011,
0100. 0101, 0110, 0111, 1000, 1001 Clock Q4 Q3 Q2 Q1 Output
of reset
q When sixth clock pulse will come counter will automatically logic R
goes to 1010 but immediately resets to 0000. 0 0 0 0 0 0
q Number of FF requires are 4.
1 0 0 0 1 0
Q2Q1
Q4Q3 00 01 11 10 2 0 0 1 0 0
00 3 0 0 1 1 0
01 4 0 1 0 0 0
11
X X X X 5 0 1 0 1 0
10
X 1 6 0 1 1 0 0
7 1 1 1 1 0
R = Q4.Q2
8 1 0 0 0 0
9 1 0 0 1 0
10 0 0 0 0 1
IMPLEMENT 3 BIT RIPPLE DOWN COUNTER USING D FLIP FLOP
SYNCHRONOUS COUNTER
qDetermine Number of Flip Flops required.
qState Diagram.
qFind type of FF to be used and excitation table.
qWrite truth table and k – map.
qDraw Logic diagram.
DESIGN 3 BIT (MOD – 8) SYNCHRONOUS UP COUNTER USING T FLIP FLOP
q A 3 bit synchronous counter has eight stable states 000, 001, 010, 011, 100. 101, 110, 111.
q Number of FF requires are 3.
Requires
Present State Next State
Excitation
Q3 Q2 Q1 Q’3 Q’2 Q’1 T3 T2 T1
0 0 0 0 0 0 1 0 0 1
1 0 0 1 0 1 0 0 1 1
2 0 1 0 0 1 1 0 0 1
3 0 1 1 1 0 0 1 1 1
4 1 0 0 1 0 1 0 0 1
5 1 0 1 1 1 0 0 1 1
State Diagram
6 1 1 0 1 1 1 0 0 1
7 1 1 1 0 0 0 1 1 1
Q2Q1
Q2Q1
Q3 00 01 11 10
Q3 00 01 11 10
0 1 0 1 1
1
1 1
1 1
T3 = Q2Q1 T2 = Q1
Q2Q1
Q3 00 01 11 10
0 1 1 1 1
1 1 1 1 1
T1 = 1
DESIGN 3 BIT (MOD – 8) SYNCHRONOUS UP COUNTER USING J-K FLIP FLOP
q A 3 bit synchronous counter has eight stable states 000, 001, 010, 011, 100. 101, 110, 111.
q Number of FF requires are 3.
1
0 X 1 1 X
0 0 1 X X
X X X X
1 X 1 1 X
1 1
1 X X
J3 = Q2Q1 K2 = Q1 J1 = 1
0 X X X X 0 X X 1 0 1 X X 1
1
1 1
X X 1 1 1 X X 1
K3 = Q2Q1 K2 = Q1 K1 = 1
Q1 Q2 Q3
(1)
0 0 0 0 0 1 0 0 1
0 0 1 0 1 1 0 1 0
0 1 1 1 0 0 1 1 1
1 0 0 1 0 1 0 0 1
1 0 1 1 1 1 0 1 0
1 1 1 0 0 0 1 1 1
Q2Q1 Q2Q1
10 Q3 00 01 11 10
Q3 00 01 11
0 0
1 1
T3 = Q2 T2 = Q1
Q2Q1
Q3 00 01 11 10
T1 T2 Q2 T3 Q3
T1 = Q2’ Q1
CLK
Ring Counter
q A ring counter is a special type of application of the Serial IN Serial OUT Shift register.
q The only difference between the shift register and the ring counter is that the last flip flop outcome is taken as
the output in the shift register.
q But in the ring counter, this outcome is passed to the first flip flop as an input. All of the remaining things in the
ring counter are the same as the shift register.
q The main point of this Counter is that it circulates a single bit(0/1) around the ring.
q The clock pulse (CLK) is applied to all the flip-flops simultaneously. Therefore, it is a Synchronous Counter.
q Also, here we use Overriding input (ORI) for each flip-flop. Preset (PR) and Clear (CLR) are used as ORI.
q When PR is 0, then the output is 1. And when CLR is 0, then the output is 0. Both PR and CLR are active low
signal that always works in value 0.
q PR = 0, Q = 1 CLR = 0, Q = 0
q R i n g c o u n te r s o f fe r s eve ra l
advantages, including simplicity
of design, compactness due to
the closed loop structure, and
the ability to generate
predictable sequences.
q They are well suited for
applications requiring repetitive
sequences, such as digital clocks,
LED displays, and control logic
in various systems.
Twisted Ring Counter/ Johnson Counter
q Twisted ring counter is also known as a switch-tail ring counter or Johnson counter .
q In this the inverted output of the last stage flip flop is connected to the input of first flip flop.
q This is an advantage of the Johnson counter that it requires only half number of flip flops that of a ring
counter uses, to design the same Mod.
THANK YOU
[email protected]