Counters Dr. Rebhi S. Baraka Logic Design (CSCI 2301) Department of Computer Science Faculty of Information Technology The Islamic University.

Slides:



Advertisements
Similar presentations
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Advertisements

Figure 8–1 A 2-bit asynchronous binary counter
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Multiplexors Sequential Circuits and Finite State Machines Prof. Sin-Min Lee Department of Computer Science.
Asynchronous Sequential Logic
Sequential Logic Flip-Flops and Related Devices Dr. Rebhi S. Baraka Logic Design (CSCI 2301) Department of Computer Science Faculty.
Counter Circuits and VHDL State Machines
Sequential Circuit - Counter -
Contemporary Logic Design Sequential Case Studies © R.H. Katz Transparency No Chapter #7: Sequential Logic Case Studies 7.1, 7.2 Counters.
ECE 331 – Digital System Design Counters (Lecture #19) The slides included herein were taken from the materials accompanying Fundamentals of Logic Design,
M.S.P.V.L. Polytechnic College, Pavoorchatram
ECE 301 – Digital Electronics Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #17)
ECE 331 – Digital Systems Design Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #19)
Asynchronous and Synchronous Counters
Sequential Circuit Introduction to Counter
A.Abhari CPS2131 Registers A register is a group of n flip-flops each of them capable of storing one bit of information There are two types of registers:
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.
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
Counters.
Chapter 1_4 Part II Counters
EE345: Introduction to Microcontrollers Register and Counters Prof. Ahmad Abu-El-Haija.
Sequential Circuit - Counter -
Mid3 Revision Prof. Sin-Min Lee. 2 Counters 3 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation.
Digital Computer Design Fundamental
ECE 101 An Introduction to Information Technology Digital Logic.
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 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.
CHAPTER 3 Counters.  One of the common requirement in digital circuits/system is counting, both direction (forward and backward)  Digital clocks and.
7-6 단일 레지스터에서 Microoperation Multiplexer-Based Transfer  Register 가 서로 다른 시간에 둘 이상의 source 에서 data 를 받을 경우 If (K1=1) then (R0 ←R1) else if (K2=1) then.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
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 -.
Counter Circuits and VHDL State Machines
CHAPTER 6 Sequential Circuits’ Analysis CHAPTER 6 Sequential Circuits’ Analysis Sichuan University Software College.
Combinational Logic Digital Design Department of Software Development Faculty of Information Technology Islamic University of Gaza Dr. Rebhi Baraka
Counters and Registers Synchronous Counters. 7-7 Synchronous Down and Up/Down Counters  In the previous lecture, we’ve learned how synchronous counters.
COUNTERS Why do we need counters?
Counters.
Unit 1 – Counters and Registers Mr. Grimming. Introduction FFs and logic gates are combined to form various counters and registers. Unit Goals Goals:
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Synchronous Counter Design
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.
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
Lecture No. 29 Sequential Logic.
Logic Design (CE1111 ) Lecture 6 (Chapter 6) Registers &Counters Prepared by Dr. Lamiaa Elshenawy 1.
CHAPTER 14 Digital Systems. Figure 14.1 RS flip-flop symbol and truth table Figure
1 Registers A register is a group of n flip-flops each of them capable of storing one bit of information There are two types of registers: parallel and.
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
UP/DOWN SYNCHRONOUS COUNTERS An up/down counter is one that is capable of progressing in either direction through a certain sequence. An up/down counter,
EKT 124 / 3 DIGITAL ELEKTRONIC 1
FIGURE 5.1 Block diagram of sequential circuit
Sequential Circuit - Counter -
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.
Digital Design Fundamentals
EET107/3 DIGITAL ELECTRONICS 1
Chapter 8 Counters Changjiang Zhang
Counters.
Shift Registers Dr. Rebhi S. Baraka
Digital Electronics and Logic Design
Presentation transcript:

Counters Dr. Rebhi S. Baraka Logic Design (CSCI 2301) Department of Computer Science Faculty of Information Technology The Islamic University of Gaza

Outline Asynchronous Counter Operation Synchronous Counter Operation Up/Down Synchronous Counters Design of Synchronous Counters Counter Application

Asynchronous Counter Operation A 2-Bit Asynchronous Binary Counter – FF0 is triggered by the clock; at the positive going edge of. – FF1 is triggered by the Q 0 output of FF0; at the positive going transition.

Timing diagram for the 2-bit counter.

A 3-Bit Asynchronous Binary Counter – FF0 is triggered by the clock; at the positive going edge of. – FF1 is triggered by the Q 0 output of FF0; at the positive going transition. – FF2 is triggered by the Q 1 output of FF1; at the positive going transition.

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

A 4-Bit Asynchronous Binary Counter – FF0 is triggered by the clock; at the positive going edge of. – FF1 is triggered by the Q 0 output of FF0; at the positive going transition. – FF2 is triggered by the Q 1 output of FF1; at the positive going transition. – FF3 is triggered by the Q 2 output of FF2; at the positive going transition.

Four-bit asynchronous binary counter and its timing diagram.

Asynchronous Decade Counters These counters have 10 states in their sequence. A decade counter of states from 0000 to 1001 is called a BCD decade counter. Since the counter would have 16 states, it is forces to recycle before going through all of its possible state. The BCD decade counter is recycled to 0000 after the 1001 state. – This is done as shown in the next slide by decoding count 1010 with an NAND gate and – connecting the output of the NAND gate to the clear inputs of the flip-flops. What is Partial decoding? – Two unique states (in this case) are sufficient to decode the count of ten.

An asynchronously clocked decade counter with asynchronous recycling.

2-Bit Synchronous Binary Counter – Both flip-flops are triggered by the clock. – FF0 is in the toggle mode. – The J and K inputs of FF1 are having 00 or 11 depending on Q 0 Synchronous Counter Operation

Timing diagram for the 2-bit synchronous counter.

Timing details for the 2-bit synchronous counter operation (the propagation delays of both flip-flops are assumed to be equal).

3-bit synchronous binary counter

4-bit synchronous binary counter

Synchronous BCD decade counter J 0 = K 0 = 1 J 1 = K 1 = Q 0 Q 3 J 2 = K 2 = Q 0 Q 1 J 3 = K 3 = Q 0 Q 1 Q 2 + Q 0 Q 3

Timing diagram for the BCD decade counter (Q 0 is the LSB).

Up/Down Synchronous Counters Called also bidirectional counter It is capable of progressing in either direction up or down in a certain sequence We study 3-bit up/down synchronous counter

3-bit up/down synchronous counter J 0 = K 0 = 1 J 1 = K 1 = Q 0 ·UP + Q 0 ·DOWN J 2 = K 2 = Q 0 Q 1 ·UP + Q 0 ·Q 1 ·DOWN

A basic 3-bit up/down synchronous counter.

Design of Sequential Circuit A sequential circuit (state machine) consists of a combinational logic section and a memory section (flip-flops).

The information in the memory and the inputs to them combinational logic are required for the operation of the circuit. Not all sequential circuits are required to have inputs and outputs. All sequential circuits have excitation variables and state variables. Design of Sequential Circuit

Design Procedure for Sequential Circuits as Applied to Counters Steps: – State diagram – Next-State Table – Transition Table – Karnaugh Maps – Input Logic – Implementation

State Diagram State diagram for a 3-bit Gray code counter.

Examples of the mapping procedure for the counter sequence represented. Next-State Table

Karnaugh maps for present-state J and K inputs.

Three-bit Gray code counter.

Example: Designing a counter with the irregular binary sequence 1-> 2 -> 5 -> 7 We work this example entirely on the black board.

End of the slides These slides are based on Digital Fundamentals 9 th ed. By Thomas Floyd