MODULE III ADC
MODULE III ADC
MODULE III ADC
• It has 16 numbers
• 0,1,2,3,4,5,6,7,8,9,A(10),B(11),C(12),D(13),E(14),F(15)
• Base:16
RELATION BETWEEN DIFFERENT NUMBER SYSTEMS
I BINARY TO DECIMAL
Multiplying each bit by its positional weight/base and adding them together gives decimal
number
• Group the bits of binary numbers in groups of 4 starting from the binary point. Add
zeros to the extreme ends if needed.
• Now write the hexadecimal digits corresponding to each group of four bits
Example (10110101011.011)2
Ans(10011000.01)2
OR
For the number to the left of the decimal point divide the successive quotients by base 2 of binary
system.
For the number to the right of the decimal point: Multiply the successive products by the base 2
II.DECIMAL TO HEXADECIMAL CONVERSION
ANS (98.4)16
I HEXADECIMAL TO DECIMAL
II HEXADECIMAL TO BINARY
Example: (152A.25)16
BINARY ARITHMETIC
1. ADDITION
2. SUBTRACTION
3.MULTIPLIATION
4. DIVISION
SUBTRACTION
REPRESENTATION OF NEGATIVE NUMBERS
Negative numbers can be represented either in 1’s complement form or in 2’s complement
form
1’s COMPLEMENT FORM
To get 1’s complement of a binary number change all 0’s to 1 and all 1’s to 0’s
Eg: 1100100: 1’s complement→0011011
STEPS FOR SUBTRACTION USING 1’S COMPLEMENT
• Minuend:10101
• Subtrahend:00111
• 1’s complement of subtrahend 00111:11000.
• Add to the minuend:10101+11000=1 01101-----here carry-=1 so add to LSB to get
final answer.
• Ie 01101+1=01110
Example:10101-10111
• Minuend:10101
• Subtrahend:10111
• 1’s complement of subtrahend 10111:01000.
• Add to the minuend:10101+01000= 11101-----here no carry so calculate the 1’s
complement of the result which is the negative number
• Ie 11101----1’s complement:00010; Final answer=00010.
• Minuend:10101
• Subtrahend:00111
• 1’s complement of subtrahend 00111:11000.
• Find 2’s complement:11000+1=11001
• Add to the minuend:10101+11001=1 01110-----here carry-=1 so discard the carry to
get the final positive answer.
• Ie Final answer=01110
Example: 10101-10111
• Minuend:10101
• Subtrahend:10111
• 1’s complement of subtrahend 10111:01000.
• Find 2’s complement:11000+1=01001
• Add to the minuend:10101+01001=11110-----here no carry bit so take 2’s
complement of answer to get the answer which is negative
• Ie Final answer:2’s complement of 11110=00010—which is negative.
9:1001
2-0010
LOGIC GATES
Logic gates are the basic building blocks of any digital system. It is an electronic circuit having
one or more than one input and only one output. The relationship between the input and the
output is based on a certain logic. Based on this, logic gates are named as AND gate, OR gate,
NOT gate etc.
BASIC GATES:AND,OR,NOT
Sl THEOREM PURPOSE
No
1. A+0=A OR OPERATION
2 A+1=1
3 A+A=A
4. A+𝐴̅ =1
9 𝐴̿ = 𝐴 COMPLEMENT(INVOLUTION)
10 ̅̅̅̅̅̅̅̅
𝐴 + 𝐵 = 𝐴̅. 𝐵̅ DEMORGAN’S THEOREM
11 ̅̅̅̅
𝐴𝐵 = 𝐴̅ + 𝐵̅
ASSOCIATIVE LAWS
14. (A+B)+C=A+(B+C)
15 (A.B).C=A.(B.C)
EXAMPLES
1.A+AB
A+AB=A(1+B) ------( By theorem 2 1+B=1)
=A
2.A.(A+B)
=A.A+A.B -------By theorem 7 A.A=A
=A+AB------------By theorem 2 ;1+B=1
=A(1+B)=A
3.(A+B)(A+C)
=A.A+A.C+A.B+B.C
=A+AC+A.B+A.C=A(1+C)+A.B+B.C
=A+AB+BC=A(1+B)+B.C
=A+BC
DEMORGAN’S THEOREM
Theorem 1: The complement of the product of two or more variables is equal to sum of
their complements.
̅̅̅̅
𝐴𝐵 = 𝐴̅ + 𝐵̅
Theorem 2:The complement of the sum of two or more variables is equal to product of their
complements.
̅̅̅̅̅̅̅̅
𝐴 + 𝐵 = 𝐴̅. 𝐵̅
SOP AND POS EXPRESSIONS