diff --git a/notes/digital-electronics-and-logic-circuits/images/image-1.png b/notes/digital-electronics-and-logic-circuits/images/image-1.png new file mode 100644 index 0000000..9c9b5d0 Binary files /dev/null and b/notes/digital-electronics-and-logic-circuits/images/image-1.png differ diff --git a/notes/digital-electronics-and-logic-circuits/images/image-10.png b/notes/digital-electronics-and-logic-circuits/images/image-10.png new file mode 100644 index 0000000..6948066 Binary files /dev/null and b/notes/digital-electronics-and-logic-circuits/images/image-10.png differ diff --git a/notes/digital-electronics-and-logic-circuits/images/image-11.png b/notes/digital-electronics-and-logic-circuits/images/image-11.png new file mode 100644 index 0000000..dfe134f Binary files /dev/null and b/notes/digital-electronics-and-logic-circuits/images/image-11.png differ diff --git a/notes/digital-electronics-and-logic-circuits/images/image-12.png b/notes/digital-electronics-and-logic-circuits/images/image-12.png new file mode 100644 index 0000000..b74071f Binary files /dev/null and b/notes/digital-electronics-and-logic-circuits/images/image-12.png differ diff --git a/notes/digital-electronics-and-logic-circuits/images/image-13.png b/notes/digital-electronics-and-logic-circuits/images/image-13.png new file mode 100644 index 0000000..679dd07 Binary files /dev/null and b/notes/digital-electronics-and-logic-circuits/images/image-13.png differ diff --git a/notes/digital-electronics-and-logic-circuits/images/image-2.png b/notes/digital-electronics-and-logic-circuits/images/image-2.png new file mode 100644 index 0000000..d6d71c5 Binary files /dev/null and b/notes/digital-electronics-and-logic-circuits/images/image-2.png differ diff --git a/notes/digital-electronics-and-logic-circuits/images/image-3.png b/notes/digital-electronics-and-logic-circuits/images/image-3.png new file mode 100644 index 0000000..7759987 Binary files /dev/null and b/notes/digital-electronics-and-logic-circuits/images/image-3.png differ diff --git a/notes/digital-electronics-and-logic-circuits/images/image-4.png b/notes/digital-electronics-and-logic-circuits/images/image-4.png new file mode 100644 index 0000000..09b3a83 Binary files /dev/null and b/notes/digital-electronics-and-logic-circuits/images/image-4.png differ diff --git a/notes/digital-electronics-and-logic-circuits/images/image-5.png b/notes/digital-electronics-and-logic-circuits/images/image-5.png new file mode 100644 index 0000000..94136c8 Binary files /dev/null and b/notes/digital-electronics-and-logic-circuits/images/image-5.png differ diff --git a/notes/digital-electronics-and-logic-circuits/images/image-6.png b/notes/digital-electronics-and-logic-circuits/images/image-6.png new file mode 100644 index 0000000..c25b967 Binary files /dev/null and b/notes/digital-electronics-and-logic-circuits/images/image-6.png differ diff --git a/notes/digital-electronics-and-logic-circuits/images/image-7.png b/notes/digital-electronics-and-logic-circuits/images/image-7.png new file mode 100644 index 0000000..b7a4abb Binary files /dev/null and b/notes/digital-electronics-and-logic-circuits/images/image-7.png differ diff --git a/notes/digital-electronics-and-logic-circuits/images/image-8.png b/notes/digital-electronics-and-logic-circuits/images/image-8.png new file mode 100644 index 0000000..4644ea8 Binary files /dev/null and b/notes/digital-electronics-and-logic-circuits/images/image-8.png differ diff --git a/notes/digital-electronics-and-logic-circuits/images/image-9.png b/notes/digital-electronics-and-logic-circuits/images/image-9.png new file mode 100644 index 0000000..81e5086 Binary files /dev/null and b/notes/digital-electronics-and-logic-circuits/images/image-9.png differ diff --git a/notes/digital-electronics-and-logic-circuits/images/image.png b/notes/digital-electronics-and-logic-circuits/images/image.png new file mode 100644 index 0000000..e43abea Binary files /dev/null and b/notes/digital-electronics-and-logic-circuits/images/image.png differ diff --git a/notes/digital-electronics-and-logic-circuits/logic-gates.md b/notes/digital-electronics-and-logic-circuits/logic-gates.md new file mode 100644 index 0000000..563e577 --- /dev/null +++ b/notes/digital-electronics-and-logic-circuits/logic-gates.md @@ -0,0 +1,157 @@ +# Logic Gates + +## Introduction + +Logic gates are the fundamental building blocks in digital electronics. + +Logic gates perform logical operation based on the inputs provided to it and gives a logical output that can be either high(1) or low(0). + +Logic gates are used in our day-to-day lives,such as in the architecture of our telephones,laptops,tablets and memory devices. + +# Types of Logic Gates + There are basically seven main types of logic gates. + +## 1. AND GATE + + +### Definition +The output state of the AND gate will be high(1) if both the input is high(1). + +### Boolean Expression + +Y = A . B +The value of y will be True when both the inputs will be True. + +### Truth Table + +![alt text](images/image-7.png) + +### Diagram + +![alt text](images/image.png) + +### Real Life Example +An AND gate works like a circuit where two switches must be ON to light a bulb. + +## 2. OR GATE + +### Definition +The output state of OR gate will be high(1) if any of the input state is high(1). + +### Boolean Expression + +Y = A + B +The value of y will be True when one of the inputs will be True. + +### Truth Table + +![alt text](images/image-8.png) + +### Diagram +![alt text](images/image-1.png) + + +## 3. NOT GATE + +### Definition +When the input signal is low(0) the output signal is high(1) and vice-versa. + +### Boolean Expression + +Y = A' +The value of y will be HIGH when A will be low. + +### Truth Table + +![alt text](images/image-9.png) + + +### Diagram + +![alt text](images/image-2.png) + + + +## 4. NOR GATE +It is the universal logic gate + +### Definition +The output state of the NOR gate will be high(1) when all the input are low(0). + +### Boolean Expression + +Y = (A + B)' +The value of y will be True when all the inputs are set to 0. + +### Truth Table + +![alt text](images/image-10.png) + +### Diagram + +![alt text](images/image-3.png) + + +## 5. NAND GATE + + +### Definition +The output state of the NAND gate will be high(1) when either of the input is high(1) or both of its inputs are low(0). + +### Boolean Expression + +Y = (A . B)' + + +### Truth Table + +![alt text](images/image-11.png) + +### Diagram + +![alt text](images/image-4.png) + + +## 6. XOR GATE + + +### Definition +The output state of the XOR gate will be high(1) if one of them low(0) then the other one will be high(1). + +### Boolean Expression + +Y = A'B + AB' + + +### Truth Table + +![alt text](images/image-12.png) + +### Diagram + +![alt text](images/image-5.png) + + +## 7. XNOR GATE + + +### Definition +The output state of the XNOR gate will be high(1) when both the inputs are high(1) or low(0). + +### Boolean Expression + +Y = AB + A'B' + + +### Truth Table + +![alt text](images/image-13.png) + +### Diagram + +![alt text](images/image-6.png) + + + +# Conclusion +Logic gates are essential components of digital electronics.Understanding these components help students to learn and explore advance topics like flip=flops , counter, register and processor.