Asynchronous Counters. Asynchronous Counters



Similar documents
Module 3: Floyd, Digital Fundamental

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa

Digital Logic Design Sequential circuits

Counters & Shift Registers Chapter 8 of R.P Jain

To design digital counter circuits using JK-Flip-Flop. To implement counter using 74LS193 IC.

ETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies

Chapter 8. Sequential Circuits for Registers and Counters

Counters and Decoders

Lesson 12 Sequential Circuits: Flip-Flops

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

Contents COUNTER. Unit III- Counters

Lecture 8: Synchronous Digital Systems

Cascaded Counters. Page 1 BYU

Flip-Flops and Sequential Circuit Design. ECE 152A Winter 2012

Flip-Flops and Sequential Circuit Design

ASYNCHRONOUS COUNTERS

Combinational Logic Design Process

DIGITAL COUNTERS. Q B Q A = 00 initially. Q B Q A = 01 after the first clock pulse.

Lecture-3 MEMORY: Development of Memory:

Counters are sequential circuits which "count" through a specific state sequence.

WEEK 8.1 Registers and Counters. ECE124 Digital Circuits and Systems Page 1

Lab 1: Study of Gates & Flip-flops

Design Example: Counters. Design Example: Counters. 3-Bit Binary Counter. 3-Bit Binary Counter. Other useful counters:

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute. 2nd (Spring) term 2012/2013

Fig1-1 2-bit asynchronous counter

Chapter 7. Registers & Register Transfers. J.J. Shann. J. J. Shann

Copyright Peter R. Rony All rights reserved.

ENEE 244 (01**). Spring Homework 5. Due back in class on Friday, April 28.

CHAPTER IX REGISTER BLOCKS COUNTERS, SHIFT, AND ROTATE REGISTERS

Memory Elements. Combinational logic cannot remember

Napier University. School of Engineering. Electronic Engineering A Module: SE42205 Digital Design

Asynchronous counters, except for the first block, work independently from a system clock.

Latches, the D Flip-Flop & Counter Design. ECE 152A Winter 2012

BINARY CODED DECIMAL: B.C.D.

Wiki Lab Book. This week is practice for wiki usage during the project.

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute 5. LECTURE: REGISTERS AND RELATED

CHAPTER 11: Flip Flops

Digital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng

DEPARTMENT OF INFORMATION TECHNLOGY

List of Experiment. 8. To study and verify the BCD to Seven Segments DECODER.(IC-7447).

Digital Controller for Pedestrian Crossing and Traffic Lights

Counters. Present State Next State A B A B

Chapter 9 Latches, Flip-Flops, and Timers

Digital Fundamentals

EE 42/100 Lecture 24: Latches and Flip Flops. Rev B 4/21/2010 (2:04 PM) Prof. Ali M. Niknejad

Sequential Logic Design Principles.Latches and Flip-Flops

Registers & Counters

1.1 The 7493 consists of 4 flip-flops with J-K inputs unconnected. In a TTL chip, unconnected inputs

Chapter 5. Sequential Logic

Take-Home Exercise. z y x. Erik Jonsson School of Engineering and Computer Science. The University of Texas at Dallas

Flip-Flops, Registers, Counters, and a Simple Processor

DM74LS169A Synchronous 4-Bit Up/Down Binary Counter

Upon completion of unit 1.1, students will be able to

Systems I: Computer Organization and Architecture

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012


74LS193 Synchronous 4-Bit Binary Counter with Dual Clock

DM54161 DM74161 DM74163 Synchronous 4-Bit Counters

Sequential Logic: Clocks, Registers, etc.

The components. E3: Digital electronics. Goals:

Modeling Sequential Elements with Verilog. Prof. Chien-Nan Liu TEL: ext: Sequential Circuit

54LS169 DM54LS169A DM74LS169A Synchronous 4-Bit Up Down Binary Counter

Operating Manual Ver.1.1

54191 DM54191 DM74191 Synchronous Up Down 4-Bit Binary Counter with Mode Control

A New Paradigm for Synchronous State Machine Design in Verilog

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

Modeling Registers and Counters

EXPERIMENT 8. Flip-Flops and Sequential Circuits

