Laboratory 7
Digital Logic Gates
Objective
The objectives of this laboratory are:
Introduction
Digital circuits are analyzed using logic relationships referred to as Boolean algebra. The three basic operations in Boolean algebra are: AND, OR and NOT. The circuits used to implement these functions are called gates. These devices and their operations are described in the following text, along with the operation of a fourth type of gate, a NAND gate. NAND gates can be used to perform the operations of the other gates (AND, OR, and NOT), as will be shown in the lab.
AND
As shown by the logic rules or truth table for an AND gate (Table 1 ), the output for an AND gate is non-zero when both inputs are not zero. In the truth table, a "1" corresponds to TRUE and a "0" to FALSE. In a digital circuit, a "1" corresponds to a high voltage (+5 V) and "0" to a low voltage (+0V).
|
Table 1 |
||||
|
Input A |
Input B |
A AND B = A. B |
A OR B = A+B |
A NAND B |
|
0 |
0 |
0 |
0 |
1 |
|
0 |
1 |
0 |
1 |
1 |
|
1 |
0 |
0 |
1 |
1 |
|
1 |
1 |
1 |
1 |
0 |
A simple circuit which illustrates the operation of an AND gate is shown in Figure 1. When either or both of the switches are open, the light is not on. When both switches are closed, the light is on.

The symbol for an AND gate and the response of the AND gate to a set of inputs are shown in Figure 2.

OR
As shown by the logic rules or truth table for an OR gate (Table 1), the output for an OR gate is non-zero when either or both inputs are not zero. A simple circuit that illustrates the operation of an OR gate is shown in Figure 3. When both switches are open, the light will not be on. When at least one switch is closed, the light is on. The symbol for an OR gate and the response of the OR gate to a set of inputs are shown in Figure 4.


NOT
The truth table for a NOT gate is shown in Table 2. This gate is also called an inverter.
|
Table 2 |
|
|
Input A |
NOT A |
|
0 |
1 |
|
1 |
0 |
A circuit illustrating the operation of a NOT gate (Figure 5) shows that when the switch is open, the light will be on. When the switch is closed, the light is off.

The symbol for a NOT gate and the response of the NOT gate to an input is shown in Figure 6.

NAND
As shown by the logic rules or truth table for a NAND gate (Table 1), the output for a NAND gate is zero only when both inputs are not zero. The NAND gate is equivalent to an inverted AND gate. The symbol for a NAND gate and the response of the NAND gate to a set of inputs are shown in Figure 7.

Lab Procedure
Figure 8:


