Design of Synchronous Counters

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

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

Counters and Decoders

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

Lecture 8: Synchronous Digital Systems

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

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

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

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

CHAPTER 11: Flip Flops

Counters & Shift Registers Chapter 8 of R.P Jain

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

Digital Logic Design Sequential circuits

Module 3: Floyd, Digital Fundamental

Operating Manual Ver.1.1

The components. E3: Digital electronics. Goals:

Lesson 12 Sequential Circuits: Flip-Flops

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.

ANALOG & DIGITAL ELECTRONICS

Lab 5 Operational Amplifiers

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

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

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

Upon completion of unit 1.1, students will be able to

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

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

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

RUTGERS UNIVERSITY Department of Electrical and Computer Engineering 14:332:233 DIGITAL LOGIC DESIGN LABORATORY

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

FORDHAM UNIVERSITY CISC Dept. of Computer and Info. Science Spring, Lab 2. The Full-Adder

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

ECE380 Digital Logic

2 : BISTABLES. In this Chapter, you will find out about bistables which are the fundamental building blocks of electronic counting circuits.

EXPERIMENT NUMBER 5 BASIC OSCILLOSCOPE OPERATIONS

EXPERIMENT 8. Flip-Flops and Sequential Circuits

ASYNCHRONOUS COUNTERS

Digital Fundamentals. Lab 8 Asynchronous Counter Applications

Course Requirements & Evaluation Methods

(1) /30 (2) /30 (3) /40 TOTAL /100

Lab 11 Digital Dice. Figure Digital Dice Circuit on NI ELVIS II Workstation

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

Asynchronous Counters. Asynchronous Counters

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

Contents COUNTER. Unit III- Counters

Theory of Logic Circuits. Laboratory manual. Exercise 3

Engr354: Digital Logic Circuits

CHAPTER IX REGISTER BLOCKS COUNTERS, SHIFT, AND ROTATE REGISTERS

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

2011, The McGraw-Hill Companies, Inc. Chapter 3

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

Counters. Present State Next State A B A B

Seven-Segment LED Displays

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

BINARY CODED DECIMAL: B.C.D.

A Digital Timer Implementation using 7 Segment Displays

Electronics I - Laboratory 1 Diode I/V Characteristics

DEPARTMENT OF INFORMATION TECHNLOGY

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

74F168*, 74F169 4-bit up/down binary synchronous counter

Modeling Registers and Counters

CHAPTER 3 Boolean Algebra and Digital Logic

81110A Pulse Pattern Generator Simulating Distorted Signals for Tolerance Testing

Gates, Circuits, and Boolean Algebra

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

Sequential Logic Design Principles.Latches and Flip-Flops

Content Map For Career & Technology

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):

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

PLL frequency synthesizer

A Lesson on Digital Clocks, One Shots and Counters

EE360: Digital Design I Course Syllabus

A Lesson on Digital Clocks, One Shots and Counters

Making Basic Measurements. Publication Number August Training Kit for the Agilent Technologies Series Logic Analysis System

Department of Electrical and Computer Engineering Ben-Gurion University of the Negev. LAB 1 - Introduction to USRP

Sequential Logic: Clocks, Registers, etc.

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

Finite State Machine Design A Vending Machine

A Comparison of Student Learning in an Introductory Logic Circuits Course: Traditional Face-to-Face vs. Fully Online

DATA SHEET. HEF4017B MSI 5-stage Johnson counter. For a complete data sheet, please also download: INTEGRATED CIRCUITS

Lab #5: Design Example: Keypad Scanner and Encoder - Part 1 (120 pts)

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

Measurement and Analysis Introduction of ISO7816 (Smart Card)

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

3-Digit Counter and Display

Lab #4 Thevenin s Theorem

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

Lab Session 4 Introduction to the DC Motor

Objectives: Part 1: Build a simple power supply. CS99S Laboratory 1

DMD 101 Introduction to DMD technology

Data Acquisition Using NI-DAQmx

Prepared by: Paul Lee ON Semiconductor

Memory Elements. Combinational logic cannot remember

Digital Systems. Syllabus 8/18/2010 1

Transcription:

