SlideShare a Scribd company logo
1 of 68
Download to read offline
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

What's hot

Module 4 registers and counters
Module 4 registers and counters Module 4 registers and counters
Module 4 registers and counters Deepak John
 
Synchronous Counter in Digital Logic Device
Synchronous Counter in Digital Logic DeviceSynchronous Counter in Digital Logic Device
Synchronous Counter in Digital Logic DeviceSonya Akter Rupa
 
Digital Counter Design
 Digital Counter Design Digital Counter Design
Digital Counter DesignGargiKhanna1
 
DELD Unit IV ring and twisted ring counter
DELD Unit IV ring and twisted ring counterDELD Unit IV ring and twisted ring counter
DELD Unit IV ring and twisted ring counterKanchanPatil34
 
Register counters.readonly
Register counters.readonlyRegister counters.readonly
Register counters.readonlyVARSHAKUMARI49
 
FYBSC IT Digital Electronics Unit V Chapter II Shift Register
FYBSC IT Digital Electronics Unit V Chapter II Shift RegisterFYBSC IT Digital Electronics Unit V Chapter II Shift Register
FYBSC IT Digital Electronics Unit V Chapter II Shift RegisterArti Parab Academics
 
Counters, Synchronous & Asynchronous Counters
Counters, Synchronous & Asynchronous CountersCounters, Synchronous & Asynchronous Counters
Counters, Synchronous & Asynchronous CountersBony Yamin
 
Ee2 chapter14 ic_counters
Ee2 chapter14 ic_countersEe2 chapter14 ic_counters
Ee2 chapter14 ic_countersCK Yang
 
Binary up and down counter using IC 74193
Binary up and down counter using IC 74193Binary up and down counter using IC 74193
Binary up and down counter using IC 74193Yashvant Kathiriya
 

What's hot (20)

Module 4 registers and counters
Module 4 registers and counters Module 4 registers and counters
Module 4 registers and counters
 
Dee2034 chapter 6 register
Dee2034 chapter 6 registerDee2034 chapter 6 register
Dee2034 chapter 6 register
 
Dee2034 chapter 5 counter
Dee2034 chapter 5 counterDee2034 chapter 5 counter
Dee2034 chapter 5 counter
 
Digital Registers & Counters
Digital Registers & CountersDigital Registers & Counters
Digital Registers & Counters
 
Chapter#8
Chapter#8Chapter#8
Chapter#8
 
Synchronous Counter in Digital Logic Device
Synchronous Counter in Digital Logic DeviceSynchronous Counter in Digital Logic Device
Synchronous Counter in Digital Logic Device
 
Digital Counter Design
 Digital Counter Design Digital Counter Design
Digital Counter Design
 
DELD Unit IV ring and twisted ring counter
DELD Unit IV ring and twisted ring counterDELD Unit IV ring and twisted ring counter
DELD Unit IV ring and twisted ring counter
 
Group 11 introduction to registers and counters
Group 11 introduction to registers and countersGroup 11 introduction to registers and counters
Group 11 introduction to registers and counters
 
Chapter 6 register
Chapter 6 registerChapter 6 register
Chapter 6 register
 
MSI Counters
MSI CountersMSI Counters
MSI Counters
 
Register counters.readonly
Register counters.readonlyRegister counters.readonly
Register counters.readonly
 
Basics Counters
Basics Counters Basics Counters
Basics Counters
 
Counters
CountersCounters
Counters
 
Counters
CountersCounters
Counters
 
FYBSC IT Digital Electronics Unit V Chapter II Shift Register
FYBSC IT Digital Electronics Unit V Chapter II Shift RegisterFYBSC IT Digital Electronics Unit V Chapter II Shift Register
FYBSC IT Digital Electronics Unit V Chapter II Shift Register
 
Counters, Synchronous & Asynchronous Counters
Counters, Synchronous & Asynchronous CountersCounters, Synchronous & Asynchronous Counters
Counters, Synchronous & Asynchronous Counters
 
Ee2 chapter14 ic_counters
Ee2 chapter14 ic_countersEe2 chapter14 ic_counters
Ee2 chapter14 ic_counters
 
Binary up and down counter using IC 74193
Binary up and down counter using IC 74193Binary up and down counter using IC 74193
Binary up and down counter using IC 74193
 
decade counter
decade counterdecade counter
decade counter
 

Similar to Digital electronics sequential ckts counters

Digital Electronics – Unit III.pdf
Digital Electronics – Unit III.pdfDigital Electronics – Unit III.pdf
Digital Electronics – Unit III.pdfKannan Kanagaraj
 
Eceg 3201-dld-lec 11-registers_and_asynchoronous_counters
Eceg 3201-dld-lec 11-registers_and_asynchoronous_countersEceg 3201-dld-lec 11-registers_and_asynchoronous_counters
Eceg 3201-dld-lec 11-registers_and_asynchoronous_countersNebiyu Musie
 
FYBSC IT Digital Electronics Unit V Chapter I Counters
FYBSC IT Digital Electronics Unit V Chapter I CountersFYBSC IT Digital Electronics Unit V Chapter I Counters
FYBSC IT Digital Electronics Unit V Chapter I CountersArti Parab Academics
 
Registers and counters
Registers and countersRegisters and counters
Registers and countersHeman Pathak
 
3 Bit Synchronous Down Counter
3 Bit Synchronous Down Counter3 Bit Synchronous Down Counter
3 Bit Synchronous Down CounterRabin BK
 
logic Basics of Sequential Circuits.docx
logic Basics of Sequential Circuits.docxlogic Basics of Sequential Circuits.docx
logic Basics of Sequential Circuits.docxERMIASAmanuel1
 
