CHAPTER 3 Counters.  One of the common requirement in digital circuits/system is counting, both direction (forward and backward)  Digital clocks and.

Slides:



Advertisements
Similar presentations
COUNTERS Counters with Inputs Kinds of Counters Asynchronous vs
Advertisements

A presentation on Counters (second)
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Figure 8–1 A 2-bit asynchronous binary counter
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Counters 4017 decade counter (1-of-10). What is a Counter? In digital logic and computing, a counter is a device which stores (and sometimes displays)
Counter Circuits and VHDL State Machines
Sequential Circuit - Counter -
Counters and Registers
ECE 331 – Digital System Design Counters (Lecture #19) The slides included herein were taken from the materials accompanying Fundamentals of Logic Design,
C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.
M.S.P.V.L. Polytechnic College, Pavoorchatram
Asynchronous and Synchronous Counters
Counters and Registers Wen-Hung Liao, Ph.D.. Objectives Understand several types of schemes used to decode different types of counters. Anticipate and.
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.
What is shift register? A shift register is a digital memory circuit found in calculators, computers, and data-processing systems. Bits (binary digits)
Registers and Counters
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.
Chapter 9 Counters.
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.
Three Other Types of Counters (BCD Counter, Ring Counter, Johnson Counter) Hun Wie (Theo) SJSU, 2011 Spring Prof: Dr. Sin-Min Lee CS147 Computer Organization.
Design of Counters ..
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
A presentation on Counters
Electronics Technology
Counters.
Registers and Counters
Chapter 1_4 Part II Counters
Chapter 7 Counters and Registers
EE345: Introduction to Microcontrollers Register and Counters Prof. Ahmad Abu-El-Haija.
Sequential Circuit - Counter -
Lecture 27 Counters Give qualifications of instructors: DAP
Mid3 Revision Prof. Sin-Min Lee. 2 Counters 3 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation.
CHAPTER 12 REGISTERS AND COUNTERS
CHAPTER 6 MODULAR SQUENTIAL CIRCUITS & APPLICATIONS
P. 4.1 Digital Technology and Computer Fundamentals Chapter 4 Digital Components.
Counter Application (Part B) By : Pn Siti Nor Diana Ismail CHAPTER 3.
© 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.
2017/4/24 CHAPTER 6 Counters Chapter 5 (Sections )
Counters By Taweesak Reungpeerakul
CYU / CSIE / Yu-Hua Lee / E- 1 數位邏輯 Digital Fundamentals Chapter 9 Counters.
BZUPAGES.COM1 Chapter 9 Counters. BZUPAGES.COM2 BzuPages.COM Please share your assignments/lectures & Presentation Slides on bzupages which can help your.
Counters. November 5, 2003 Introduction: Counters  Counters are circuits that cycle through a specified number of states.  Two types of counters: 
Registers and Counters Chapter 6. Digital Circuits 2 Clocked sequential circuits a group of flip-flops and combinational gates connected to form a feedback.
© 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.
CHAPTER 8 - COUNTER -.
Counter Circuits and VHDL State Machines
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 and Registers Synchronous Counters. 7-7 Synchronous Down and Up/Down Counters  In the previous lecture, we’ve learned how synchronous counters.
Counters.
Digital System Design using VHDL
Synchronous Counter Design
Lecture No. 29 Sequential Logic.
CHAPTER 14 Digital Systems. Figure 14.1 RS flip-flop symbol and truth table Figure
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.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
EKT 124 / 3 DIGITAL ELEKTRONIC 1
EKT 221 – Counters.
EKT 221 : Digital 2 COUNTERS.
Sequential Circuit - Counter -
Digital Fundamentals with PLD Programming Floyd Chapter 10
EET107/3 DIGITAL ELECTRONICS 1
Chapter 8 Counters Changjiang Zhang
Counters.
Digital Electronics and Logic Design
Presentation transcript:

CHAPTER 3 Counters

 One of the common requirement in digital circuits/system is counting, both direction (forward and backward)  Digital clocks and watches are everywhere, timers are found in a range of appliances from microwave ovens to VCRs, and counters for other reasons are found in everything from automobiles to test equipment.  Although we will see many variations on the basic counter, they are all fundamentally very similar. INTRODUCTION

 Counters can be implemented quite easily using register-type circuits such as the flip-flop, and a wide variety of classifications exist:  Asynchronous (ripple) counter – changing state bits are used as clocks to subsequent state flip-flops  Synchronous counter – all state bits change under control of a single clock  Decade counter – counts through ten states per stage  Up/down counter – counts both up and down, under command of a control input  Ring counter – formed by a shift register with feedback connection in a ring  Johnson counter – a twisted ring counter  Cascaded counter  Each is useful for different applications INTRODUCTION (cont.)

 A counter – a group of flip-flops connected together to perform counting operations.  The number of flip-flops used and the way in which they are connected determine the number of states (modulus).  Two broad categories according to the way they are clocked:  Asynchronous counter  Synchronous counter

ASYNCHRONOUS COUNTER A 2-bit asynchronous binary counter.  Don’t have fixed time relationship with each other.  Triggering don’t occur at the same time.  Don’t have a common clock pulse

The Timing diagram Notice that :  Main clock pulse only applied to FF0.  Clock for next FF, taken from previous complemented output ( Q ).  All inputs (J, K) are high (Vcc).

The Timing diagram

The Binary State Sequence CLOCK PULSEQ1Q1 Q0Q0 Initially (recycles)

Three-bit asynchronous binary counter and its timing diagram for one cycle.

The Binary State Sequence for a 3-bit Binary Counter CLOCK PULSEQ2Q2 Q1Q1 Q0Q0 Initially (recycles)000

Four-bit asynchronous binary counter and its timing diagram.

ASYNCHRONOUS DECADE COUNTER  The modulus of a counter is the number of unique states that the counter will sequence through.  The maximum possible number of states (max modulus) is 2 n where n is the number of flip-flops.  Counter with ten states are called decade counter.  Counter can also be designed to have a number of states in their sequence that is less than the maximum of 2 n. The resulting sequence is called truncated sequence.  To obtain a truncated sequence it is necessary to force the counter to recycle before going through all of its possible states.

An asynchronously clocked decade counter

SYNCHRONOUS COUNTER OPERATION A 2-bit synchronous binary counter.

The Binary State Sequence CLOCK PULSEQ1Q1 Q0Q0 Initially (recycles)

A 3-bit synchronous binary counter

The Binary State Sequence for a 3-bit Binary Counter CLOCK PULSEQ2Q2 Q1Q1 Q0Q0 Initially (recycles)000

A 4-Bit Synchronous BCD Decade Counter.

The Binary State Sequence for BCD Decade Counter CLOCK PULSEQ3Q3 Q2Q2 Q1Q1 Q0Q0 Initially (recycles)0000

General clocked sequential circuit : DESIGN OF SYNCHRONOUS COUNTERS

Steps used in the design of sequential circuit: 1.Specify the counter sequence and draw a state diagram 2.Derive a next-state table from the state diagram Develop a transition table showing the flip-flop inputs required for each transition. *** Transition/Excitation Table will be given. 3.Transfer the J and K states from the transition table to Karnaugh maps. There is a Karnaugh map for each input of each flip-flop. Group the Karnaugh map cells to generate and derive the logic expression for each flip-flop input. 4.Implement the expressions with combinational logic, and combine with the flip-flops to create the counter (construct the counter).

Example: Design a counter for 3-bit Gray code by using J-K Flip-flop …….. 1.State Diagram

2. Next-state table for a 3-bit Gray code counter. Present State Next State Q2Q2 Q1Q1 Q0Q0 Q2Q2 Q1Q1 Q0Q

Transition Table for a J-K flip-flop Output TransitionsFlip-flop Inputs QNQN Q N+1 JK 0  00X 0  11X 1  0X1 1  1X0 Q N : present state Q N+1: next state X: Don’t care

3. Karnaugh maps for present-state J and K inputs.

4. Three-bit Gray code counter

Example: Design a counter with the irregular binary count sequence 1,2,5,7,1,…..as shown in the state diagram. Use J-K flip-flops. 1. State Diagram

2. Next-state table Present State Next State Q2Q2 Q1Q1 Q0Q0 Q2Q2 Q1Q1 Q0Q

Transition Table for a J-K flip-flop Output TransitionsFlip-flop Inputs QNQN Q N+1 JK 0  00X 0  11X 1  0X1 1  1X0

3. K-Map

4. The Counter Circuit

Transition/Excitation Table for Flip-flop

Example: State diagram for a 3-bit up/down Gray code counter.

UP/DOWN SYNCHRONOUS COUNTER A basic 3-bit up/down synchronous counter.

Timing Diagram

The 74HC190 up/down synchronous decade counter.

Timing example for a 74HC190.

J and K maps - The UP/DOWN control input, Y, is treated as a fourth variable.

Three-bit up/down Gray code counter

CASCADE COUNTERS Two cascaded counters (all J and K inputs are HIGH).

A modulus-100 counter using two cascaded decade counters.

Three cascaded decade counters forming a divide-by frequency divider with intermediate divide- by-10 and divide-by-100 outputs.

Example: Determine the overall modulus of the two cascaded counter for (a) and (b) For (a) the overall modulus for the 3 counter configuration is 8 x 12 x 16 = 1536 for (b) the overall modulus for the 4 counter configuration is 10 x 4 x 7 x 5 = 1400

A divide-by-100 counter using two 74LS160 decade counters.

A divide-by-40,000 counter using 74HC161 4-bit binary counters. Note that each of the parallel data inputs is shown in binary order (the right-most bit D 0 is the LSB in each counter).

Decoding of state 6 (110). COUNTER DECODING * To determine when the counter is in a certain states in its sequence by using decoders or logic gates.

A 3-bit counter with active-HIGH decoding of count 2 and count 7.

A basic decade (BCD) counter and decoder.

Outputs with glitches from the previous decoder. Glitch widths are exaggerated for illustration and are usually only a few nanoseconds wide.

The basic decade counter and decoder with strobing to eliminate glitches.

Strobed decoder outputs for the circuit

Simplified logic diagram for a 12-hour digital clock.

Logic diagram of typical divide-by-60 counter using 74LS160A synchronous decade counters. Note that the outputs are in binary order (the right-most bit is the LSB).

Logic diagram for hours counter and decoders. Note that on the counter inputs and outputs, the right-most bit is the LSB.

Functional block diagram for parking garage control.

Logic diagram for modulus-100 up/down counter for automobile parking control.

Parallel-to-serial data conversion logic.

Example of parallel-to-serial conversion timing for the previous circuit