Electronics/Basic gates
From Wikibooks, the open-content textbooks collection
Contents |
[edit] Overview
There are six different basic gates used in performing logic operations:
AND, OR, NOT, NAND, NOR, and XOR gates
[edit] Basic Gates
[edit] AND Gate
When both inputs are high then the output will be high; otherwise the output will be low
| A | B | A.B |
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
[edit] OR Gate
When either input is high then the output will be high; otherwise the output will be low
| A | B | A+B |
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
[edit] NOT Gate
When the input is high, the output will be low; when the input is low, the output will be high
| A | A' |
| 0 | 1 |
| 1 | 0 |
[edit] NAND Gate
When both inputs are high then the output will be low; otherwise the output will be high
| A | B | Q |
| 0 | 0 | 1 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
[edit] NOR Gate
When both inputs are low, the output will be high; otherwise the output will be low
| A | B | Q |
| 0 | 0 | 1 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 0 |
[edit] XOR gate
When one input are high and one is low, the output will be high; otherwise the output will be low
| A | B | Q |
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |