Assignment 2b. ASSIGNMENT 2b. due at the start of class, Wednesday Sept 25.

Similar documents
1. a) For the circuit shown in figure 1.1, draw a truth table showing the output Q for all combinations of inputs A, B and C. [4] Figure 1.

Catch or Die! Julia A. and Andrew C. ECE 150 Cooper Union Spring 2010

Digital Circuits I and II Nov. 17, 1999

Sequential Digital Design. Laboratory Manual. Experiment #3. Flip Flop Storage Elements

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

Copyright 2011 by Enoch Hwang, Ph.D. and Global Specialties. All rights reserved. Printed in Taiwan.

CPSC 121: Models of Computation Lab #5: Flip-Flops and Frequency Division

Reaction Game Kit MitchElectronics 2019

EXPERIMENT #6 DIGITAL BASICS

INTRODUCTION (EE2499_Introduction.doc revised 1/1/18)

CPSC 121: Models of Computation Lab #5: Flip-Flops and Frequency Division

EE 367 Lab Part 1: Sequential Logic

LAB #4 SEQUENTIAL LOGIC CIRCUIT

Sequential Digital Design. Laboratory Manual. Experiment #7. Counters

University of Victoria. Department of Electrical and Computer Engineering. CENG 290 Digital Design I Lab Manual

Laboratory 10. Required Components: Objectives. Introduction. Digital Circuits - Logic and Latching (modified from lab text by Alciatore)

Laboratory 1 - Introduction to Digital Electronics and Lab Equipment (Logic Analyzers, Digital Oscilloscope, and FPGA-based Labkit)

EECS 270 Midterm 1 Exam Closed book portion Winter 2017

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

The University of Texas at Dallas Department of Computer Science CS 4141: Digital Systems Lab

Department of Electrical and Computer Engineering Mid-Term Examination Winter 2012

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) LATCHES and FLIP-FLOPS

Chapter. Synchronous Sequential Circuits

ELCT201: DIGITAL LOGIC DESIGN

Dev Bhoomi Institute Of Technology Department of Electronics and Communication Engineering PRACTICAL INSTRUCTION SHEET

Computer Systems Architecture

CSE 352 Laboratory Assignment 3

11.1 As mentioned in Experiment 10, sequential logic circuits are a type of logic circuit where the output

1. Convert the decimal number to binary, octal, and hexadecimal.

EXPERIMENT: 1. Graphic Symbol: OR: The output of OR gate is true when one of the inputs A and B or both the inputs are true.

1.b. Realize a 5-input NOR function using 2-input NOR gates only.

COE 202: Digital Logic Design Sequential Circuits Part 1. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

Logic. Andrew Mark Allen March 4, 2012

University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Science. EECS 150 Spring 2000

DIGITAL ELECTRONICS LAB MANUAL FOR 2/4 B.Tech (ECE) COURSE CODE: EC-252

DALHOUSIE UNIVERSITY Department of Electrical & Computer Engineering Digital Circuits - ECED 220. Experiment 4 - Latches and Flip-Flops

Step 1 - shaft decoder to generate clockwise/anticlockwise signals

Name Of The Experiment: Sequential circuit design Latch, Flip-flop and Registers

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

EECS 270 Midterm Exam Spring 2011

CPE 200L LABORATORY 3: SEQUENTIAL LOGIC CIRCUITS UNIVERSITY OF NEVADA, LAS VEGAS GOALS: BACKGROUND: SR FLIP-FLOP/LATCH

Laboratory 7. Lab 7. Digital Circuits - Logic and Latching

Introduction to Microprocessor & Digital Logic

Final Examination (Open Katz, Calculators OK, 3 hours)

Lecture 8: Sequential Logic

Find the equivalent decimal value for the given value Other number system to decimal ( Sample)

RS flip-flop using NOR gate

To design a sequential logic circuit using D-Flip-flop. To implement the designed circuit.

LogicBlocks Experiment Guide a learn.sparkfun.com

Part IA Computer Science Tripos. Hardware Practical Classes

Sequential Logic Basics

University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Science

Logic Design. Flip Flops, Registers and Counters

NEW MEXICO STATE UNIVERSITY Electrical and Computer Engineering Department. EE162 Digital Circuit Design Fall Lab 5: Latches & Flip-Flops

Digital Circuits 4: Sequential Circuits

Laboratory 9 Digital Circuits: Flip Flops, One-Shot, Shift Register, Ripple Counter

Chapter 2. Digital Circuits

Flip-Flops and Sequential Circuit Design

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

Multiplexor (aka MUX) An example, yet VERY useful circuit!

