Professional Documents
Culture Documents
V V
V = V0 sin t
(5 V) 1 01 01 01 01
(5 V)
0
t
(-5 V) (0 V) t
0
Digital Circuit:
An electrical or electronic circuit which operates only in two states (binary
mode) namely ON and OFF is called a Digital Circuit.
D 0 1 2 3 4 5 6 7 8 9
B 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001
D 10 11 12 13 14 15
OR Operation:
OR operation is represented by ‘+’.
Its boolean expression is Y = A + B
It is read as “Y equals A OR B”.
It means that “if A is true OR B is true, then Y will be true”.
A Truth Table
●
●
ON OFF ON
ON ON ON
E
AND Operation:
AND operation is represented by ‘.’
Its boolean expression is Y = A . B
It is read as “Y equals A AND B”.
It means that “if both A and B are true, then Y will be true”. Truth Table
●
●
OFF OFF OFF
OFF ON OFF
ON OFF OFF
Y
ON ON ON
E
NOT Operation:
NOT operation is represented by ′ or ¯. Its boolean expression is Y = A′ or Ā
It is read as “Y equals NOT A”. It means that “if A is true, then Y will be false”.
Truth Table
A
●●
Switch A Bulb Y
●
OFF ON
E ON OFF
Y
Logic Gates: Eg. for 4 input gate
The digital circuit that can be analysed with A B C D
the help of Boolean Algebra is called logic 0 0 0 0
gate or logic circuit.
0 0 0 1
A logic gate can have two or more inputs 0 0 1 0
but only one output.
0 0 1 1
There are 3 fundamental logic gates namely 0 1 0 0
OR gate, AND gate and NOT gate.
0 1 0 1
Truth Table: 0 1 1 0
The operation of a logic gate or circuit can 0 1 1 1
be represented in a table which contains all 1 0 0 0
possible inputs and their corresponding
1 0 0 1
outputs is called a truth table.
1 0 1 0
If there are n inputs in any logic gate, then
1 0 1 1
there will be n2 possible input
combinations. 1 1 0 0
1 1 0 1
0 and 1 inputs are taken in the order of
ascending binary numbers for easy 1 1 1 0
understanding and analysis. 1 1 1 1
Digital OR Gate:
The positive voltage (+5 V)
● A ●
corresponds to high input
i.e. 1 (state). D1
The negative terminal of the + ● ●
battery is grounded and 5V
corresponds to low input ●B ● Y
i.e. 0 (state). D2 RL
+ ●
Case 1: Both A and B are 5V
given 0 input and the diodes do E
not conduct current. Hence no E E
E
output is across RL. i.e. Y = 0
●
Case 1: A is given 0 input. In the Rb Y
A N
absence of forward bias to the P-type ● ● P
●
N
base and N-type emitter, the transistor B
is in cut-off mode (does not conduct + ●E ●
●
current). Hence, the current from the 5V
collector battery is available across the E E
output unit. Therefore, voltage drop of E Y
5 V is available across Y. i.e. Y= 1 A● ●
Case 2: A is given 1 input by connecting the +ve terminal of the Truth Table
input battery. P-type base being forward biased makes the A Y=A′
transistor in conduction mode. The current supplied by the
0 1
collector battery is drained through the transistor to the earth.
Therefore, no output is available across Y. i.e. Y = 0 1 0
NOR Gate: A● Y = (A + B)′
Symbol: ●
B●
+
Circuit: 5V
RL
E
● A● C ●
●
D1 Rb Y
N
+ ● ● P
●
N
5V B
● B● ●E ●
●
D2 RL
+ E E
5V
E
E Truth Table
E A B A+B Y = (A + B)′
0 0 0 1
A● Y = (A + B)′ 0 1 1 0
A+ B
● ●
B● 1 0 1 0
1 1 1 0
NAND Gate: A● Y = (A . B)′
Symbol: B● ●
+
Circuit: 5V
RL
E
● A ● C ●
●
D1 Rb Y
N
+ ● ● P
●
N
5V B
● B● ●E ●
●
D2 RL
+ E E
5V
E
Truth Table
+
E 5V A B A.B Y = (A . B)′
0 0 0 1
E
0 1 0 1
A● A.B Y = (A . B)′ 1 0 0 1
● ●
●
B● 1 1 1 0
NOR Gate as a Building Block:
OR Gate:
A B (A + B)′ A+B
A●
● ● 0 0 1 0
B● (A + B)′ Y=A+B 0 1 0 1
1 0 0 1
AND Gate: 1 1 0 1
A′
A● ●
A B A′ B′ A′+B′ (A′+B′)′
A′
●
● 0 0 1 1 1 0
●
B′ Y=A.B 0 1 1 0 1 0
B● ●
B′ 1 0 0 1 1 0
1 1 0 0 0 1
NOT Gate:
A A′
A● ● 0 1
Y = A′
1 0
NAND Gate as a Building Block:
OR Gate: A B A′ B′ A′.B′ (A′ . B′)′
A′ 0 0 1 1 1 0
A● ●
A′ 0 1 1 0 0 1
●
● 1 0 0 1 0 1
●
B′ Y=A+B 1 1 0 0 0 1
B● ●
B′
A B (A . B)′ A.B
AND Gate: 0 0 1 0
A● (A . B)′ Y=A.B 0 1 1 0
B● ● ●
1 0 1 0
1 1 0 1
NOT Gate:
A A′
A● ● 0 1
Y = A′
1 0
XOR Gate:
A′ A′B
A● ●
B Y = A′B + AB′
●
●
● =A B
A
AB′
●
B●
B′
Y = A′B + AB′
A B A′ B′ A′B AB′
=A B
0 0 1 1 0 0 0
0 1 1 0 1 0 1
1 0 0 1 0 1 1
1 1 0 0 0 0 0
A●
● Y=A B
B● End of S & SCD - IV