Unit-1 - Binary Counter
Unit-1 - Binary Counter
MANESH PATEL
PRESIDENT INSTITUTE OF COMPUTER APPLICAION COLLEGE, SHAYONA CAMPUS, A’BAD
There are many types of binary counters present. Some common types of binary counters
are defined as follows −
Asynchronous Counter –
This type of binary counter in which the flip flops do not receive the same clock
pulse at the same time is called an asynchronous counter.
The asynchronous counter is also known as ripple counter.
It is the simplest type of binary counter.
In the case of asynchronous binary counter, each flip flop is triggered by the
output of the previous flip flop.
Therefore, the asynchronous counters suffer from propagation delay.
PREPARED BY: PATEL MANESH - M.Sc(CA & IT) Contact: 90165 17796 1
PATEL MANESH
Synchronous Counter –
This type of binary counter in which all the flip flops receive the same clock
pulse at the same time is known as a synchronous counter.
Since, all the flip flops of the synchronous counter are triggered by the same
clock pulse, therefore, their outputs change simultaneously.
This will result in the no propagation delay between the flip flops.
Up Counter –
This type of binary counter that counts upwards from zero to its maximum count
value is known as up counter.
In the case of up counter, the count is increased by one on each clock pulse.
Down Counter –
This type of binary counter that counts downwards from its maximum count
value to zero is known as a down counter.
In the down counter, the count value of the counter is decreased by one on each
clock pulse.
Up/Down Counter –
This type of binary counter that can count in both upward and downward
directions is known as a up/down counter.
In the up/down counter, the direction of count is determined by a control input
signal
s
PREPARED BY: PATEL MANESH - M.Sc(CA & IT), B.ED Contact: 90165 17796 2
PATEL MANESH
Difference
s
PREPARED BY: PATEL MANESH - M.Sc(CA & IT), B.ED Contact: 90165 17796 3
PATEL MANESH
4 bit asynchronous
4 bit = 4 Flip flops
2n = 24 = 16 total number of states
Maximum count = 2n-1 = 24-1 = 16-1 = 15
Truth Table
s
PREPARED BY: PATEL MANESH - M.Sc(CA & IT), B.ED Contact: 90165 17796 4
PATEL MANESH
4 bit Synchronous
Synchronous binary counters have a normal pattern, as can be view from the 4-bit
binary counter demonstrated in the diagram.
If the count allow is 0, all J and K inputs are supported at 0 and the output of the
counter does not modify.
The first stage A0 is complemented when the counter is allowed and the clock goes
through a positive transition.
Each of the other three flip-flops is complemented when all preceding smallest
significant flip-flops are similar to 1 and the count is allowed.
The chain of AND gates creates the needed logic for the J and K inputs.
The output carry can be used to develop the counter to further procedures, with each
procedure having an extra flip-flop and an AND gate.
s
PREPARED BY: PATEL MANESH - M.Sc(CA & IT), B.ED Contact: 90165 17796 5
PATEL MANESH
Timing Diagram
Truth Table
s
PREPARED BY: PATEL MANESH - M.Sc(CA & IT), B.ED Contact: 90165 17796 6
PATEL MANESH
Q2 Q1 Q0 Q2 Q1 Q0
s
PREPARED BY: PATEL MANESH - M.Sc(CA & IT), B.ED Contact: 90165 17796 7