4.0 Design of Synchronous Counters

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

Digital Logic Design Sequential circuits

Module 3: Floyd, Digital Fundamental

Asynchronous Counters. Asynchronous Counters

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

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

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

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

Lecture 8: Synchronous Digital Systems

Counters & Shift Registers Chapter 8 of R.P Jain

CHAPTER IX REGISTER BLOCKS COUNTERS, SHIFT, AND ROTATE REGISTERS

Upon completion of unit 1.1, students will be able to

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

Counters. Present State Next State A B A B

Fig1-1 2-bit asynchronous counter

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

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

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

Counters and Decoders

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

Design: a mod-8 Counter

Digital Electronics Detailed Outline

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

ASYNCHRONOUS COUNTERS

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

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

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

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

Flip-Flops and Sequential Circuit Design

Contents COUNTER. Unit III- Counters

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

Copyright Peter R. Rony All rights reserved.

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

The components. E3: Digital electronics. Goals:

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

We r e going to play Final (exam) Jeopardy! "Answers:" "Questions:" - 1 -

CHAPTER 3 Boolean Algebra and Digital Logic

Lecture-3 MEMORY: Development of Memory:

Chapter 4 Register Transfer and Microoperations. Section 4.1 Register Transfer Language

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

Chapter 8. Sequential Circuits for Registers and Counters

Lesson 12 Sequential Circuits: Flip-Flops

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

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

Engr354: Digital Logic Circuits

IE1204 Digital Design F12: Asynchronous Sequential Circuits (Part 1)

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

Digital Controller for Pedestrian Crossing and Traffic Lights

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

Registers & Counters

BINARY CODED DECIMAL: B.C.D.

Modeling Registers and Counters

Memory Elements. Combinational logic cannot remember

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

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

74LS193 Synchronous 4-Bit Binary Counter with Dual Clock

EXPERIMENT 8. Flip-Flops and Sequential Circuits

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

Chapter 5. Sequential Logic

Sequential Logic Design Principles.Latches and Flip-Flops

路 論 Chapter 15 System-Level Physical Design

DM74LS169A Synchronous 4-Bit Up/Down Binary Counter

SN54/74LS192 SN54/74LS193

BROADBAND AND HIGH SPEED NETWORKS

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

Operating Manual Ver.1.1

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

Chapter 2 Logic Gates and Introduction to Computer Architecture

EE360: Digital Design I Course Syllabus

Let s put together a Manual Processor

Lecture 12: More on Registers, Multiplexers, Decoders, Comparators and Wot- Nots

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

Design and Development of Virtual Instrument (VI) Modules for an Introductory Digital Logic Course

LAB #4 Sequential Logic, Latches, Flip-Flops, Shift Registers, and Counters

DM74LS193 Synchronous 4-Bit Binary Counter with Dual Clock

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

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


Systems I: Computer Organization and Architecture

Lab 1: Study of Gates & Flip-flops

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

AC : ELECTRICAL ENGINEERING STUDENT SENIOR CAP- STONE PROJECT: A MOSIS FAST FOURIER TRANSFORM PROCES- SOR CHIP-SET

Chapter 6 Bandwidth Utilization: Multiplexing and Spreading 6.1

Microprocessor & Assembly Language

CHAPTER 11 LATCHES AND FLIP-FLOPS

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

Cascaded Counters. Page 1 BYU

SECTION C [short essay] [Not to exceed 120 words, Answer any SIX questions. Each question carries FOUR marks] 6 x 4=24 marks

DATA SHEETS DE COMPONENTES DA FAMÍLIA LÓGICA TTL GATES AND INVERTERS POSITIVES NAND GATES AND INVERTERS DESCRIÇÃO

MICROPROCESSOR. Exclusive for IACE Students iacehyd.blogspot.in Ph: /422 Page 1

INTRODUCTION TO DIGITAL SYSTEMS. IMPLEMENTATION: MODULES (ICs) AND NETWORKS IMPLEMENTATION OF ALGORITHMS IN HARDWARE

Chapter 9 Latches, Flip-Flops, and Timers

RAM & ROM Based Digital Design. ECE 152A Winter 2012

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.

Digital Fundamentals

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

Digital codes. Resources and methods for learning about these subjects (list a few here, in preparation for your research):

LEVERAGING FPGA AND CPLD DIGITAL LOGIC TO IMPLEMENT ANALOG TO DIGITAL CONVERTERS

Transcription:

