Digital Logic Design CSE-241

Similar documents
Module 3: Floyd, Digital Fundamental

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

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

Lecture 8: Synchronous Digital Systems

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

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

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

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

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

Asynchronous Counters. Asynchronous Counters

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

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

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

Counters & Shift Registers Chapter 8 of R.P Jain

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

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

Counters and Decoders

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

Contents COUNTER. Unit III- Counters

Copyright Peter R. Rony All rights reserved.

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

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

Digital Logic Design Sequential circuits

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

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

CHAPTER 3 Boolean Algebra and Digital Logic

CHAPTER IX REGISTER BLOCKS COUNTERS, SHIFT, AND ROTATE REGISTERS

Chapter 5. Sequential Logic

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

Digital Electronics Detailed Outline

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

Flip-Flops and Sequential Circuit Design

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

DEPARTMENT OF INFORMATION TECHNLOGY

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

Theory of Logic Circuits. Laboratory manual. Exercise 3

Upon completion of unit 1.1, students will be able to

BINARY CODED DECIMAL: B.C.D.

CHAPTER 11 LATCHES AND FLIP-FLOPS

Memory Elements. Combinational logic cannot remember

3.Basic Gate Combinations

EE360: Digital Design I Course Syllabus

Fig1-1 2-bit asynchronous counter

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.

Counters. Present State Next State A B A B

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

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

1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1.

ASYNCHRONOUS COUNTERS

Registers & Counters

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

The components. E3: Digital electronics. Goals:

Operating Manual Ver.1.1

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

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

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

Sequential Logic Design Principles.Latches and Flip-Flops

Lab 1: Study of Gates & Flip-flops

ECE380 Digital Logic

Digital Fundamentals. Lab 8 Asynchronous Counter Applications

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

Systems I: Computer Organization and Architecture

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

Gates, Circuits, and Boolean Algebra

A Digital Timer Implementation using 7 Segment Displays

Chapter 8. Sequential Circuits for Registers and Counters

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

Karnaugh Maps & Combinational Logic Design. ECE 152A Winter 2012

Online Development of Digital Logic Design Course

Philadelphia University Faculty of Information Technology Department of Computer Science Semester, 2007/2008.

EXPERIMENT 8. Flip-Flops and Sequential Circuits

CS311 Lecture: Sequential Circuits

Course Requirements & Evaluation Methods

BOOLEAN ALGEBRA & LOGIC GATES

Lecture-3 MEMORY: Development of Memory:

ANALOG & DIGITAL ELECTRONICS

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

Let s put together a Manual Processor

Chapter 2 Logic Gates and Introduction to Computer Architecture

7. Latches and Flip-Flops

Design: a mod-8 Counter

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

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

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

Basic Logic Gates Richard E. Haskell

Engr354: Digital Logic Circuits

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

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

Digital Design. Assoc. Prof. Dr. Berna Örs Yalçın

COMBINATIONAL CIRCUITS

Modeling Registers and Counters

plc numbers Encoded values; BCD and ASCII Error detection; parity, gray code and checksums

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

Digital Systems. Syllabus 8/18/2010 1

DM54161 DM74161 DM74163 Synchronous 4-Bit Counters

Cascaded Counters. Page 1 BYU

Lesson 12 Sequential Circuits: Flip-Flops

ENGI 241 Experiment 5 Basic Logic Gates

Transcription:

Digital Logic Design CSE-241 Unit 20 3-Bit Synchronous Binary Counter: 2 1

4-Bit Synchronous Binary Counter: 3 DOWN COUNTERS: A synchronous counter that counts in the reverse or downward sequence can be constructed in a similar manner by using complementary outputs of the flip-flops to drive the J and K inputs of the following flip-flops. 4 2

