๐ AND, OR, NOT โ Fundamental Logic Gates
Logic gates are the building blocks of digital electronics.
They process binary inputs (0 or 1) to produce a single binary output based on a specific logical function.
The fundamental logic gates are AND, OR and NOT
1๏ธโฃ AND Gate
An AND gate outputs 1 only if all its inputs are 1. Otherwise, it outputs 0.
๐ Truth Table
| Input A | Input B | Output (A โข B) |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
๐ Symbol
A ----| & |
---- OUT
B ----| |
๐ Notes
- Logical operation: Multiplication in Boolean algebra.
- Only true when all inputs are true.
- Extendable to more than 2 inputs.
2๏ธโฃ OR Gate
An OR gate outputs 1 if at least one input is 1.
๐ Truth Table
| Input A | Input B | Output (A + B) |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
๐ Symbol
A ----)โฅ1 )
---- OUT
B ----) )
๐ Notes
- Logical operation: Addition in Boolean algebra.
- True if any input is true.
- Used to combine conditions.
3๏ธโฃ NOT Gate
๐งพ Definition
A NOT gate outputs the opposite of its input (inverts it).
๐ Truth Table
| Input (A) | Output (ยฌA) |
|---|---|
| 0 | 1 |
| 1 | 0 |
๐ Symbol
A ----|>o---- OUT
๐ Notes
- Logical operation: Negation in Boolean algebra.
- Often called an inverter.
- Only 1 input.
๐ง Key Takeaways
- AND, OR, NOT are the fundamental gates; all other logic gates and digital circuits can be built from them.
- Represented mathematically in Boolean algebra.
- Implemented physically using transistors in integrated circuits.
Last updated on