COS 116 The Computational Universe Laboratory 6: Digital Logic I

Similar documents
Digital circuits make up all computers and computer systems. The operation of digital circuits is based on

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

TEECES DOME LIGHTING SYSTEMS

INSTALLATION INSTRUCTIONS

LS-1 Series Tungsten Halogen Light Sources Installation and Operation Instructions

CHAPTER 11: Flip Flops

Robot Board Sub-System Testing. Abstract. Introduction and Theory. Equipment. Procedures. EE 101 Spring 2006 Date: Lab Section # Lab #6

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

Lab 3 - DC Circuits and Ohm s Law

!Operation:!1. Connect an external power source to J1 (+ and - IN terminals). The

Gates, Circuits, and Boolean Algebra

Your Multimeter. The Arduino Uno 10/1/2012. Using Your Arduino, Breadboard and Multimeter. EAS 199A Fall Work in teams of two!

Figure 8-1 Four Possible Results of Adding Two Bits

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

ECEN 1400, Introduction to Analog and Digital Electronics

WHO ANSWERED FIRST? FIND OUT WITH THIS QUIZ BUZZER KIT

LAB2 Resistors, Simple Resistive Circuits in Series and Parallel Objective:

Measuring Electric Phenomena: the Ammeter and Voltmeter

Lab 5 Operational Amplifiers

Cornerstone Electronics Technology and Robotics I Week 15 Voltage Comparators Tutorial

CoolWave r 2 Phase Control Board and Cable Replacement Kits

Electronics and Soldering Notes

Windshield Wiper Motors

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.

AXE114S BINARY CLOCK. revolution Revolution Education Ltd. Web: Version /09/08 AXE114.PMD.

Capacitive Touch Sensor Project:

ENGI 241 Experiment 5 Basic Logic Gates

73 Chevy C10 Ammeter to Volt Gauge Conversion Mark and Michael Olson 2013 Rev 1.0

GLOLAB Universal Telephone Hold

Model 201 Wiegand Touchpad Reader Installation Guide

EVANS ELECTRONIC TEMPERATURE CONTROL TROUBLESHOOTING GUIDE for systems equipped with electric coolant valve and external PC board.

Martin County Amateur Radio Association. Nightfire Kits 1 LED Torch Kit Contents. Description

HID H4 BI-XENON FITTING GUIDE. Carefully read the following notes before starting work.

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

Cover Page. Factory Radio Other Documents Available For This Vehicle:

BMD16N-SD. version 1.2

Counters and Decoders

Wireless Burglar Alarm

PUSH BUTTON START INSTALLATION MANUAL

Stop Alert Flasher with G-Force sensor

Audi A4 (B5) HID conversion installation instructions

SUPER SNOOPER BIG EAR

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Electronic Circuits Spring 2007

Parallel Plate Capacitor

EGR 278 Digital Logic Lab File: N278L3A Lab # 3 Open-Collector and Driver Gates

Physics 221 Experiment 5: Magnetic Fields

Xenon HID Lighting System

Resistors in Series and Parallel Circuits

Parts of a Computer. Preparation. Objectives. Standards. Materials Micron Technology Foundation, Inc. All Rights Reserved

I Click on a link tab to jump to that page

How to connect to a Class II router using a mobile-phone data cable specifically for Solwise & Safecom routers

Switch board datasheet EB

START 0:30 BEFORE YOU. Bi-Xenon Harness Installation Instructions

Fan, Cypress / GreenField Installation Instructions (sku )

RS232/DB9 An RS232 to TTL Level Converter

The RIDZ 8x2 Audio Switcher

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

Electronics I - Laboratory 1 Diode I/V Characteristics

Two's Complement Adder/Subtractor Lab L03

POWERPOLE CONNECTOR GENERAL INSTALLATION TIPS

1969 DODGE CORONET Two panel Sequential LED Taillight kit installation guide

School of Engineering Department of Electrical and Computer Engineering

RGB for ZX Spectrum 128, +2, +2A, +3

PURDUE UNIVERSITY NORTH CENTRAL

Table of Contents. What to Expect with. Preparation. Tools Needed. Wiring. Hanging the Fan. Blades. Motor Housing.

SYSTEM 4C. C R H Electronics Design

Tutorials Drawing a 555 timer circuit

Lab 1 Diode Characteristics

Assembly and User Guide

ELEC EXPERIMENT 1 Basic Digital Logic Circuits

Control Box Wiring For PRSstandard Tool

Troubleshooting and Diagnostics

OPERATIONAL AMPLIFIERS

Solar Home System. User Manual. AEH-SHS01-10W2L Solar Home System 2 Lamps

Assembly Instructions: Shortwave Radio Kit

DEPARTMENT OF INFORMATION TECHNLOGY

"Sophisticated Model Railroad Electronics"

6 Series Parallel Circuits

The $25 Son of a cheap timer This is not suitable for a beginner. You must have soldering skills in order to build this kit.

Kurzweil KORE 64. ROM Expansion Board for the PC3 and PC3K

Using and Wiring Light Emitting Diodes (LEDs) for Model Railroads

