Logic Gates

 Logic Gates

Logic gate is an electronic circuit having one or more inputs and only one output. These are the basic building blocks of a digital system. The input is related to the output based on a certain logic. The Basic logic gates are given below - 

1. AND gate - For this logic gate output is "1" only when both input is "1", else "0".


Output  = A.B


2. OR gate - For this logic gate output is "1", when any one of the input is "1", else "0".


Output  = A+B



3. NOT gate - For this logic gate output is "1" when input is "0" and vice-versa.


Output = 



Derived logic gates are :- 
1. NAND gate - Logic is working as NOT(AND).

Output = A.B


2. NOR gate - Logic is working as NOT(OR).

Output = (A+B)


3. XOR gate - Output is "1" for different inputs and "0" for similar inputs.


Output = (A. + A̅.B)


4. XNOR gate - Logic is working as NOT(XOR).


Output = (A.B + .B̅)


Comments

Popular posts from this blog

Setting up a USB thermal printer with a Raspberry Pi 3B+

Autostart an app on reboot - Raspberry Pi

Basic Input/Output C Program