A presentation on Counters

Slides:



Advertisements
Similar presentations
A presentation on Counters (second)
Advertisements

A. Abhari CPS2131 Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and.
Digital Logic Chapter 5 Presented by Prof Tim Johnson
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Counter Circuits and VHDL State Machines
Sequential Circuit - Counter -
Counters and Registers
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
ENGIN112 L27: Counters November 5, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 27 Counters.
CS370 Counters. Overview °Counter: A register that goes through a prescribed series of states °Counters are important components in computers. °Counters.
M.S.P.V.L. Polytechnic College, Pavoorchatram
Sequential Circuit Introduction to Counter
EET 1131 Unit 11 Counter Circuits  Read Kleitz, Chapter 12, skipping Sections and  Homework #11 and Lab #11 due next week.  Quiz next week.
Introduction Flip-flops are synchronous bistable devices. The term synchronous means the output changes state only when the clock input is triggered. That.
What is shift register? A shift register is a digital memory circuit found in calculators, computers, and data-processing systems. Bits (binary digits)
Sequential Circuit  It is a type of logic circuit whose output depends not only on the present value of its input signals but on the past history of its.
Counters  A counter is a device which stores (and sometimes displays) the number of times a particular event or process has occurred, often in relationship.
CHAPTER 3 Counters.  One of the common requirement in digital circuits/system is counting, both direction (forward and backward)  Digital clocks and.
Digital Fundamentals with PLD Programming Floyd Chapter 10
Asynchronous Counters
Registers and Counters
Chapter 7 Counters and Registers
Asynchronous Counter © 2014 Project Lead The Way, Inc.Digital Electronics.
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
Sequential Circuit - Counter -
Asynchronous Counters with SSI Gates
COE 202: Digital Logic Design Sequential Circuits Part 1
Flip Flop
Rabie A. Ramadan Lecture 3
P. 4.1 Digital Technology and Computer Fundamentals Chapter 4 Digital Components.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Counters Dr. Rebhi S. Baraka Logic Design (CSCI 2301) Department of Computer Science Faculty of Information Technology The Islamic University.
Counters By Taweesak Reungpeerakul
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 17 Dr. Shi Dept. of Electrical and Computer Engineering.
Counters. November 5, 2003 Introduction: Counters  Counters are circuits that cycle through a specified number of states.  Two types of counters: 
CHAPTER 3 Counters.  One of the common requirement in digital circuits/system is counting, both direction (forward and backward)  Digital clocks and.
 Counters are sequential circuits which "count" through a specific state sequence. They can count up, count down, or count through other fixed sequences.
Asynch 1.1 Asynchronous Counters 1 ©Paul Godin Last Edit Sept 2009.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Chapter 1_4 Part III more on … Counters Chapter 1_4 Part III more on … Counters.
JK Flip-Flop. JK Flip-flop The most versatile of the flip-flops Has two data inputs (J and K) Do not have an undefined state like SR flip-flops – When.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
CHAPTER 8 - COUNTER -.
Counter Circuits and VHDL State Machines
Sequential logic circuits
Decade Counter (BCD Counter). Introduction A counter which is reset at the 10 th clock pulse is called decade counter. The decade counter is otherwise.
COUNTERS Why do we need counters?
Counters.
Basic terminology associated with counters Technician Series
Unit 1 – Counters and Registers Mr. Grimming. Introduction FFs and logic gates are combined to form various counters and registers. Unit Goals Goals:
Chapter5: Synchronous Sequential Logic – Part 1
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
 Flip-flops are digital logic circuits that can be in one of two states.  Flip-flops maintain their state indefinitely until an input pulse called a.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
3 BIT DOWN COUNTER SUBJECT: DIGITAL ELECTONICS CODE: COLLEGE: BVM ENGINEERING COLLEGE COLLEGE CODE:008 ELECTRONICS & TELECOMMUNICATION DEPT.
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
FLIP FLOPS Binary unit capable of storing one bit – 0 or 1
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
EKT 124 / 3 DIGITAL ELEKTRONIC 1
EKT 221 – Counters.
Sequential Circuit - Counter -
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Digital Fundamentals with PLD Programming Floyd Chapter 10
Registers and Counters Register : A Group of Flip-Flops. N-Bit Register has N flip-flops. Each flip-flop stores 1-Bit Information. So N-Bit Register Stores.
LECTURE 15 – DIGITAL ELECTRONICS
Counters and Registers
FLIP-FLOPS.
Flip-Flops.
Counters.
Digital Electronics and Logic Design
Presentation transcript:

A presentation on Counters Information obtained using educative resources from the WWW. http://www.eelab.usyd.edu.au/digital_tutorial/part2/counter02.html http://en.wikipedia.org/wiki/Counter

Introduction Circuits for counting events are frequently used in computers and other digital systems. Since a counter circuit must remember its past states, it has to possess memory.   The number of flip-flops used and how they are connected determine the number of states and the sequence of the states that the counter goes through in each complete cycle.

Two principal categories Counters are divided in two categories, these are: Asynchronous (Ripple) Counters - the first flip-flop is clocked by the external clock pulse, and then each successive flip-flop is clocked by the Q or Q' output of the previous flip-flop. Synchronous Counters - all memory elements are simultaneously triggered by the same clock.

