Elec 2210 - Experiment 1 Basic Digital Logic Circuits: Objectives
Elec 2210 - Experiment 1 Basic Digital Logic Circuits: Objectives
Elec 2210 - Experiment 1 Basic Digital Logic Circuits: Objectives
Introduction
Almost all computers today use binary digital logic circuits. These circuits have just two
possible output voltages, which can be called by any contrasting terms; the most common are
“HIGH/LOW”, or “TRUE/FALSE”, or “ONE/ZERO.” Such an output is called a “binary digit,”
or bit. The decimal numbers and alphabet characters we are familiar with are converted to
binary bits before they are fed into a computer’s arithmetic logic unit (ALU). Inside the ALU,
the computer executes a program and generates binary results. The binary results are converted
back to decimal numbers, alphabet letters, graphics, or sound so we can understand them. Most
of the fundamental data processing inside computers is done using logic gates. Logic gates
combine individual bits according to certain rules. These rules, taken together, form the basis of
Boolean algebra, which you studied in depth in ELEC 2200 Digital Logic Circuits.
Logic Gates
We will introduce the most common logic gates in this section, including the AND, OR, XOR,
NOT, NOR, and NAND. For each gate, we will show the circuit symbol, the Boolean algebra
logic function, and the truth table. The truth table lists all possible combinations of inputs, and
the resulting output for each. The three most common gates are the AND, OR and NOT
(inverter) gates from which any digital logic circuit can be constructed. These gates are
summarized below in terms of their logic symbol, logic equation, and truth table, where it should
be noted that the NOT gate has only one input while the AND and OR gates can have two or
more inputs.
DeMorgan’s Theorems also relate the operation of the NAND and NOR gates to AND and OR
gates as follows:
( A·B ) = A + B
( A + B) =A ⋅ B
DeMorgan’s Theorems in conjunction with the Involution Theorem, which states that ( A) = A,
can be used to convert any 2-level AND-OR implementation of a sum-of-products (SOP)
expression to an all-NAND gate implementation of the circuit. Similarly, any 2-level
implementation of a product-of-sums (POS) expression can be converted to an all-NOR gate
implementation of the circuit.
Logic Families
A logic family is a complete set of logic gates that are manufactured using a particular type of
electronic circuitry. There are numerous commercially available logic families to suit different
design requirements. The most common logic families are listed in the table below, together with
their relative advantages and disadvantages.
The standard part number for the TTL NAND gate is 7400. However, most manufacturers have
their own designation which includes these numbers, but adds some extra characters. The
following are examples of valid part numbers you might find on a "7400" chip: SN7400N,
MM74C00N, SN74LS00N, SN74H00N, etc. In addition to these, there will often be another
part code stamped on the chip by the manufacturer, and there might be a code stamped
underneath the chip as well. In general, as long as you can find the digits 7400 somewhere on
the chip, you have the right one. Below is a top view of a 7400, which is a quad NAND gate
integrated circuit (IC). The term quad means there are four separate NAND gates on a single
chip (they all share the same power supply, but their inputs and outputs are independent). Note
the pin numbering. The chip has an indentation at one end to distinguish the ends (shown in the
middle of the top of the package in the figure below). For this chip to operate, you must connect
5V to pin 14 (VCC), and ground to pin 7 (GND). Some standard TTL ICs for basic digital logic
functions are illustrated below at the package level for dual-inline packages (DIPSs). The pin
numbers are shown along with the internal connections to the gates. Note that in all three cases
Pin14 = Vcc and Pin7 = Gnd for all three of these devices.
1 14 1 14 1 14
2 13 2 13 2 13
3 12 3 12 3 12
4 11 4 11 4 11
5 10 5 10 5 10
6 9 6 9 6 9
7 8 7 8 7 8
7400 Quad 2-input 7402 Quad 2-input 7406 Hex Inverters
NAND gates NOR gates
TTL Logic
In this experiment, we will be using TTL logic. All ICs in the TTL logic family have the
following specifications:
POWER SUPPLIES: +5 V and Ground (0 V).
LOGIC HIGH: 2.0 to 5 V
LOGIC LOW: 0 to 0.8 V
FAN-OUT (Number of inputs that each output can be connected to): 10
More details can be found in most textbooks on digital electronics, and also on the internet. Here
is a useful website for TTL information: http://en.wikipedia.org/wiki/Transistor-transistor_logic
Lab Exercise
Your lab instructor will show you how to insert DIP IC chips into the breadboard, and also how
to remove (extract) chips from the breadboard. Each time you obtain a chip, inspect it to make
sure it is the right part number (see the next paragraph), and to make sure all the pins are intact.
Very often, people put chips back in the wrong bin. It is also common for pins to break off due
to careless handling. If a pin breaks, inform your instructor and discard the chip.
Before proceeding, have your GTA check off Part 1 on your checklist.
PART 2 - Multiplexer
Connect the four NAND gates of the 7400 IC to construct your multiplexer design from the
Prelab. Connect three toggle switches to the inputs of the multiplexer and connect the output to
the Logic Probe. Record and verify the multiplexer truth table for all possible input
combinations - debug your implementation as needed. Record each truth table and describe the
problems and corrections you made to the circuit as you proceed to a working multiplexer.
PART 3 - Cleanup
Return all components, put away all wires, and turn off all equipment.
Have your GTA inspect your workstation and check off Part 3 on your checklist if acceptable.
______________________________________________________________
If your circuit is not operating correctly at the end of the lab period, you may lose some or all of
your in-lab points. You will not be allowed to work “overtime.”
Submit your report to your GTA’s mailbox prior to the start time of your lab period one week
from today. Attach the required cover sheet and your initialed checklist to your report.