A clock is a free-running signal with a cycle time. A clock may be either high or low, and alternates between the two states.

Serial In/Serial Left/Serial Out Operation

Experiment 8 Introduction to Latches and Flip-Flops and registers

Digital Fundamentals. Lab 5 Latches & Flip-Flops CETT Name: Date:

Chapter Contents. Appendix A: Digital Logic. Some Definitions

Part IA Computer Science Tripos. Hardware Practical Classes

Introduction to Digital Electronics

CHAPTER 4: Logic Circuits

RAO PAHALD SINGH GROUP OF INSTITUTIONS BALANA(MOHINDER GARH)123029

10.1 Sequential logic circuits are a type of logic circuit where the output of the circuit depends not only on

Chapter 8 Sequential Circuits

CHAPTER 4: Logic Circuits

Final Exam review: chapter 4 and 5. Supplement 3 and 4

Latches, Flip-Flops, and Registers. Dr. Ouiem Bchir

Other Flip-Flops. Lecture 27 1

Laboratory Exercise 7

Introduction. Serial In - Serial Out Shift Registers (SISO)

1. True/False Questions (10 x 1p each = 10p) (a) I forgot to write down my name and student ID number.

ELCT201: DIGITAL LOGIC DESIGN

Computer Architecture and Organization

CS 151 Final. Instructions: Student ID. (Last Name) (First Name) Signature

Integration of Virtual Instrumentation into a Compressed Electricity and Electronic Curriculum

Rangkaian Sekuensial. Flip-flop

LED BASED SNAKE GAME

Physics 120 Lab 10 (2018): Flip-flops and Registers

CSE Latches and Flip-flops Dr. Izadi. NOR gate property: A B Z Cross coupled NOR gates: S M S R Q M

Digital Circuit Projects: An Overview of Digital Circuits Through Implementing Integrated Circuits - Second Edition

Topics. Microelectronics Revolution. Digital Circuits Part 1 Logic Gates. Introductory Medical Device Prototyping

Asynchronous (Ripple) Counters

Experiment (6) 2- to 4 Decoder. Figure 8.1 Block Diagram of 2-to-4 Decoder 0 X X

EECS 270 Group Homework 4 Due Friday. June half credit if turned in by June

Simple Combination Lock Circuit Project. Johnathan Sam

Sequential logic circuits

D Latch (Transparent Latch)

First Name Last Name November 10, 2009 CS-343 Exam 2

Principles of Computer Architecture. Appendix A: Digital Logic

Digital Systems Laboratory 3 Counters & Registers Time 4 hours

Digital Networks and Systems Laboratory 2 Basic Digital Building Blocks Time 4 hours

LAB 7. Latches & Flip Flops

Flip-Flops and Related Devices. Wen-Hung Liao, Ph.D. 4/11/2001

Transcription:

ASSIGNMENT 2b due at the start of class, Wednesday Sept 25. For each section of the assignment, the work that you are supposed to turn in is indicated in italics at the end of each problem or sub-problem. This result may be a drawing/schematic, a written answer, or an equation, or a combination of all three. You may prepare the result by hand or using a computer, but I want it turned in as hard copy. 2b-1: Basic Prototyping and the 74HC00 Quad NAND Gate. In this exercise, you will learn basic prototyping skills using your UML305DEV board and the solderless breadboard. The figure below illustrates a section of the solderless breadboard: Each group of holes that is connected (in the drawing) with a thin line is connected electrically on the board. Thus, there are two sets of horizontal busses, along the top and bottom, and vertical groups of five holes. The horizontal busses are used for power and ground distribution, and the vertical holes are used to install and connect parts. The busses are printed in and blue, and labeled + and. Start off by connecting power and ground from the UML305DEV board to one of your proto boards. Get a length of wire, strip about 1/3 of an inch of insulation from both ends. Then run one end into one of the four +5v sockets on the UML305DEV board. Connect the other end to one of the bus strips. Get a second wire, and connect from one bus to the other bus. Using a wire, also connect ground from the UML305DEV board to one of the blue bus strips. Get a second wire, and connect from the blue bus to the other blue bus. http://www.cs.uml.edu/~fm/courses/91.305/files/assignment2b.pdf page 1

