Digital Logic Gates (Part 2)

by EngineeringLead in Circuits > Electronics

10298 Views, 52 Favorites, 0 Comments

Digital Logic Gates (Part 2)

Snip20151228_8.png

This is the second part of Digital Logic Gates, the first part is right here: Digital Logic Gates (Part 1).

In this instructable, we are going to cover the fundamentals of the following gates: NAND, NOR, XOR. Also, we are going to observe the operations of the NAND and NOR gates through implementing them on a breadboard.

Parts needed:
Breadboard

9V battery

Battery connector

5V regulator

2 IC Chips: 74LS00, 74LS02.

One LED (any color)

One 330 Ohm resistor

Wires as needed

Please feel free to ask any questions regarding this instructable in the comments section below. Enjoy!

NAND Gate

Snip20151228_14.png
Snip20151228_15.png
Snip20151228_23.png
Snip20151228_28.png
Snip20151228_34.png
Snip20151228_37.png
Snip20151228_32.png

The NAND gate is equivalent to NOT AND; the output is the complement to that of the AND gate. Also, it is important to note that the output of a NAND gate will be Low (0) only if both inputs are High (1). Otherwise, the output will always be High (1). The behavior of a NAND gate is shown in the truth table in Table I.

Q = (A.B)’

The NAND gate is also referred to as a universal gate due to the fact that any boolean function can be implemented using NAND gates. Furthermore, the 74LS00 is an IC chip that comprises of 14 pins; four NAND gates, a supply voltage pin (Vcc), and a ground pin (GND). The supply voltage (Vcc) is connected to pin 14, and ground (GND) is connected to pin 7. Moreover, we are going to test the NAND gate by constructing a simple circuit and observing its output using an LED detector circuit; if the LED is on then the output = 1 and if the LED is off then the output = 0. For the 74LS00 chip used, the supply voltage (Vcc) should be between 4.75V and 5.25V in order for the chip to function properly. Finally, for the breadboard part of this step, the blue wire is Input 1 (A), the white wire is the Input 2 (B), and the LED is the output.

NOR Gate

Snip20151228_17.png
74LS02 (1).png
Snip20151228_22.png
Snip20151229_39.png
Snip20151229_40.png
Snip20151229_41.png
Snip20151229_42.png

The NOR gate is equivalent to NOT OR; the output is the complement to that of the OR gate. Also, it is important to note that the output of a NOR gate will be High (1) only if both inputs are Low (0). Otherwise, the output will always be Low (0). The behavior of a NOR gate is shown in the truth table in Table I.

Q = (A+B)’

The NOR gate is a universal gate as well because any boolean function can be implemented using NOR gates. Furthermore, the 74LS02 is an IC chip that comprises of 14 pins; four NOR gates, a supply voltage pin (Vcc), and a ground pin (GND). The supply voltage (Vcc) is connected to pin 14, and ground (GND) is connected to pin 7. Moreover, we are going to test the NOR gate by constructing a simple circuit and observing its output using an LED detector circuit; if the LED is on then the output = 1 and if the LED is off then the output = 0. Finally, for the breadboard part of this step, the blue wire is Input 1 (A), the white wire is the Input 2 (B), and the LED is the output.

Exclusive OR (XOR) Gate

Snip20151228_24.png
Snip20151228_26.png
Snip20151228_27.png

The Exclusive OR gate (XOR) is used to compare two bits; the output of an XOR gate is High (1) only if the two inputs are different. The behavior of the XOR gate is shown in Table I.

Q = A ⊕ B

Also, the 74LS136 is an IC chip that comprises of 14 pins; four XOR gates, a supply voltage pin (Vcc), and a ground pin (GND). The supply voltage (Vcc) is connected to pin 14, and ground (GND) is connected to pin 7.