Design of Synchronous Counters By: Dr. A. D. Johnson Lab Assignment #11 EECS: 1100 Digital Logic Design The University of Toledo 1. Objectives - getting familiar with state transition tables of synchronous counters, - gaining experience in constructing state transition excitation tables of synchronous counters, - gaining experience in using flip-flop excitation tables, - gaining a close insight into the functioning and properties of synchronous counters, - developing skills in the composition and testing of sequential logic circuits. 2. Prelab Assignment 1 2.1 THE DOWN-COUNTING BCD COUNTER 2.1.1 Data sheets of the 74LS76A dual negative edge triggered JK-flip-flop are available from the TTL Data Book. 2.1.2 Prepare a graphical representation of the state transition graph of the downcounting BCD counter with decimally encoded states, and show it as Figure 2.1.1(a). Prepare a graphical representation of the state transition graph of the down-counting BCD counter with binary encoded states, and show it as Figure 2.1.1(b). Hint#1 In anticipation of the work to be performed under 2.1.7, provide in Figure 2.1.1(b) sufficient space to accommodate the graphical representations of unused states. 2.1.3 Designating the internal memory states in the LSB to MSB order by Q A, Q B, Q C, and Q D, prepare the state transition table of the down-counting BCD counter with binary encoded states, and show it as table T2.1-1. 2.1.4 Prepare the excitation table of the JK-flip-flop and show it as table T2.1-2. 2.1.5 Using the information from tables T2.1-1 and T2.1-2 prepare the state transition excitation table of the down-counting BCD counter with binary encoded states and show it as table T2.1-3. Hint#2 Reduce the work for construction of T2.1-3 by making a copy of T2.1-1 and appending to it the missing columns. Hint#3 In anticipation of the work to be performed under 2.1.7, provide in table T2.1-3 the rows for unused states, but leave the next internal state and flip-flop excitation function columns blank. 2.1.6 Using the table T2.1-3 and the Karnaugh map minimization method, derive minimized expressions of the J and K input functions of the four flip-flops in the internal state memory of the counter. 2.1.7 Check the designed counter circuit on being self-starting. Hint#4 A counter state machine with unused states possesses the self-starting property if its state transition graph has a directed path from each unused state to some used state. [See M.Mano, Digital Design, Prentice Hall, 1991, second edition, pp.250-251 for a counter specific example, and also pp.246-247 for an example of a general state machine with unused states.] Hint#5 A convenient way of checking if the designed counter is self-starting would be to apply the following procedure:

(a) for each unused state at a time, - use the derived minimized expressions of the J and K input functions to determine the logical values at the inputs of the four flip-flops, and record those values into the corresponding columns of the row of the currently considered unused state; - using the recorded input values and the characteristic table of the JK-flip-flop, determine the next states of the flip-flops, and record them into the corresponding columns of the row of the currently considered unused state; - add to the graphical representation of the state transition graph in Figure 2.1.1(b) the directed edge which represents the derived transition from the currently considered unused state; (b) verify that a directed path exists in the state transition graph from each unused state to a used state; (c) if the result of the verification is positive the counter is self-starting, otherwise it is not self-starting. State the step of the applied design procedure which should be altered if one wanted to correct a counter design which fails to verify as self-starting? 2.1.8 Prepare a computer generated drawing of the counter s logic circuit and show it as Figure 2.1.2(a). 2.1.9 Design a physical layout of the logic circuit shown in Figure 2.1-2(a). Prepare a computer generated drawing of the physical layout and show it as Figure 2.1-2(b). Provide the IC package pinouts on both drawings of Figure 2.1-2. 2 2.2 UP-COUNTING MODULO-6 COUNTER 2.2.1 Prepare a graphical representation of the state transition graph of the up-counting modulo-6 counter with decimally encoded states, and show it as Figure 2.2.1(a). Prepare a graphical representation of the state transition graph of the up-counting modulo-6 counter with binary encoded states, and show it as Figure 2.2.1(b). Hint#6 In anticipation of the work to be performed under 2.2.5, provide in Figure 2.2.1(b) sufficient space to accommodate the graphical representations of unused states. 2.2.2 Prepare the state transition table of the up-counting modulo-6 counter with binary encoded states and show it as table T2.2-1. Designate the internal memory states in the LSB to MSB order by Q A, Q B, Q C. 2.2.3 Using the information from tables T2.1-2 and T2.2-1 prepare the state transition excitation table of the up-counting modulo-6 counter with binary encoded states and show it as table T2.2-2. Hint#7 Reduce the work for construction of T2.1-2 by making a copy of T2.2-1 and appending to it the missing columns. Hint#8 In anticipation of the work to be performed under 2.2.5, provide in table T2.1-3 the rows for unused states, but leave the next internal state and flip-flop excitation function columns blank. 2.2.4 Using the table T2.1-2 and the Karnaugh map minimization method, derive minimized expressions of the J and K input functions of the four flip-flops in the internal state memory of the counter. 2.2.5 Check the designed up-counting modulo-6 counter circuit on being self-starting. 2.2.6 Prepare a computer generated drawing of the counter s logic circuit and show it as Figure 2.2.2(a). 2.2.7 Design a physical layout of the logic circuit shown in Figure 2.2-2(a). Prepare a computer generated drawing of the physical layout and show it as Figure 2.2-2(b). Provide the IC package pinouts on both drawings of Figure 2.2-2.