CS311 Lecture: Sequential Circuits

DM74LS193 Synchronous 4-Bit Binary Counter with Dual Clock

Traffic Light Controller. Digital Systems Design. Dr. Ted Shaneyfelt

Gray Code Generator and Decoder by Carsten Kristiansen Napier University. November 2004

NOTE: The Flatpak version has the same pinouts (Connection Diagram) as the Dual In-Line Package.

SN54HC191, SN74HC191 4-BIT SYNCHRONOUS UP/DOWN BINARY COUNTERS

DM74LS191 Synchronous 4-Bit Up/Down Counter with Mode Control

Digital Fundamentals. Lab 8 Asynchronous Counter Applications

Sequential Logic. (Materials taken from: Principles of Computer Hardware by Alan Clements )

So far we have investigated combinational logic for which the output of the logic devices/circuits depends only on the present state of the inputs.

Engr354: Digital Logic Circuits

CHAPTER 11 LATCHES AND FLIP-FLOPS

Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.

Design: a mod-8 Counter

Decimal Number (base 10) Binary Number (base 2)

L4: Sequential Building Blocks (Flip-flops, Latches and Registers)

DATA SHEET. HEF40193B MSI 4-bit up/down binary counter. For a complete data sheet, please also download: INTEGRATED CIRCUITS

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

7. Latches and Flip-Flops

Obsolete Product(s) - Obsolete Product(s)

ECE380 Digital Logic

SEQUENTIAL CIRCUITS. Block diagram. Flip Flop. S-R Flip Flop. Block Diagram. Circuit Diagram

Table 1 Comparison of DC, Uni-Polar and Bi-polar Stepper Motors

(Refer Slide Time: 00:01:16 min)

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

A Lesson on Digital Clocks, One Shots and Counters

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

SN54/74LS192 SN54/74LS193

Digital Electronics Part I Combinational and Sequential Logic. Dr. I. J. Wassell

CpE358/CS381. Switching Theory and Logical Design. Class 10

Transcription:

Counters and State Machine Design November 25 Asynchronous Counters ENGI 25 ELEC 24 Asynchronous Counters The term Asynchronous refers to events that do not occur at the same time With respect to counter operation, asynchronous means that the Flip-Flops within the counter are not connected in a way to cause all Flip-Flops states at exactly the same time they are wired in a way that links the clock of the next flipflop to the Q of the current device this causes the output count states to ripple through the counter November 25 ENGI 25/ELEC 24 Counter Design 2 ENGI 25/ELEC 24

Counters and State Machine Design November 25 2-Bit (MOD 4) Asynchronous Counter November 25 ENGI 25/ELEC 24 Counter Design 3 November 25 ENGI 25/ELEC 24 Counter Design 4 ENGI 25/ELEC 24 2

Counters and State Machine Design November 25 3-Bit (MOD 8) Asynchronous Counter November 25 ENGI 25/ELEC 24 Counter Design 5 November 25 ENGI 25/ELEC 24 Counter Design 6 ENGI 25/ELEC 24 3

Counters and State Machine Design November 25 ENGI 25/ELEC 24 4 November 25 ENGI 25/ELEC 24 Counter Design 7 Propagation Delay in Ripple Clocked Binary Counters November 25 ENGI 25/ELEC 24 Counter Design 8 4-Bit Counter State Table CLK QD QC QB QA

Counters and State Machine Design November 25 ENGI 25/ELEC 24 5 November 25 ENGI 25/ELEC 24 Counter Design 9 4-Bit Asynchronous Counter November 25 ENGI 25/ELEC 24 Counter Design MOD Counter State Table CLK QD QC QB QA

Counters and State Machine Design November 25 Asynchronous Decade (MOD ) Counter November 25 ENGI 25/ELEC 24 Counter Design MOD 2 Asynchronous Counter November 25 ENGI 25/ELEC 24 Counter Design 2 ENGI 25/ELEC 24 6

Counters and State Machine Design November 25 November 25 ENGI 25/ELEC 24 Counter Design 3 7493A MOD 6 Counter November 25 ENGI 25/ELEC 24 Counter Design 4 ENGI 25/ELEC 24 7

