Logic Gates
Logic Gates
(ELE-205)
Logic Gates
Gate: A logic circuit that performs a basic logic operation such as AND or OR.
It is a physical device which performs logic operation one or more logical inputs, and
produce a single logical output.
1. AND Gate
The AND gate is one of the basic gates that can be combined to form any logic
function. An AND gate can have two or more inputs and it performs a logical
multiplication
2. OR Gate
The OR gate is another of the basic gates. An OR gate can have two or
more inputs and it performs a logical addition.
Below attached figure illustrates the operation for a 2-input OR gate for all four
possible input combinations.
3. NOT Gate
The inverter (NOT circuit) performs the operation called inversion or
complementation. The inverter changes one logic level to the opposite level.
Below attached figure illustrates the operation of a 2-input NAND gate for all four
input combinations.
5. NOR Gate
The NOR gate, like the NAND gate, is a useful logic element because it can also be
used as a universal gate. The term NOR is a contraction of NOT-OR and implies an
OR function with an inverted (complemented) output.
Standard logic symbol and Expression
Below attached figure illustrates the operation of a 2-input NOR gate for all four
possible input combinations.
A universal logic gate is a logic gate that can implement any possible Boolean function, without the need for
any other type of logic gate.
1. A system has two power sources. It will work only if both are ON. How can you check if one of
the power sources fails?
(O represents OFF, 1 represents ON).
2. A security system has two sensors: one at the front door and another at the back door. The
alarm should sound if either door is opened. How would you design this system using logic gates?
(O represents closed, 1 represents open)
3. A microcontroller sends a high (1) signal to activate a motor. However, the motor driver requires
a low (O) signal to turn on. How can you ensure correct operation?
4. A reset mechanism should activate when neither of two system components are functioning.
How can you achieve this using a logic gate?
(O represents not functioning, 1 represents functioning)
5. A security system has two sensors. The alarm will trigger if at least one of the sensors is OFF.
(O represents OFF, 1 represents ON)
7. A system has two switches. The output light will turn ON only if both switches are in the same
state (either both ON or both OFF). How can you verify if the system is functioning properly when
both switches are in the same state?
(O represents OFF, 1 represents ON)