Sunteți pe pagina 1din 7

Lab 3: Logic Minimization

with Karnaugh Maps


Rebecca Sontheimer
ECEN 248-511
TA: Mehnaz Rahman
September 25, 2014

Objectives:
The purpose of this lab is to design a profit calculator using various integrated
circuits, a breadboard, seven-segment display, LEDs, etc. In order to design a profit
calculator, I first had to learn how to create Karnaugh maps and truth tables.

Design:
Experiment 1:
Karnaugh maps:
Truth Table for Experiment 1 from Pre-Lab
Truth Table for Experiment 1 with the actual values for the Dont Cares
I S C H P2 P1 P0
0 0 0 0 0
0
0
0 0 0 1 0
1
1
0 0 1 0 1
0
0
0 0 1 1 1
1
1
0 1 0 0 0
1
0
0 1 0 1 1
0
1
0 1 1 0 1
1
1
0 1 1 1 1
0
1
1 0 0 0 0
0
1
1 0 0 1 0
1
1
1 0 1 0 0
1
1
1 0 1 1 1
1
1
1 1 0 0 0
1
1
1 1 0 1 1
0
1
1 1 1 0 1
1
1
1 1 1 1 1
1
1
Schematic
Equations derived from the Karnaugh Maps
P2 = CI + HS
P1 = SH + CI
P0 = I + H + CS
Experiment 2:

Seven Segment Display


INPUTS
OUTPUTS
A B C D a b c d e
0 0 0 0 1 1 1 1 1
0 0 0 1 0 1 1 0 0
0 0 1 0 1 1 0 1 1
0 0 1 1 1 1 1 1 0
0 1 0 0 0 1 1 0 0
0 1 0 1 1 0 1 1 0
0 1 1 0 0 0 1 1 1
0 1 1 1 1 1 1 0 0
1 0 0 0 1 1 1 1 1
1 0 0 1 1 1 1 0 0
1 0 1 0 X X X X X
1 0 1 1 X X X X X
1 1 0 0 X X X X X
1 1 0 1 X X X X X
1 1 1 0 X X X X X
1 1 1 1 X X X X X
Segment a:
AB
CD

00

01 11 10

00

01

11

10

f
1
0
0
0
1
1
1
0
1
1
X
X
X
X
X
X

g
0
0
1
1
1
1
1
0
1
1
X
X
X
X
X
X
Segment c:
AB
CD

Segment b:

01 11 10

00

01

11

10

Segment d:

AB
CD

00

00

01 11 10

00

01

11

10

AB
CD

00

01 11 10

00

01

10

11

10

Segment e:

Segment f:

AB
CD

AB

00

01 11 10

00

01

11

10

CD

00

01 11 10

00

01

11

10

Segment g:
AB
CD

00

01 11 10

00

01

11

10

Results:
Experiment 1:
I was able to create the profit calculator by using the tables and schematics shown
above. The calculator has three parts (P2, P1, and P0) that each represent one bit of
binary code. In order to implement the profit calculator on the breadboard, I created each
segment separately and then checked the output with the truth table before moving onto
the next segment. I did this instead of creating one big circuit all at once to avoid trying
to troubleshoot the complicated and messy wiring. I believe that this greatly helped me
visualize the segments wirings and prevent any confusion or mistakes. Once I had all of
the segments working properly, I wired them all together to the correct LEDs, which lit
for 1 and off for 0 depending on the input from the DIP switch. This created a complete
binary number that can then be fed into the seven-segment decoder that displays the
profit for each combination of 0s and 1s (implemented in Experiment 2). These circuits
all performed the way that they were supposed to and I did not encounter any major
errors, other than simple mistakes and reconfiguring.

Segment 1/P2

Segment 2/P1

Experiment 2:

Segment 3/P0

In this section of the lab, I connected a seven-segment decoder to the three


segments P2, P1, and P0 and to a seven-segment display that showed the profit
calculated. The photos shown below are the entire profit calculator. It took many tries to
get the proper configuration. When I first started building this portion, I took out the
LEDs and ran into some problems that I was not sure how to fix. I then decided to keep
the LEDs in the circuit rather than removing them in order to make sure that the segments
were actually working right. This corrected my problem because I was able to know for
sure the problems I was having were coming from the decoder or display. This circuit
was successful in displaying the correct profit calculator output for each input given.
Top View

Side View

Conclusion:
In this lab I was able to successfully create a profit calculator for an animal farm.
This lab taught me a lot about real-world applications of circuit and how to design them. I
was given a set of rules and created schematics and truth tables to aid in my design. I had
to use K-maps for each binary digit (P2, P1, P0) and had to simplify them using Boolean
algebra. I was then able to design a circuit to calculate the profit and implement it on a
breadboard. I learned how to see a design through from start to finish, which is important
skill for labs in the future. Overall, this lab was successful and made me more
comfortable with circuit design.

Questions:
1. This table is shown in the design portion of the lab.
2. The two tables are shown in the design portion. These values for the dont cares
would be impossible in the profit calculator because the input for them involve
more than two 1s. However, the circuit produced values for them because they
werent accounted for in the circuit design and are invalid numbers.
3. Y = (A+B+C)*(A+B+C)*(A+B+C)*(A+B+C)
4. Open-collector outputs are used a lot in summing. It is a way to do level-shifting
and interfacing between different types of logic (or to other circuits.) In this case
it takes 3 inputs and creates seven outputs to be connected to the seven-segment
display to create the decimal number.
5. Diagrams are included throughout the lab.

Feedback:
1. I liked this lab because I was able to create a design and see it from start to finish
and I felt like I knew what I was doing. I did not like that the lab was tedious and
time consuming.
2. I didnt think anything was particularly unclear about the lab manual.
3. No improvements are needed in this particular lab assignment in my opinion.

S-ar putea să vă placă și