4 3 2 1 5 6 10 9 8 7 Counters.

Slides:



Advertisements
Similar presentations
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
Advertisements

Digital Logic Chapter 5 Presented by Prof Tim Johnson
EKT 124 / 3 DIGITAL ELEKTRONIC 1
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.
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.
Sequential Circuit Introduction to Counter
Lab 5 :JK Flip Flop and Counter Fundamentals:
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
Chapter 3: Sequential Logic Circuit EKT 121 / 4 ELEKTRONIK DIGIT 1.
A presentation on Counters
Electronics Technology
Counters.
SEQUENTIAL CIRCUITS USING TTL 74XX ICS
Chapter 7 Counters and Registers
Asynchronous Counter © 2014 Project Lead The Way, Inc.Digital Electronics.
Counter Section 6.3.
Principles & Applications
Electronics Technology
Asynchronous Counters with SSI Gates
CSI-2111 Computer Architecture Ipage Sequential circuits, 2nd part v Objectives: To recognize and know to use the principal types of sequential.
CS1104 – Computer Organization Aaron Tan Tuck Choy School of Computing National University.
Rabie A. Ramadan Lecture 3
P. 4.1 Digital Technology and Computer Fundamentals Chapter 4 Digital Components.
CENT-113 Digital Electronics 1 Flip Flops TI Type 502 Flip Flop: 1st production IC in 1960.
2017/4/24 CHAPTER 6 Counters Chapter 5 (Sections )
Counter Classification Count modulus (MOD) – total number of states in the counter sequence Counter triggering technique – positive edge or negative edge.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 17 Dr. Shi Dept. of Electrical and Computer Engineering.
 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.
ECA1212 Introduction to Electrical & Electronics Engineering Chapter 9: Digital Electronics – Sequential Logic by Muhazam Mustapha, November 2011.
Chapter 1 Counters. Counters Counters are sequential circuits which "count” through a specific state sequence. They can count up, count down, or count.
CHAPTER 8 - COUNTER -.
Synchronous Counters Synchronous digital counters have a common clock which results in all the flip-flops being triggered simultaneously. Consequently,
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.
Digital Fundamentals Tenth Edition Floyd Chapter 9.
Counters and Registers Synchronous Counters. 7-7 Synchronous Down and Up/Down Counters  In the previous lecture, we’ve learned how synchronous counters.
Counters Prepared by: Careene McCallum-Rodney. Introduction Counters uses a Toggle Flip Flops to count either UP or DOWN in binary. A toggle flip flop.
Digital Electronics.
Counters.
Basic terminology associated with counters Technician Series
EKT 121 / 4 ELEKTRONIK DIGIT I
3 BIT DOWN COUNTER SUBJECT: DIGITAL ELECTONICS CODE: COLLEGE: BVM ENGINEERING COLLEGE COLLEGE CODE:008 ELECTRONICS & TELECOMMUNICATION DEPT.
Counters and registers Eng.Maha Alqubali. Registers Registers are groups of flip-flops, where each flip- flop is capable of storing one bit of information.
CSE260 Revision Final. MSI a) Implement the following function with 8:1 mux F(A,B,C,D) =∑(0,1,3,4,8,9,15) b) Construct AND, OR and NOT gates using 2:1.
Chapter 35 Sequential Logic Circuits. Objectives After completing this chapter, you will be able to: –Describe the function of a flip-flop –Identify the.
Flip-Flop Flip-flops Objectives Upon completion of this chapter, you will be able to :  Construct and analyze the operation of a latch flip-flop made.
1 Homework Reading –Tokheim Chapter 9.1 – 9.6 Machine Projects –Continue on mp3 Labs –Continue in labs with your assigned section.
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
Date: 01/12/2014 Asynchronous (Ripple) Counters Patel Siddhi P rd SEM Computer Science and Engneering B.M.C.E.T Subject Name: Digital Electronics.
CS1104 – Computer Organization Aaron Tan Tuck Choy School of Computing National University.
FLIP FLOPS Binary unit capable of storing one bit – 0 or 1
LATCHED, FLIP-FLOPS,AND TIMERS
Sequential Logic Counters and Registers
Sequential Circuit: Counter
FLIP FLOPS.
Principles & Applications
Dr. Clincy Professor of CS
Flip-Flop.
Shift Registers.
Asynchronous Counters with SSI Gates
Chapter 8 Counters Changjiang Zhang
CHAPTER 4 COUNTER.
Digital Logic Department of CNET Chapter-6
Digital Logic Department of CNET Chapter-6
Counters.
Presentation transcript:

4 3 2 1 5 6 10 9 8 7 Counters

Objectives Upon completion of this chapter, you will be able to : Identify 2 different types of counter. Ripple -up counter, and Ripple-down counter Describe the operation of a 4-bit asynchronous ripple-up counter with the aid of a waveform diagram. Construct the truth table. State the maximum number of count. Describe the operation of a 4-bit asynchronous ripple-down counter with the aid of a waveform diagram.

Introduction Counters are used to count the number of binary pulses applied. Example : They make use of flip-flop. One flip-flop is able to store one bit. To be able to count “3 “ as in the example, two bits are required, hence two flip-flops must be used.

Calculation of maximum count value of a counter Let N = number of flip-flops. M = maximum count reached before a counter recycles. For N number of flip-flops, there are 2N counting states. The maximum count, M = 2N –1. Example : Determine the maximum count for a counter using 4 flip-flops. Solution : Given 4 flip-flops, therefore N = 4 Maximum count, M = 2N – 1 = 24 – 1 = 16 – 1 = 15

Type of Counters 4-Bit 4-Bit Asynchronous Asynchronous Up Counter Down Counter Tutorial

4 – Bit Asynchronous Up counter For the counter to count up, the Q-output of each flip-flop is connected to the clock input of the following flip-flop. The flip-flops are connected with J = K = 1 to operate in the toggle mode. The counter is clocked to count up. This type of counter where each flip-flop’s output serves as the CLK input signal for the next flip-flop, is referred to as an asynchronous counter. Only flip-flop A responds to clock pulses.

4 – Bit Asynchronous Up counter MSB LSB D C B A The counter will change state with each clock pulse 1 0 0 0 0 1 1 1 0 1 1 0 0 1 0 1 1 0 0 1 1 1 0 0 1 1 1 0 1 1 0 1 0 0 1 1 1 0 1 1 1 0 1 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 1 1 1 1 0 0 0 0 D J K C J K B J K A J K FF FF FF FF All J and K inputs assumed to be 1 Flip-flop are in toggle mode

Number of cycles Number of clock pulses D C B A 1 1 2 4 1 3 2 2 1 3 4 8 6 7 5 9 8 7 10 6 13 15 16 14 5 12 11 3 4 1 2 0 1 1 1 0 1 1 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 1 1 0 1 0 1 1 0 0 1 1 1 1 0 1 1 0 0 1 1 0 1 1 0 1 1 1 0 1 0 0 0 0 0 1 1 1 1 D J K C J K B J K A J K FF FF FF FF

Counter-waveforms showing frequency division by 2 for each Flip-flop Clk A B C D Flip-flops

The End MAIN MENU

4 – Bit Asynchronous Down counter For the counter to count down, the output of each flip-flop is connected to the clock input of the following flip-flop. The flip-flops are connected with J = K = 1 to operate in the toggle mode. The counter is clocked to count down. This type of counter where each flip-flop’s output serves as the CLK input signal for the next flip-flop, is referred to as an asynchronous counter. Only flip-flop A responds to clock pulses.

4 – Bit Asynchronous Down counter LSB MSB D C B A The counter will change state with each clock pulse 0 1 0 0 0 0 1 1 0 1 0 1 0 0 0 0 1 1 1 1 0 0 0 1 0 0 1 0 0 1 1 0 1 1 0 1 1 1 1 0 1 1 1 1 0 1 1 1 1 1 0 0 1 0 0 0 1 0 0 1 1 0 1 1 1 0 1 0 C FF J K A B D All J and K inputs assumed to be 1 Flip-flop are in toggle mode

