(a) What are logic gates? Why are they called so?
(b) Distinguish between positive and negative logic.
(c) With the help of Boolean expression and truth table, explain the working of (i) an OR gate (ii) an AND gate and (iii) a NOT gate.
Confirming your payment
Sign up now and get 250 free tokens.
Digital Electronics - Logic Gates · Question 48 of 56
(a) What are logic gates? Why are they called so?
(b) Distinguish between positive and negative logic.
(c) With the help of Boolean expression and truth table, explain the working of (i) an OR gate (ii) an AND gate and (iii) a NOT gate.
Solution:
Concept: A logic gate makes a "decision": its output (0 or 1) is fixed by its inputs according to a logical rule. The two logic levels are two voltages, and which voltage is called 1 decides whether the logic is positive or negative.
Step 1 — Define logic gates and explain the name (part a). Logic gates are digital circuits with one or more inputs and one output. They are the basic building blocks of digital circuits. They are called logic gates because the output can be predicted from the conditions at the inputs, so there is a logical relationship (such as AND, OR, NOT) between input and output, and the gate "decides" when to let a high output through.
Step 2 — Distinguish positive and negative logic (part b). In positive logic the more positive voltage stands for 1 and the less positive voltage for 0 (for example +5 V = 1, 0 V = 0). In negative logic the more negative voltage stands for 1 and the less negative voltage for 0 (for example 0 V = 1, +5 V = 0; or −5 V = 1, 0 V = 0).
Step 3 — Explain the OR gate (part c, i). The Boolean expression is . In the diode circuit below, each input drives the anode of a diode and the cathodes meet at , with from to earth. Taking ideal diodes, 0 V as 0 and +5 V as 1:

| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
Step 4 — Explain the AND gate (part c, ii). The Boolean expression is . In the diode circuit below, joins to the +5 V supply, and each diode has its anode at and its cathode at an input:

| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
Step 5 — Explain the NOT gate (part c, iii). The Boolean expression is . In the transistor circuit below, the input drives the base of an -- transistor through ; the collector is joined to +5 V through , and is taken from the collector:

| 0 | 1 |
| 1 | 0 |
Therefore, logic gates are digital circuits with a logical input–output relationship; positive logic takes the higher voltage as 1 and negative logic the lower voltage as 1; the OR gate () gives 1 when any input is 1, the AND gate () only when all inputs are 1, and the NOT gate () inverts its input.