5 Digital Logics
5 Digital Logics
INTRODUCTION TO MECHATRONICS
NOT
NAND
gat gate
e
XOR
NOR
gat
gate e
AND GATE
Suppose we have a gate giving a high output only when both input A and input B are
high; for all other conditions it gives a low output. This is an AND logic gate. We can
visualize the AND gate as an electric circuit involving two switches in series as showed
in the figure below.
The Boolean equation for the AND gate is written as;
OR GATE
An OR gate with inputs A and B gives an output of a 1 when A or B is 1. We can
visualize such a gate as an electric circuit involving two switches in parallel (see the
figure). When switch A or B is closed, then there is a current. OR gates can also have
more than two inputs.
Commutative Laws
CONT.
Associative Laws
Distributive Laws