Small form factor bay converter and hard drive installation

A Digital Timer Implementation using 7 Segment Displays

Glolab Talking Phone Dial Monitor

TROUBLESHOOTING GUIDE

The components. E3: Digital electronics. Goals:

Digi-Motor Installation Guide

Chapter 2 Logic Gates and Introduction to Computer Architecture

Air Hockey Training Camp Care and repair of your Air Hockey Playfield

Resistance, Ohm s Law, and the Temperature of a Light Bulb Filament

Joule Thief 3.0 Kit. June 2012, Rev Joule Thief 3.0

Electric Field Mapping Lab 3. Precautions

RECOMMENDED TOOLS PERSONAL & VEHICLE PROTECTION SAFETY GLASSES

Department of Electrical and Computer Engineering LED DISPLAY PROJECT

2 Mega-Pixel PoE Plus Speed Dome Internet Camera ICA-HM620. Quick Installation Guide

Photoillustration: Harold A. Perry; photos: Jupiter Images

MTH SD70ACe DCC Ready Soundtraxx AT-1000 EMD 710 Sound Decoder Install Revised June 1, 2011

Transcription:

COS 6 The Computational Universe Laboratory 6: Digital Logic I In this lab you ll construct simple combinational circuits with a breadboard and silicon chips. You ll use these circuits to experiment with digital logic. If you get stuck at any point, feel free to discuss the problem with another student or a TA. However, you are not allowed to copy another student s answers. Hand in your lab report at the beginning of lecture on Tuesday, April. Include responses to questions printed in bold. (Number them by Part and Step.) When you assemble the circuit for Majority-of-, you need to show it to your TA. Otherwise you will not get credit for the lab. Also, at the end of the lab you must remove any wires or components that you added to the breadboard and place them back in the plastic box you received. Return this plastic box to the TA before leaving the lab. Breadboards are used to build temporary circuits during prototyping. Their name derives from little holes into which you insert electronic components and connecting wires. You can quickly assemble and disassemble circuits. No soldering required! Here is a picture. + a b c d e f g h i j +

Some of these holes are wired together on the inside, as shown in the diagram on the left. For example, if you insert two wires into the holes labeled a and e in the same row, they will be electrically connected. The breadboard has plugs at the top to accept power. Do not connect the power supply until you reach the appropriate time in the experiment. Also, your breadboard will come with some wires inserted into it already; please do not remove them at any time. Our silicon chips use a voltage of 5 volts to denote the binary value and a voltage of zero volts to denote 0. These two voltages are also called power and ground respectively. Notice that the breadboard has two columns on each side marked with the red and blue stripes (and the symbols + and ). All holes in the + columns are connected to the power (red/+) terminal on top and all holes in the columns are connected to the ground (blue) terminal of your power supply. You have been given a plastic box containing all supplies for today. The lab TA will walk you through the parts that you will need. set of power supply connectors breadboard (with pre-wired switches) set of breadboard jumper wires, multiple colors resistor 7LS0 chip (6 Not gates) 7LS08 chip ( And gates) 7LS chip ( Or gates) chip extractor tool Connect your breadboard to the power supply using the red and black power supply leads. Connect the red terminal of the power supply to the red post on the breadboard (and the black terminal to the black post). Each power supply can feed multiple breadboards since the jacks can stack on top of each other. Switch the power supply on, and verify that its voltage reading is 5 volts. If not, contact the TA. Caution: For safety, before you insert or remove any components from the breadboard, always disconnect the power by unplug the red power supply connector from the breadboard s connector post. Part : Understanding switches, s, and the breadboard In this part you ll implement a very simple circuit involving a single switch and a light bulb (): the switch is used to turn the on and off. COS 6 Lab 6

Switch output Switch output Switch output Switch output Switch position: Left =, Right = 0 Your breadboard is divided into two halves, each like the pictures on page. On the left half, we ve wired some switches for you to use in all the experiments. There are four white switches in one red block. For each switch, flipping the switch to the right connects the output to ground, resulting in a binary 0 value; and flipping the switch to the left connects the output to power, resulting in a binary. You can feed the output from one of the switches as an input to another component by using a jumper wire to connect to one of the switch s output holes, shown below. Your kit has jumper wires of different lengths. You should always route your wires cleanly (laying them flat on the breadboard) as this will help avoid wiring errors. As your first exercise with the breadboard, you ll construct the following simple circuit involving a switch,, and resistor. Jumper wire. Disconnect the power by unplugging the red power supply wire from the breadboard.. Insert the into the right half of the breadboard. Make sure the longer lead is on the left, as shown above! The will not function if you connect it in reverse. Use a red if possible, as it tends to be the brightest.. Use a short jumper wire to connect one of Switch s output holes to a hole in the row where you inserted the s longer leg.. Connect a resistor between the row where you inserted the s shorter leg and one of the ground holes in the breadboard s rightmost column. (Unlike the, the resistor can be connected in either direction.) The voltage from COS 6 Lab 6

