simulation using switches
Logic gates are an important part of Digital Electronics. Digital Electronics is the technology that allows the operation of electronic watches, clocks, calculators and computers.
Logic statements can be true or false, lights and switches can be on or off and voltages can be high or low. This means that there are two states. We can let the states be represented by the numbers 1 and 0.
For example, 1 represents true, on or high
0 represents false, off or low
The logic gates are the words we use in statements AND, OR and NOT.
AND

|
If A and B are off then the lamp is off. If A is off and B is on then the lamp is off. If A is on and B is off then the lamp is off. If A and B are on then the lamp is on. |
|
A |
B |
LAMP |
|
0 |
0 |
0 |
|
0 |
1 |
0 |
|
1 |
0 |
0 |
|
1 |
1 |
1 |
OR

|
If A or B are off then the lamp is off. If A is off or B is on then the lamp is on. If A is on or B is off then the lamp is on. If A or B are on then the lamp is on. |
|
A |
B |
LAMP |
|
0 |
0 |
0 |
|
0 |
1 |
1 |
|
1 |
0 |
1 |
|
1 |
1 |
1 |