Many categories Asynchronous (ripple) counter Synchronous counter Ring counter Johnson counter Decade counter Up–down counter

4000 Series Each is useful for different applications. Usually, counter circuits are digital in nature, and count in binary, or sometimes binary coded decimal. Many types of counter circuit are available as digital building blocks, for example a number of chips in the 4000 series implement different counters.

The CD4007 on a breadboard

Two-bit asynchronous counter A two-bit asynchronous counter is shown on the left. It uses two J-K flip flops.

Remember: J-K Flip Flop JK Flip Flop operation [5] Characteristic table Excitation table J K Qnext Comment Q hold state X No change 1 reset Set set Reset toggle

J-K Flip Flop is universal (good summary) The JK flip-flop augments the behavior of the SR flip-flop (J=Set, K=Reset) by interpreting the S = R = 1 condition as a "flip" or toggle command. Specifically, the combination J = 1, K = 0 is a command to set the flip-flop; the combination J = 0, K = 1 is a command to reset the flip-flop; and the combination J = K = 1 is a command to toggle the flip-flop, i.e., change its output to the logical complement of its current value. Setting J = K = 0 does NOT result in a D flip-flop, but rather, will hold the current state. To synthesize a D flip-flop, simply set K equal to the complement of J. The JK flip-flop is therefore a universal flip-flop, because it can be configured to work as an SR flip-flop, a D flip-flop, or a T flip-flop. NOTE: The flip flop is positive edge triggered (Clock Pulse) as seen in the timing diagram.

Two-bit asynchronous counter The external clock is connected to the clock input of the first flip-flop (FF0) only. So, FF0 changes state at the falling edge of each clock pulse, but FF1 changes only when triggered by the falling edge of the Q output of FF0.  

Two-bit asynchronous counter Because of the inherent propagation delay through a flip-flop, the transition of the input clock pulse and a transition of the Q output of FF0 can never occur at exactly the same time.   Therefore, the flip-flops cannot be triggered simultaneously, producing an asynchronous operation.

Two-bit asynchronous counter Note that for simplicity, the transitions of Q0, Q1 and CLK in the timing diagram above are shown as simultaneous even though this is an asynchronous counter.   Actually, there is some small delay between the CLK, Q0 and Q1 transitions.    

Two-bit asynchronous counter Usually, all the CLEAR inputs are connected together, so that a single pulse can clear all the flip-flops before counting starts.   The clock pulse fed into FF0 is rippled through the other counters after propagation delays, like a ripple on water, hence the name Ripple Counter.

Two-bit asynchronous counter The 2-bit ripple counter circuit above has four different states, each one corresponding to a count value.   Similarly, a counter with n flip-flops can have 2N states.   The number of states in a counter is known as its mod (modulo) number.   Thus a 2-bit counter is a mod-4 counter. A mod-n counter may also described as a divide-by-n counter.  

Two-bit asynchronous counter This is because the most significant flip-flop (the furthest flip-flop from the original clock pulse) produces one pulse for every n pulses at the clock input of the least significant flip-flop (the one triggers by the clock pulse).   Thus, the above counter is an example of a divide-by-4 counter.

Three-bit asynchronous counter The following is a three-bit asynchronous binary counter and its timing diagram for one cycle.   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.

Three-bit asynchronous counter

Asynchronous counter The binary counters previously introduced have two to the power n states.   But counters with states less than this number are also possible.   They are designed to have the number of states in their sequences, which are called truncated sequences.   These sequences are achieved by forcing the counter to recycle before going through all of its normal states.

Asynchronous counter A common modulus for counters with truncated sequences is ten.   A counter with ten states in its sequence is called a decade counter.   The circuit below is an implementation of a decade counter.

A Decade Counter is an asynchronous counter

Decade Counter Once the counter counts to ten (1010), all the flip-flops are being cleared.   Notice that only Q1 and Q3 are used to decode the count of ten.   This is called partial decoding, as none of the other states (zero to nine) have both Q1 and Q3 HIGH at the same time.

Decade Counter The sequence of the decade counter is shown in the table below:

A Up-Down Counter is an asynchronous counter In certain applications a counter must be able to count both up and down. The circuit below is a 3-bit up-down counter.  

Up-Down Counters It counts up or down depending on the status of the control signals UP and DOWN.   When the UP input is at 1 and the DOWN input is at 0, the NAND network between FF0 and FF1 will gate the non-inverted output (Q) of FF0 into the clock input of FF1.   Similarly, Q of FF1 will be gated through the other NAND network into the clock input of FF2.   Thus the counter will count up.

Up-Down Counters When the control input UP is at 0 and DOWN is at 1, the inverted outputs of FF0 and FF1 are gated into the clock inputs of FF1 and FF2 respectively.   If the flip-flops are initially reset to 0's, then the counter will go through the following sequence as input pulses are applied.

Up-Down Counters Notice that an asynchronous up-down counter is slower than an up counter or a down counter because of the additional propagation delay introduced by the NAND networks.