Professional Documents
Culture Documents
Digital Electronics
Digital electronics deals with the generation, processing and storage of digital signals.
Number systems
There are 4 number systems
Decimal number system :- In this system ten digits (symbols) are used to represent a
number. The digits are 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9. So, the base of this system is 10.
The place value of the right digit is one unit i.e. (10 )
The place value of the next left digit is 10 units i.e. (10 )
The place value of the next left digit is 100 units i.e. (10 ) ……. so on.
So, the value of a number in this system is the sum of the products of the digits with
its respective powers of 10.
The left digit or bit is called most significant bit (MSB) and the right digit or bit is
called least significant bit (LSB) in a given number.
We will go through the next example in detail.
100
+ 20
This means + 5
+ 0.3
+ 0.06
125.36
1
Page
Binary number system :- In this system only two digits (symbols) are used to represent
a number. The digits are 0 and 1. So, the base of this system is 2.
This system is useful to utilize in computers, machines and in electronic circuits because they
can recognize only two states i.e. ON and OFF states. On means 1 and off means 0.
In this system also each digit in the number has a place value.
The place value of the right digit is one unit i.e. (2 )
The place value of the next left digit is 2 units i.e. (2 )
The place value of the next left digit is 4 units i.e. (2 ) ……. so on.
The following table is useful for conversion between decimal and binary systems.
The value of a number in this system is the sum of the products of the digits with its
respective powers of 2.
In this system also the left digit or bit is called most significant bit (MSB) and the
right digit or bit is called least significant bit (LSB).
The next example in detail is
Binary addition
The rules of binary addition are
1) 0+0=0
2) 1+0=1
3) 0+1=1
4) 1 + 1 = 10 (it is two in binary system)
The 4th rule can be written as 1 + 1 = 0 with a carry 1
Truth table
Input Out put
A B Carry Sum
0 0 0 0
0 1 0 1
1 0 0 1
1 1 1 0
3
Page
Binary subtraction
The rules of subtraction are
1) 0-0=0
2) 1-0=1
3) 1-1=0
4) 0 - 1 = 1 (i.e. with a borrow
b from the next higher digit or left digit)
digit
th
The 4 rule can be explained as 10 - 1 = 1. It means that when 1 is borrowed
b from
0
the next higher digit it becomes 10 (two) in units (2 ) place.
Binary multiplication
The rules of binary multiplication are
1) 0x0=0
2) 1x0=0
3) 0x1=0
4) 1x1=1
8. The equivalent binary number comprises with all all the remainders in successive
Page
Sol :-
Note :- If the decimal number includes both integer and fraction parts.
parts Then, split the
number in to integer and fraction, convert them in to binary numbers separately and combine
the binary equivalents.
Sol:-
6
Page
Take each digit in the binary number and multiply it with its place value.
The sum of all the above products will give the equivalent decimal number.
Sol :- (1011)2 = (1
2 ) + ( 0
2 ) + (1
2 ) + (1
2 )
= (1
8) + ( 0
4) + (1
2) + (1
1 )
= 8 + 0 +2 + 1 = 11
So, (1011)2 = (11)10
Sol :- (0.1101)2 = (1
2 ) + ( 1
2 ) + (0
2 ) + (1
2 )
= 1
+ 1
+ 0
+ (1
)
Note :- If the binary number includes both integer and fraction parts. Then, split the number
in to integer and fraction, convert them in to decimal numbers separately and combine the
decimal equivalents.
7
Page
1’s compliment :- The 1’s compliment of a binary number is the number obtained after
changing each 0 into 1 and each 1 into 0 in that binary number.
The following table gives the 1’compliments to the binary numbers given against.
Sol:-
9
Page
2’s compliment :- The 2’s compliment of a binary number is the number obtained by
adding 1 to its 1’s compliment.
The following table gives the 2’compliments to the binary numbers given against.
10
Page
Boolean algebra
Boolean algebra differs from both ordinary algebra and binary number system.
system
Boolean algebra also uses the same symbols 0 and 1 as in binary number system.
But Boolean algebra is an algebra of ideas not of numbers.
Boolean algebra uses only three operations.
operations
1) The OR addition operation,
operation represented by + (plus) sign.
2) The AND multiplication operation,
operation represented by . (dot) or x (cross) sign.
3) The NOT operation, represented
repr by a bar over the variable.
The following table gives the truth table for the three operations.
Truth table
OR operation AND operation NOT operation
0+0=0 0.0=0
0+1=1 0.1=0 0 = 1
1+0=1 1.0=0 1 = 0
1+1=1 1 . 1 .= 1
11
Page
1) OR laws :-
i. A + 0 = A
ii. A + 1 = 1
iii. A + A = A
iv. A + ̅ = 1
2) AND laws :-
i. A . 0 = 0
ii. A . 1 = A
iii. A . A = A
iv. A . ̅ = 0
i. 0 = 1
ii. 1 = 0
iii. =A
De Morgan’s theorems
De Morgan’s theorems are very useful in simplifying complicated logical expressions.
There are two De Morgan’s theorems.
Theorem 1 :-
Statement :- The compliment of the sum of two or more variables is equal to the product of
the compliments of the variables.
i.e. + = ̅ . (1)
Here A & B are the variables.
The theorem can be proved by substituting the permitted values 0 & 1 in place of
variables, A & B in equation (1).
∴ !"# = $"#
Page
OR gate
The OR gate circuit has
has two or more inputs and has one out put.
The circuit has high out put (1) if any one or more in puts are high (1).
(+) plus Sign is used to show the OR operation.
a. The circuit in Figure -11 is called Voltage mode circuit. This shows a two in put OR
gate, using two diodes D1 & D2.
b. A & B are two in puts given to D1 &
D2 in and Y is the out put voltage
measured across the out put load RL.
c. If the in put given to a diode is high,
its in put is ‘1’ that diode is forward
biased. If the input
put given to the diode
is low, its input
put is ‘0’ that diode is
reverse biased.
d. Similarly, if the out put ‘Y’ is high it is ‘1’& if the out put ‘Y’ is low it is ‘0’
1 0 1
Page
1 1 1
AND gate
The AND gate circuit has two or more inputs and has one out put.
The circuit has high out put (1) if all the in puts are high (1).
The circuit has low out put (0) if any one or more of the in puts are low(0).
(.) dot Sign is used to show the AND operation.
a. The circuit in Figure -1 is called Voltage mode
circuit. This shows a two in put AND gate, using two
diodes D1 & D2. The P – terminals of the two diodes
are connected to + ve voltage source through a
resistor.
b. A & B are two in puts given to D1 & D2 in reverse
bias and Y is the out put voltage measured across the
P - terminals of the diodes and the ground terminal..
c. If the in put given to a diode is high, its in put is ‘1’
and that diode is reverse biased, its resistance is high.
If the in put given to the diode is low, its in put is ‘0’
that diode is forward biased,
biased it conducts current and
that diode short circuited and out put is zero.
d. Similarly, if the out put ‘Y’ is high it is ‘1’& if the out put ‘Y’
‘Y’ is low it is ‘0’
Note :- If both (i.e. all) diodes are given high, then only, all the diodes won’t conduct, the
resistance across the out put terminal is high and the voltage is also high.
The circuit in Figure - 2 is called current
mode circuit.
In this figure - 2 the in puts A & B are
switches. If the switch is ON the in put is
‘1’ and if the switch is OFF the in put is
‘0’.
The out put ‘Y’ is the bulb. If the bulb
glows the out put is ‘1’. If the bulb does
not glow, the out put is ‘0’.
The circuit symbol used for AND gate is as
shown in Figure – 3.
The in puts given to AND gate and the
corresponding out puts are as per the below given
truth table i.e. as per AND operation.
Truth table .
In puts Out put
A B Y=A.B
0 0 0
0 1 0
1 0 0
15
1 1 1
Page
NOT gate
The NOT gate circuit has one input
and has one out put.
The main purpose of this gate is to
compliment or invert the in put given.
If ‘1’ is given as in put the out put is
‘0’. If ‘0’ is given as the in put the out
put is ‘1’.
Figure – 1 is the voltage mode circuit
of NOT gate.
In this circuit a PNP transistor is
connected in CE mode.
mode The in put is
given to the base. The out put is taken
at the collector terminal.
If the input A is high (1) the transistor short circuited and the out put is low (0).
If the input A is low (0) the transistor has high resistance and the out put is high (1).
NOR gate
The series combination of an OR gate and a NOT gate is called NOT-OR
NOT gate (or)
NOR gate.
The Boolean expression for NOR gate is ' =
+ . This means that the OR sum
of the in puts is inverted or complimented.
The following figure is the series combination of OR gate & NOT gate. The resultant
gives NOR gate.
Truth table
In put Out put
OR gate out put NOR gate out put
A B
X=A+B ' =
+
0 0 0 1
0 1 1 0
1 0 1 0
1 1 1 0
As NOT gate
If the two in puts of NOR gate is tied together , the out put becomes , as per the De
Morgan’s theorem. %. &. '
' = Then it works as NOT gate.
+ =
17
Page
As OR gate
If two NOR gates are connected in series as shown below, the out put becomes ( + )
((((((((
%. &. ' = + = + Then it works as OR gate.
As AND gate
If three NOR gates are connected as shown below, the out put becomes (. ) as
per De Morgan’s theorems.
%. &. ' = ̅ +
= ̿ . ( = . . Then it works as AND gate.
NAND gate
The series combination of an AND gate and a NOT gate is called NOT- NOT AND gate
(or) NAND gate.
The Boolean expression for NAND gate is ' = . . This means that the AND
product of the in puts is inverted or complimented.
The following are the circuit symbols of AND gate, NOT gate. Their series
combination gives NAND gate.
18
Page
As NOT gate
If the two in puts of NAND gate is tied together then as per the De Morgan’s
theorem, the out put becomes
%. &. ' = . . Then it works as NOT gate.
=
As AND gate
series as shown below, the out put becomes (. )
If two NAND gates are connected in series
(((((
%. &. ' = . = . Then it works as AND gate.
19
Page
As OR gate
If three NAND gates are connected as shown below, the out put becomes ( + )
as per De Morgan’s theorem..
.
%. &. ' = = ̿ + ( = + Then it works as OR gate.
Truth table
In put Out put
A B
. . B
' = . . B
+
0 0 0 0 0
0 1 0 1 1
1 0 1 0 1
1 1 0 0 0
Half – adder
The half – adder adds two binary digits at a time and produces a 2-
2 bit out put data
1) Sum 2) carry.
This addition is binary addition.
This adder is called half – adder because it can not accept carry from the previous
addition.
The truth table below shows the operation of half – adder (Binary addition).
Figure – a is the circuit diagram of half – adder and Figure – b is its circuit symbol.
21
Page
Full-adder
The full – adder adds three
t binary digits at a time and produces a 2-
2 bit out put data
1) Sum 2) carry.
This adder can accept a carry from the previous addition.
The full-adder
adder can be made by connecting two half adders and an OR gate as shown
in Figure – A and Figure – B. Figure – C is the circuit symbol of full – adder.
1st two digits are given to 1st half adder (HA-1)
(HA as in puts.
st
The out put of the 1 halfha – adder (HA-1) consists of a sum and a carry. This sum and
the 3 digit are given to the 2nd half – adder (HA-2) as in puts.
rd
The truth table shown below, gives the operation of full – adder