Escolar Documentos
Profissional Documentos
Cultura Documentos
ENGINEERING
DEPARTMENT OF ELECTRICAL
Table of Contents
Lab 2 Number Systems............................................................................................ 1
LAB 3 Verification of Truth Table, Become Familiar with Different ICs.....................8
Lab 5................................................................................................................. 19
Boolean Laws and DeMorgan's Theorem
........................................................................................................................... 19
Page | 1
DEPARTMENT OF ELECTRICAL
2.1
OBJECTIVES
Convert between binary, BCD, octal, hexadecimal, and base ten number systems.
Construct a circuit that demonstrates conversions between number systems.
2.2
REFERENCE READING
Floyd, Digital Fundamentals, Chapter 2; Section 2-1 to 2-9.
2.3
MATERIALS NEEDED
Four LEDs
7447A BCD/decimal decoder
MAN1 seven-segment display
Four-position DIP switch
Resistors:
2.4
SUMMARY OF THEORY
The number of symbols in a number system is called die base or radix of that system. The decimal
number system uses ten counting symbols the digits 0 through 9 to represent quantities. Thus it is a base
ten system. In this system, we represent quantities larger than 9 by using positional weighting of the
digits. The position, or column, that a digit occupies indicates the weight of that digit in determining the
value of the number. The base ten number system is a weighted system because each column has a value
associated with it.
2.4.1 BINARY NUMBERS
Digital systems use two states to represent quantities and thus are binary in nature. The binary counting
system has a radix 2 and uses only the numbers 0 and 1. (These are often called bits, which is a
contraction of Binary digit). It too is a weighted counting system, with each column value worth twice
the value of the column to the immediate right. Because binary numbers have only two digits, large
numbers expressed in binary require a long string of Os and Is. Other systems, which arc related to
binary in a simple way, are often used to simplify these numbers. These systems include octal,
hexadecimal, and BCD.
2.4.2 OCTAL NUMBERS
The octal number system is a weighted number system using the digits 0 through 7. The column values in
octal are worth 8 times that of the column to the immediate right. You convert from binary to octal by
arranging the binary number in groups of 3 bits, starting at the binary point, and writing the octal symbol
for each binary group. You can reverse the procedure to convert from octal to binary. Simply write an
equivalent 3-bit binary number for each octal character.
2.4.3 HEXADECIMAL SYSTEM
The hexadecimal system is a weighted number system using 16 characters. The column values in
hexadecimal (or simply hex) are worth 16 times that of the column to the immediate right. The characters
are the numbers 0 through 9 and the first six letters of the alphabet, A through F. Letters were chosen
because of their sequence, but remember that they are used to indicate numbers, not letters. You convert
EE xxxL DIGITAL LOGIC DESIGN LAB
Page | 2
DEPARTMENT OF ELECTRICAL
binary numbers to hexadecimal numbers by arranging the binary number into 4-bit groups, starting at the
binary point. Then write the hex symbol for each group of four bits. You convert hex numbers to binary
by reversing the procedure. That is, write an equivalent 4-bit binary number for each hexadecimal
character.
The BCD system uses four binary bits to represent each decimal digit. It is a convenient code because it
allows ready conversion from base ten to a code that a machine can understand; however, it is wasteful of
bits. A 4-bit binary number could represent the numbers 0 to 15, but in BCD it represents only the
quantities 0 through 9. The binary representations of the numbers 10 through 15 are not used in BCD and
are invalid.
A simple circuit can illustrate the various number systems discussed above. The circuit in this experiment
uses light-emitting diodes (LEDs) to show the binary or BCD number and a seven-segment display; to
show the equivalent base ten numbers. A seven segment display is a special arrangement of LEDs that
can form the numbers 0 through 9 and some letters. Figure 2-1 illustrates the arrangement of diodes in a
seven-segment display. The circuit uses an IC called a decoder to convert the binary input to a sevensegment value. Decoder circuits will be studied later in the course.
2.5
1. Connect the circuit shown in Figure 2-2. Test each switch to see that it turns on an LED. This portion
of the circuit represents the input binary number. A lighted LED represents a binary one, and an un
Page | 3
DEPARTMENT OF ELECTRICAL
lighted LED represents a binary zero. The least significant bit (LSB) is on the right and represents the
1s column. The most significant bit (MSB) is on the left.
Column weight of MSB = ___________
+5.0 V
4-position
DIP switch
Switch
MSB
330
LSB
330
330
330
Figure 2-2
2. Now remove power and add the circuit shown in Figure 2-3. The pin numbers for the MANI display
are shown in Figure 2-1, and 7447A pin numbers are shown in Figure 2-4. Note that the 7447 has 16
pins and the MAN1 seven-segment display has only 14 pins. Both are numbered counterclockwise
starting from the top left.
Connect pins 3,4 and 5 on the 7447 A to a 1 k resistor connected to +5 V. Connect pin 14 of the
MANI to +5 V. Be sure to connect each output from the 7447A through a 330 resistor to the
segment display as shown on the circuit drawing.
3. When you have completed wiring the circuit, test it by checking each switch combination shown in
Table 2-1 on the next page. Set the binary number on the switches by closing a switch for a 1 and
opening a switch for a 0. Complete each column for the table by writing the input numbers as BCD,
octal, and hexadecimal. Show the output from the seven-segment display in the right-hand column.
The last six invalid BCD codes will show a unique code in the seven-segment display.
Page | 4
DEPARTMENT OF ELECTRICAL
Page | 5
DEPARTMENT OF ELECTRICAL
Figure 2-4
Table 2-1
Input
Binary
Number
BCD
Number
Output
Octal
Number
Hex
Number
Seven-Segment
Display
0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
1010
1011
1100
1101
1110
1111
2.5.1
REVIEW QUESTIONS
Octal
________
304
________
________
________
________
________
________
Hex
______
__
______
__
E6
Decimal
________
______
__
______
__
57
________
________
________
BCD
_______
_
_______
_
_______
_
_______
_
0100100
1
2. Assume that you set the switches in Figure 2-3 for 1000, but the seven-segment display shows a 0.
What are the possible causes for this malfunction?
Page | 6
DEPARTMENT OF ELECTRICAL
3. Look up the 7447A in the data book. Find the maximum available output current for segments a-g.
Note that a positive sign is for conventional current (plus to minus) flowing INTO the IC. A negative
sign is for conventional current flowing OUT of the IC. Note that IOL is several orders of magnitude
greater than IOH. Thus, current into the device can be much larger than the current from the device.
This situation is typical of TTL logic, although the values for the 7447 A are somewhat larger than
most TTL ICs. Fill in the values for IOL and IOH:
7447A IOL = _________
7447A IOH = _________
2.6
ASSESSMENT SHEET
Name: ___________________________
Reg. No. : ________________________
Date of Lab: _____________________
Table 2-1
Problem
Number
Lab
Performance
Review Question
Review Question
Review Question
Working
Viva
Page | 7
DEPARTMENT OF ELECTRICAL
3.2
OBJECTIVES
To become familiar with the IC 7400 series NAND gate and its Truth Table.
To become familiar with the IC 7402 series NOR gate and its Truth Table.
To become familiar with the IC 7404 series INVERTER gate and its Truth Table.
To become familiar with the IC 7410 series NAND gate and its Truth Table.
To become familiar with the IC 7420 series NAND gate and its Truth Table.
MATERIALS NEEDED
7400 IC
7402 IC
7404 IC
7410 IC
7420 IC
Connecting Wires
3.3
SUMMARY OF THEORY
3.3.1
BOOLEAN EQUATION:
3.3.2
(A. B) / = C
Page | 8
DEPARTMENT OF ELECTRICAL
gate. Supply 5V DC and give inputs according to the truth table, the output observed should
satisfy the truth table.
BOOLEAN EQUATION:
3.3.3
(A + B) / = C
BOOLEAN EQUATION:
3.3.4
A=A/
BOOLEAN EQUATION:
3.3.5
(A. B. C) / = D
Page | 9
DEPARTMENT OF ELECTRICAL
(A. B. C. D) / = E
BOOLEAN EQUATION:
The Truth Tables of these ICs along with symbols are shown as under.
INPUTS
OUTPUT
INPUTS
OUTPUT
INPUT
OUTPUT
P a g e | 10
DEPARTMENT OF ELECTRICAL
INPUTS
A
1
A
OUTPUT
1
INPUTS
1
1
D
1
OUTPUT
0
E
1
1
0
1
EE xxxL DIGITAL LOGIC DESIGN LAB
1
1
1
0
1
diagram of 7410 IC
1
1
0
P a g e | 11
DEPARTMENT OF ELECTRICAL
7420
3.4
ASSESSMENT SHEET
P a g e | 12
DEPARTMENT OF ELECTRICAL
Name: ___________________________
Reg. No. : ________________________
Date of Lab: _____________________
Table 3-1
Problem
Number
Lab
Performance
Working
Viva
P a g e | 13
DEPARTMENT OF ELECTRICAL
4.2
OBJECTIVES
To become familiar with the IC 7400 series NAND gate and its Truth Table.
To become familiar with the IC 7402 series NOR gate and its Truth Table.
To become familiar with the IC 7404 series INVERTER gate and its Truth Table.
Use of above ICs in implementation of Boolean algebra.
MATERIALS NEEDED
7400 IC
7402 IC
7404 IC
Connecting Wires
4.3
SUMMARY OF THEORY
A universal gate is a gate which can implement any Boolean function without need to use any other gate
type. The NAND and NOR gates are universal gates. In practice, this is advantageous since NAND and
NOR gates are economical and easier to fabricate and are the basic gates used in all IC digital logic
families. In fact, an AND gate is typically implemented as a NAND gate followed by an inverter not the
other way around!! Likewise, an OR gate is typically implemented as a NOR gate followed by an inverter
not the other way around!!
BOOLEAN EQUATION:
4.3.2
(A. A)/ = A/
P a g e | 14
DEPARTMENT OF ELECTRICAL
A NAND gate used as AND gate by the connecting NOT gate at the output of the NAND gate as shown
in the Fig-1.
BOOLEAN EQUATION:
C = (A.B) / = A/ + B/
C/ = (A/ + B/) / = A//.B// = A.B
BOOLEAN EQUATION:
BOOLEAN EQUATION:
BOOLEAN EQUATION:
(A+A)/ = A/
P a g e | 15
BOOLEAN EQUATION:
DEPARTMENT OF ELECTRICAL
C = (A+B) / = A/. B/
C/ = (A/. B/) / = A//+B// = A+B
BOOLEAN EQUATION:
BOOLEAN EQUATION:
P a g e | 16
DEPARTMENT OF ELECTRICAL
P a g e | 17
4.4
DEPARTMENT OF ELECTRICAL
ASSESSMENT SHEET
Name: ___________________________
Reg. No. : ________________________
Date of Lab: _____________________
Lab
Performance
Working
Viva
P a g e | 18
DEPARTMENT OF ELECTRICAL
Lab 5
Boolean Laws and DeMorgan's Theorem
5.1
OBJECTIVES
Use CMOS logic to verify experimentally several of the rules for Boolean algebra.
Experimentally determine the truth table for circuit with three input variables, and use DeMorgans theorem to prove algebraically whether they are equivalent.
5.2
REFERENCE READING
Floyd, Digital Fundamentals, Chapter 2; Section 4-1 to 4-5.
5.3
MATERIALS NEEDED
4071 QUAD 2-INPUT OR gate
4069 HEX INVERTER
Four LEDS
4081 QUAD 2-INPUT AND gate
Four position DIP switch
Four 1 K resistors
5.4
SUMMARY OF THEORY
Boolean algebra consists of a set of laws that governs logical relationships. Unlike ordinary algebra
where an unknown can take any value, the elements of Boolean algebra are binary variables and can have
only one of two values: 1 and 0 (also called TRUE or FALSE). Variables are typically letters of the
alphabet.
Symbols used in Boolean algebra include the bar, which is the NOT or complement; the connective +;
which implies logical addition and is read "OR"; and the connective. , which implies logical
multiplication and is read "AND." The dot is frequently eliminated when logical multiplication is shown.
Thus A.B is written AB. The basic rules of Boolean algebra are tabulated in Floyd's text and are repeated
here in Table 5-1 for convenience.
In this experiment you will use CMOS logic to become familiar with this important family. There are
several subfamilies of CMOS which have different specifications. The original CMOS family was the
4000A series. Other families include the 54C/74C family, which is functionally and pin-out
compatible with TTL 54/74 series, and the 54HC/74HC, which is functionally and pin-out-compatible
with TTL 54LS / 74LS logic. The 54C/74C series is faster and can sink 50% more current than the
4000A series. Details of these subfamilies can be found in manufacturers' data books.
The key properties of all CMOS are low power dissipation, noise immunity, high fan-out (to other CMOS
devices), and ability to operate from power supplies from 3 V to 15 V. The legal logic levels depend on
EE xxxL DIGITAL LOGIC DESIGN LAB
P a g e | 19
DEPARTMENT OF ELECTRICAL
the supply voltage. The supply is called either VDD or Vcc, and ground is labeled VSS or GND. Typically,
the legal input voltage levels for 4000A series CMOS are from ground to 30% of Vcc for V IL and from
70% of Vcc to Vcc for VIH.
Table 5-1: Basic rules of Boolean algebra
One disadvantage of CMOS is that it is damaged more easily than TTL. In addition to static handling
precautions listed in Floyd's text, use following operating precautions:
1. Unused inputs must NOT be left open even on gates that are not being used. They should be tied to
Vcc, ground, or an input signal.
2. Power supply voltages must always be on when signal voltages are present at the inputs. Signal
voltage must never exceed the power supply.
3. CMOS devices must never be inserted into or removed from circuits with power on.
5.5
BOOLEAN RULES
1. Prove rule 1 (see Table 5-1) with the circuit of figure 5-1. Use 5.0 V for the power
supply. Set the Generator for a frequency of 10 KHz with a 0 V to 4V level on the
output. On the plot below the figure, sketch the input signal, V in, and the output
signal, Vout . Label both time and voltage on your sketches. To obtain the proper
time relationship between signals, look at both signals at one time on the scope
while triggering on one channel only. Do not use COMP (composite) triggering.
P a g e | 20
DEPARTMENT OF ELECTRICAL
Figure 5-2
2. Change the circuit to that of Figure 5-2. On the plot below the figure, sketch the input and output
signals. Which rule does this circuit illustrate?
Figure 5-2
3. Connect the circuit of Figure 5-3. On the plot below, sketch the input and output signals. Which rule
does this circuit illustrate?
Figure 5-3
4. Design a circuit that illustrates rule 10. Use the signal generator A for a switch (or wire) for B. Show
your circuit design in the provided space. Build the circuit and sketch the A input and the output
signal. Does B affect the output?
Circuit design:
P a g e | 21
DEPARTMENT OF ELECTRICAL
A + C:
2. Rule II states that A + B = A + B. In the space provided, draw a circuit that illustrates these
expressions. Prove that these circuits perform equivalent logic.
A + B:
A + B:
3. Rule 6 illustrates that A+ could be replaced with a wire to Vcc. What does rule 8 illustrate?
P a g e | 22
DEPARTMENT OF ELECTRICAL
5.6
DEMORGAN'S THEOREM
1. Build the circuit shown in Figure 5-4. Test each combination of input variables by closing the
appropriate switches as listed in truth Table 5-2 (0 = closed and 1 = open). Using the LED as a logic
monitor read the output logic and completes the truth table.
+5.0 V
Rs = 1 k
1
4
4071
1
4
4081
X
B
1
4
4069
1
4
4069
1k
Figure 5-4
Table 5-2: Truth table for Figure 5.4
Inputs
A
0
0
0
0
1
1
1
1
B
0
0
1
1
0
0
1
I
Output
C
0
1
0
1
0
1
0
1
P a g e | 23
DEPARTMENT OF ELECTRICAL
2. Construct the circuit shown in Figure 5-5. Again test each combination of inputs and complete truth
table 5-3 as before.
+5.0 V
1 4069
4
Rs = 1 k
1
4
4081
1
4
4071
1 4069
4
X
1k
Figure 5-5
Table 5-3 : Truth table for Figure 5.5
Inputs
A
0
0
0
0
1
1
1
1
B
0
0
1
1
0
0
1
I
Output
C
0
1
0
1
0
1
0
1
P a g e | 24
DEPARTMENT OF ELECTRICAL
P a g e | 25
DEPARTMENT OF ELECTRICAL
ASSESSMENT SHEET
Name: ___________________________
Boolean Laws
Problem
Number
Lab
Performance
Review Question
Review Question
Working
Viva
P a g e | 26
DEPARTMENT OF ELECTRICAL
LAB 6
Design & Implementation of half adder & subtractor using
Universal Gates
6.1
OBJECTIVES
To become familiar with the IC 7400 series XOR gate and its Truth
Table.
Use of above IC in implementation of HALF ADDER.
To become familiar with the IC 7400 series NAND gate and its Truth
Table.
To become familiar with the IC 7404 series INVERTER gate and its Truth
Table.
Use of above ICs in implementation of HALF SUBTRACTOR.
6.2
MATERIALS NEEDED
7404 IC
Connecting Wires
6.3
SUMMARY OF THEORY
The half adder adds two single binary digits A and B. It has two outputs, sum (S) and carry (C). The
carry signal represents an overflow into the next digit of a multi-digit addition. The value of the sum
is 2C + S. The simplest half-adder design, pictured on the right, incorporates an XOR gate for S and
an AND gate for C. With the addition of an OR gate to combine their carry outputs, two half adders
can be combined to make a full adder.
P a g e | 27
DEPARTMENT OF ELECTRICAL
The half adder adds two input bits and generates a carry and sum, which are the two outputs of a
half adder. The input variables of a half adder are called the augend and addend bits. The output
variables are the sum and carry.
The half-subtractor is a combinational circuit which is used to perform subtraction of two bits. It has
two inputs, X (minuend) and Y (subtrahend) and two outputs D (difference) and B (borrow).
An important point worth mentioning is that the half substractor diagram aside implements (b-a) and
not (a-b) as borrow is calculated from equation
BOOLEAN EQUATION:
A .B = C (For Carry)
INPUTS
OUTPUT
S=AB
C = A.B
P a g e | 28
0
DEPARTMENT OF ELECTRICAL
INPUTS
OUTPUT
S=XY
B = X/. Y
P a g e | 29
DEPARTMENT OF ELECTRICAL
P a g e | 30
DEPARTMENT OF ELECTRICAL
ASSESSMENT SHEET
Name: ___________________________
Reg. No. : ________________________
Date of Lab: _____________________
Lab
Performance
Working
Viva
P a g e | 31
DEPARTMENT OF ELECTRICAL
LAB 7
Design & Implementation of full adder using Universal Gates
7.1
7.2
OBJECTIVES
To use the IC 7400 series NAND gate and its Truth Table.
Use of above ICs in implementation of HALF ADDER.
The two Half Adders can be used to Implement Full Adder.
MATERIALS NEEDED
7400 IC
Connecting Wires
7.3
SUMMARY OF THEORY
A full adder adds binary numbers and accounts for values carried in as well as out. A one-bit full adder
adds three one-bit numbers, often written as A, B, and Cin; A and B are the operands, and Cin is a bit
carried in from the previous less significant stage.
BOOLEAN EQUATIONS:
(For Carry)
P a g e | 32
DEPARTMENT OF ELECTRICAL
INPUTS
OUTPUT
Cin
S = A B Cin
Cout = (A B. Cin).
AB
F
igure 7-1 Implementation of Full Adder
P a g e | 33
DEPARTMENT OF ELECTRICAL
ASSESSMENT SHEET
Name: ___________________________
Reg. No. : ________________________
Date of Lab: _____________________
Lab
Performance
Working
Viva
P a g e | 34