3. Lab Equipment and Circuit Components 3.1 EQUIPMENT Equipment to be used includes: - Proto boards: Power ACE, or Global PB-104, or PB-105, - Agilent E3631A DC power supply, - Function generator: Agilent 33120A, (Replacement model: Agilent 33220A Function / Arbitrary Waveform Generator) - Mixed-Signal oscilloscope Agilent 54645D, (Replacement model: Agilent DSO6012A Oscilloscope) - Dell GxaEM computer system. 3.2 LOGIC GATE AND CIRCUIT COMPONENTS - integrated circuit 7408, quod AND gates (1) - integrated circuit 7432, quod OR gates (1) - integrated circuit 74LS76A, dual negative-edge triggered JK-flip-flop (2) 4. Lab Assignment 4.1 EXPERIMENT WITH THE DOWN-COUNTING BCD COUNTER 4.1.1 Using as a reference the prepared physical layout drawing of Figure 2.1-2(b), build on the protoboard a physical circuit that implements the down-counting BCD counter. Figure A.4-1 shows the complete test circuit. Figure A.4-1 The complete circuit for experimenting with the Down-Counting BCD Counter. 3 4.1.2 Connect the digital channels D0 through D4 of the Mixed-Signal oscilloscope Agilent 54645D to the circuit constructed under 4.1.1: - digital channel D0: to the output of the function generator, - digital channels D 1 :D 4 to the outputs Q A :Q D of the BCD counter circuit, Establish a ground connection. Turn on digital channels D0 through D4, and rename the channels D0 through D4 as: A, Q A, Q B, Q C, Q D respectively. 4.1.3 Adjust the frequency of the Agilent 33120A function generator to 1MHz. Set the triggering mode of the Agilent 54645D to combination 1001 on channels D1 through D4. Hit the key Single on the Agilent 54645D. Adjust the display so that the combination 1001 of the counter s output signals is positioned at the left side of the

screen, and that the whole screen shows ten percent more than two periods of the signal at Q D. 4.1.4 Save the Screen Image of the correct waveforms of channels D0 through D4 to a file named L11_414.tif on the Dell GxaEM computer system. (Alternatively, use the Screen Capture tool.) 4.1.5 Observe the captured counter s output waveforms. Compare these waveforms with the contents of Table T2.1-1. 4.2 EXPERIMENT WITH THE UP-COUNTING MODULO-6 COUNTER 4.2.1 Using as a reference the prepared physical layout drawing of Figure 2.2-1(b), build on the protoboard the test circuit shown in Figure A.4-2. Figure A-4.2 The complete circuit for experimenting with the up-counting modulo-6 counter circuit. 4.2.2 Connect the digital channels D0 through D3 of the Mixed signal oscilloscope Agilent 54645D to the circuit shown in Figure A.4-2: - digital channel D0: to the output of the Agilent 33120A function generator, - digital channels D 1 :D 3 to the outputs Q A :Q C of the up-counting modulo-6 counter circuit. Establish a ground connection. Turn on digital channels D0 through D3, and rename the channels D0 through D3 as A, Q A, Q B, Q C respectively. 4.2.3 Adjust the frequency of the Agilent 33120A function generator to 1MHz. Set the triggering mode of the Agilent 54645D to the combination 000 on channels D1 through D3. Hit the key Single on the Agilent 54645D. Adjust the display so that the combination 000 of the counter s output signals is positioned at the left side of the screen, and that the whole screen shows ten percent more than two periods of the signal at Q C. 4.2.4 Save the Screen Image of the correct waveforms of channels D0 through D4 to a file named L11_424.tif on the Dell GxaEM computer system. (Alternatively, use the Screen Capture tool.) 4.2.5 Observe the captured counter s output waveforms. Compare these waveforms with the contents of Table T2.2-1. 4

5. Lab Report To be considered complete, the lab report must contain the following, 1. Cover sheet - Lab style, filled out, 2. The state transition and state transition excitation tables prepared under 2.1 through 2.2. 3. The Karnaugh maps and minimized expressions of J and K input functions derived under 2.1 and 2.2. 4. The logic and physical circuit diagrams prepared under 2.1 through 2.2. 5. The waveforms captured in experiments 4.1 through 4.2. 6. Answers to all questions asked in conjunction with experiments 4.1 through 4.2. 7. A report on items not already included under 1. through 6. above, which includes: - a discussion of the insights gained through the conducted experiments, - textual description and graphical/ tabular illustration of the design procedure(s), - description of implemented testing procedures, conclusions reached as a result of performing the lab experiment, - comments and suggestions that might lead to easier and/or deeper understanding of the topics covered by the assignment. These experiments have been submitted by third parties and Agilent has not tested any of the experiments. You will undertake any of the experiments solely at your own risk. Agilent is providing these experiments solely as an informational facility and without review. AGILENT MAKES NO WARRANTY OF ANY KIND WITH REGARD TO ANY EXPERIMENT. AGILENT SHALL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, GENERAL, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES IN CONNECTION WITH THE USE OF ANY OF THE EXPERIMENTS. 5