370 likes | 382 Views
Learn about the operation, truth tables, logic expressions, and applications of logic gates and inverters in digital circuits.
E N D
Digital Fundamentals LOGIC GATES
The Inverter • Inverter (NOT circuit) performs the operation called inversion or complementation. • Changes 1 to 0 and 0 to 1. • Standard logic symbols. Distinctive shape symbol with negation indicators. Rectangular outline symbol with polarity indicator.
The Inverter – Operation • When the input is LOW, the output is HIGH. • When the input is HIGH, the output is LOW.
The Inverter – Logic Expression • X = A • If A = 0, X = 1 • If A = 1, X = 0
The Inverter – Application Example • Producing 1’s complement of an 8 – bit binary number.
AND Gate • Gate is used to describe a circuit that performs a basic logic operation. • AND gate is composed of two or more inputs and a single output.
AND Gate - Operation • For a 2 – input AND gate, output X is HIGH if input A and input B is HIGH, X is LOW if either A or B is LOW, or if both A and B are LOW.
AND Gate – Truth Table Total number of possible combinations of binary inputs to gate: N = 2n
AND Gate – Logic Expression X = AB
AND Gate – Application Example Seat Belt Alarm System
OR Gate • Can have two or more inputs
OR Gate - Operation • For a 2 – input OR gate, output X is HIGH if either input A or input B is HIGH, or if both A and B are HIGH; X is LOW if both A and B are LOW.
OR Gate – Application Example Intrusion detection system
NAND Gate • Can be used as a universal gate; NAND gates can be used in combination to perform the AND, OR, and inverter operations. • NAND – contraction of NOT – AND and implies an AND function with a inverted (complement) output.
NAND Gate - Operation • For a 2 – input NAND gate, output X is LOW if inputs A and B are HIGH; X is HIGH if either A or B is LOW, or if both A and B are LOW.
NAND Gate – Equivalent Operation Negative – OR • For a 2 – input NAND gate, performing a negative – OR operation, output X is HIGH if either input A or input B is LOW, or if both A and B are LOW.
NOR Gate • Can be used as universal gate; can be used in combination to perform the AND, OR, and inverter operations. • Term NOR is a contraction of NOT – OR and implies an OR function with an inverted (complement) output.
NOR Gate - Operation • For a 2 – input NOR gate, output X is LOW if either input A or input B is HIGH, or if both A and B are HIGH; X is HIGH if both A and B are LOW.
NOR Gate – Equivalent Operation Negative – AND • For a 2 – input NOR gate, performing a negative – AND operation, output X is HIGH if both input A and B is LOW.
Exclusive - OR • XOR for short
Exclusive – OR - Operation • For an exclusive – OR gate, output X is HIGH if input A is LOW and input B is HIGH, or if input A is HIGH and input B is LOW; X is LOW if A and B are both HIGH or both LOW.
Exclusive - NOR • XNOR for short.
Exclusive – NOR - Operation • For an exclusive – NOR gate, output X is LOW and input B is HIGH, or if A is HIGH and B is LOW; X is LOW if A and B are both HIGH or both LOW.