Experiment 10 Lab Report
Experiment 10 Lab Report
To use both sequential and combinational logic circuits to build a real world application - an
Electronic Dice Roller.
Intro:
For this experiment, we produced a virtual six sided die roller that generated a number from 1 to
6 each time the clock signal went high. To accomplish this, we constructed a 3 bit counter using
JK flip flops, and an oscillator using a NAND gate and a series connection of invertors. The
oscillator was connected to the clock of the flip flops, ensuring that the signal was random.
Procedure:
First, we created a 3 bit counter using JK flip flops. It counted from 6 to 1 and then repeated
itself. It order to produce the counter, we first made a state diagram with the corresponding J and
K values, and found the corresponding inputs function for each J and K. We also wired the
circuit so that it could be reset to 6. After creating the counter in Multi-Sim, we created an
oscillator using a two input NAND gate and a series of invertors. We connected the oscillator
input to the clock switch, and then connected the output of the oscillator to the clock inputs on
the flip flops. We then connected the outputs of the flip flops to the decoder, and connected the
decoder to a seven segment LED display. We then tested the circuit to ensured proper
functionality. After we were sure of the circuits correctness, we constructed it on the
breadboard. We then tested the final circuit to ensure than if functioned properly, and wrote the
lab report.
Equipment Section:
Preparatory Exercises:
4.) Do you or dont you see a dim 8 when the Enable switch of the oscillator is thrown
ON? Explain.
If the reset, or enable, is high and the clock is high, you will see a dim eight because the
circuit will be oscillating rapidly through the numbers 1 to 6. But for our circuit we did
not have a current limiting resistor so our 8 was relatively bright.
Results:
State Table:
State Diagram:
101
110 100
001 011
010
Karnaugh Maps:
2 = 1
2 = 0 =
1 1
0
+ 0
1 = 2 =
2 0
1 =
0
0 = 1
0 = 1
Sample Calculations:
From clock to outputs the signal goes through 2 2-input nand gates, 9 inverters, 1 JK flip flop,
and 1 decoder.
Circuit Diagram:
Circuit Picture:
Conclusions:
Our final circuit functioned exactly as it was supposed to. None of the logic in the circuit was
incorrect, but we discovered that we used the wrong seven segment display. After changing the
display, the circuit worked exactly as needed. Our design benefited from our chip placement.
Instead of placing the chips several rows apart, we placed several of the next to each other. This
reduced the amount of wiring we needed, which may have slightly improved the speed of the
circuit.