Lecture 3 - Counter
Lecture 3 - Counter
EE 8315
Monday, April 8, 2024
Mr. Cuthbert John Karawa
Lecture 3
COUNTER
College of Information and Communication Technology (CoICT)
Department Of Electronics And Telecommunications Engineering.
1
Introduction
➢The flipflop are essential component in clocked sequential
circuits.
➢ Circuits that include flip-flops are usually classified by
the functions they perform.
➢Counters and registers belong to the category of MSI
sequential logic circuits.
➢They have similar architecture, as both counters and
registers comprise a cascaded arrangement of more than
one flip-flop with or without combinational logic devices.
➢Counters are mainly used in counting applications.
Introduction
➢They can either measure the time interval between two
unknown time instants or measure the frequency of a
given signal.
➢The main purpose of counter is to count the number of
occurrence of input.
➢The number of flip-flops used and the way in which they
are connected determine the number of states (called the
modulus) and the specific sequence of states that the
counter goes through during each complete cycle.
➢For N-Bit counter will have N flipflop and 2N States.
Introduction
➢Counting circuits can be in either synchronous (clock
driven) and asynchronous (event driven).
➢Counters are classified into two broad categories
according to the way they are clocked:
✓Asynchronous (ripple) counters
✓Synchronous (parallel) counters.
➢All counter circuits count clock pulses and store
the number received in an array of memory
elements.
➢Counters is used for timing, control or sequencing
operations.
Introduction
Counting in Binary
➢A counter can form the same pattern of 0’s and 1’s with
logic levels.
➢The first stage in the counter represents the least
significant bit – notice that these waveforms follow the
same pattern as counting in binary.
Asynchronous(Ripple) Counters
➢In asynchronous counters, commonly 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 preceding flip-
flop.
➢Asynchronous refers to events that do not have a
fixed time relationship with each other, do not
occur at the same time.
Asynchronous(Ripple) Counters
➢An asynchronous counter is one in which the flip-
flops (FF) within the counter do not change states
at exactly the same time because they do not have
a common clock pulse.
Asynchronous(Ripple) Counters
➢A ripple counter is a cascaded arrangement of flip-flops
where the output of one flip-flop drives the clock input of
the following flip-flop.
➢The number of flip-flops in the cascaded arrangement
depends upon the number of different logic states that
it goes through before it repeats the sequence, a
parameter known as the modulus of the counter.
➢The clock input is applied only to the first flip-flop in
the cascaded arrangement. The clock input to any
subsequent flip-flop comes from the output of its
immediately preceding flip-flop.
Asynchronous(Ripple) Counters
Two bit Asynchronous Counter
➢The two-bit asynchronous counter as shown in figure
below.
𝑸𝟐 𝑸𝟏 𝑸𝟎 𝑸+
𝟐 𝑸+
𝟏 𝑸+
𝟎 𝑱𝟐 𝑲𝟐 𝑱𝟏 𝑲𝟏 𝑱𝟎 𝑲𝟎
0 0 0 0 0 0 1 0 X 0 X 1 X
1 0 0 1 0 1 1 0 X 1 X X 0
2 0 1 0 1 1 0 1 X X 0 0 X
3 0 1 1 0 1 0 0 X X 0 X 1
4 1 0 0 0 0 0 X 1 0 X 0 X
5 1 0 1 1 0 0 X 0 0 X X 1
6 1 1 0 1 1 1 X 0 x 0 1 X
7 1 1 1 1 0 1 X 0 X 1 X 0
Design of Synchronous Counters
Study on
➢Synchronous updown counter.
➢Cascaded Counters.
➢Counter Decoding
➢Finite State Machines
➢Counter Applications
Homework
➢Read Chapter 9 of Digital Fundamentals by Floyd and
do Problems found in page no 550 -560.
NEXT LECTURE
TEST 1
58