SlideShare a Scribd company logo
Digital Electronics
Sequential Circuits: Counters
Nilesh Bhaskarrao Bahadure
nbahadure@gmail.com
https://www.sites.google.com/site/nileshbbahadure/home
July 1, 2021
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 1 / 29
Overview
1 Counters
Classification of counters
Comparison between Synchronous and Asynchronous counters
2 Asynchronous Counter
2-Bit Asynchronous Binary Counter
3-Bit Asynchronous Binary Counter
Asynchronous Decade Counter
3 Synchronous Counter
Ring Counters
Johnson/Twisted-Ring Counters
4 Thank You
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 2 / 29
Counters
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 3 / 29
Counters
In digital logic and computing, a counter is a device which stores (and
sometimes displays) the number of times a particular event or process has
occurred, often in relationship to a clock signal.
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 3 / 29
Classification of counters
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 4 / 29
Classification of counters
In electronics, counters can be implemented quite easily using register-type
circuits such as the flip-flop, and a wide variety of classifications exist:
1 Asynchronous (ripple) counter - changing state bits are used as clocks
to subsequent state flip-flops.
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 4 / 29
Classification of counters
In electronics, counters can be implemented quite easily using register-type
circuits such as the flip-flop, and a wide variety of classifications exist:
1 Asynchronous (ripple) counter - changing state bits are used as clocks
to subsequent state flip-flops.
2 Synchronous counter - all state bits change under control of a single
clock.
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 4 / 29
Classification of counters
In electronics, counters can be implemented quite easily using register-type
circuits such as the flip-flop, and a wide variety of classifications exist:
1 Asynchronous (ripple) counter - changing state bits are used as clocks
to subsequent state flip-flops.
2 Synchronous counter - all state bits change under control of a single
clock.
3 Decade counter - counts through ten states per stage.
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 4 / 29
Classification of counters
In electronics, counters can be implemented quite easily using register-type
circuits such as the flip-flop, and a wide variety of classifications exist:
1 Asynchronous (ripple) counter - changing state bits are used as clocks
to subsequent state flip-flops.
2 Synchronous counter - all state bits change under control of a single
clock.
3 Decade counter - counts through ten states per stage.
4 Up/down counter - counts both up and down, under command of a
control input.
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 4 / 29
Classification of counters
In electronics, counters can be implemented quite easily using register-type
circuits such as the flip-flop, and a wide variety of classifications exist:
1 Asynchronous (ripple) counter - changing state bits are used as clocks
to subsequent state flip-flops.
2 Synchronous counter - all state bits change under control of a single
clock.
3 Decade counter - counts through ten states per stage.
4 Up/down counter - counts both up and down, under command of a
control input.
5 Ring counter - formed by a shift register with feedback connection in
a ring.
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 4 / 29
Classification of counters
In electronics, counters can be implemented quite easily using register-type
circuits such as the flip-flop, and a wide variety of classifications exist:
1 Asynchronous (ripple) counter - changing state bits are used as clocks
to subsequent state flip-flops.
2 Synchronous counter - all state bits change under control of a single
clock.
3 Decade counter - counts through ten states per stage.
4 Up/down counter - counts both up and down, under command of a
control input.
5 Ring counter - formed by a shift register with feedback connection in
a ring.
6 Johnson counter - a twisted ring counter.
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 4 / 29
Comparison between Synchronous and Asynchronous
counters
1 In, Asynchronous the clock pulse inputs of all flip flops, except the
first, are triggered not by the incoming pulses, but rather by the
transition that occurs in previous flip flop’s output. Whereas In a
synchronous counter, the input pulses are applied to all clock pulse
inputs of all flip flops simultaneously (directly).
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 5 / 29
Comparison between Synchronous and Asynchronous
counters
1 In, Asynchronous the clock pulse inputs of all flip flops, except the
first, are triggered not by the incoming pulses, but rather by the
transition that occurs in previous flip flop’s output. Whereas In a
synchronous counter, the input pulses are applied to all clock pulse
inputs of all flip flops simultaneously (directly).
2 Asynchronous counter is also known as serial sequential circuit
whereas Synchronous counter is also known as parallel sequential
circuit.
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 5 / 29
Comparison between Synchronous and Asynchronous
counters
1 In, Asynchronous the clock pulse inputs of all flip flops, except the
first, are triggered not by the incoming pulses, but rather by the
transition that occurs in previous flip flop’s output. Whereas In a
synchronous counter, the input pulses are applied to all clock pulse
inputs of all flip flops simultaneously (directly).
2 Asynchronous counter is also known as serial sequential circuit
whereas Synchronous counter is also known as parallel sequential
circuit.
3 Asynchronous counters are slower than synchronous counter whereas
Synchronous counters are faster than asynchronous counter
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 5 / 29
Comparison between Synchronous and Asynchronous
counters
1 In, Asynchronous the clock pulse inputs of all flip flops, except the
first, are triggered not by the incoming pulses, but rather by the
transition that occurs in previous flip flop’s output. Whereas In a
synchronous counter, the input pulses are applied to all clock pulse
inputs of all flip flops simultaneously (directly).
2 Asynchronous counter is also known as serial sequential circuit
whereas Synchronous counter is also known as parallel sequential
circuit.
3 Asynchronous counters are slower than synchronous counter whereas
Synchronous counters are faster than asynchronous counter
4 Asynchronous circuits are quite difficult to design for a reliable
operation. Whereas Synchronous circuits are easy to design for a
reliable operation.
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 5 / 29
Comparison between Synchronous and Asynchronous
counters
1 In, Asynchronous the clock pulse inputs of all flip flops, except the
first, are triggered not by the incoming pulses, but rather by the
transition that occurs in previous flip flop’s output. Whereas In a
synchronous counter, the input pulses are applied to all clock pulse
inputs of all flip flops simultaneously (directly).
2 Asynchronous counter is also known as serial sequential circuit
whereas Synchronous counter is also known as parallel sequential
circuit.
3 Asynchronous counters are slower than synchronous counter whereas
Synchronous counters are faster than asynchronous counter
4 Asynchronous circuits are quite difficult to design for a reliable
operation. Whereas Synchronous circuits are easy to design for a
reliable operation.
5 Example of asynchronous counter, Binary Ripple Counter, Up Down
Counter whereas example Synchronous counters Ring Counter,
Twisted ring counter.
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 5 / 29
Asynchronous Counter
Ripple Counter
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 6 / 29
Asynchronous Counter
Ripple Counter
Asynchronous counters called ripple counters, the first flip-flop is clocked
by the external clock pulse and then each successive flip-flop is clocked by
the output of the receding flip-flop. The term asynchronous refers to
events that do not have a fixed time relationship with each other. An
asynchronous counter is one in which the flip-flops within the counter do
not change states at exactly the same time because they do not have a
common clock pulse.
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 6 / 29
2-Bit Asynchronous Binary Counter
Figure : 2-Bit Asynchronous Binary Counter
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 7 / 29
2-Bit Asynchronous Binary Counter
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 8 / 29
2-Bit Asynchronous Binary Counter
A 2-Bit Asynchronous Binary Counter figure 1 shows a 2-bit counter
connected for asynchronous operation. Notice that the clock (CLK) is
applied to the clock input (C) of only the first flop-flop, FF0, which is
always the least significant bit (LSB). The second flip-flop, FF1, is
triggered by the Q0 out-put of FF0. FF0 changes state at the
positive-going edge of each clock pulse. But FF1 changes only when
triggered by a positive-going transition of the Q0 output of FF0. Because
of the inherent propagation delay tie through a flip-flop, a transition of the
input clock pulse (CLK) and a transition of the Q0 output of FF0 can
never occur at exactly the same time . Therefore, the two flip-flops are
never simultaneously triggered, so the counter operation is asynchronous.
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 8 / 29
2-Bit Asynchronous Binary Counter
Timing Diagram
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 9 / 29
2-Bit Asynchronous Binary Counter
Timing Diagram
Applying 4 clock pulses to FF0, Both flip-flops are connected for toggle operation (J=1,
K=1) and initially RESET (Q LOW).
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 9 / 29
2-Bit Asynchronous Binary Counter
Timing Diagram
Applying 4 clock pulses to FF0, Both flip-flops are connected for toggle operation (J=1,
K=1) and initially RESET (Q LOW). The positive-going edge of CLK1 (clock pulse1)
causes the Q 0 output of FF0 to go HIGH.
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 9 / 29
2-Bit Asynchronous Binary Counter
Timing Diagram
Applying 4 clock pulses to FF0, Both flip-flops are connected for toggle operation (J=1,
K=1) and initially RESET (Q LOW). The positive-going edge of CLK1 (clock pulse1)
causes the Q 0 output of FF0 to go HIGH. At the same time the Q0 output goes LOW,
but it has no effect on FF1 because a positive-going transition must occur to trigger the
flip-flop.
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 9 / 29
2-Bit Asynchronous Binary Counter
Timing Diagram
Applying 4 clock pulses to FF0, Both flip-flops are connected for toggle operation (J=1,
K=1) and initially RESET (Q LOW). The positive-going edge of CLK1 (clock pulse1)
causes the Q 0 output of FF0 to go HIGH. At the same time the Q0 output goes LOW,
but it has no effect on FF1 because a positive-going transition must occur to trigger the
flip-flop. After the leading edge of CLK1, Q0=1 & Q1=0.
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 9 / 29
2-Bit Asynchronous Binary Counter
Timing Diagram
Applying 4 clock pulses to FF0, Both flip-flops are connected for toggle operation (J=1,
K=1) and initially RESET (Q LOW). The positive-going edge of CLK1 (clock pulse1)
causes the Q 0 output of FF0 to go HIGH. At the same time the Q0 output goes LOW,
but it has no effect on FF1 because a positive-going transition must occur to trigger the
flip-flop. After the leading edge of CLK1, Q0=1 & Q1=0. The positive-going edge of
CLK2 causes Q0 to go LOW. Q0 goes HIGH and triggers FF1, causing Q1 to go HIGH.
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 9 / 29
2-Bit Asynchronous Binary Counter
Timing Diagram
Applying 4 clock pulses to FF0, Both flip-flops are connected for toggle operation (J=1,
K=1) and initially RESET (Q LOW). The positive-going edge of CLK1 (clock pulse1)
causes the Q 0 output of FF0 to go HIGH. At the same time the Q0 output goes LOW,
but it has no effect on FF1 because a positive-going transition must occur to trigger the
flip-flop. After the leading edge of CLK1, Q0=1 & Q1=0. The positive-going edge of
CLK2 causes Q0 to go LOW. Q0 goes HIGH and triggers FF1, causing Q1 to go HIGH.
After the leading edge of CLK2, Q0=0 & Q1=1.
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 9 / 29
2-Bit Asynchronous Binary Counter
Timing Diagram
Applying 4 clock pulses to FF0, Both flip-flops are connected for toggle operation (J=1,
K=1) and initially RESET (Q LOW). The positive-going edge of CLK1 (clock pulse1)
causes the Q 0 output of FF0 to go HIGH. At the same time the Q0 output goes LOW,
but it has no effect on FF1 because a positive-going transition must occur to trigger the
flip-flop. After the leading edge of CLK1, Q0=1 & Q1=0. The positive-going edge of
CLK2 causes Q0 to go LOW. Q0 goes HIGH and triggers FF1, causing Q1 to go HIGH.
After the leading edge of CLK2, Q0=0 & Q1=1.
The positive-going edge of CLK3 causes Q0 to go HIGH again.
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 9 / 29
2-Bit Asynchronous Binary Counter
Timing Diagram
Applying 4 clock pulses to FF0, Both flip-flops are connected for toggle operation (J=1,
K=1) and initially RESET (Q LOW). The positive-going edge of CLK1 (clock pulse1)
causes the Q 0 output of FF0 to go HIGH. At the same time the Q0 output goes LOW,
but it has no effect on FF1 because a positive-going transition must occur to trigger the
flip-flop. After the leading edge of CLK1, Q0=1 & Q1=0. The positive-going edge of
CLK2 causes Q0 to go LOW. Q0 goes HIGH and triggers FF1, causing Q1 to go HIGH.
After the leading edge of CLK2, Q0=0 & Q1=1.
The positive-going edge of CLK3 causes Q0 to go HIGH again. Output Q0 goes LOW
and has no effect on FF1. Thus, after the leading edge of CLK3, Q0 & Q1=1.
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 9 / 29
2-Bit Asynchronous Binary Counter
Timing Diagram
Applying 4 clock pulses to FF0, Both flip-flops are connected for toggle operation (J=1,
K=1) and initially RESET (Q LOW). The positive-going edge of CLK1 (clock pulse1)
causes the Q 0 output of FF0 to go HIGH. At the same time the Q0 output goes LOW,
but it has no effect on FF1 because a positive-going transition must occur to trigger the
flip-flop. After the leading edge of CLK1, Q0=1 & Q1=0. The positive-going edge of
CLK2 causes Q0 to go LOW. Q0 goes HIGH and triggers FF1, causing Q1 to go HIGH.
After the leading edge of CLK2, Q0=0 & Q1=1.
The positive-going edge of CLK3 causes Q0 to go HIGH again. Output Q0 goes LOW
and has no effect on FF1. Thus, after the leading edge of CLK3, Q0 & Q1=1. The
positive-going edge of CLK4 causes Q0 to go LOW, while Q0 goes HIGH and triggers
FF1, causing Q1 to go LOW.
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 9 / 29
2-Bit Asynchronous Binary Counter
Timing Diagram
Applying 4 clock pulses to FF0, Both flip-flops are connected for toggle operation (J=1,
K=1) and initially RESET (Q LOW). The positive-going edge of CLK1 (clock pulse1)
causes the Q 0 output of FF0 to go HIGH. At the same time the Q0 output goes LOW,
but it has no effect on FF1 because a positive-going transition must occur to trigger the
flip-flop. After the leading edge of CLK1, Q0=1 & Q1=0. The positive-going edge of
CLK2 causes Q0 to go LOW. Q0 goes HIGH and triggers FF1, causing Q1 to go HIGH.
After the leading edge of CLK2, Q0=0 & Q1=1.
The positive-going edge of CLK3 causes Q0 to go HIGH again. Output Q0 goes LOW
and has no effect on FF1. Thus, after the leading edge of CLK3, Q0 & Q1=1. The
positive-going edge of CLK4 causes Q0 to go LOW, while Q0 goes HIGH and triggers
FF1, causing Q1 to go LOW. After the leading edge of CLK4, Q0=0 & Q1=0.
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 9 / 29
2-Bit Asynchronous Binary Counter
Timing Diagram
Applying 4 clock pulses to FF0, Both flip-flops are connected for toggle operation (J=1,
K=1) and initially RESET (Q LOW). The positive-going edge of CLK1 (clock pulse1)
causes the Q 0 output of FF0 to go HIGH. At the same time the Q0 output goes LOW,
but it has no effect on FF1 because a positive-going transition must occur to trigger the
flip-flop. After the leading edge of CLK1, Q0=1 & Q1=0. The positive-going edge of
CLK2 causes Q0 to go LOW. Q0 goes HIGH and triggers FF1, causing Q1 to go HIGH.
After the leading edge of CLK2, Q0=0 & Q1=1.
The positive-going edge of CLK3 causes Q0 to go HIGH again. Output Q0 goes LOW
and has no effect on FF1. Thus, after the leading edge of CLK3, Q0 & Q1=1. The
positive-going edge of CLK4 causes Q0 to go LOW, while Q0 goes HIGH and triggers
FF1, causing Q1 to go LOW. After the leading edge of CLK4, Q0=0 & Q1=0. The 2-bit
counter exhibits four different states, as you would expect with two flip-flops (22
= 4).
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 9 / 29
2-Bit Asynchronous Binary Counter
Timing Diagram
Applying 4 clock pulses to FF0, Both flip-flops are connected for toggle operation (J=1,
K=1) and initially RESET (Q LOW). The positive-going edge of CLK1 (clock pulse1)
causes the Q 0 output of FF0 to go HIGH. At the same time the Q0 output goes LOW,
but it has no effect on FF1 because a positive-going transition must occur to trigger the
flip-flop. After the leading edge of CLK1, Q0=1 & Q1=0. The positive-going edge of
CLK2 causes Q0 to go LOW. Q0 goes HIGH and triggers FF1, causing Q1 to go HIGH.
After the leading edge of CLK2, Q0=0 & Q1=1.
The positive-going edge of CLK3 causes Q0 to go HIGH again. Output Q0 goes LOW
and has no effect on FF1. Thus, after the leading edge of CLK3, Q0 & Q1=1. The
positive-going edge of CLK4 causes Q0 to go LOW, while Q0 goes HIGH and triggers
FF1, causing Q1 to go LOW. After the leading edge of CLK4, Q0=0 & Q1=0. The 2-bit
counter exhibits four different states, as you would expect with two flip-flops (22
= 4).
The fourth pulse it recycles to its original state (Q0=0, Q1=0). The term recycles; it
refers to the transition of the counter from its final state back to its original state.
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 9 / 29
2-Bit Asynchronous Binary Counter
Figure : Timing diagram of 2 bit asynchronous counter
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 10 / 29
3-Bit Asynchronous Binary Counter
Figure : 3-Bit Asynchronous Binary Counter
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 11 / 29
3-Bit Asynchronous Binary Counter
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 12 / 29
3-Bit Asynchronous Binary Counter
It works exactly the same way as a two-bit asynchronous binary counter
mentioned above, except it has eight states due to the third flip-flop.
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 12 / 29
3-Bit Asynchronous Binary Counter
Figure : Timing diagram of 3 bit asynchronous counter
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 13 / 29
Asynchronous Decade Counter/BCD Counter/Divide by 10
Counter
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 14 / 29
Asynchronous Decade Counter/BCD Counter/Divide by 10
Counter
If we take the modulo-16 asynchronous counter and modified it with
additional logic gates it can be made to give a decade (divide-by-10)
counter output for use in standard decimal counting and arithmetic
circuits.
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 14 / 29
Asynchronous Decade Counter/BCD Counter/Divide by 10
Counter
If we take the modulo-16 asynchronous counter and modified it with
additional logic gates it can be made to give a decade (divide-by-10)
counter output for use in standard decimal counting and arithmetic
circuits.
Such counters are generally referred to as Decade Counters. A decade
counter requires resetting to zero when the output count reaches the
decimal value of 10, ie. when DCBA = 1010 and to do this we need to
feed this condition back to the reset input. A counter with a count
sequence from binary ”0000” (BCD = ”0”) through to “1001” (BCD =
”9”) is generally referred to as a BCD binary-coded-decimal counter
because its ten state sequence is that of a BCD code but binary decade
counters are more common.
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 14 / 29
Asynchronous Decade Counter
Figure : Asynchronous decade counter
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 15 / 29
Asynchronous Decade Counter...
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 16 / 29
Asynchronous Decade Counter...
This type of asynchronous counter counts upwards on each trailing edge of
the input clock signal starting from 0000 until it reaches an output 1001
(decimal 9). Both outputs QA and QD are now equal to logic ”1”. On the
application of the next clock pulse, the output from the 74LS10 NAND
gate changes state from logic ”1” to a logic ”0” level.
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 16 / 29
Asynchronous Decade Counter...
This type of asynchronous counter counts upwards on each trailing edge of
the input clock signal starting from 0000 until it reaches an output 1001
(decimal 9). Both outputs QA and QD are now equal to logic ”1”. On the
application of the next clock pulse, the output from the 74LS10 NAND
gate changes state from logic ”1” to a logic ”0” level.
As the output of the NAND gate is connected to the CLEAR ( CLR )
inputs of all the 74LS73 J-K Flip-flops, this signal causes all of the Q
outputs to be reset back to binary 0000 on the count of 10. As outputs
QA and QD are now both equal to logic ”0” as the flip-flops have just
been reset, the output of the NAND gate returns back to a logic level ”1”
and the counter restarts again from 0000. We now have a decade or
Modulo-10 up-counter.
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 16 / 29
Clock Output bit Pattern Decimal
Count QD QC QB QA Value
1 0 0 0 0 0
2 0 0 0 1 1
3 0 0 1 0 2
4 0 0 1 1 3
5 0 1 0 0 4
6 0 1 0 1 5
7 0 1 1 0 6
8 0 1 1 1 7
9 1 0 0 0 8
10 1 0 0 1 9
11 Counter Resets its Outputs back to Zero
Table : Decade counter truth table
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 17 / 29
Asynchronous Decade Counter
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 18 / 29
How to decide number of flip flops in Modulo
Asynchronous Counter
Mod -40
Lets say we wish to count from 0 to 39, or mod-40 and repeat. Then the
highest number of flip-flops required would be six, n = 6 giving a
maximum MOD of 64 as five flip-flops would not be enough as this only
gives us a MOD-32.
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 19 / 29
Synchronous Counter
In synchronous counters, the clock input is connected to all of the
flip-flops so that they are clocked simultaneously. The term synchronous
refers to events that have a fixed time relationship with each other.
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 20 / 29
Ring Counters
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 21 / 29
Ring Counters
Ring counters are implemented using shift registers. It is essentially a
circulating shift register connected so that the last flip-flop shifts its value
into the first flip-flop. There is usually only a single 1 circulating in the
register, as long as clock pulses are applied.
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 21 / 29
Ring Counters...
Figure : Ring counter (Mod -4 Counter)
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 22 / 29
Ring Counters...
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 23 / 29
Ring Counters...
In the diagram above, assuming a starting state of Q3 = 1 and Q2 = Q1
= Q0 = 0. At the first pulse, the 1 shifts from Q3 to Q2 and the counter
is in the 0100 state. The next pulse produces the 0010 state and the third,
0001. At the fourth pulse, the 1 at Q0 is transferred back to Q3, resulting
in the 1000 state, which is the initial state. Subsequent pulses will cause
the sequence to repeat, hence the name ring counter.
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 23 / 29
Ring Counters...
In the diagram above, assuming a starting state of Q3 = 1 and Q2 = Q1
= Q0 = 0. At the first pulse, the 1 shifts from Q3 to Q2 and the counter
is in the 0100 state. The next pulse produces the 0010 state and the third,
0001. At the fourth pulse, the 1 at Q0 is transferred back to Q3, resulting
in the 1000 state, which is the initial state. Subsequent pulses will cause
the sequence to repeat, hence the name ring counter.
The ring counter above functions as a MOD-4 counter since it has four
distinct states and each flip-flop output waveform has a frequency equal to
one-fourth of the clock frequency. A ring counter can be constructed for
any MOD number. A MOD-N ring counter will require N flip-flops
connected in the arrangement as the diagram above.
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 23 / 29
Ring Counters...
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 24 / 29
Ring Counters...
A ring counter requires more flip-flops than a binary counter for the same
MOD number. For example, a MOD-8 ring counter requires 8 flip-flops
while a MOD-8 binary counter only requires 3 (23 = 8). So if a ring
counter is less efficient in the use of flip-flops than a binary counter, why
do we still need ring counters? One main reason is because ring counters
are much easier to decode. In fact, ring counters can be decoded without
the use of logic gates. The decoding signal is obtained at the output of its
corresponding flip-flop.
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 24 / 29
Ring Counters...
A ring counter requires more flip-flops than a binary counter for the same
MOD number. For example, a MOD-8 ring counter requires 8 flip-flops
while a MOD-8 binary counter only requires 3 (23 = 8). So if a ring
counter is less efficient in the use of flip-flops than a binary counter, why
do we still need ring counters? One main reason is because ring counters
are much easier to decode. In fact, ring counters can be decoded without
the use of logic gates. The decoding signal is obtained at the output of its
corresponding flip-flop.
For the ring counter to operate properly, it must start with only one
flip-flop in the 1 state and all the others at 0. Since it is not possible to
expect the counter to come up to this state when power is first applied to
the circuit, it is necessary to preset the counter to the required starting
state before the clock pulses are applied. One way to do this is to apply a
pulse to the PRESET input of one of the flip-flops and the CLEAR inputs
of all the others. This will place a single 1 in the ring counter.
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 24 / 29
Johnson/Twisted-Ring Counters
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 25 / 29
Johnson/Twisted-Ring Counters
The Johnson counter, also known as the twisted-ring counter, is exactly
the same as the ring counter except that the inverted output of the last
flip-flop is connected to the input of the first flip-flop.
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 25 / 29
Ring Counters...
Figure : Hohnson counter (Mod -6 Counter)
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 26 / 29
Ring Counters...
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 27 / 29
Ring Counters...
The Johnson counter works in the following way : Take the initial state of
the counter to be 000. On the first clock pulse, the inverse of the last
flip-flop will be fed into the first flip-flop, producing the state 100. On the
second clock pulse, since the last flip-flop is still at level 0, another 1 will
be fed into the first flip-flop, giving the state 110. On the third clock
pulse, the state 111 is produced. On the fourth clock pulse, the inverse of
the last flip-flop, now a 0, will be shifted to the first flip-flop, giving the
state 011. On the fifth and sixth clock pulse, using the same reasoning, we
will get the states 001 and 000, which is the initial state again. Hence,
this Johnson counter has six distinct states : 000, 100, 110, 111, 011 and
001, and the sequence is repeated so long as there is input pulse. Thus
this is a MOD-6 Johnson counter.
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 27 / 29
Ring Counters...
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 28 / 29
Ring Counters...
The MOD number of a Johnson counter is twice the number of flip-flops.
In the example above, three flip-flops were used to create the MOD-6
Johnson counter. So for a given MOD number, a Johnson counter requires
only half the number of flip-flops needed for a ring counter. However, a
Johnson counter requires decoding gates whereas a ring counter doesnt.
As with the binary counter, one logic gate (AND gate) is required to
decode each state, but with the Johnson counter, each gate requires only
two inputs, regardless of the number of flip-flops in the counter. Note that
we are comparing with the binary counter using the speed up technique
discussed above. The reason for this is that for each state, two of the N
flip-flops used will be in a unique combination of states. In the example
above, the combination Q2 = Q1 = 0 occurs only once in the counting
sequence, at the count of 0. The state 010 does not occur. Thus, an AND
gate with inputs (not Q2) and (not Q2) can be used to decode for this
state. The same characteristic is shared by all the other states in the
sequence.
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 28 / 29
Thank you
Please send your feedback at nbahadure@gmail.com
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 29 / 29
Thank you
Please send your feedback at nbahadure@gmail.com
For download [Click Here]
Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 29 / 29

