EK307 Lab 3 Spring Lab Assignment 3 Logic Gates

Similar documents
Analog, Digital, and Logic

CECS LAB 4 Prototyping Series and Parallel Resistors

EGR Laboratory 9 - Operational Amplifiers (Op Amps) Team Names

Breadboard Primer. Experience. Objective. No previous electronics experience is required.

Gates and Circuits 1

Exercise 1: EXCLUSIVE OR/NOR Gate Functions

Experiment 5: Basic Digital Logic Circuits

TECH 3232 Fall 2010 Lab #1 Into To Digital Circuits. To review basic logic gates and digital logic circuit construction and testing.

Name EGR 2131 Lab #2 Logic Gates and Boolean Algebra Objectives Equipment and Components Part 1: Reading Pin Diagrams 7400 (TOP VIEW)

EGR Laboratory 3 - Operational Amplifiers (Op Amps)

Lab# 13: Introduction to the Digital Logic

EXPERIMENT 1 PRELIMINARY MATERIAL

Revision: Jan 29, E Main Suite D Pullman, WA (509) Voice and Fax

Name: Class: Date: 1. As more electronic systems have been designed using digital technology, devices have become smaller and less powerful.

UNIVERSITY OF CALIFORNIA, DAVIS Department of Electrical and Computer Engineering. EEC 180A DIGITAL SYSTEMS I Winter 2015

Digital Electronics 1 (ET181) Laboratory Manual

40106 Hex Oscillator Workshop Instructions. bbob drake, aka fluxmonkey

EGR Laboratory 1 - Introduction to Circuit Analysis

Figure 1: Basic Relationships for a Comparator. For example: Figure 2: Example of Basic Relationships for a Comparator

Experiment 1: Breadboard Basics

Lab #6: Op Amps, Part 1

Electronics and Instrumentation Name ENGR-4220 Spring 1999 Section Experiment 4 Introduction to Operational Amplifiers

EE2304 Implementation of a Stepper Motor using CMOS Devices Fall 2004 WEEK -2-

EXPERIMENT 1 INTRODUCTION TO LABORATORY INSTRUMENTS

E85: Digital Design and Computer Architecture

PHYSICS 536 Experiment 14: Basic Logic Circuits

Department of EECS. University of California, Berkeley. Logic gates. September 1 st 2001

ENGINEERING TRIPOS PART II A ELECTRICAL AND INFORMATION ENGINEERING TEACHING LABORATORY EXPERIMENT 3B2-B DIGITAL INTEGRATED CIRCUITS

Chapter 1: Digital logic

Gates and and Circuits

Solar Sound Module Shannon McMullen Fabian Winkler

Exercise 1: AND/NAND Logic Functions

CSE208W Lecture #1 Notes Barry E. Mapen

Experiment # 2 The Voting Machine

EECS40 Lab Introduction to Lab: Guide

Dedan Kimathi University of technology. Department of Electrical and Electronic Engineering. EEE2406: Instrumentation. Lab 2

B EE Laboratory 1 - Introduction to Circuit Analysis

Lab 5. Binary Counter

Sequential Logic Circuits

ENG 100 Electric Circuits and Systems Lab 6: Introduction to Logic Circuits

Lab 6. Binary Counter

EMT1250 LABORATORY EXPERIMENT. EXPERIMENT # 4: Combinational Logic Circuits. Name: Date:

Instrument Usage in Circuits Lab

Chapter 4 Combinational Logic Circuits

Electric Circuit Experiments

EXPERIMENT 12: DIGITAL LOGIC CIRCUITS

Schmitt Trigger Inputs, Decoders

Sequential Logic Circuits

Subject: Analog and Digital Electronics Code:15CS32

Logic diagram: a graphical representation of a circuit

This Figure here illustrates the operation for a 2-input OR gate for all four possible input combinations.

Module -18 Flip flops

Exercise 1: Circuit Block Familiarization

Chapter 4 Combinational Logic Circuits

INTRODUCTION. Figure 1 Three-terminal op amp symbol.

In this experiment you will study the characteristics of a CMOS NAND gate.

Digital Systems Principles and Applications TWELFTH EDITION. 3-3 OR Operation With OR Gates. 3-4 AND Operations with AND gates

CSE352 Autumn Lab #1 Logistics / Constructing Simple Logic Circuits

555 Morse Code Practice Oscillator Kit (draft 1.1)

Introduction to the Op-Amp

Lecture 15 Analysis of Combinational Circuits

Getting Started. 0.1 Breadboard

COMPUTER ARCHITECTURE AND ORGANIZATION

Process Components. Process component

ASTABLE MULTIVIBRATOR

Chapter 3 Describing Logic Circuits Dr. Xu