the power supply will damage the if you connect it directly to the switch. The resistor reduces the voltage and protects the. 5. Reconnect the power supply to the breadboard. Toggle Switch, and verify that the is on when the switch is to the left and off when the switch is to the right. 6. Rewire your circuit to use Switch instead of switch, and verify that it works. Repeat for Switch and Switch. If any of the switches do not function correctly, ask your TA for assistance. Part : Understanding Logic Gates and Truth Tables Now we understand the gates contained inside our silicon chips, and build a circuit with a single gate. Each chip used today packages several identical gates: 7LS0 chip 7LS08 chip 7LS chip Power Power Power AND AND Ground Ground AND AND Ground 6 gates AND gates gates Notice the small imprinted dot at the top of each chip you ll use this to orient the chip correctly on the breadboard. The upper-right pin on each chip should be connected to power (wire this to the + column on the breadboard), and the lower-left pin should be connected to ground (wire this to the column). The diagram above shows how the remaining pins are assigned to the inputs and outputs of the gates.. Disconnect the power by unplugging the red power supply wire from the breadboard, and remove all the components (except the switch) which you inserted in the previous experiment.. Insert the, resistor, and 7LS08 (AND gate) chip into the right half of the breadboard, as shown in the picture below. Make sure the notch in the COS 6 Lab 6

chip is on the top, and make sure the longer lead of the is on the left. The chip may be damaged if you insert it upside down or wire it incorrectly. Jumper wires 7LS08 chip a. Connect the outputs for switches and to the inputs of the AND gate. b. Connect the output from the AND gate to the. c. Connect the chip s power and ground inputs to the + and columns of the breadboard, respectively.. Reconnect the power supply to the breadboard.. Complete the following truth table. Does it match the correct behavior for an AND gate? Switch Switch Right (0) Right (0) Right (0) Left () Left () Right (0) Left () Left () 5. Disconnect the power from the breadboard again. 6. Carefully remove the 7LS08 chip using the chip extractor tool. (Ask your TA if you need help.) COS 6 Lab 6 5

7. Insert the 7LS chip ( gates) in the same breadboard location. Again, make sure the notch on the chip is on the top. 8. Reconnect the power. 9. Complete another truth table for the modified configuration. Does your new circuit match the correct behavior for an gate? 0. Repeat steps 5 9 with the 7LS0 chip ( gates). This time, you ll need to rewire the breadboard, since a gate has only one input instead of two like AND and gates. Connect a single switch to the input of the gate, and connect the gate s output to the.. Test your gate circuit until it behaves correctly. Draw a picture of the working design in your notes. Part : Building Combinational Circuits As you saw in the lecture, you can use AND,, and gates to build a circuit to compute any Boolean function. One simple example is the majority function. Given n inputs, the majority function is true if more than half the inputs are true; otherwise it is false. The diagram below shows one way to use AND and gates to build the majority function for inputs. Complete the truth table on the right by examining the circuit diagram. Make sure your results match the majority function. Input A Input B Input C Input A Input B Input C Result 0 0 0 AND AND AND 0 0 0 0 0 0 0 Result 0 0 COS 6 Lab 6 6

Now you ll construct the majority-of- circuit on the breadboard.. Disconnect the power by unplugging the red power supply wire from the breadboard, and remove all the components you inserted in the previous experiment.. Insert the, resistor, 7LS08 (AND gate) chip, and 7LS ( gate) chip into the right half of the breadboard. Make sure the chip notches are to the top. Wire the power and ground connections for the chips, as shown: 7LS08 chip (AND gates) 7LS chip ( gates). Make connections from Switches,, and to the inputs of three AND gates: COS 6 Lab 6 7

7LS08 chip (AND gates) 7LS chip ( gates). Connect the outputs from two of the AND gates to the inputs of one of the gates. Wire the output from that gate, and the output of the third AND gate, to the input of the second gate. Connect the second gate s output to the : 7LS08 chip (AND gates) 7LS chip ( gates) 5. Reconnect the power supply to the breadboard. COS 6 Lab 6 8

6. Test your circuit to make sure it matches the truth table for the majority function. If it doesn t, verify that all the connections are correct. When your circuit is working properly, show it to your lab TA so that you can get credit for finishing the lab. Further Questions to answer in your report. Write the truth table for the majority-of- function and represent it with a Boolean expression. Simplify the Boolean expression as well as you can and report the simplest expression you came up with.. Determine the Boolean function that is represented by the following breadboard circuit. Denote each of the inputs and the output of the circuit by a variable, and write the Boolean expression of the function being computed. 7LS chip ( gates) 7LS08 chip (AND gates). Using the chips from this lab, approximately how many gates can fit on a single breadboard? (Ignore the space used for wiring.) Intel s Pentium processor contains approximately 0 million gates. How many breadboards would it take to contain this many gates? Estimate the number of football fields this many breadboards would cover. (State any assumptions you make.) COS 6 Lab 6 9

. You verified the correctness of the majority-of- circuit by checking that its behavior matches the truth table. This involved checking = 8 combinations of values by hand. How long would this technique take if you were checking a circuit with 00 inputs? (State any assumptions you make.) How long would it take you if you were as fast as the Pentium processor and could check three billion combinations each second? COS 6 Lab 6 0