Number of cycles Number of clock pulses D C B A 1 1 2 2 1 4 3 3 2 1 4 7 5 8 6 12 11 13 15 16 10 14 9 4 3 2 5 1 8 7 6 1 0 0 1 0 1 1 1 1 0 1 0 1 0 0 0 1 1 0 1 0 1 1 0 1 1 1 0 1 1 0 0 1 0 1 1 0 0 0 1 0 0 0 0 1 1 1 1 1 1 1 1 0 0 1 0 0 0 1 1 0 1 0 1 0 1 0 0 C FF J K A B D

Counter-waveforms showing frequency division by 2 for each Flip-flop Clk A B C D Flip-flops

The End MAIN MENU

Q 1 The maximum range which a 3-bit binary counter counts is from C J K B J K A J K FF FF FF A) 000 to 011. C) 011 to 110. 9 8 10 11 13 12 14 1 2 15 3 4 6 5 7 23 26 25 27 28 30 29 16 24 18 17 22 19 20 21 B) 000 to 111. D) 011 to 111.

Answer The maximum range which a 3-bit binary counter counts is from Q 1 The maximum range which a 3-bit binary counter counts is from C J K B J K A J K FF FF FF A) 000 to 011. C) 011 to 110. B) 000 to 111. D) 011 to 111.

All J and K inputs assumed to be 1 Q 2 Refer to the Fig. below. How many states does the counter have? C FF J K A B D All J and K inputs assumed to be 1 A) 3 states. C) 15 states. 11 9 10 14 8 13 12 4 2 1 3 15 6 5 7 19 26 25 27 28 30 29 16 24 18 17 23 20 21 22 B) 4 states. D) 16 states.

All J and K inputs assumed to be 1 Answer Q 2 Refer to the Fig. below. How many states does the counter have? C FF J K A B D All J and K inputs assumed to be 1 A) 3 states. C) 15 states. B) 4 states. D) 16 states.

All J and K inputs assumed to be 1 Q 3 The binary asychronous counter has an output of 0101. Determine the output after 3 clock pulses? 0 1 0 1 C FF J K A B D All J and K inputs assumed to be 1 A) 0111. C) 1001. 10 9 11 13 14 12 8 4 2 1 3 15 6 5 7 20 26 25 27 28 30 29 16 24 18 17 23 19 21 22 B) 1000. D) 1010.

All J and K inputs assumed to be 1 Answer Q 3 The binary asychronous counter has an output of 0101. Determine the output after 3 clock pulses? 0 1 0 1 C FF J K A B D All J and K inputs assumed to be 1 A) 0111. C) 1001. B) 1000. D) 1010.

All J and K inputs assumed to be 1 Q 4 The highest count of a 4 bit binary counter is equivalent to decimal? C FF J K A B D All J and K inputs assumed to be 1 A) 4. C) 16. 10 9 11 14 8 13 12 4 2 1 3 15 6 5 7 19 26 25 27 28 30 29 16 24 18 17 23 20 21 22 B) 15 D) 31.

All J and K inputs assumed to be 1 Answer Q 4 The highest count of a 4 bit binary counter is equivalent to decimal? C FF J K A B D All J and K inputs assumed to be 1 A) 4. C) 16. B) 15 D) 31.

Q 5 12 11 10 13 14 16 15 9 8 2 1 3 4 7 6 5 17 18 19 26 28 29 30 25 27 24 21 20 23 22 In order to connect up a circuit of JK flip-flops as an asynchronous up counter, you have to A) Set J=K= 1, connect Q output to the clock of the next flip- flop. B) Set J=K= 0, connect Q output to the clock of the next flip-flop C) Set J=K= 1, connect Q output to the clock of the next flip-flop. D) Set J=K= 0, connect Q output to the clock of the next flip-flop.

Answer Q 5 In order to connect up a circuit of JK flip-flops as an asynchronous up counter, you have to A) Set J=K= 1, connect Q output to the clock of the next flip-flop . B) Set J=K= 0, connect Q output to the clock of the next flip-flop . C) Set J=K= 1, connect Q output to the clock of the next flip-flop . D) Set J=K= 0, connect Q output to the clock of the next flip-flop .

The End MAIN MENU