UP/DOWN Counters: Counters can also be designed which can perform UP/DOWN counting. These are known as UP/DOWN counters, which can be made to operate as either UP or DOWN counters. An UP counter is one that counts upwards or in the forward direction by one LSB every time it is clocked. A four-bit binary UP counter will count as 0000, 0001, 0010, 0011, 0100, 0101, 0110, 0111, 1000, 1001, 1010, 1011, 1100, 1101, 1110, 1111, 0000, 0001,.. and so on. A DOWN counter counts in the reverse direction or downwards by one LSB every time it is clocked. The four-bit binary DOWN counter will count as 0000, 1111, 1110, 1101, 1100, 1011, 1010, 1001, 1000, 0111, 0110, 0101, 0100, 0011, 0010, 0001, 0000, 1111, and so on. 5 UP/DOWN Counters: 6 3

UP/DOWN Counters: 7 UP/DOWN Counters: 8 4

Designing Counters with Arbitrary Sequences There are applications where a counter is required to follow a sequence that is arbitrary and not binary. As an example, an MOD-10 counter may be required to follow the sequence 0000, 0010, 0101, 0001, 0111, 0011, 0100, 1010, 1000, 1111, 0000, 0010 and so on. In such cases, the simple and seemingly obvious feedback arrangement with a single NAND gate discussed in the earlier sections of this chapter for designing counters with a modulus of less than 2 n cannot be used. 9 Designing Counters with Arbitrary Sequences There are several techniques for designing counters that follow a given arbitrary sequence. Here we will discuss in detail a commonly used technique for designing synchronous counters using J-K flip-flops. The design of the counters basically involves designing a suitable combinational logic circuit that takes its inputs from the normal and complemented outputs of the flip-flops used and decodes the different states of the counter to generate the correct logic states for the inputs of the flip-flops such as J, K. 10 5

Excitation Table of a Flip-Flop The excitation table is similar to the characteristic table that we discussed previously. The excitation table lists the present state, the desired next state and the flip-flop inputs (J, K) required to achieve that. 11 State Transition Diagram The state transition diagram is a graphical representation of different states of a given sequential circuit and the sequence in which these states occur in response to a clock input. Different states are represented by circles, and the arrows joining them indicate the sequence in which different states occur. Fig. shows the state transition diagram of an MOD-8 binary counter. 12 6

We will illustrate the design procedure with the help of an example. We will do this for an MOD-6 synchronous counter design, which follows the count sequence 000, 010, 011, 001, 100, 110, 000, 010,.. : Determine the number of flip-flops required for the purpose. Identify the undesired states. In the present case, the number of flip-flops required is 3 and the undesired states are 101 and 111 13 14 Draw the state transition diagram showing all possible states including the ones that are not desired. The undesired states should be depicted to be transiting to any of the desired states. We have chosen the 000 state for this purpose. It is important to include the undesired states to ensure that, if the counter accidentally gets into any of these undesired states owing to noise or power-up, the counter will go to a desired state to resume the correct sequence on application of the next clock pulse. Figure below shows the state transition diagram 7

Draw the excitation table for the counter, listing the present states, the next states corresponding to the present states and the required logic status of the flip-flop inputs (the J and K inputs). The excitation table is shown in the table below. 15 The circuit excitation table can be drawn very easily once we know the characteristic table of the flip-flop to be used for building the counter. For instance, let us look at the first row of the excitation table. The counter is in the 000 state and is to go to 010 on application of a clock pulse. That is, the normal outputs of C, B and A flip-flops have to undergo 0 to 0, 0 to 1 and 0 to 0 transitions respectively. Referring to the excitation table of a J-K flip-flop, the desired transitions can be realized if the logic status of J A, K A, J B, K B, J C and K C is as shown in the excitation table. 16 8

17 The next step is to design the logic circuits for generating J A, K A, J B, K B, J C and K C inputs from available A, A, B, B, C and C outputs. This can be done by drawing Karnaugh maps for each one of the inputs, minimizing them and then implementing the minimized Boolean expressions. The Karnaugh maps for J A, K A, J B, K B, J C and K C are shown in Figs in the next slide 18 9

19 The minimized Boolean expressions are as follows: The above expressions can now be used to implement combinational circuits to generate JA, KA, JB, KB, JC and KC inputs. Figure shows the complete counter circuit 20 10

Final Circuit: 21 11