Lab 6-DLD
Lab 6-DLD
Section: …………………………………………….
Figure 6.1: Karnaugh Map for the Truth Table shown in Table 6.1
In this experiment, you will use the Karnaugh mapping method to design a BCD invalid code
detector. As you know, BCD is a 4-bit binary code that represents the decimal numbers 0
through 9. The binary numbers 1010 through 1111 are invalid in BCD.You will design a
circuit to assure that only valid BCD codes are present at the input and will signal a warning
if an invalid BCD code is detected.
Procedure:
BCD Invalid Code Detector
a. Complete the truth table shown as Table 6.2 in the report. Assume the output for the ten
valid BCD codes is a 0 and for the six invalid BCD codes is a 1. As usual for
representing numbers, the most significant bit is represented by the letter D and the
least significant bit by the letter A.
b. Complete the Karnaugh map shown as Figure 6.3 in the report. Group the 1’s according to
the rules given in Theory section. Find the expression of the invalid codes by reading the
minimum SOP from the map. Write the Boolean expression in the space provided in the
report.
c. If you have correctly written the expression in step “b”, there are two product terms and you
will see that the letter D appears in both terms. This expression could be implemented
directly as a satisfactory logic circuit. By factoring D from each term, you will arrive at
another expression for invalid codes. Write the new expression in the space provided in the
report.
d. Recall that, for TTL logic, a LOW can light an LED without violating the I OL(16 mA)
specification but a HIGH causes the IOH (400 µA) specification to be exceeded. To avoid
this, the output is inverted and X is used to light the LED with a LOW logic level. The
circuit shown in Figure 6.4 implements the expression from Step 3 but with the output
inverted in order sink rather than source current.
e. Although the circuit shown in Figure 6.4 satisfies the design requirements with only two
gates, it requires two different ICs. In some cases, this might be the best design. However,
using the universal properties of the NAND gate, the OR gate could be replaced with three
NAND gates. This change allows the circuit to be implemented with only one IC 7400.
Change the circuit in Figure 6.4 by replacing the OR gate with three NAND gates.
Draw the new circuit below.
f. Construct the circuit you drew in Step e. Test all combinations of the inputs and complete
truth Table 6.3 in the report. If you have constructed and tested the circuit correctly, the truth
table will be the same as Table 6.2.
Table 6.2: Truth Table for BCD invalid code detector Table 6.3: Truth Table for BCD invalid code detector
constructed in step e
X=
X=
Proteus Task:
Apply the K-map reduction method on the following and implement the circuit on Proteus. Verify the circuit
by truth table.
I. F (A, B, C, D) = ∑(0, 2, 5, 7, 8, 10, 13, 15)
II. F (P, Q, R) = π(0,3,6,7)