More Related Content

PPTX
3.4_OOK systems – ASK, FSK, PSK, BPSK, QPSK, applications of Data communicati...
PPTX
Counters
PPTX
Mod 10 synchronous counter updated
PPT
Digital modulation techniques
PDF
Ring counter
PDF
Pluse Amplitude modulation (PAM)
PPTX
OP AMP Applications
3.4_OOK systems – ASK, FSK, PSK, BPSK, QPSK, applications of Data communicati...
Counters
Mod 10 synchronous counter updated
Digital modulation techniques
Ring counter
Pluse Amplitude modulation (PAM)
OP AMP Applications

What's hot (20)

PPTX
Johnson counter
PDF
Combinational circuits
PPS
Pulse modulation
PPT
Digital modulation
PPT
Counters
PPTX
Pulse amplitude modulation
PPTX
PSK (PHASE SHIFT KEYING )
PPT
1 PCM & Encoding
PDF
3F3 – Digital Signal Processing (DSP) - Part1
PDF
DELD Unit IV ring and twisted ring counter
PPTX
Emi unit ii ppt
PPTX
Modulo n counter
PPTX
Types of Sampling in Analog Communication
PPTX
Telemetry system
PPTX
Johnson Counter
PPTX
Combinational Logic Circuit
PPTX
PCM-Part 1.pptx
PDF
ANALOG TO DIGITAL CONVERTOR
PPTX
555 timer as Astable Multivibrator
Johnson counter
Combinational circuits
Pulse modulation
Digital modulation
Counters
Pulse amplitude modulation
PSK (PHASE SHIFT KEYING )
1 PCM & Encoding
3F3 – Digital Signal Processing (DSP) - Part1
DELD Unit IV ring and twisted ring counter
Emi unit ii ppt
Modulo n counter
Types of Sampling in Analog Communication
Telemetry system
Johnson Counter
Combinational Logic Circuit
PCM-Part 1.pptx
ANALOG TO DIGITAL CONVERTOR
555 timer as Astable Multivibrator
Ad