4.0 Design of Synchronous Counters This section begins our study of designing an important class of clocked sequential logic circuits-synchronous finite-state machines. Like all sequential circuits, a finite-state machine determines its outputs and its next state from its current inputs and current state. A synchronous finitestate machine changes state only on the clocking event. 4.1 General Model of a sequential Circuit The following diagram shows the general sequential circuit that consists of a combinational logic section and a memory section (flip-flops). The Combinational logic module is for us, as the designer, to match the design specifications. 4.2 Counter Design Procedure?? Describe a general sequential circuit in terms of its basic parts and its input and outputs.?? Develop a state diagram for a given sequence.?? Develop a next-state table for a specific counter sequence.?? Create a FF transition table.?? Use K-map to derive the logic equations.?? Implement a counter to produce a specified sequence of states.

4.3. Design the 3-bit Gray code counter Step 1: State Diagram State Diagram for a 3-bit Gray code counter: Step 2: Next-State Table Next state table for a 3-bit Gray code counter

Step 3: Flip-Flop Transition Table Transition table for a J-K Flip-Flop Step 4: Karnaugh Maps The following diagram shows the steps to create separate next states of separate J and K from the current states of J and K.

Karnaugh maps for present-state J and K inputs for the 3-bit Gray code counter. Step 5: Logic Expressions for Flip-flop Inputs The next-state J and K outputs for a 3-bit Gray code counter.

Step 6: Counter Implementation The hardware diagram of the 3-bit Gray code counter?? There are many more examples for the design of synchronous counter. These can be found in any digital network related textbooks.

4.4. Design Example 1 Design a counter with the irregular binary count sequence shown in the state diagram of Figure 4.1. Step 1: State Diagram Step 2: Next-State Table Step 3: Flip-Flop Transition Table Transition table for a J-K Flip-Flop

Step 4: Karnaugh Maps Step 5: Logic Expressions for Flip-flop Inputs The expression for each J and K input taken from the maps is as follows: J 0 = 1, K 0 = Q 2 J 1 = K 1 = 1 J 2 = K 2 = Q 1 Step 6: Counter Implementation

4.5. Example 2 - Design the 3 Up/down counter (Gray code sequence) Step 1: State Diagram Step 2: Next-State Table Step 3: Flip-Flop Transition Table Transition table for a J-K Flip-Flop

Step 4: Karnaugh Maps Floyd] [

Step 5: Logic Expressions for Flip-flop Inputs Step 6: Counter Implementation [Floyd]

5.0 Cascaded Counters Counters can be connected in cascade to achieve higher-modulus operation. Figure 5.1 shows an example of two counters, modulus-4 and modulus-8 connected in cascade. Figure 5.1: 2 cascaded counters Figure 5.2: Timing diagram for the cascaded counters

5.1 Example 1: A modulus-100 counter Figure 5.3 illustrates a modulus-100 counter using 2 cascaded decade counters. This counter can be viewed as a frequency divider. It divides the input clock frequency by 100. Figure 5.3: A modulus-100 counter using 2 cascaded decade counters 5.2 Example2: A modulus-1000 counter If you have a basis clock frequency of 1 MHz and you wish to obtain 100kHz, 10Hz, and 1kHz, a series of cascaded decade counters can be used. If 1 MHz signal is divided by 10, the output is 100kHz. Then if the 100 khz signal is divided by 10, the output is 10kHz. Further division by 10 gives the 1 khz frequency. The implementation is shown in Figure 5.4. Figure 5.4: A modulus-1000 counter using 3 cascaded decade counters

6. 0 Applications Digital counters are very useful in many applications. They can be easily found in digital clocks and parallel-to-serial data conversion (multiplexing). In this section, we these two examples on how counters are being used. Example 1: A group of bits appearing simultaneously on parallel lines is called parallel data. A group of bits appearing on a single line in a time sequence is called serial data. Parallel-to-serial conversion is normally accomplished by the use of a counter to provide a binary sequence for the data-select inputs of a multiplexer, as illustrated in the circuit below. The Q outputs of the modulus-8 counter are connected to the data-select inputs of an eight-bit multiplexer. The first byte (eight-bit group) of parallel data is applied to the multiplexer inputs. As the counter goes through a binary sequence from 0 to 7, each bit beginning with D0, is sequentially selected and passed through the multiplexer to the output line. After eight clock pulses, the data byte has been converted to a serial format and sent out on the transmission line. Then, the counter recycles back to 0 and converts another parallel byte sequentially again by the same process.

Example 2: The following diagram shows the simplified logic diagram for a 12-hour digital clock.