1 Lecture #13 EGR 277 – Digital Logic Sequential Counters Counters are an important class of sequential circuits. Counters follow a predetermined sequence.

Slides:



Advertisements
Similar presentations
التصميم المنطقي Second Course
Advertisements

Storey: Electrical & Electronic Systems © Pearson Education Limited 2004 OHT 10.1 Sequential Logic  Introduction  Bistables  Memory Registers  Shift.
Computing Machinery Chapter 5: Sequential Circuits.
Counter Circuits and VHDL State Machines
Sequential Circuit - Counter -
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
Counters Mano & Kime Sections 5-4, 5-5. Counters Ripple Counter Synchronous Binary Counters –Design with D Flip-Flops –Design with J-K Flip-Flops Counters.
Sequential Circuits and Finite State Machines Prof. Sin-Min Lee
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.
Overview Part 1 - Storage Elements and Sequential Circuit Analysis
Sequential Circuit Introduction to Counter
Registers and Counters
A presentation on Counters
Electronics Technology
Counters.
Registers and Counters
Chapter 1_4 Part II Counters
Chapter 7 Counters and Registers
1 EENG 2710 Project Synchronous Counters. 2 Counters Counter: A Sequential Circuit that counts pulses. Used for Event Counting, Frequency Division, Timing,
Asynchronous Counter © 2014 Project Lead The Way, Inc.Digital Electronics.
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
Sequential Logic - An Overview
EE345: Introduction to Microcontrollers Register and Counters Prof. Ahmad Abu-El-Haija.
Sequential Circuit - Counter -
Sequential Circuits Chapter 4 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer,  S.
Principles & Applications
Electronics Technology
Asynchronous Counters with SSI Gates
ECE 331 – Digital Systems Design Sequential Logic Circuits: FSM Design (Lecture #20)
CSI-2111 Computer Architecture Ipage Sequential circuits, 2nd part v Objectives: To recognize and know to use the principal types of sequential.
Digital Design Lecture 10 Sequential Design. State Reduction Equivalent Circuits –Identical input sequence –Identical output sequence Equivalent States.
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.
Counter Application (Part B) By : Pn Siti Nor Diana Ismail CHAPTER 3.
1 Lecture #12 EGR 277 – Digital Logic Synchronous Logic Circuits versus Combinational Logic Circuits A) Combinational Logic Circuits Recall that there.
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 )
1 Lecture 22 Sequential Circuits Analysis. 2 Combinational vs. Sequential  Combinational Logic Circuit  Output is a function only of the present inputs.
Counter Classification Count modulus (MOD) – total number of states in the counter sequence Counter triggering technique – positive edge or negative edge.
CHAPTER 3 Counters.  One of the common requirement in digital circuits/system is counting, both direction (forward and backward)  Digital clocks and.
1 Lecture #17 EGR 277 – Digital Logic Reading Assignment: Chapter 6 in Digital Design, 3 rd Edition by Mano Timing Sequences So far we have designed circuits.
Registers and Counters Chapter 6. Digital Circuits 2 Clocked sequential circuits a group of flip-flops and combinational gates connected to form a feedback.
Chap 5. Registers and Counters. Chap Definition of Register and Counter l a clocked sequential circuit o consist of a group of flip-flops & combinational.
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.
1 © 2014 B. Wilkinson Modification date: Dec Sequential Logic Circuits Previously, we described the basic building blocks of sequential circuits,
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.
1 Lecture #11 EGR 277 – Digital Logic Ch. 5 - Synchronous Sequential Logic There are two primary classifications of logic circuits: 1.Combinational logic.
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.
Basic terminology associated with counters Technician Series
Counters Computer Organization I 1 June 2010 © McQuain, Feng & Ribbens JK Flip-flop The JK flip-flop takes two data inputs and updates its.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
1 Lecture #14 EGR 277 – Digital Logic Self-starting counters Counters are considered to be self-starting if all unused counts eventually lead to the correct.
3 BIT DOWN COUNTER SUBJECT: DIGITAL ELECTONICS CODE: COLLEGE: BVM ENGINEERING COLLEGE COLLEGE CODE:008 ELECTRONICS & TELECOMMUNICATION DEPT.
Lecture No. 29 Sequential Logic.
Chapter 35 Sequential Logic Circuits. Objectives After completing this chapter, you will be able to: –Describe the function of a flip-flop –Identify the.
1 Homework Reading –Tokheim Chapter 9.1 – 9.6 Machine Projects –Continue on mp3 Labs –Continue in labs with your assigned section.
1 Lecture #15 EGR 277 – Digital Logic Reading Assignment: Chapter 5 in Digital Design, 3 rd Edition by Mano Example: (Problem 5-17 from Digital Design,
FLIP FLOPS Binary unit capable of storing one bit – 0 or 1
EKT 221 – Counters.
EKT 221 : Digital 2 COUNTERS.
Sequential Circuit: Counter
Principles & Applications
EGC 442 Introduction to Computer Architecture
Chapter5: Synchronous Sequential Logic – Part 4
Basic terminology associated with counter and sequential circuits.
Presentation transcript:

1 Lecture #13 EGR 277 – Digital Logic Sequential Counters Counters are an important class of sequential circuits. Counters follow a predetermined sequence of states. A counter changes state upon application of an input pulse. The input pulse is not necessarily a periodic clock. For example, a traffic counter is “clocked” each time a car passes. Key uses of counters Count occurrences of an event Example: Traffic counter Example: Line counter on ASEE autonomous vehicle Generate timing sequences to control operations Frequency division Reading Assignment: Chapter 5 in Digital Design, 3 rd Edition by Mano

2 Lecture #13 EGR 277 – Digital Logic Example: Show that a JK flip-flop in the toggle mode acts as a modulo-2 counter or a divide-by-2 circuit.

3 Lecture #13 EGR 277 – Digital Logic Example: Show that a 3-bit counter can serve as a modulo-8 counter or a divide- by-8 circuit.

4 Lecture #13 EGR 277 – Digital Logic Example: Show how a circuit with a 1MHz master clock might use counters (as frequency dividers) to provide synchronized lower frequencies.

5 Lecture #13 EGR 277 – Digital Logic Simplified Counter Design using T flip-flops A full circuit excitation table may not be necessary in some cases with T flip-flops, especially when the states are in counting order. It is easy to see which bits need to be toggled to produce the next state. Example: Design a mod-6 counter using T flip-flops.

6 Lecture #13 EGR 277 – Digital Logic Counters with multiple counting sequences Switches can be easily used to control counting direction or counting sequences. Example: Design a mod-6 UP/DOWN counter using T flip-flops.

7 Lecture #13 EGR 277 – Digital Logic Example: Design a counter with 2 input switches, x and y, that can count in 4 possible sequences based on the switch positions. Use JK flip-flops.

8 Lecture #13 EGR 277 – Digital Logic Flip-flop Excitation Tables Q(t)Q(t+1)JKSRDT 000X0X00 011X X X0X010 Circuit Excitation Table

9 Lecture #13 EGR 277 – Digital Logic Flip-flop Input Functions and Circuit Output Functions

10 Lecture #13 EGR 277 – Digital Logic Counters with repeated counts Suppose that we wanted a counter that would count in the sequence 0, 1, 2, 6, 1, 7 and repeat. What is the next state for count 1? Is it 2 or is it 7? It can’t be both! This problem can be resolved in a couple of manners. 1)Add an extra flip-flop. Since 3 flip-flops are required to encode the highest count (7), a 4 th flip-flop could be added as the most significant bit. If the first count of 1 is encoded as 0001 and the second is encoded as 1001, then the actual count is 0, 1, 2, 6, 9, 7, but if the MSB is not used as a part of the output, then the original count if obtained. Note that the addition of two extra flip-flops would allow for each count to be repeated up to 4 times. 2)Since the original counting sequence has 6 counts, a mod-6 counter could be used followed by a code converter (as designed earlier with combinational logic circuits).

11 Lecture #13 EGR 277 – Digital Logic Example: Design a counter that will count in the sequence 0, 1, 2, 6, 1, 7 and repeat using method 1 (adding extra flip-flops).

12 Lecture #13 EGR 277 – Digital Logic Example: Design a counter that will count in the sequence 0, 1, 2, 6, 1, 7 and repeat using method 2 (using a code converter).

13 Lecture #13 EGR 277 – Digital Logic Example: Design a counter that will count in the sequence 0, 1, 2, 1, 1, 2, 2, 3, 4, 3, 6, 5, 6, 1, 7 and repeat using method 1 (using extra flip-flops).