Similar to Digital electronics sequential ckts counters (20)

PPTX
Presentation on Counters for (Digital Systems Design).pptx
PPTX
Counters, Synchronous & Asynchronous Counters
PPTX
Introduction to Counters
PPTX
Digital Electronics - Counters
PPTX
Digital Electronics - Counters
PPT
Counters
PPT
Counters
PPTX
COUNTERS.pptx
PPTX
Counters-Counter is a sequential circuit.pptx
PDF
Chapter 7_Counters (EEEg4302).pdf
PDF
FYBSC IT Digital Electronics Unit V Chapter I Counters
PPT
Counters.ppt
PPTX
Digital counter
PPTX
digital electronics counters topics.pptx
PPTX
COUNTERS.pptx
PPTX
PDF
DigitalLogic_Counters.pdfDigitalLogic_Counters.pdfDigitalLogic_Counters.pdfDi...
PDF
Ade(unit 4) Counters
PPTX
Synschronous counter
PPTX
Sequential circuit design
Presentation on Counters for (Digital Systems Design).pptx
Counters, Synchronous & Asynchronous Counters
Introduction to Counters
Digital Electronics - Counters
Digital Electronics - Counters
Counters
Counters
COUNTERS.pptx
Counters-Counter is a sequential circuit.pptx
Chapter 7_Counters (EEEg4302).pdf
FYBSC IT Digital Electronics Unit V Chapter I Counters
Counters.ppt
Digital counter
digital electronics counters topics.pptx
COUNTERS.pptx
DigitalLogic_Counters.pdfDigitalLogic_Counters.pdfDigitalLogic_Counters.pdfDi...
Ade(unit 4) Counters
Synschronous counter
Sequential circuit design
Ad

