Lab
Lab
Lab
Laboratory Report #1
Mayra A. Cintora
1 Introduction
For this lab assignment the basic concepts of logic operations were intro-
duced. First, the logic gates and their truth tables were explained in order
to facilitate the comprehension of more complex logic circuits. Given a logic
diagram, the corresponding equation was obtained and then its truth table
was determined.
The results were verified making use of logic gates IC chips to build digital
circuits. Minterms were presented as a tool to obtain a logic expression that
corresponds to a desired output.
Also, seven segment display were introduced.
1
Three different logic gates were used:
2.2 Results
A B C G1 = A AB G2 = AB G3 = AB + C
0 0 0 1 0 1 1
0 0 1 1 0 1 1
0 1 0 1 1 0 0
0 1 1 1 1 0 1
1 0 0 0 0 1 1
1 0 1 0 0 1 1
1 1 0 0 0 1 1
1 1 1 0 0 1 1
As shown in the last column of Table 1, the logic expression that results
from the first experiment is:
Y = AB + C
According to the results in the truth table, the LED used in the circuit will
be always on (logic 1 / +5 volts) for all the combinations except when inputs
A and C are off (logic 0 / GND) and input B is on.
2
2.3 Experiment 2
For the second experiment we did not build the logic circuit on the bread-
board, but we determined its truth table shown in Table 2.
2.4 Results
A B C G1 = B G2 = B + C G3 = C G4 = Y = A(B + C)C
0 0 0 1 1 1 0
0 0 1 1 1 0 0
0 1 0 0 0 1 0
0 1 1 0 1 0 0
1 0 0 1 1 1 1
1 0 1 1 1 0 0
1 1 0 0 0 1 0
1 1 1 0 1 0 0
Y = A(B + C)C
Making use of the Absorption Theorem we can reduce our previous equation
to:
Y = A.B.C
3
To verify this we computed the truth table of Y = A.B.C.
A B C B C A.B.C
0 0 0 1 1 0
0 0 1 1 0 0
0 1 0 0 1 0
0 1 1 0 0 0
1 0 0 1 1 1
1 0 1 1 0 0
1 1 0 0 1 0
1 1 1 0 0 0
Binary Decimal
0 0 0 0
0 0 1 1
0 1 0 2
0 1 1 3
1 0 0 4
1 0 1 5
1 1 0 6
1 1 1 7
4
logic diagram that produces the desire output. Thus, from the problem
above, we can deduce that when the binary combination of the three inputs
results in the decimal numbers three or six, the output must be a logic 1.
Our desire output then is:
Binary Decimal Y
0 0 0 0 0
0 0 1 1 0
0 1 0 2 0
0 1 1 3 1
1 0 0 4 0
1 0 1 5 0
1 1 0 6 1
1 1 1 7 0
3.2 Results
Now that we have identified our minterms (high outputs from Table 5) we
can obtain the logic expression and the logic diagram.
Y = ABC + ABC
5
And the corresponding logic diagram is shown below:
4.2 Results
6
Using the datasheet we found the corresponding pin for each LED on
the display and got the correct combination to display number five. Pins
10, 2, 3, 8, 5 were wired to a logic low.
5 Post-lab Question
1. Draw a truth table (similar to the last experiment) to represent number
0-7 divisible by 2. Again, don’t include zero. Find the output minterm
logic expression.
Binary Decimal Y
0 0 0 0 0
0 0 1 1 0
0 1 0 2 1
0 1 1 3 0
1 0 0 4 1
1 0 1 5 0
1 1 0 6 1
1 1 1 7 0
7
Simplifying,
Y = C(AB + AB + AB)
Y = (A + B)C
2. Draw a logic diagram to show how you could construct an AND gate
using only NAND gates. Label your inputs and outputs
Where C = D = AB and Y = CD
8
that allows the current flow across the LED, we require a positive
voltage, in our case +5 volts connected to the anode, and a reference
(GND)connected to the cathode. That is why the common pin was
connected to the +5 volts and the cathode to ground or logic low.
Connecting the LED in the opposite would not allow the current flow,
thus the LED would not light up.
6 Pre-lab Question
1. What is a binary subtractor?
It is an arithmetic circuit which output corresponds to the subtraction
of two logic inputs, normally binary numbers.
7 Conclusion
In this practice we learned the basic operation of logic gates to understand
how they can be used later to develop more complex digital systems. In the
experiments we could observe that the output of our system can only be
represented in two ways, high or low. Therefore we must assume that these
systems are used to generate, process and transmit only digital signals. The
outputs of the system correspond only to the state of the inputs at a specific
time.
Boolean algebra is a very useful tool to reduce complex logic functions to
simpler expressions that allow us to reduce resources.