Documente Academic
Documente Profesional
Documente Cultură
Revised 1_25_10
The three primary logic relationships, AND, OR, and NOT (or inversion) can be used to express any logical relationship between any number of variables. These simple logic functions form the basis for all digital electronic devices from a simple microwave oven controller to a desktop PC. We can write logic equations of the form "F = A AND B" that use these three relationships to specify the behavior of any given digital system. Pause a moment and think about this: any digital system, up to and including a highly complex computer system, can be built entirely of devices that do no more than implement these three simple functions. As engineers, we must address two primary concerns: how to express a given requirement or problem statement in terms of these simple logic relationships; and how to build electronic devices (or circuits) that can be used to implement these relationships in real devices. This lab will begin to explore the second of these questions how to arrange switching devices so that these relationships are realized. After completing this module, you should Be familiar with truth tables, understanding the row ordering used in ECE3714. now the truth-table definitions of AND, OR, NOT, NAND, NOR, XOR, and XNOR (or EQV) logic relationships; Understand how switching circuits can be used to implement basic logic functions;
Be able to sketch a logic circuit from a logic equation, and be able to read a logic equation from a circuit. Be able to create a logic circuit from a truth table definition; Be able to construct a basic logic circuit on the breadboard, including the appropriate connection of power, ground, and signal pins.
11 pages
F=AB + AB
Compound logic expressions can be built from these basic functions. For example, an output might be driven to a high voltage if input signals A and B are both at a high voltage, or if input C is a low voltage, or if C is a high voltage at the same time that A is a low voltage. This relationship can be concisely written as F = (AB + C) + AC . A truth table is the primary tool for capturing logical relationships in a concise and universally understood format. All possible combinations of inputs are shown in rows on the left of a truth table. A truth table with N inputs requires 2N rows to list all possible input combinations. A 0 or 1 in the rightmost column indicates whether the logical relationship evaluates to a true for the combination of inputs shown in the adjacent row. For example, a truth table with two inputs, A and B, will require 22, or 4 rows to list all possible combinations: 0 0, 0 1, 1 0, and 1 1. For the ANDing operation, the output is true only when both inputs are true, so the rightmost column would have a 1 only in the last row. For F = A and B, the truth table would have a 1 only in the second row. Problem 1: Complete the truth tables in the lab exercise pages for the basic logic functions shown on the datasheet.
Shown on the right is a representation of a 7400 logic IC that contains 16 transistors organized as four 2-input NAND gates. This small chip is housed in a 14-pin DIP package that provides pins for each of the NAND gates inputs and outputs, as well as a power and ground pin (labeled Vdd and GND). Note the picture shows the four logic gates placed inside a DIP outline, thereby showing both the function and pinout (or pin definition) of the IC. On schematics and on circuit boards, chips are most often shown as square boxes denoted with a "U__" reference designator. Contains material Digilent, Inc. 3
The Solderless Breadboard A breadboard is used for holding logic chips and wires that connect them together in order to realize a desired circuit. There are two types of common connections on the breadboard: 5-pin connections (busses)which run vertically (as shown in the figure to the left ) on the board. There are hundreds of 5-pin connections shown here.
50-pin connections (busses) which run horizontally (as shown in the figure to the left) on the board. They are placed in groups of five. There are two 50-pin busses shown here.
What is meant by common connections is that a row or column of common pins will have the same voltage as each other (or same logic state). This common connection will allow multiple connections to be made at the same pin on a logic chip. When placing a logic chip on the board, place it over the gap between the two sets of 5-pin connection (if it is done properly, it will fit right). To make a connection between two pins on the breadboard, take a wire and insert it in one of the common pinholes to the other desired pin. The figure below shows a 14-pin integrated circuit plugged into the breadboard (note how the integrated circuit straddles the white area between the 5 pin busses). Figure B1.b shows an offboard wire plugged into one of the 35-pin horizontal busses, then a short wire connecting the 35-pin bus to the 5-pin bus corresponding to pin #14. Figure B1.b also shows a short wire connecting pins 3 and 5 of the integrated circuit.
wire
Pin #3 wire
Pin #5
Fig B.1c: 14 pin Integrated Circuit plugged into Breadboard Pin #14 Pin #8
Pin #1
Pin #7
Place a solderless breadboard on the MFJ board and wire the +5 Volts on the MFJ board to the center bus labeled +. You will have to press the button on the +5 volt connector on the MFJ board in order to put the wire into the connector. Place a second wire between the COM (for common ground) on the MFJ board and the center bus on the solderless board labeled -.
To show how the busses on the solderless breadboard work, place one end of a long wire from the + bus on the breadboard and place the other end of the wire in the LED connector labeled LED 7. The LED should light up if the connection is working properly. This shows that the busses on the solderless breadboard run the whole length of the board. Some solderless breadboards have busses that only run halfway. The LEDs are wired so that if a positive voltage is applied to the connector, the LED should light. Disconnect the wire to the LED. Contains material Digilent, Inc. 6
Problem 2. Constructing a basic logic circuit In this lab, you will implement six circuits using six basic logic chips. Each of the circuits requires two inputs, and the same two inputs can drive all circuits at the same time. These two inputs arise from SW1 and SW2 on the breadboard. The output of each circuit will be connected to an LED on the breadboard. The objective of this exercise is straightforward: construct six simple circuits to illustrate the functionality of each of the six chips. For each circuit, the inputs of a single logic gate from each of the six chips will be driven from SW7 and SW6 connections, and the outputs will drive individual LEDs. The six chips are: 74HC00 two-input NAND gate; 74HC02 two-input NOR gate; 74HCC04 inverter; 74HC08 two-input AND gate; 74HC32 two-input OR gate, 74HC86 two-input XOR gate
You will build the circuit shown on the right. Note in this circuit, the wires have been labeled with the input names rather than drawing all wires. This makes a schematic easier to read. All of the inputs labeled A will be connected together, as will the inputs labeled B. Each of the outputs will be connected to separate LEDs. LEDs 7 and 6 are used to show the status of the inputs A and B.
To construct the circuit for this lab, complete the following steps. 1. Locate the DIP chip labeled 7404. Note the labels on the chips are often faint and hard to read. When searching for the chips, ignore any letters before or after the part numbers. Also, you can ignore any letters in the middle of the numbers. See the diagram below to determine what type of device the 7404 chip provides. What type of device does this chip provide?
2. Press the chip into the breadboard so that it straddles the center groove, and use pre-stripped pieces of jumper wire to connect the +5 bus on the solderless breadboard and the pin on the chip labeled VDD. (This will be the supply voltage to the chip). Use a second wire and connect the bus on the solderless breadboard to the GND pin on the chip. Using short wires will make your board much easier to debug if there are problems. Try to use a wire as short as possible. Only one wire is needed for the signal input for the 7404 chip. Use a jumper wire to connect the SW7 signals on the switch on the MFJ board to the input pin. (use pin1 which is the first of six gates on the chip). Use more wires to connect the output of the gate (pin 2) in the 7404 chip to LED7 on the breadboard. You may need to use more than one wire to reach to the LED connector. Test out the circuit to see if it produce the expected results. If the LED is not on when the switch is at 0Vdc and the LED is off when the switch is at 5V dc, ask for help from your TA.
Before adding the rest of the circuits to the solderless breadboard, move the input signal from switch7 to the bus labeled + near the bottom of the solderless breadboard. This bus will be used to be an input signal (input A) for all of the remaining circuits. Add another wire to the input on the 7404 chip and Contains material Digilent, Inc. 8
10
11