Logic Gates - Easy Notes for Beginners
Introduction to Logic Gates
Logic gates are basic building blocks of digital circuits. Each gate performs a specific logical function using
binary input and produces a binary output (0 or 1).
1. NOT Gate
The NOT gate is also called an inverter. It gives the opposite output of the input.
If input is 0, output is 1.
If input is 1, output is 0.
2. AND Gate
AND gate gives output 1 only if all inputs are 1.
Otherwise, it gives 0.
Example:
0 AND 0 = 0
0 AND 1 = 0
1 AND 1 = 1
3. OR Gate
OR gate gives output 1 if at least one input is 1.
If all inputs are 0, then output is 0.
Example:
0 OR 0 = 0
0 OR 1 = 1
1 OR 1 = 1
4. NAND Gate
Logic Gates - Easy Notes for Beginners
NAND = NOT + AND
First perform AND, then reverse the result.
Example:
1 AND 1 = 1 becomes 0
0 AND 1 = 0 becomes 1
5. NOR Gate
NOR = NOT + OR
First perform OR, then reverse the result.
Example:
0 OR 0 = 0 becomes 1
1 OR 1 = 1 becomes 0
6. XOR Gate (Exclusive OR)
XOR gate gives 1 when inputs are different.
It gives 0 when inputs are same.
Example:
0 XOR 0 = 0
0 XOR 1 = 1
1 XOR 1 = 0
7. XNOR Gate (Exclusive NOR)
XNOR gate gives 1 when inputs are same.
It gives 0 when inputs are different.
Example:
0 XNOR 0 = 1
0 XNOR 1 = 0
Logic Gates - Easy Notes for Beginners
1 XNOR 1 = 1
Truth Tables and Symbols
Each gate has a symbol and a truth table that shows all possible input-output combinations. These tables are
very useful to understand the behavior of logic gates.
Conclusion
Logic gates help computers make decisions using binary numbers. They are very important in all electronic
devices.