More from Nilesh Bhaskarrao Bahadure (20)

PDF
Biomedical Signal Origin and Dynamics
PDF
Introduction to Medical Image Processing
PDF
Timing diagram of microprocessor 8085
PDF
Timers and counters of microcontroller 8051
PDF
Serial communication of microcontroller 8051
PDF
Peripherals of Microprocessor 8085
PDF
Microprocessor 8085 Basics
PDF
Microcontroller 8051 instruction set and assemble directives
PDF
Microcontroller 8051 basics (part I)
PDF
Memory interfacing of microprocessor 8085
PDF
Memory interfacing of microcontroller 8051
PDF
Interrupts of microprocessor 8085
PDF
Interrupts of microcontroller 8051
PDF
Instruction sets of microprocessor 8085
PDF
Embedded Systems
PDF
Basic Electronics Semiconductor Diodes
PDF
Basic Electronics Electrical Transducers
PDF
Basic Electronics BJT
PDF
Applications of Microcontroller 8051
PDF
Question Bank Programmable Logic Controller
Biomedical Signal Origin and Dynamics
Introduction to Medical Image Processing
Timing diagram of microprocessor 8085
Timers and counters of microcontroller 8051
Serial communication of microcontroller 8051
Peripherals of Microprocessor 8085
Microprocessor 8085 Basics
Microcontroller 8051 instruction set and assemble directives
Microcontroller 8051 basics (part I)
Memory interfacing of microprocessor 8085
Memory interfacing of microcontroller 8051
Interrupts of microprocessor 8085
Interrupts of microcontroller 8051
Instruction sets of microprocessor 8085
Embedded Systems
Basic Electronics Semiconductor Diodes
Basic Electronics Electrical Transducers
Basic Electronics BJT
Applications of Microcontroller 8051
Question Bank Programmable Logic Controller

