Single gates are building blocks.
Connect them together and you can create circuits that make decisions and process information.
The first few examples should feel familiar...
Feed the output of an AND gate into a NOT gate. The result is only 0 when both inputs are 1.
| A | B | AND | Q (NAND) |
|---|---|---|---|
| 0 | 0 | 0 | 1 |
| 0 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 0 |
An OR gate followed by a NOT gate. The output is 1 only when both inputs are 0.
| A | B | OR | Q (NOR) |
|---|---|---|---|
| 0 | 0 | 0 | 1 |
| 0 | 1 | 1 | 0 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 1 | 0 |
A and B feed an AND gate. That result, plus a third input C, feed an OR gate.
The alarm activates if the system is armed AND the door opens, or if the panic button is pressed.