## Shop # Use Diodes and Resistors to Perform Logic

Date: 7/29/2015

Using NI Multisim I created a simply design to show how to use basic components to create an AND & OR gate.

Diode logic gates use diodes to perform OR and AND logic functions as shown in the circuit diagram. Connection of the LED at the output is optional which simply displays the logical state of the output, i.e. the logic state of output is 0 or 1, if LED is off or on, respectively.

Diodes have the property of easily passing an electrical current in one direction, but not the other. Thus, diodes can act as a logical switch. Diode logic gates are very simple and inexpensive, and can be used effectively in limited space.

However, they cannot be used extensively due to the obvious logic level shift when gates are connected
in series. In addition, they cannot perform a NOT function, so their usefulness is quite limited. This type of logic circuit is rarely found in integrated form.

### OR Gate (74ls32)

If one or both inputs are at logic “1” (5 volts), the current will flow through one or both diodes. This current passes through the resistor and causes the appearance of a voltage across its terminals, thereby obtaining logic “1” on the output.

Here only a logic “0” (0 volts) on the output when both inputs are in logic “0”. In this case, the diodes do not conduct, there is no current through the resistor R and there is no voltage across its terminals. As a result the voltage at Vout is the same as ground (0 volts)

### AND Gate (74ls08)

When both inputs are at logic “1″, the two diodes are reverse biased and there is no current flowing to ground. Therefore the output is logic “1” because there is no voltage drop across the resistor R.

If one of the inputs is logic “0”, the current will flow through the corresponding diode and through the resistor. Thus the diode anode (the output) will be logic “0”.

This method works fine when the circuits are simple, but there are problems when you have to make interconnections with such gates.

Reference material: 