Counters and State Machine Design November 25 Synchronous Counters ENGI 25 ELEC 24 Synchronous Counters The term synchronous refers to events that do occur simultaneously In communications, both ends must be connected telephone call with respect to counter operation, synchronous means that the counter is connected such that all the Flip- Flops change at the same time they are wired in a way that links all the flip-flop clock inputs together this causes the output count states to change at the same time There is a propagation delay, but they are typically very close in similar devices November 25 ENGI 25/ELEC 24 Counter Design 6 ENGI 25/ELEC 24 8

Counters and State Machine Design November 25 MOD 4 Synchronous Counter November 25 ENGI 25/ELEC 24 Counter Design 7 MOD 4 Counter Timing Diagram November 25 ENGI 25/ELEC 24 Counter Design 8 ENGI 25/ELEC 24 9

Counters and State Machine Design November 25 MOD 8 Synchronous Counter November 25 ENGI 25/ELEC 24 Counter Design 9 MOD Synchronous Counter November 25 ENGI 25/ELEC 24 Counter Design 2 ENGI 25/ELEC 24

Counters and State Machine Design November 25 MOD Timing Diagram November 25 ENGI 25/ELEC 24 Counter Design 2 Johnson Counter State Diagram November 25 ENGI 25/ELEC 24 Counter Design 22 ENGI 25/ELEC 24

Counters and State Machine Design November 25 Johnson Counter A Johnson counter is a special counter where the output of the last stage is inverted and fed back as input to the first stage. A pattern of bits equal in length circulates indefinitely. These counters are sometimes called "walking ring" counters, and find special applications. November 25 ENGI 25/ELEC 24 Counter Design 23 74LS63A 4-bit Binary Counter The counter can be synchronously preset to any four-bit binary number by When a LOW is applied to the LOAD input, the counter will assume the state of the data inputs on the next clock pulse The active-low CLR input synchronously RESETS all four flip- flops in the counter November 25 ENGI 25/ELEC 24 Counter Design 24 ENGI 25/ELEC 24 2

Counters and State Machine Design November 25 74LS63A Timing Diagram November 25 ENGI 25/ELEC 24 Counter Design 25 74LS6A November 25 ENGI 25/ELEC 24 Counter Design 26 ENGI 25/ELEC 24 3

Counters and State Machine Design November 25 November 25 ENGI 25/ELEC 24 Counter Design 27 November 25 ENGI 25/ELEC 24 Counter Design 28 ENGI 25/ELEC 24 4

Counters and State Machine Design November 25 November 25 ENGI 25/ELEC 24 Counter Design 29 State Machine Design ENGI 25/ELEC 24 5

Counters and State Machine Design November 25 State Machine Design The Figure above is the general diagram of a State Machine There are two basic components in a state machine, Memory which are usually JK Flip-Flops, and Combinational Logic To design a state machine, JK flip-flops are usually connected as a counter The following will demonstrate the design the logic necessary to allow the counter to sequence any desired binary pattern November 25 ENGI 25/ELEC 24 Counter Design 3 Gray Code State Diagram The figure on the left shows the progression of states and the input and outputs for a Gray Code Counter The arrow in the center shows the direction of the counter If we start at, the next state is From the next state is We progress through all possible states until the sequence repeats We use the State Diagram to create the Next State Table November 25 ENGI 25/ELEC 24 Counter Design 32 ENGI 25/ELEC 24 6

Counters and State Machine Design November 25 Gray Code Next State Table November 25 ENGI 25/ELEC 24 Counter Design 33 Gray Code Transition Table X = Don t Care (may be or ) November 25 ENGI 25/ELEC 24 Counter Design 34 ENGI 25/ELEC 24 7

Counters and State Machine Design November 25 K-MAP for Gray Code Transistion November 25 ENGI 25/ELEC 24 Counter Design 35 BCD Counter Design November 25 ENGI 25/ELEC 24 Counter Design 36 ENGI 25/ELEC 24 8

Counters and State Machine Design November 25 BCD Counter Design November 25 ENGI 25/ELEC 24 Counter Design 37 ENGI 25/ELEC 24 9