logic Basics of Sequential Circuits.docx
logic Basics of Sequential Circuits.docxlogic Basics of Sequential Circuits.docx
logic Basics of Sequential Circuits.docxERMIASAmanuel1
 
Design and implementation of synchronous 4 bit up counter using 180 nm cmos p...
Design and implementation of synchronous 4 bit up counter using 180 nm cmos p...Design and implementation of synchronous 4 bit up counter using 180 nm cmos p...
Design and implementation of synchronous 4 bit up counter using 180 nm cmos p...eSAT Publishing House
 
Digital electronics sequential circuits flip flops
Digital electronics sequential circuits flip flopsDigital electronics sequential circuits flip flops
Digital electronics sequential circuits flip flopsNilesh Bhaskarrao Bahadure
 
Chapter 7_Counters (EEEg4302).pdf
Chapter 7_Counters (EEEg4302).pdfChapter 7_Counters (EEEg4302).pdf
Chapter 7_Counters (EEEg4302).pdfTamiratDejene1
 
Presentation on Counters for (Digital Systems Design).pptx
Presentation on Counters for (Digital Systems Design).pptxPresentation on Counters for (Digital Systems Design).pptx
Presentation on Counters for (Digital Systems Design).pptxAniruddh70
 
Sequential circuit design
Sequential circuit designSequential circuit design
Sequential circuit designSatya P. Joshi
 
Introduction to Counters
Introduction to CountersIntroduction to Counters
Introduction to CountersISMT College
 
Digital Electronics - Counters
Digital Electronics - CountersDigital Electronics - Counters
Digital Electronics - CountersJayakrishnan J
 
Digital Electronics - Counters
Digital Electronics - CountersDigital Electronics - Counters
Digital Electronics - CountersJayakrishnanJ11
 
Ade(unit 4) Counters
Ade(unit 4) CountersAde(unit 4) Counters
Ade(unit 4) CountersANKITSURWADE
 
Automatic room light contoller without microcontroller
Automatic room light contoller without microcontrollerAutomatic room light contoller without microcontroller
Automatic room light contoller without microcontrollerDeepak Yadav
 

Similar to Digital electronics sequential ckts counters (20)

Latch and Counter
Latch and CounterLatch and Counter
Latch and Counter
 
Digital counter
Digital counter Digital counter
Digital counter
 
Digital Electronics – Unit III.pdf
Digital Electronics – Unit III.pdfDigital Electronics – Unit III.pdf
Digital Electronics – Unit III.pdf
 
Eceg 3201-dld-lec 11-registers_and_asynchoronous_counters
Eceg 3201-dld-lec 11-registers_and_asynchoronous_countersEceg 3201-dld-lec 11-registers_and_asynchoronous_counters
Eceg 3201-dld-lec 11-registers_and_asynchoronous_counters
 
FYBSC IT Digital Electronics Unit V Chapter I Counters
FYBSC IT Digital Electronics Unit V Chapter I CountersFYBSC IT Digital Electronics Unit V Chapter I Counters
FYBSC IT Digital Electronics Unit V Chapter I Counters
 
Registers and counters
Registers and countersRegisters and counters
Registers and counters
 
3 Bit Synchronous Down Counter
3 Bit Synchronous Down Counter3 Bit Synchronous Down Counter
3 Bit Synchronous Down Counter
 
logic Basics of Sequential Circuits.docx
logic Basics of Sequential Circuits.docxlogic Basics of Sequential Circuits.docx
logic Basics of Sequential Circuits.docx
 
logic Basics of Sequential Circuits.docx
logic Basics of Sequential Circuits.docxlogic Basics of Sequential Circuits.docx
logic Basics of Sequential Circuits.docx
 
Intro
IntroIntro
Intro
 
Design and implementation of synchronous 4 bit up counter using 180 nm cmos p...
Design and implementation of synchronous 4 bit up counter using 180 nm cmos p...Design and implementation of synchronous 4 bit up counter using 180 nm cmos p...
Design and implementation of synchronous 4 bit up counter using 180 nm cmos p...
 
Digital electronics sequential circuits flip flops
Digital electronics sequential circuits flip flopsDigital electronics sequential circuits flip flops
Digital electronics sequential circuits flip flops
 
Chapter 7_Counters (EEEg4302).pdf
Chapter 7_Counters (EEEg4302).pdfChapter 7_Counters (EEEg4302).pdf
Chapter 7_Counters (EEEg4302).pdf
 
Presentation on Counters for (Digital Systems Design).pptx
Presentation on Counters for (Digital Systems Design).pptxPresentation on Counters for (Digital Systems Design).pptx
Presentation on Counters for (Digital Systems Design).pptx
 
Sequential circuit design
Sequential circuit designSequential circuit design
Sequential circuit design
 
Introduction to Counters
Introduction to CountersIntroduction to Counters
Introduction to Counters
 
Digital Electronics - Counters
Digital Electronics - CountersDigital Electronics - Counters
Digital Electronics - Counters
 
Digital Electronics - Counters
Digital Electronics - CountersDigital Electronics - Counters
Digital Electronics - Counters
 
Ade(unit 4) Counters
Ade(unit 4) CountersAde(unit 4) Counters
Ade(unit 4) Counters
 
Automatic room light contoller without microcontroller
Automatic room light contoller without microcontrollerAutomatic room light contoller without microcontroller
Automatic room light contoller without microcontroller
 

More from Nilesh Bhaskarrao Bahadure

Microcontroller 8051 instruction set and assemble directives
Microcontroller 8051 instruction set and assemble directivesMicrocontroller 8051 instruction set and assemble directives
Microcontroller 8051 instruction set and assemble directivesNilesh Bhaskarrao Bahadure
 

More from Nilesh Bhaskarrao Bahadure (20)

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

Recently uploaded

Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01KreezheaRecto
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 

Recently uploaded (20)

Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 

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