Recently uploaded (20)

PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
OOP with Java - Java Introduction (Basics)
PPT
Project quality management in manufacturing
PPTX
additive manufacturing of ss316l using mig welding
PPTX
bas. eng. economics group 4 presentation 1.pptx
DOCX
573137875-Attendance-Management-System-original
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
Construction Project Organization Group 2.pptx
PDF
Well-logging-methods_new................
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
Digital Logic Computer Design lecture notes
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
Sustainable Sites - Green Building Construction
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
OOP with Java - Java Introduction (Basics)
Project quality management in manufacturing
additive manufacturing of ss316l using mig welding
bas. eng. economics group 4 presentation 1.pptx
573137875-Attendance-Management-System-original
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Construction Project Organization Group 2.pptx
Well-logging-methods_new................
Embodied AI: Ushering in the Next Era of Intelligent Systems
Digital Logic Computer Design lecture notes
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Automation-in-Manufacturing-Chapter-Introduction.pdf
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Sustainable Sites - Green Building Construction
Mitigating Risks through Effective Management for Enhancing Organizational Pe...

Digital electronics sequential ckts counters

  • 1. Digital Electronics Sequential Circuits: Counters Nilesh Bhaskarrao Bahadure nbahadure@gmail.com https://www.sites.google.com/site/nileshbbahadure/home July 1, 2021 Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 1 / 29
  • 2. Overview 1 Counters Classification of counters Comparison between Synchronous and Asynchronous counters 2 Asynchronous Counter 2-Bit Asynchronous Binary Counter 3-Bit Asynchronous Binary Counter Asynchronous Decade Counter 3 Synchronous Counter Ring Counters Johnson/Twisted-Ring Counters 4 Thank You Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 2 / 29
  • 3. Counters Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 3 / 29
  • 4. Counters In digital logic and computing, a counter is a device which stores (and sometimes displays) the number of times a particular event or process has occurred, often in relationship to a clock signal. Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 3 / 29
  • 5. Classification of counters Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 4 / 29
  • 6. Classification of counters In electronics, counters can be implemented quite easily using register-type circuits such as the flip-flop, and a wide variety of classifications exist: 1 Asynchronous (ripple) counter - changing state bits are used as clocks to subsequent state flip-flops. Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 4 / 29
  • 7. Classification of counters In electronics, counters can be implemented quite easily using register-type circuits such as the flip-flop, and a wide variety of classifications exist: 1 Asynchronous (ripple) counter - changing state bits are used as clocks to subsequent state flip-flops. 2 Synchronous counter - all state bits change under control of a single clock. Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 4 / 29
  • 8. Classification of counters In electronics, counters can be implemented quite easily using register-type circuits such as the flip-flop, and a wide variety of classifications exist: 1 Asynchronous (ripple) counter - changing state bits are used as clocks to subsequent state flip-flops. 2 Synchronous counter - all state bits change under control of a single clock. 3 Decade counter - counts through ten states per stage. Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 4 / 29
  • 9. Classification of counters In electronics, counters can be implemented quite easily using register-type circuits such as the flip-flop, and a wide variety of classifications exist: 1 Asynchronous (ripple) counter - changing state bits are used as clocks to subsequent state flip-flops. 2 Synchronous counter - all state bits change under control of a single clock. 3 Decade counter - counts through ten states per stage. 4 Up/down counter - counts both up and down, under command of a control input. Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 4 / 29
  • 10. Classification of counters In electronics, counters can be implemented quite easily using register-type circuits such as the flip-flop, and a wide variety of classifications exist: 1 Asynchronous (ripple) counter - changing state bits are used as clocks to subsequent state flip-flops. 2 Synchronous counter - all state bits change under control of a single clock. 3 Decade counter - counts through ten states per stage. 4 Up/down counter - counts both up and down, under command of a control input. 5 Ring counter - formed by a shift register with feedback connection in a ring. Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 4 / 29
  • 11. Classification of counters In electronics, counters can be implemented quite easily using register-type circuits such as the flip-flop, and a wide variety of classifications exist: 1 Asynchronous (ripple) counter - changing state bits are used as clocks to subsequent state flip-flops. 2 Synchronous counter - all state bits change under control of a single clock. 3 Decade counter - counts through ten states per stage. 4 Up/down counter - counts both up and down, under command of a control input. 5 Ring counter - formed by a shift register with feedback connection in a ring. 6 Johnson counter - a twisted ring counter. Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 4 / 29
  • 12. Comparison between Synchronous and Asynchronous counters 1 In, Asynchronous the clock pulse inputs of all flip flops, except the first, are triggered not by the incoming pulses, but rather by the transition that occurs in previous flip flop’s output. Whereas In a synchronous counter, the input pulses are applied to all clock pulse inputs of all flip flops simultaneously (directly). Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 5 / 29
  • 13. Comparison between Synchronous and Asynchronous counters 1 In, Asynchronous the clock pulse inputs of all flip flops, except the first, are triggered not by the incoming pulses, but rather by the transition that occurs in previous flip flop’s output. Whereas In a synchronous counter, the input pulses are applied to all clock pulse inputs of all flip flops simultaneously (directly). 2 Asynchronous counter is also known as serial sequential circuit whereas Synchronous counter is also known as parallel sequential circuit. Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 5 / 29
  • 14. Comparison between Synchronous and Asynchronous counters 1 In, Asynchronous the clock pulse inputs of all flip flops, except the first, are triggered not by the incoming pulses, but rather by the transition that occurs in previous flip flop’s output. Whereas In a synchronous counter, the input pulses are applied to all clock pulse inputs of all flip flops simultaneously (directly). 2 Asynchronous counter is also known as serial sequential circuit whereas Synchronous counter is also known as parallel sequential circuit. 3 Asynchronous counters are slower than synchronous counter whereas Synchronous counters are faster than asynchronous counter Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 5 / 29
  • 15. Comparison between Synchronous and Asynchronous counters 1 In, Asynchronous the clock pulse inputs of all flip flops, except the first, are triggered not by the incoming pulses, but rather by the transition that occurs in previous flip flop’s output. Whereas In a synchronous counter, the input pulses are applied to all clock pulse inputs of all flip flops simultaneously (directly). 2 Asynchronous counter is also known as serial sequential circuit whereas Synchronous counter is also known as parallel sequential circuit. 3 Asynchronous counters are slower than synchronous counter whereas Synchronous counters are faster than asynchronous counter 4 Asynchronous circuits are quite difficult to design for a reliable operation. Whereas Synchronous circuits are easy to design for a reliable operation. Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 5 / 29
  • 16. Comparison between Synchronous and Asynchronous counters 1 In, Asynchronous the clock pulse inputs of all flip flops, except the first, are triggered not by the incoming pulses, but rather by the transition that occurs in previous flip flop’s output. Whereas In a synchronous counter, the input pulses are applied to all clock pulse inputs of all flip flops simultaneously (directly). 2 Asynchronous counter is also known as serial sequential circuit whereas Synchronous counter is also known as parallel sequential circuit. 3 Asynchronous counters are slower than synchronous counter whereas Synchronous counters are faster than asynchronous counter 4 Asynchronous circuits are quite difficult to design for a reliable operation. Whereas Synchronous circuits are easy to design for a reliable operation. 5 Example of asynchronous counter, Binary Ripple Counter, Up Down Counter whereas example Synchronous counters Ring Counter, Twisted ring counter. Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 5 / 29
  • 17. Asynchronous Counter Ripple Counter Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 6 / 29
  • 18. Asynchronous Counter Ripple Counter Asynchronous counters called ripple counters, the first flip-flop is clocked by the external clock pulse and then each successive flip-flop is clocked by the output of the receding flip-flop. The term asynchronous refers to events that do not have a fixed time relationship with each other. An asynchronous counter is one in which the flip-flops within the counter do not change states at exactly the same time because they do not have a common clock pulse. Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 6 / 29
  • 19. 2-Bit Asynchronous Binary Counter Figure : 2-Bit Asynchronous Binary Counter Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 7 / 29
  • 20. 2-Bit Asynchronous Binary Counter Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 8 / 29
  • 21. 2-Bit Asynchronous Binary Counter A 2-Bit Asynchronous Binary Counter figure 1 shows a 2-bit counter connected for asynchronous operation. Notice that the clock (CLK) is applied to the clock input (C) of only the first flop-flop, FF0, which is always the least significant bit (LSB). The second flip-flop, FF1, is triggered by the Q0 out-put of FF0. FF0 changes state at the positive-going edge of each clock pulse. But FF1 changes only when triggered by a positive-going transition of the Q0 output of FF0. Because of the inherent propagation delay tie through a flip-flop, a transition of the input clock pulse (CLK) and a transition of the Q0 output of FF0 can never occur at exactly the same time . Therefore, the two flip-flops are never simultaneously triggered, so the counter operation is asynchronous. Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 8 / 29
  • 22. 2-Bit Asynchronous Binary Counter Timing Diagram Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 9 / 29
  • 23. 2-Bit Asynchronous Binary Counter Timing Diagram Applying 4 clock pulses to FF0, Both flip-flops are connected for toggle operation (J=1, K=1) and initially RESET (Q LOW). Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 9 / 29
  • 24. 2-Bit Asynchronous Binary Counter Timing Diagram Applying 4 clock pulses to FF0, Both flip-flops are connected for toggle operation (J=1, K=1) and initially RESET (Q LOW). The positive-going edge of CLK1 (clock pulse1) causes the Q 0 output of FF0 to go HIGH. Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 9 / 29
  • 25. 2-Bit Asynchronous Binary Counter Timing Diagram Applying 4 clock pulses to FF0, Both flip-flops are connected for toggle operation (J=1, K=1) and initially RESET (Q LOW). The positive-going edge of CLK1 (clock pulse1) causes the Q 0 output of FF0 to go HIGH. At the same time the Q0 output goes LOW, but it has no effect on FF1 because a positive-going transition must occur to trigger the flip-flop. Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 9 / 29
  • 26. 2-Bit Asynchronous Binary Counter Timing Diagram Applying 4 clock pulses to FF0, Both flip-flops are connected for toggle operation (J=1, K=1) and initially RESET (Q LOW). The positive-going edge of CLK1 (clock pulse1) causes the Q 0 output of FF0 to go HIGH. At the same time the Q0 output goes LOW, but it has no effect on FF1 because a positive-going transition must occur to trigger the flip-flop. After the leading edge of CLK1, Q0=1 & Q1=0. Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 9 / 29
  • 27. 2-Bit Asynchronous Binary Counter Timing Diagram Applying 4 clock pulses to FF0, Both flip-flops are connected for toggle operation (J=1, K=1) and initially RESET (Q LOW). The positive-going edge of CLK1 (clock pulse1) causes the Q 0 output of FF0 to go HIGH. At the same time the Q0 output goes LOW, but it has no effect on FF1 because a positive-going transition must occur to trigger the flip-flop. After the leading edge of CLK1, Q0=1 & Q1=0. The positive-going edge of CLK2 causes Q0 to go LOW. Q0 goes HIGH and triggers FF1, causing Q1 to go HIGH. Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 9 / 29
  • 28. 2-Bit Asynchronous Binary Counter Timing Diagram Applying 4 clock pulses to FF0, Both flip-flops are connected for toggle operation (J=1, K=1) and initially RESET (Q LOW). The positive-going edge of CLK1 (clock pulse1) causes the Q 0 output of FF0 to go HIGH. At the same time the Q0 output goes LOW, but it has no effect on FF1 because a positive-going transition must occur to trigger the flip-flop. After the leading edge of CLK1, Q0=1 & Q1=0. The positive-going edge of CLK2 causes Q0 to go LOW. Q0 goes HIGH and triggers FF1, causing Q1 to go HIGH. After the leading edge of CLK2, Q0=0 & Q1=1. Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 9 / 29
  • 29. 2-Bit Asynchronous Binary Counter Timing Diagram Applying 4 clock pulses to FF0, Both flip-flops are connected for toggle operation (J=1, K=1) and initially RESET (Q LOW). The positive-going edge of CLK1 (clock pulse1) causes the Q 0 output of FF0 to go HIGH. At the same time the Q0 output goes LOW, but it has no effect on FF1 because a positive-going transition must occur to trigger the flip-flop. After the leading edge of CLK1, Q0=1 & Q1=0. The positive-going edge of CLK2 causes Q0 to go LOW. Q0 goes HIGH and triggers FF1, causing Q1 to go HIGH. After the leading edge of CLK2, Q0=0 & Q1=1. The positive-going edge of CLK3 causes Q0 to go HIGH again. Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 9 / 29
  • 30. 2-Bit Asynchronous Binary Counter Timing Diagram Applying 4 clock pulses to FF0, Both flip-flops are connected for toggle operation (J=1, K=1) and initially RESET (Q LOW). The positive-going edge of CLK1 (clock pulse1) causes the Q 0 output of FF0 to go HIGH. At the same time the Q0 output goes LOW, but it has no effect on FF1 because a positive-going transition must occur to trigger the flip-flop. After the leading edge of CLK1, Q0=1 & Q1=0. The positive-going edge of CLK2 causes Q0 to go LOW. Q0 goes HIGH and triggers FF1, causing Q1 to go HIGH. After the leading edge of CLK2, Q0=0 & Q1=1. The positive-going edge of CLK3 causes Q0 to go HIGH again. Output Q0 goes LOW and has no effect on FF1. Thus, after the leading edge of CLK3, Q0 & Q1=1. Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 9 / 29
  • 31. 2-Bit Asynchronous Binary Counter Timing Diagram Applying 4 clock pulses to FF0, Both flip-flops are connected for toggle operation (J=1, K=1) and initially RESET (Q LOW). The positive-going edge of CLK1 (clock pulse1) causes the Q 0 output of FF0 to go HIGH. At the same time the Q0 output goes LOW, but it has no effect on FF1 because a positive-going transition must occur to trigger the flip-flop. After the leading edge of CLK1, Q0=1 & Q1=0. The positive-going edge of CLK2 causes Q0 to go LOW. Q0 goes HIGH and triggers FF1, causing Q1 to go HIGH. After the leading edge of CLK2, Q0=0 & Q1=1. The positive-going edge of CLK3 causes Q0 to go HIGH again. Output Q0 goes LOW and has no effect on FF1. Thus, after the leading edge of CLK3, Q0 & Q1=1. The positive-going edge of CLK4 causes Q0 to go LOW, while Q0 goes HIGH and triggers FF1, causing Q1 to go LOW. Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 9 / 29
  • 32. 2-Bit Asynchronous Binary Counter Timing Diagram Applying 4 clock pulses to FF0, Both flip-flops are connected for toggle operation (J=1, K=1) and initially RESET (Q LOW). The positive-going edge of CLK1 (clock pulse1) causes the Q 0 output of FF0 to go HIGH. At the same time the Q0 output goes LOW, but it has no effect on FF1 because a positive-going transition must occur to trigger the flip-flop. After the leading edge of CLK1, Q0=1 & Q1=0. The positive-going edge of CLK2 causes Q0 to go LOW. Q0 goes HIGH and triggers FF1, causing Q1 to go HIGH. After the leading edge of CLK2, Q0=0 & Q1=1. The positive-going edge of CLK3 causes Q0 to go HIGH again. Output Q0 goes LOW and has no effect on FF1. Thus, after the leading edge of CLK3, Q0 & Q1=1. The positive-going edge of CLK4 causes Q0 to go LOW, while Q0 goes HIGH and triggers FF1, causing Q1 to go LOW. After the leading edge of CLK4, Q0=0 & Q1=0. Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 9 / 29
  • 33. 2-Bit Asynchronous Binary Counter Timing Diagram Applying 4 clock pulses to FF0, Both flip-flops are connected for toggle operation (J=1, K=1) and initially RESET (Q LOW). The positive-going edge of CLK1 (clock pulse1) causes the Q 0 output of FF0 to go HIGH. At the same time the Q0 output goes LOW, but it has no effect on FF1 because a positive-going transition must occur to trigger the flip-flop. After the leading edge of CLK1, Q0=1 & Q1=0. The positive-going edge of CLK2 causes Q0 to go LOW. Q0 goes HIGH and triggers FF1, causing Q1 to go HIGH. After the leading edge of CLK2, Q0=0 & Q1=1. The positive-going edge of CLK3 causes Q0 to go HIGH again. Output Q0 goes LOW and has no effect on FF1. Thus, after the leading edge of CLK3, Q0 & Q1=1. The positive-going edge of CLK4 causes Q0 to go LOW, while Q0 goes HIGH and triggers FF1, causing Q1 to go LOW. After the leading edge of CLK4, Q0=0 & Q1=0. The 2-bit counter exhibits four different states, as you would expect with two flip-flops (22 = 4). Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 9 / 29
  • 34. 2-Bit Asynchronous Binary Counter Timing Diagram Applying 4 clock pulses to FF0, Both flip-flops are connected for toggle operation (J=1, K=1) and initially RESET (Q LOW). The positive-going edge of CLK1 (clock pulse1) causes the Q 0 output of FF0 to go HIGH. At the same time the Q0 output goes LOW, but it has no effect on FF1 because a positive-going transition must occur to trigger the flip-flop. After the leading edge of CLK1, Q0=1 & Q1=0. The positive-going edge of CLK2 causes Q0 to go LOW. Q0 goes HIGH and triggers FF1, causing Q1 to go HIGH. After the leading edge of CLK2, Q0=0 & Q1=1. The positive-going edge of CLK3 causes Q0 to go HIGH again. Output Q0 goes LOW and has no effect on FF1. Thus, after the leading edge of CLK3, Q0 & Q1=1. The positive-going edge of CLK4 causes Q0 to go LOW, while Q0 goes HIGH and triggers FF1, causing Q1 to go LOW. After the leading edge of CLK4, Q0=0 & Q1=0. The 2-bit counter exhibits four different states, as you would expect with two flip-flops (22 = 4). The fourth pulse it recycles to its original state (Q0=0, Q1=0). The term recycles; it refers to the transition of the counter from its final state back to its original state. Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 9 / 29
  • 35. 2-Bit Asynchronous Binary Counter Figure : Timing diagram of 2 bit asynchronous counter Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 10 / 29
  • 36. 3-Bit Asynchronous Binary Counter Figure : 3-Bit Asynchronous Binary Counter Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 11 / 29
  • 37. 3-Bit Asynchronous Binary Counter Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 12 / 29
  • 38. 3-Bit Asynchronous Binary Counter It works exactly the same way as a two-bit asynchronous binary counter mentioned above, except it has eight states due to the third flip-flop. Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 12 / 29
  • 39. 3-Bit Asynchronous Binary Counter Figure : Timing diagram of 3 bit asynchronous counter Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 13 / 29
  • 40. Asynchronous Decade Counter/BCD Counter/Divide by 10 Counter Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 14 / 29
  • 41. Asynchronous Decade Counter/BCD Counter/Divide by 10 Counter If we take the modulo-16 asynchronous counter and modified it with additional logic gates it can be made to give a decade (divide-by-10) counter output for use in standard decimal counting and arithmetic circuits. Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 14 / 29
  • 42. Asynchronous Decade Counter/BCD Counter/Divide by 10 Counter If we take the modulo-16 asynchronous counter and modified it with additional logic gates it can be made to give a decade (divide-by-10) counter output for use in standard decimal counting and arithmetic circuits. Such counters are generally referred to as Decade Counters. A decade counter requires resetting to zero when the output count reaches the decimal value of 10, ie. when DCBA = 1010 and to do this we need to feed this condition back to the reset input. A counter with a count sequence from binary ”0000” (BCD = ”0”) through to “1001” (BCD = ”9”) is generally referred to as a BCD binary-coded-decimal counter because its ten state sequence is that of a BCD code but binary decade counters are more common. Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 14 / 29
  • 43. Asynchronous Decade Counter Figure : Asynchronous decade counter Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 15 / 29
  • 44. Asynchronous Decade Counter... Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 16 / 29
  • 45. Asynchronous Decade Counter... This type of asynchronous counter counts upwards on each trailing edge of the input clock signal starting from 0000 until it reaches an output 1001 (decimal 9). Both outputs QA and QD are now equal to logic ”1”. On the application of the next clock pulse, the output from the 74LS10 NAND gate changes state from logic ”1” to a logic ”0” level. Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 16 / 29
  • 46. Asynchronous Decade Counter... This type of asynchronous counter counts upwards on each trailing edge of the input clock signal starting from 0000 until it reaches an output 1001 (decimal 9). Both outputs QA and QD are now equal to logic ”1”. On the application of the next clock pulse, the output from the 74LS10 NAND gate changes state from logic ”1” to a logic ”0” level. As the output of the NAND gate is connected to the CLEAR ( CLR ) inputs of all the 74LS73 J-K Flip-flops, this signal causes all of the Q outputs to be reset back to binary 0000 on the count of 10. As outputs QA and QD are now both equal to logic ”0” as the flip-flops have just been reset, the output of the NAND gate returns back to a logic level ”1” and the counter restarts again from 0000. We now have a decade or Modulo-10 up-counter. Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 16 / 29
  • 47. Clock Output bit Pattern Decimal Count QD QC QB QA Value 1 0 0 0 0 0 2 0 0 0 1 1 3 0 0 1 0 2 4 0 0 1 1 3 5 0 1 0 0 4 6 0 1 0 1 5 7 0 1 1 0 6 8 0 1 1 1 7 9 1 0 0 0 8 10 1 0 0 1 9 11 Counter Resets its Outputs back to Zero Table : Decade counter truth table Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 17 / 29
  • 48. Asynchronous Decade Counter Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 18 / 29
  • 49. How to decide number of flip flops in Modulo Asynchronous Counter Mod -40 Lets say we wish to count from 0 to 39, or mod-40 and repeat. Then the highest number of flip-flops required would be six, n = 6 giving a maximum MOD of 64 as five flip-flops would not be enough as this only gives us a MOD-32. Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 19 / 29
  • 50. Synchronous Counter In synchronous counters, the clock input is connected to all of the flip-flops so that they are clocked simultaneously. The term synchronous refers to events that have a fixed time relationship with each other. Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 20 / 29
  • 51. Ring Counters Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 21 / 29
  • 52. Ring Counters Ring counters are implemented using shift registers. It is essentially a circulating shift register connected so that the last flip-flop shifts its value into the first flip-flop. There is usually only a single 1 circulating in the register, as long as clock pulses are applied. Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 21 / 29
  • 53. Ring Counters... Figure : Ring counter (Mod -4 Counter) Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 22 / 29
  • 54. Ring Counters... Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 23 / 29
  • 55. Ring Counters... In the diagram above, assuming a starting state of Q3 = 1 and Q2 = Q1 = Q0 = 0. At the first pulse, the 1 shifts from Q3 to Q2 and the counter is in the 0100 state. The next pulse produces the 0010 state and the third, 0001. At the fourth pulse, the 1 at Q0 is transferred back to Q3, resulting in the 1000 state, which is the initial state. Subsequent pulses will cause the sequence to repeat, hence the name ring counter. Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 23 / 29
  • 56. Ring Counters... In the diagram above, assuming a starting state of Q3 = 1 and Q2 = Q1 = Q0 = 0. At the first pulse, the 1 shifts from Q3 to Q2 and the counter is in the 0100 state. The next pulse produces the 0010 state and the third, 0001. At the fourth pulse, the 1 at Q0 is transferred back to Q3, resulting in the 1000 state, which is the initial state. Subsequent pulses will cause the sequence to repeat, hence the name ring counter. The ring counter above functions as a MOD-4 counter since it has four distinct states and each flip-flop output waveform has a frequency equal to one-fourth of the clock frequency. A ring counter can be constructed for any MOD number. A MOD-N ring counter will require N flip-flops connected in the arrangement as the diagram above. Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 23 / 29
  • 57. Ring Counters... Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 24 / 29
  • 58. Ring Counters... A ring counter requires more flip-flops than a binary counter for the same MOD number. For example, a MOD-8 ring counter requires 8 flip-flops while a MOD-8 binary counter only requires 3 (23 = 8). So if a ring counter is less efficient in the use of flip-flops than a binary counter, why do we still need ring counters? One main reason is because ring counters are much easier to decode. In fact, ring counters can be decoded without the use of logic gates. The decoding signal is obtained at the output of its corresponding flip-flop. Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 24 / 29
  • 59. Ring Counters... A ring counter requires more flip-flops than a binary counter for the same MOD number. For example, a MOD-8 ring counter requires 8 flip-flops while a MOD-8 binary counter only requires 3 (23 = 8). So if a ring counter is less efficient in the use of flip-flops than a binary counter, why do we still need ring counters? One main reason is because ring counters are much easier to decode. In fact, ring counters can be decoded without the use of logic gates. The decoding signal is obtained at the output of its corresponding flip-flop. For the ring counter to operate properly, it must start with only one flip-flop in the 1 state and all the others at 0. Since it is not possible to expect the counter to come up to this state when power is first applied to the circuit, it is necessary to preset the counter to the required starting state before the clock pulses are applied. One way to do this is to apply a pulse to the PRESET input of one of the flip-flops and the CLEAR inputs of all the others. This will place a single 1 in the ring counter. Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 24 / 29
  • 60. Johnson/Twisted-Ring Counters Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 25 / 29
  • 61. Johnson/Twisted-Ring Counters The Johnson counter, also known as the twisted-ring counter, is exactly the same as the ring counter except that the inverted output of the last flip-flop is connected to the input of the first flip-flop. Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 25 / 29
  • 62. Ring Counters... Figure : Hohnson counter (Mod -6 Counter) Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 26 / 29
  • 63. Ring Counters... Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 27 / 29
  • 64. Ring Counters... The Johnson counter works in the following way : Take the initial state of the counter to be 000. On the first clock pulse, the inverse of the last flip-flop will be fed into the first flip-flop, producing the state 100. On the second clock pulse, since the last flip-flop is still at level 0, another 1 will be fed into the first flip-flop, giving the state 110. On the third clock pulse, the state 111 is produced. On the fourth clock pulse, the inverse of the last flip-flop, now a 0, will be shifted to the first flip-flop, giving the state 011. On the fifth and sixth clock pulse, using the same reasoning, we will get the states 001 and 000, which is the initial state again. Hence, this Johnson counter has six distinct states : 000, 100, 110, 111, 011 and 001, and the sequence is repeated so long as there is input pulse. Thus this is a MOD-6 Johnson counter. Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 27 / 29
  • 65. Ring Counters... Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 28 / 29
  • 66. Ring Counters... The MOD number of a Johnson counter is twice the number of flip-flops. In the example above, three flip-flops were used to create the MOD-6 Johnson counter. So for a given MOD number, a Johnson counter requires only half the number of flip-flops needed for a ring counter. However, a Johnson counter requires decoding gates whereas a ring counter doesnt. As with the binary counter, one logic gate (AND gate) is required to decode each state, but with the Johnson counter, each gate requires only two inputs, regardless of the number of flip-flops in the counter. Note that we are comparing with the binary counter using the speed up technique discussed above. The reason for this is that for each state, two of the N flip-flops used will be in a unique combination of states. In the example above, the combination Q2 = Q1 = 0 occurs only once in the counting sequence, at the count of 0. The state 010 does not occur. Thus, an AND gate with inputs (not Q2) and (not Q2) can be used to decode for this state. The same characteristic is shared by all the other states in the sequence. Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 28 / 29
  • 67. Thank you Please send your feedback at nbahadure@gmail.com Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 29 / 29
  • 68. Thank you Please send your feedback at nbahadure@gmail.com For download [Click Here] Nilesh Bhaskarrao Bahadure (PhD) Digital Electronics July 1, 2021 29 / 29