NAND Gate as a Universal Gate

NAND Gate: The Universal Logic Gate

A NAND gate is “universal” because any fundamental logic gate can be constructed using only combinations of NAND gates.

1. NOT Gate

Created by connecting both inputs of a single NAND gate together.

 

Output = A ⋅ A = A

2. AND Gate

A NAND gate followed by a NAND-based NOT gate (Inverter).

 

Output = A ⋅ B = A ⋅ B

3. OR Gate

Invert inputs A and B using NAND gates, then feed them into a third NAND gate.

 

Output = AB = A + B

4. NOR Gate

Constructed by adding a NAND-based NOT gate to the output of an OR gate.

 

Output = A + B

5. XOR Gate (4 NAND Gates)

Uses four NAND gates to produce a HIGH output only when inputs differ.

 

Output = A ⊕ B = AB + AB

6. XNOR Gate (5 NAND Gates)

The inverse of XOR; constructed by adding a NOT gate to the XOR output.

 

 

Output = A ⊕ B = AB + AB
* Note: In Boolean algebra, the bar above a variable represents the NOT operation.

You May Also Like:

Sensor: Potentiometer (Variable Resistance)

Sensor: Potentiometer (Variable Resistance)

Potentiometer (Variable Resistor) ની સમજૂતી એનાલોગ કંટ્રોલ અને Arduino ઇન્ટરફેસિંગ   પોટેન્શિયોમીટર (Potentiometer) શું છે? પોટેન્શિયોમીટર (જેને ટૂંકમાં 'Pot' પણ કહેવામાં આવે છે) એ ત્રણ ટર્મિનલ ધરાવતો Variable Resistor (બદલાતો અવરોધ) છે. તેની ઉપર એક નોબ (Knob)...

Sensor: LDR (Light Dependent Resistor)

Sensor: LDR (Light Dependent Resistor)

LDR (Light Dependent Resistor) ની સમજૂતી પ્રકાશ સેન્સર અને Arduino ઇન્ટરફેસિંગ કાર્યકારી સિદ્ધાંત (Principle) LDR નો અવરોધ તેના પર પડતા પ્રકાશના પ્રમાણમાં બદલાય છે. અંધારામાં તેનો અવરોધ વધારે (High) હોય છે અને પ્રકાશમાં તેનો અવરોધ ઓછો (Low) થાય છે.આ ફેરફારને કારણે...

Arduino Program: Conditional Logic (IF-ELSE)

Arduino Program: Conditional Logic (IF-ELSE)

Analog Sensor Threshold Control એનાલોગ સેન્સર (A0) દ્વારા LED (Pin 13) ને કંટ્રોલ કરવાનો પ્રોગ્રામ પ્રોગ્રામ કેવી રીતે કામ કરે છે? આ પ્રોગ્રામમાં Arduino A0 પિન પર જોડાયેલા સેન્સર (જેમ કે LDR અથવા પોટેન્શિયોમીટર) માંથી ડેટા વાંચે છે.એનાલોગ વેલ્યુ 0 થી 1023 ની વચ્ચે...

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Pin It on Pinterest