Your set up should now look like: Now you re ready to install a chip and wire it up. Get the 74HC00 quad NAND gate chip, and plug it into the breadboard, straddling the vertical banks of pins. Arrange the chip so that the notch is to the left, putting pin 1 in the lower left corner: ) 74HC00 Now, connect power and ground to the chip by running wires to from the chip to the power busses. Pin 14 is the power pin; use a wire to connect it to the power bus. Pin 7 is the ground pin; use a wire to connect it to the blue ground bus: http://www.cs.uml.edu/~fm/courses/91.305/files/assignment2b.pdf page 2

) 74HC00 Now, let s connect to an actual gate from the chip. Looking at the data sheet, one can see that the gates are connected as illustrated: We ll connect the #1 gate. The inputs A1 and B1 are at pins 1 and 2, and the output Y1 is at pin 3. Using white wires, connect the inputs to pushbuttons SW1 and SW2, and the output to LED1. The circuit should now look like: ) 74HC00 At this point, turn on the UML305DEV board. Make sure the power LED next to the power switch is on. The pushbuttons generate logic low (0v) signals when they are not pressed. So, the input to the NAND gate is 0 0, and its output should be logic high (5v). Thus, LED1 should now be lit. http://www.cs.uml.edu/~fm/courses/91.305/files/assignment2b.pdf page 3

Test the NAND function: when both inputs are true (buttons pressed), the output goes low (LED off). To turn in: nothing to turn in. This exercise is here for your benefit if you have not used solderless breadboards before. 2b-2: Counters. With the assistance of the data sheet, hook up the 74HC393 dual 4-bit binary counter. Use a pushbutton to generate the clock input; when it s working, you should see it increment one count per button press. Draw a circuit diagram of the chip and how you have attached it so that it will count. Does it count on the rising edge or falling edge of the clock signal? Using the chips in your kit, design a circuit that will generate a carry from the first counter stage to act as the clock input of the second, creating a full 8-bit counter. Do the counters increment on the rising edge or the falling edge of the clock signal? Make sure to think this through, so that the second counter increments on the same edge as the first. Draw a circuit diagram of your 8-bit counter. Typically, counters are built with chains of flip-flops. Using your 74HC73 dual JK flip-flop chip, build a two-bit counter. Draw a circuit diagram of your 2-bit counter. 2b-3: Feedback Loops with Inverters. The following circuit creates an oscillator: Explain why this circuit oscillates. What frequency would you expect it to produce? http://www.cs.uml.edu/~fm/courses/91.305/files/assignment2b.pdf page 4

2b-4: 3-Bit Counter as State Machine. 91.305 Assignment 2b It s also possible to build a counter from a state machine. Here s the state diagram of a 3-bit counter: The following state table shows transitions from the current state ABC to the new state A B C : ABC A B C 000 001 001 010 010 011 011 100 100 101 101 110 110 111 111 000 For each new state A, B, and C, write the sum-of-products equation that represents it. For example: _ A = (A B C) + (A B C) + (A B C) + (A B C) Write each equation (one each for A, B, and C ), and then uce each to minimal terms. [Hint: the equation for A above can still be minimized collect the terms for A*(some expression of B and C).] Which implementation do you think is better chain of flip-flops, or state machine with combinational logic? Why? http://www.cs.uml.edu/~fm/courses/91.305/files/assignment2b.pdf page 5

2b-5: Combination Lock as State Machine. 91.305 Assignment 2b The figure below illustrates the state diagram for a three-number combination lock: The lock has four states: closed, 1/3 open, 2/3 open, and open. It is opened using the correct series of three-bit numeric entries. When in the closed state, entering 001 moves it to the 1/3 open state. From there, 101 moves it to the 2/3 open state, but any other entry moves it back to closed. From 2/3 open, 011 moves it to open (and any other entry moves back to closed). When in the open state, the lock should generate an output V which is true (which controls a solenoid that opens the lock). Then the lock automatically moves to the closed state. Your task is to create a circuit that implements this design. The steps are: 1. Assign two bits of state (A and B) to represent the four states of the lock. 2. Create a truth table that defines new state (A and B ) in terms of old state (A and B) and the input (X, Y, and Z, with X being the high bit). Also, make a truth table for output V (for vend) as a function of state bits A and B. 3. Write sum-of-products expressions for A, B, and V, and minimize them. http://www.cs.uml.edu/~fm/courses/91.305/files/assignment2b.pdf page 6

4. Draw a circuit diagram for your implementation, using combinational logic and a 74HC574 latch. Remember the canonical form for a state machine: 5. Implement your design. Does it work? If there are any problems, solve them and show your process. Turn in written notes, tables, expressions, and diagrams from steps 1 through 5 of this problem. 2b-6: Other State Machines (for Honors Students). Think of two other devices or systems that can be implemented in terms of state machines like the ones here. Draw the state transition diagrams for them, and explain your design. http://www.cs.uml.edu/~fm/courses/91.305/files/assignment2b.pdf page 7