Index. n A. n B. n C. Base biasing transistor driver circuit, BCD-to-Decode IC, 44 46

Physics 323. Experiment # 1 - Oscilloscope and Breadboard

DIGITAL ELECTRONICS. Methods & diagrams : 1 Graph plotting : - Tables & analysis : - Questions & discussion : 6 Performance : 3

ENGR-4300 Electronic Instrumentation Quiz 3 Spring 2011 Name Section

2 Logic Gates THE INVERTER. A logic gate is an electronic circuit which makes logic decisions. It has one output and one or more inputs.

Electric Circuit I Lab Manual Session # 2

Series and Parallel Resistors

Department of Electronics and Communication Engineering

Lab 2: Combinational Circuits Design

Digital Fundamentals 9/4/2017. Summary. Summary. Floyd. Chapter 3. The Inverter

Multiple input gates. The AND gate

2 A Simple Logic Gate

Lab Project #2: Small-Scale Integration Logic Circuits

+15 V 10k. !15 V Op amp as a simple comparator.

Experiment #3: Experimenting with Resistor Circuits

Exercise 2: OR/NOR Logic Functions

ELEC 350L Electronics I Laboratory Fall 2012

Physics 335 Lab 1 Intro to Digital Logic

LOGIC GATES AND LOGIC CIRCUITS A logic gate is an elementary building block of a Digital Circuit. Most logic gates have two inputs and one output.

Polyphase network kit

EE320L Electronics I. Laboratory. Laboratory Exercise #4. Diode Rectifiers and Power Supply Circuits. Angsuman Roy

Lab 2 Electrical Safety, Breadboards, Using a DMM

Positive and Negative Logic

Laboratory Project 1a: Power-Indicator LED's

ELEC 2210 EXPERIMENT 12 NMOS Logic

EECS 150 Homework 4 Solutions Fall 2008

16 Bit Micro Experimenter Assembly and Check out Instructions

Digital Fundamentals

Oct 10 & 17 EGR 220: Engineering Circuit Theory Due Oct 17 & 24 Lab 4: Op Amp Circuits

Basic Logic Circuits

ENGINEERING TRIPOS PART II A ELECTRICAL AND INFORMATION ENGINEERING TEACHING LABORATORY EXPERIMENT 3B2-B DIGITAL INTEGRATED CIRCUITS

;UsetJand : Llto Record the truth. LAB EXERCISE 6.1 Binary Adders. Materials. Procedure

Chabot College Physics Lab Ohm s Law & Simple Circuits Scott Hildreth

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

Transcription:

Lab Assignment 3 Logic Gates Laboratory Goal: To use your existing knowledge of voltage concepts to design simple logic circuits. Learning Objectives: Operation of simple logic gates Suggested Tools: Logic integrated circuits (ICs), LEDs, datasheets, breadboard, multimeter. Background In this lab, we ll learn about a class of circuit elements called logic gates that are capable of measuring voltages and making decisions based on those measurements. Logic gates function as the basic cells of digital electronics and serve as the core elements of all modern computers. Using combinations of different logic gates, complex decision-making operations can be performed. A logic gate is fundamentally a binary device which interprets the voltage values 0 V and 5 V as representing the binary (i.e., base-two) digits 0 and 1. In principle, any voltage in a logic system that is smaller than the midpoint value of 2.5 V can be interpreted as a logic 0, and anything above 2.5 V as a logic 1. In a well-designed logic system, however, a given voltage is held as close as possible to one of the defined values of 0 V and 5 V, except, of course, in transition from one value to another. 1 The typical logic gate has two or more input terminals and a single output terminal. Terminal voltages are defined and measured relative to a common ground terminal which is often omitted in circuit diagrams for clarity. A common ground connection is understood to always be present. In order to function, a logic gate must also be energized by connecting separate power and ground terminals to a 5-V voltage source. For historical reasons, the power terminal of a logic gate is often labeled V CC on its data sheet. A truth table is often used to describe the way in which a given logic gate functions. The table contains the complete set of all possible binary input combinations and their resulting output values produces by the gate in response. The relationship between the input and output values depends of the specific type of gate. The AND Gate An AND gate, shown below, has at least two input terminals. The output of an AND gate will be 1 (i.e., equal to 5 V relative to ground) if all of its inputs are 1. If one or more inputs is 0, then the AND gate s output will be 0. The circuit symbol and truth table for a two-terminal AND gate are shown below. The table contains four rows because its two inputs have precisely four (2 2 ) possible combinations of values. 1 In some logic systems, particularly those found in battery-operated devices, logic voltages levels of 0 V and 3 V are used to save power -1-

