Every topic starts at New. Sign in and your practice counts.
The three logic gates AND, OR and NOT are known as fundamental logic gates.
Consider the figure 18.18 (a) in which a lamp is connected in series with a battery using two switches (A and B) as two inputs.
There are following four possible states of these two switches:
It is clear that "the lamp will glow only if both the switches are closed". A logic gate which implements such action is known as AND gate. Symbol of AND gate is shown in figure 18.18 (b).
Boolean expression for AND operation is:
(read as "X equals AAND B").
Where the symbol represents the AND operation. The truth table of AND operation is shown in Table 18.2 AND gate has two or more inputs and only one output. Output of AND gate will be '1' only when all of its inputs are '1', and for all other situations output of AND gate will be '0'.
This figure is being prepared.
(a) Switch depiction
This figure is being prepared.
(b) Circuit symbol
AND gate
| TABLE 18.2 AND GATE | ||
|---|---|---|
| Switch (Input) | Lamp (Output) | |
| A | B | X = A B |
| 0 | 0 | 0 |
| 1 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 1 | 1 |
Consider the figure 18.19 (a) in which a lamp is connected in parallel with a battery using two switches (A and B) as two inputs.
There are following four possible states of these two switches:
Consider the figure 18.20 (a) in which a lamp is connected in parallel to a battery with a switch as inputs. There are two possible states of these two switches which are given below:
This figure is being prepared.
(a) Switch depiction
This figure is being prepared.
(b) Circuit Symbol
FIGURE 18.20 NOT gate shown in figure 18.20 (b).
It is clear that "the lamp will glow if at least one of the switches is closed". Alogic gate which implements such action is known as OR gate. Symbol of OR gate is shown in figure 18.19 (b).
This figure is being prepared.
Boolean expression for operation is: (read as "X equals A OR B").
Where the symbol plus (+) represents the OR operation. The truth table of OR operation is shown in Table 18.3, where A and are inputs and is output (lamp). OR gate has two or more inputs and only one output. Output of OR gate will be ' 0 ' only when all of its inputs are ' 0 ', and for all other situations output of OR gate will be ' 1 '.
| TABLE 18.3 OR GATE | ||
|---|---|---|
| Switch (Input) | Lamp (Output) | |
| A | B | X = A + B |
| 0 | 0 | 0 |
| 1 | 0 | 1 |
| 0 | 1 | 1 |
| 1 | 1 | 1 |
Boolean expression for NOT operation is:
(read as "X equals ANOT")
Where a line or bar over the symbol represents the NOT operation.
| TABLE 18.4 NOT GATE | |
|---|---|
| Switch (Input) | Lamp (Output) |
| A | |
| 0 | 1 |
| 1 | 0 |
The truth table of NOT operation is shown in Table 18.4, where A is input and X is output (lamp). NOT gate has one inputs and one output. NOT operation inverts the state of Boolean variable. Output of NOT gate will be '0' when its inputs are '1', and vice versa.