Basic Electrical and Electronics Engineering
Basic Electrical and Electronics Engineering
BASIC ELECTRICAL AND ELECTRONICS ENGINEERING BASIC ELECTRICAL AND ELECTRONICS ENGINEERING
Module 2
Difference between analog and digital signals Example: 123.34 = 1 x 102 + 2 x 101 + 3 x 100 + 3 x 10-1 + 4 x 10-2 =100 + 20 + 3 + 0.3 + 0.04 =
123.43
Analog or Continuous Signal: The signal may acquire any value in a range of the independent
variable (time). Example: Analog Signal 2. Binary Number System: In binary numbering systems only two digits 0 and 1 are used to represent
Discrete or Digital Signal: The signal can have any value but it would remain constant over periods any number. It will go like 0, 1, 10, 11, 100, 101, 110, 111, 1000 and so on. It is the numbering
of time called sampling period. Digital signals or numbers are processed by digital system using the system used in computers. In this system the next position to the left from the binary point represents
concept of binary numbers and Boolean algebra. units, 2’s, 4’s, 8’s etc. and the next position to the right after the binary point
represents ’s, ( ’s, ’s etc.
Digits are: 0, 1 and Base value: 2
Example: 1010.101 = 1 x 23 + 0 x 22 + 1 x 21 + 0 x 20 + 1 x 2-1 + 0 x 2-2 + 1 x 2-3
= 8 + 0 + 2 + 0 + 0.5 + 0 + 0.125 = 10.625
3. Octal Number System: In octal numbering system combination of eight digits from 0 to 7 are used
to represent a number. It will go from 0…7, a two digit sequence is from 10..77 and a three digit
sequence is from 100…777 and so on. It is used to shorten the binary numbers.
Digits are: 0, 1, 2, 3, 4, 5, 6, 7 and Base value: 8
Example: 376 = 3 x 82 + 7 x 81 + 6 x 80 = 192 + 56 + 6 = 254
Conversions:
1. Decimal Number System: It is the most commonly used numbering system in day-to-day life to
count, measure and label. Combination of ten digits from 0 to 9 are used to represent any number.
In this system the next position to the left from the decimal point represents units, tens, hundreds,
thousands etc. and the next position to the right after the decimal point represents ’s,
Prepared by: Dr. N Sheshaprasad BNMIT Page | 1 Prepared by: Prof. N Sheshaprasad BNMIT Page | 2
22BEE123 21BEC114/124
BASIC ELECTRICAL AND ELECTRONICS ENGINEERING BASIC ELECTRICAL AND ELECTRONICS ENGINEERING
Decimal to Binary:
Binary to Decimal Conversion:
Integer Part: To convert the decimal integer to binary, divide the number by 2 and the successive
quotients by 2. The successive remainders (which can be only 0 or 1) written in reverse order form the To convert the binary number to its equivalent decimal, multiply the binary digits by its
equivalent binary number. corresponding weights, and then add them.
Weights from the left of binary point are: , , , , etc
Fractional Part: To convert decimal fractions to binary, multiply the number by 2 repeatedly until the Weights from the right of binary point are: , , , , etc
fraction product is 0 (or until the desired number of binary places). The whole digits of the multiplication
results produce the answer, with first as MSB and the last as LSB. Example: Convert the binary decimal
Example 1: Convert 156.188 decimal to binary.
Prepared by: Dr. N Sheshaprasad BNMIT Page | 3 Prepared by: Prof. N Sheshaprasad BNMIT Page | 4
22BEE123 21BEC114/124
BASIC ELECTRICAL AND ELECTRONICS ENGINEERING BASIC ELECTRICAL AND ELECTRONICS ENGINEERING
To convert the hexadecimal number to its equivalent decimal, multiply the hexadecimal digits by Integer Part: To convert a decimal integer to hexadecimal, divide the number by 16 and the successive
its corresponding weights, and then add them. quotients by 16. The successive remainders (which can be only 0 to 9 or A to F) written in reverse order
Weights from the left of hexadecimal point are: , , , , etc form the equivalent octal number.
Weights from the right of hexadecimal point are: , , , , etc Fractional Part: To convert decimal fractions to octal, multiply the number by 8 repeatedly until the
fraction product is 0 (or until the desired number of octal places). The whole digits of the multiplication
Example: Convert the octal number (A37E.5C2)16 to decimal. results produce the answer, with first as MSD and the last as LSD.
Prepared by: Dr. N Sheshaprasad BNMIT Page | 5 Prepared by: Prof. N Sheshaprasad BNMIT Page | 6
22BEE123 21BEC114/124
BASIC ELECTRICAL AND ELECTRONICS ENGINEERING BASIC ELECTRICAL AND ELECTRONICS ENGINEERING
Relationship between Decimal, Binary, Octal, Hexadecimal number: Example 2: Add (28)10 and (15)10 by converting them into binary.
1 1 ⟵ Carry
Hexadecimal Decimal Octal Binary (28)10 = 1 1 1 0 0
0 0 0 0000 (15)10 = 0 1 1 1 1
1 1 1 0001 1 0 1 0 1 1
2 2 2 0010 Binary Subtraction:
3 3 3 0011 The rules of binary subtraction are:
4 4 4 0100 0–0=0
5 5 5 0101 1–0=1
6 6 6 0110 1–1=0
7 7 7 0111 0 – 1 = 1 (Taking barrow from outside)
8 8 10 1000 Examples:
9 9 11 1001
A 10 12 1010
B 11 13 1011
C 12 14 1100
D 13 15 1101
E 14 16 1110
F 15 17 1111 Binary Subtraction Using 1’s Complement:
1. Take 1’s complement of subtrahend and add it to minuend.
2. If carry is generated, then result is positive. Add carry to the result to get final result.
Complement of Binary Numbers: 3. If carry is not generated, then result is negative and in 1’s complement form.
There are two types of complements for binary numbers and are used to perform subtraction using
addition.
i. 1’s complement: Obtained by changing all 0’s to 1’s and all 1’s to 0’s.
ii. 2’s complement: Obtained by adding 1 to 1’s complement of a number.
Binary Addition:
The rules of binary addition are:
0+0=0
0+1=1 Example 1: Perform (28)10 – (19)10 using 1’s complement.
1+0=1
1 + 1 = 0 (with carry 1)
Example 1: Perform addition of (11001100)2 and (11011010)2
1 1 1 ⟵ Carry
1 1 0 0 1 1 0 0
1 1 0 1 1 0 1 0
1 1 0 1 0 0 1 1 0
Prepared by: Dr. N Sheshaprasad BNMIT Page | 7 Prepared by: Prof. N Sheshaprasad BNMIT Page | 8
22BEE123 BNMIT-ECE-NSP
BASIC ELECTRICAL AND ELECTRONICS ENGINEERING BASIC ELECTRICAL AND ELECTRONICS ENGINEERING
Example 2: Perform (15)10 – (28)10 using 1’s complement. (i) Covert (57345)10 = ( )16
Example 2: Perform (15)10 – (28)10 using 2’s complement. (15)10 = (01111)2 01111
– (19)10 = (10011)2 ⟹ 2’s Complement: 01100 +01101
+1 11100
01101
No carry hence result is negative in 2’s complement form: 11100 = 00011 + 1 = 00100 = – 4
Subtract the following using 2’s complement method:
i) (101011)(2) from (111001)(2)
ii) (111001)(2) from (101011)(2)
Prepared by: Prof. N Sheshaprasad BNMIT Page | 11 Prepared by: Prof. N Sheshaprasad BNMIT Page | 12
BNMIT-ECE-NSP BNMIT-ECE-NSP
BASIC ELECTRICAL AND ELECTRONICS ENGINEERING BASIC ELECTRICAL AND ELECTRONICS ENGINEERING
Prepared by: Prof. N Sheshaprasad BNMIT Page | 13 Prepared by: Prof. N Sheshaprasad BNMIT Page | 14
BNMIT-ECE-NSP BNMIT-ECE-NSP
BASIC ELECTRICAL AND ELECTRONICS ENGINEERING BASIC ELECTRICAL AND ELECTRONICS ENGINEERING
De Morgan suggested two theorems: State De Morgan’s theorem for 4 – variables and prove them by the method of perfect induction.
Solution:
1. The complement of product is equal to the sum of complements of individual.
1. The complement of product is equal to the sum of complements of individual.
Proof: Two variables:
A B AB Proof: Four variables:
0 0 1 1 0 1 1 A B C D ABCD
0 1 1 0 0 1 1 0 0 0 0 1 1 1 1 0 1 1
1 0 0 1 0 1 1 0 0 0 1 1 1 1 0 0 1 1
1 1 0 0 1 0 0 0 0 1 0 1 1 0 1 0 1 1
0 0 1 1 1 1 0 0 0 1 1
2. The complement of sum is equal to the product of complements of individual. 0 1 0 0 1 0 1 1 0 1 1
0 1 0 1 1 0 1 0 0 1 1
Proof: Two variables: 0 1 1 0 1 0 0 1 0 1 1
0 1 1 1 1 0 0 0 0 1 1
A B A+B
1 0 0 0 0 1 1 1 0 1 1
0 0 1 1 0 1 1 1 0 0 1 0 1 1 0 0 1 1
0 1 1 0 1 0 0 1 0 1 0 0 1 0 1 0 1 1
1 0 0 1 1 0 0 1 0 1 1 0 1 0 0 0 1 1
1 1 0 0 1 0 0 1 1 0 0 0 0 1 1 0 1 1
1 1 0 1 0 0 1 0 0 1 1
1 1 1 0 0 0 0 1 0 1 1
1 1 1 1 0 0 0 0 1 0 0
State and prove De Morgan’s theorem for three variables. 2. The complement of sum is equal to the product of complements of individual.
The complement of product is equal to the sum of complements of individual.
Proof: Two variables:
A B C D
Proof: Three variables:
0 0 0 0 1 1 1 1 0 1 1
A B C ABC
0 0 0 1 1 1 1 0 1 0 0
0 0 0 1 1 1 0 1 1 0 0 1 0 1 1 0 1 1 0 0
0 0 1 1 1 0 0 1 1 0 0 1 1 1 1 0 0 1 0 0
0 1 0 1 0 1 0 1 1 0 1 0 0 1 0 1 1 1 0 0
0 1 1 1 0 0 0 1 1 0 1 0 1 1 0 1 0 1 0 0
1 0 0 0 1 1 0 1 1 0 1 1 0 1 0 0 1 1 0 0
1 0 1 0 1 0 0 1 1 0 1 1 1 1 0 0 0 1 0 0
1 1 0 0 0 1 0 1 1 1 0 0 0 0 1 1 1 1 0 0
1 1 1 0 0 0 1 0 0 1 0 0 1 0 1 1 0 1 0 0
1 0 1 0 0 1 0 1 1 0 0
The complement of sum is equal to the product of complements of individual. 1 0 1 1 0 1 0 0 1 0 0
1 1 0 0 0 0 1 1 1 0 0
Proof: Two variables: 1 1 0 1 0 0 1 0 1 0 0
A B C 1 1 1 0 0 0 0 1 1 0 0
0 0 0 1 1 1 0 1 1 1 1 1 1 0 0 0 0 1 0 0
0 0 1 1 1 0 1 0 0
0 1 0 1 0 1 1 0 0
0 1 1 1 0 0 1 0 0
1 0 0 0 1 1 1 0 0
1 0 1 0 1 0 1 0 0
1 1 0 0 0 1 1 0 0
1 1 1 0 0 0 1 0 0
Prepared by: Prof. N Sheshaprasad BNMIT Page | 15 Prepared by: Prof. N Sheshaprasad BNMIT Page | 16
BNMIT-ECE-NSP BNMIT-ECE-NSP
BASIC ELECTRICAL AND ELECTRONICS ENGINEERING BASIC ELECTRICAL AND ELECTRONICS ENGINEERING
1. Simplify, .
Solution:
5. Show that:
Solution:
OR:
2. Simplify
Solution:
Solution:
(a)
(b)
Prepared by: Prof. N Sheshaprasad BNMIT Page | 17 Prepared by: Prof. N Sheshaprasad BNMIT Page | 18
BNMIT-ECE-NSP BNMIT-ECE-NSP
BASIC ELECTRICAL AND ELECTRONICS ENGINEERING BASIC ELECTRICAL AND ELECTRONICS ENGINEERING
NOT Gate:
It is an electronic circuit having only one input and only one output. The output signal is always
opposite to the input signal and it is a physical realization of Boolean-Complement operation. It is
also called as inverter.
Expression: Y = A + B + C
Prepared by: Prof. N Sheshaprasad BNMIT Page | 19 Prepared by: Prof. N Sheshaprasad BNMIT Page | 20
BNMIT-ECE-NSP BNMIT-ECE-NSP
BASIC ELECTRICAL AND ELECTRONICS ENGINEERING BASIC ELECTRICAL AND ELECTRONICS ENGINEERING
When A = 0 and B = 1:
Diode D1 does not conduct, since it is reverse biased. D2 conducts, since voltage B is high (5V) 3-Input Symbol:
hence current flows through RL, then voltage develops across RL that is approximately equal to
voltage B. Therefore Z = 1 (5V).
Expression: Y = A . B . C
Prepared by: Prof. N Sheshaprasad BNMIT Page | 21 Prepared by: Prof. N Sheshaprasad BNMIT Page | 22
BNMIT-ECE-NSP BNMIT-ECE-NSP
BASIC ELECTRICAL AND ELECTRONICS ENGINEERING BASIC ELECTRICAL AND ELECTRONICS ENGINEERING
2-Input Symbol:
3-Input Symbol:
Expression:
Logic Circuit:
Expression:
Universal Gates:
Expression:
2-Input Symbol:
It is an electronic circuit having two or more inputs and only one output. The output is
complement of EX-OR gate output.
2-Input Symbol:
3-Input Symbol:
Expression:
Logic Circuit:
NOR Gate:
It is an electronic circuit having two or more inputs and only one output. The output is complement
of OR gate output. It is also called as universal gate, because it can be used to realize all other gates.
Prepared by: Prof. N Sheshaprasad BNMIT Page | 23 Prepared by: Prof. N Sheshaprasad BNMIT Page | 24
BNMIT-ECE-NSP BNMIT-ECE-NSP
BASIC ELECTRICAL AND ELECTRONICS ENGINEERING BASIC ELECTRICAL AND ELECTRONICS ENGINEERING
2-Input Symbol:
3-Input Symbol:
EX-NOR Gate:
NOT Gate:
Realization Using NOR Gate:
1. Implement EX-NOR gate using only NOR gates. Dec.2013/Jan.2014, 10ELN15/25, 04 Marks
AND Gate:
NOT Gate:
OR Gate:
AND Gate:
NOR Gate:
OR Gate:
EX-OR Gate:
NAND Gate:
EX-NOR Gate:
Prepared by: Prof. N Sheshaprasad BNMIT Page | 25 Prepared by: Prof. N Sheshaprasad BNMIT Page | 26
BNMIT-ECE-NSP BNMIT-ECE-NSP
BASIC ELECTRICAL AND ELECTRONICS ENGINEERING BASIC ELECTRICAL AND ELECTRONICS ENGINEERING
OR
OR
4. Simplify the following Boolean expressions and realize them using basic gates and universal
gates.
(a)
(b)
Algebraic Simplification and Realization using Logic Gates: (c)
1. Simplify the expression and realize using basic gates . (d)
Solution: (e)
(f)
Solution:
(a)
Prepared by: Prof. N Sheshaprasad BNMIT Page | 27 Prepared by: Prof. N Sheshaprasad BNMIT Page | 28
BNMIT-ECE-NSP BNMIT-ECE-NSP
BASIC ELECTRICAL AND ELECTRONICS ENGINEERING BASIC ELECTRICAL AND ELECTRONICS ENGINEERING
Realization:
Basic Gate: NAND Gate: NOR Gate:
(b)
(d)
Realization:
Realization: Basic Gate: NAND Gate: NOR Gate:
Using Basic Gate: Using NAND Gate:
(e)
Realization:
Using NOR Gate: Basic Gate: NAND Gate:
NOR Gate:
(c)
Realization:
Using Basic Gate: Using NAND Gate:
(f)
NOR Gate:
Prepared by: Prof. N Sheshaprasad BNMIT Page | 29 Prepared by: Prof. N Sheshaprasad BNMIT Page | 30
BNMIT-ECE-NSP BNMIT-ECE-NSP
BASIC ELECTRICAL AND ELECTRONICS ENGINEERING BASIC ELECTRICAL AND ELECTRONICS ENGINEERING
Realization:
Using Basic Gate: Using NAND Gate:
NOR Realization:
(ii)
NAND Realization:
6. Simplify and realize the following expressions using only NAND and NOR.
7. Simplify the given Boolean equation Y = (A + ) (CD + E) and realize using NAND gates only.
.
June/July 2017, 15ELN15/25,
Dec.2015/Jan.2016, 15ELN15/25, 10 Marks
04 Marks
Solution:
Solution:
(i)
NAND Realization:
Prepared by: Prof. N Sheshaprasad BNMIT Page | 31 Prepared by: Prof. N Sheshaprasad BNMIT Page | 32
BNMIT-ECE-NSP BNMIT-ECE-NSP
BASIC ELECTRICAL AND ELECTRONICS ENGINEERING BASIC ELECTRICAL AND ELECTRONICS ENGINEERING
9. Simplify and realize the Boolean expression using two inputs NAND gates only (A + + C) ( + ii) ter
B + C). Dec.2017/Jan.2018, 15ELN15/25, 05 Marks ;Apply De Morgan’s law to 1st term and multiply 2nd & 3rd
Solution: ms
12. Simplify the following expressions and implement using only NAND Gates:
June/July.2014, 10ELN15/25,
08 Marks
10. Write logic circuit using basic gates for the simplified expression: . a.
Dec.2015/Jan.2016, 10ELN15/25, 04 b.
Marks
Solution: c.
; Apply De Morgan’s Law Solution:
a.
; Apply De Morgan’s Law to individual terms
Prepared by: Prof. N Sheshaprasad BNMIT Page | 33 Prepared by: Prof. N Sheshaprasad BNMIT Page | 34
BNMIT-ECE-NSP BNMIT-ECE-NSP
BASIC ELECTRICAL AND ELECTRONICS ENGINEERING BASIC ELECTRICAL AND ELECTRONICS ENGINEERING
Circuit Diagram:
Implementation Using NAND Gates:
Using Logic Gates: Using Basic Gates:
c.
Implementation Using NAND Gates:
Sum =
Carry = AB =
Half Adder:
The combinational circuit that performs addition of two bits is called Half Adder. The half adder
operation needs two binary inputs: Augend & Addend and provides two binary outputs: Sum &
Carry.
Expressions:
Carry (Cout) = AB
Prepared by: Prof. N Sheshaprasad BNMIT Page | 35 Prepared by: Prof. N Sheshaprasad BNMIT Page | 36
BNMIT-ECE-NSP BNMIT-ECE-NSP
BASIC ELECTRICAL AND ELECTRONICS ENGINEERING BASIC ELECTRICAL AND ELECTRONICS ENGINEERING
Full Adder:
The combinational circuit that performs addition of three bits is called Full Adder. The full adder
has three binary inputs: Augend, Addend & Carry from previous operation and provides two
binary outputs: Sum and Carry.
Block Diagram:
A & B :Represents the two significant bits to be added. Realization Using NAND Gates:
:Represent the carry from previous lower significant position.
S :Sum bit
:Carry to next higher significant position.
Expressions:
and
Prepared by: Prof. N Sheshaprasad BNMIT Page | 37 Prepared by: Prof. N Sheshaprasad BNMIT Page | 38
BNMIT-ECE-NSP BNMIT-ECE-NSP
BASIC ELECTRICAL AND ELECTRONICS ENGINEERING BASIC ELECTRICAL AND ELECTRONICS ENGINEERING
Problems:
Full Adder Using Two Adders: 1. Design a combinational circuit that has 3 inputs and one output. The output is at logic 1 or logic
high only when even number of inputs are at logic 1.
Expression:
Prepared by: Prof. N Sheshaprasad BNMIT Page | 39 Prepared by: Prof. N Sheshaprasad BNMIT Page | 40
BNMIT-ECE-NSP
BASIC ELECTRICAL AND ELECTRONICS ENGINEERING