BSC VI Sem Physics Paper-I Unit-5 Digital Electronics
BSC VI Sem Physics Paper-I Unit-5 Digital Electronics
BSC VI Sem Physics Paper-I Unit-5 Digital Electronics
Ex: 10010(2)
1 0 0 1 0
24 23 22 21 20
16 + 2 = 18(10)
For Fractions :
a) Write the binary number after binary point
b) Write ½, ¼, 1/8, 1/16…. (2-1,2-2, 2-3,2-4….) directly under binary bits from left to right after
binary point
c) When zero appears in binary do not count it’s value
d) Add the remaining number to get decimal equivalent
Ex : 0.1101(2)
1 1 0 1
2-1 2-2 2-3 2-4
0.1101(2) = 0.8125(10)
0+0+0.125+0 = 0.125(10)
Therefore ,
1101.0010(2) = 13.125(10)
Hexadecimal to Decimal conversion: By using positional value method i.e. multiply each hexadecimal
digit by its weight & add the resulting products.
Ex : A5 (16) convert to equivalent decimal.
A5 (16) = A * 161 + 5 * 160
= 10 * 16 + 5 * 1
= 160 + 5
= 165(10)
For fractions :
Ex : 0.B2(16) convert to equivalent decimal.
0.B2(16) = B * 16-1 + 2 * 16-2
= 11 /16 + 2/ 256
= 0.0625 * 11 + 2 * 0.00390625
= 0.6875 + 0.0078125
0.B2(16) = 0.6953125(10)
B.Sc. VI SEM PAPER-1 DIGITAL ELECTRONICS
B A
6 E A
LOGIC GATES
Introduction:
In our thinking & logic we differentiate the answer to 2 values only i.e. true or false, right or wrong Our
thinking trying to find the answer to 2 valued questions. Logic next attracted mathematics. D-Morgan sets the relation
ship between logic & mathematics. But, George Boolean invented new kind of algebra. He gives symbolic logic & this
logic is known by name as Boolean Algebra.
Boolean Algebra contains only two valued functions i.e. true or false. It uses binary numbering system, which
uses 0 & 1 only.
Logic-Positive Logic & Negative logic:
In digital system we use two types of logic. (3 V to 5V)
1) Positive Logic High Low
2) Negative Logic
Low High
( 0 V to 1V)
(Positive Logic) (Negative Logic)
When ‘1’ or high state represents more positive and ‘0’ or low state represents more negative then logic is
positive logic. When the voltage range is in the range of 3.5 V to 5 V it will be considered high level or level ‘1’. 0 V to 1
V range will be consider as low level or level ‘0’.
i.e. In Positive logic high level represented by ‘1’ & low level represented by ‘0’.
In negative logic ‘1’ or high state represented more negative & ‘0’ or low state represents
more positive therefore, logic is negative logic.As shown in above logic level diagram, the voltage
range of 3.5 V to 5 V it will be considered low level & represented by ‘0’. The voltage range 0 V to 1
V will be considered as high level & represented by ‘1’.
i.e. In Negative logic high level represented by ‘0’ & low level represented by ‘1’.
Gate: -
A Gate is logic circuit with one or more input signals & has only single output. The output of
the logic gate depending on the combination of input signals. The total number of combinations is
given by 2n. Where n is the number of inputs.
There are two types of gates Basic gates OR, AND, NOT & derived gates NAND, NOR,
XOR and XNOR.
Basic Gates: -
1) OR Gate: -
This gate is known as inclusive OR gate, which has 2 inputs A & B and Y is the single output.
Logic: “If A is true or B is true then Y is true.”
Logic equation of the OR gate is Y = A + B
For ‘n’ number of inputs Y = A + B + C + D +…. + n
The OR operation is also called as Or addition. The rules of OR addition are
Y=A+B 1) 0 + 0 = 0 2) 0 + 1 = 1 3) 1 + 0 = 1 4) 1 + 1 = 1
So, truth table for OR gate is,
Truth Table SYMBOL
INPUTS OUTPUT
A B Y
0 0 0
0 1 1
1 0 1
1 1 1
Definition: “OR gate has high output if any one of the input is high”
B.Sc. VI SEM PAPER-1 DIGITAL ELECTRONICS
2) AND Gate: -
AND gate has two or more input signals and only one output signal. A & B are the input
signals and Y is the output.
Logic: “If A and B are true then Y is true”
Logic equation: For AND gate equation is Y = A * B
For ‘n’ number of inputs Y = A * B * C * D *…. * n
The AND operation is called as AND multiplication. The rules of AND multiplication are:
Y = A *B
1) 0 * 0 = 0 2) 0 * 1 = 0 3) 1 * 0 = 0 4) 1 * 1 = 1
SYMBOL Truth Table
A Y = A *B
INPUTS OUTPUT
B A B Y
0 0 0
0 1 0
1 0 0
1 1 1
Definition: “The gate which has high output if & only if all the inputs are high is called AND Gate.”
3) NOT gate: A NOT gate is a gate with one input & one output. It is also called inverter because the
Output State is always opposite the input state.
Logic: “If A is true then Y is false and if A is false then Y is true”
Logic equation: Y = A
The rules of the inversion are:
1) 0 = 1 2) 1 = 0
SYMBOL
A Y=A A Y= A
Derived Gates :
By using combination of two more basic gates we can construct the gates called derived gates.
NAND, NOR & XOR are derived gates.
1) NAND Gate :
NAND gate means NOT – AND gate. It has two or more input but only one output. NAND
gate can be constructed with AND gate followed by NOT gate. The complement output of AND gate
forms NAND gate.
Definition :- If all the inputs of the gate are high the gate has low output then gate is called
NAND gate.
Logic meaning of NAND gate Truth Table
A A*B Y = A*B
INPUTS OUTPUT
A B Y
B
0 0 1
0 1 1
1 0 1
Logic Symbol 1 1 0
A
B Y = A*B
2) NOR Gate :-
The NOR gate has one or more inputs & has only one output. NOR gate is the combination of
NOT gate and OR gate. I.e. NOR gate can be constructed with OR gate followed by NOT gate. The
B.Sc. VI SEM PAPER-1 DIGITAL ELECTRONICS
complimented result of OR gate forms the NOR gate. The words NOT – OR are contacted to the
word NOR.
Logic equation of NOR gate is Y = A + B
Definition :- When any input of the gate is high output becomes low the gate is NOR gate.
Truth Table
INPUTS OUTPUT
A B Y
0 0 1
0 1 0
1 0 0
1 1 0
A Y=A
A A A A
Y=A+B Y = A +
B
B B B B
A Y=A
B.Sc. VI SEM PAPER-1 DIGITAL ELECTRONICS
A A A A Y=A+B
Y=A+B =A*B
B B B B
Y = AB
B A*B A
B Y = A
B
B
Logic Symbol :
Identities
1) A + 0 = A 2) A * 1 = A 3) A + 1 = 1
4) A * 0 = 0 5) A + A = A 4) A * A = A
7) A + A’ = 1 8) A * A’ = 0 9) (A’)’ = A
Commutative Laws
1) A + B = B + A 2) A* B = B*A
Associative Laws
1) A*(B*C) = (A*B)*C 2) A+(B+C) = (A+B)+C
Distributive Laws
1) A*(A+B) = A*B + A*C 2) A + AB = A 7) A(A+B) = A
3) (A + B)’ = A’ * B’ (De-Morgan’s first theorem)
4) (A * B)’ = A’ + B’(De-Morgan’s second theorem)
5) A + A’B = A + B 6) AB + A*B’ = A
B.Sc. VI SEM PAPER-1 DIGITAL ELECTRONICS
DeMorgan’s Theorems :
De-Morgan’s first theorem:
Statement : De-Morgan’s first theorem states that complement of sum is equal to the product of their
complements.
(A + B) = A * B
Proof :
To prove this theorem, we consider all possible values of A & B
I) Let A = 0, B = 0
Consider, L.H.S Consider R.H.S.
L.H.S = (A + B) R.H.S. = A * B
= (0+0) = 0* 0
= 1 = 1
II) Let A = 0, B = 1
Consider, L.H.S Consider R.H.S.
L.H.S = (A + B) R.H.S. = A * B
=(0+1) = 0 * 1
= 0 = 0
III) Let A = 1, B = 0
Consider, L.H.S Consider R.H.S.
L.H.S = (A + B) R.H.S. = A * B
= (1+0) = 1* 0
= 0 = 0
IV) Let A = 1, B = 1
Consider, L.H.S Consider R.H.S.
L.H.S = (A + B) R.H.S. = A * B
= (1+1) = 1* 1
= 0 = 0
Thus, for all possible values of A & B L.H.S. = R.H.S
i.e. (A + B) = A * B Hence DeMorgan’s first Theorem is proved.
A A A+B
B A+B B
B