. Common Ground Inputs Output 0 0 0 0 1 0 1 0 0 1 1 1 Two-Input AND Gate AND-Gate Truth Table The OR Gate The OR gate has two or more inputs and a single output whose value is 1 if any its inputs is 1. Otherwise, the gate output will be 0. Said another way, the output of an OR gate will be 0 if all its inputs are 0. Two-Input AND Gate (common ground not shown) Inputs Output 0 0 0 0 1 1 1 0 1 1 1 1 OR-Gate Truth Table The NOT Gate The NOT gate, or logical inverter, has only one input and one output. The value of the output is equal to the logical opposite of its input. Thus the output of a NOT gate is 1 if the input is 0. Conversely, the output will be 0 if the input is 1. : x y The NOT Gate 0 1 1 0 The NAND Gate Sometimes it is useful and more practical to combine functions of the AND and OR gates with the NOT gate to produce slightly more complex gates. The NAND consists of an AND gate in series with a NOT gate. The abbreviated symbol for the above consists of the AND gate symbol with a hollow circle attached to its nose. The truth table for a two-input NAND gate is identical to that of a two-input AND gate except that its output values are inverted. Two-Input NAND and Truth Table 0 0 1 0 1 1 1 0 1 1 1 0-2-

The NOR Gate The NOR gate similarly consists of an OR gate in series with a NOT gate: The truth table for a two-input NOR gate is identical to that of a two-input OR gate except that its output values are inverted: 0 0 1 Two-Input NOR and Truth Table 0 1 0 1 0 0 1 1 0 Finding Data Sheets for Logic Gates Your EK307 parts kit contains a variety of logic gates in the Pins 8-14 form of integrated-circuit DIP chips. The standard DIP, or dual-inline package, can have anywhere from 6 to 20 pins. A typical 14-pin variety is shown to the right. The indents at the left end serve as pin locators; your chip may have one or both of these identifiers. Pins are numbered counter-clockwise around the chip beginning at pin 1. 1 2 3 4 5 6 7 Datasheets for most common logic gates in DIP packages can be found on the Internet. One of your tasks in this lab is to find the datasheet for the parts you wish to use and apply the information to your design. Using the Breadboard The solderless breadboard is a tool for the rapid prototyping of circuits. The breadboard contained in your kit is typical of most versions. Skill in its use is essential for the practicing engineer. As you can see in Fig. 1, the surface of board is covered by small holes, each of which accommodates the insertion of a single wire or component lead. Beneath the plastic cover, the holes are connected into various groups by a network of metal pathways. Specifically, each of the five holes in the short rows are interconnected, as are each of the long rows on the edges of the board. This interconnection pattern is shown in Fig. 2. The short rows serve as the nodes of a circuit built on the breadboard; the long, outer rows are usually used to distribute power, ground, and sometimes signals to the various sections of the circuit. The layouts of some typical circuits that include integrated circuit chips are shown in Figs. 3-5. Figure 1 The 5 holes is this row are interconnected All the holes in each of these long rows are interconnected -3-

Figure 2 Integrated circuit Ground distribution Power distribution Figure 3-4-

Power Ground Figure 4 Figure 5 Avoiding the "Bird's Nest" Pitfall. Good wiring practice requires that a breadboard circuit be compact, neat, and orderly, with all leads cut as short as possible. As shown in the above figures, component bodies should physically rest on or just above the board surface, and wires should be easy to trace and touch with a probe. The "bird's nest" approach of Figs. 6 and 7, in which wires dangle and go haphazardly in every direction, should be avoided at all costs. Such a disorderly tangle of wires can cause component leads to short together causing wiring errors. Circuit testing also becomes extremely difficult when a circuit is messy as one become easily lost in a chaotic circuit. A sloppy circuit affects the attitude of the engineer, who is likely to take the design or analysis task less seriously if work on the circuit is difficult. The wise engineer produces circuits that are neat, compact, tidy, and easily accessible. -5-

Figure 6 Figure 7 Lab Assignment Level 1 Build a logic circuit that indicates when a unanimous vote occurs for five inputs. Simulate votes by a wire or switch that connects a given gate input to 5-V (logic 1, or yes ) or to ground (logic 0, or no ). Use one or more LEDs to indicate the status of the vote result. Level 2 Build a logic circuit that indicates when a majority yes vote occurs for three voters. Simulate votes by a wire or switch that connects a given gate input to 5-V (logic 1, or yes ) or to ground (logic 0, or no ). Use one or more LEDs to indicate the status of the vote result. Level 3 Build a logic circuit that converts a 3-bit, base-2 binary input (e.g., the binary numbers 000 through 111) to one of eight LED outputs. This function is summarized by the following diagram: Logic-level inputs D 0 D 1 Your Circuit D 2 1 2 3 4 5 6 7 8-6-