2. TOPICS
Number systems and codes
Boolean algebra and theorems
Combinational digital circuits
Sequential digital circuits
Memory devices
3. Number systems and codes
Number systems
Decimal Number system
Binary Number system
Octal Number system
Hexa Decimal Number system
Codes
BCD Code
Gray Code
Excess-3 Code
4. Decimal Number system
Base or radix of a number system
Decimal number system- Base 10
Numerals or symbols- 0,1,2,3,4,5,6,7,8,9
Value- 1976.539(10) - 1×10^3+9×10^2+7×10^1+6×10^0+5×10^-1+3×10^-
2+9×10^-3
5. Binary Number systems
Binary number system- Base 2
Numerals or Symbols used- 0,1
Value- 11001.101= 1×2^4+1×2^3+0×2^2+0×2^1+1×2^0+1×2^-
1+0×2^-2+1×2^-3
6. Octal Number system
Octal Number system- Base 8
Numerals or Symbols used- 0,1,2,3,4,5,6,7,
Value- 26345.167= 2×8^4+6×8^3+3×8^2+4×8^1+5×8^0+1×8^-1+6×8^-2+7×8^-3
7. Hexa Decimal Number system
Hexa decimal Number system- Base 16
Numerals or Symbols used- 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F
Value- B98.C6= 11×16^2+9×16^1+8×16^0+12×16^-1+6×16^-2
8. Decimal to Binary conversion
253.15(10) is a decimal number
Real part- 253
Fractional part- 15
For real part – Successive division by 2
Fractional part – Successive multiplication by 2
Real part- 253÷2=126-->1
126÷2=63 -->0
63÷2=31 -->1
31÷2=15 -->1
15÷2=7 --->1
7÷2=3 -->1
3÷2=1 --->1
1÷2=0 --->1
Collect the reminders from bottom to top
253.15(10) = 11111101.0010 (2)
Fractional part
0.15×2=0.30--->0
0.30×2=0.60--->0
0.60×2=1.20--->1
0.20×2=0.40--->0
Collect the quotients from top to bottom
9. Decimal to Octal conversion
7546.32(10) is a decimal number
Real part- 754
Fractional part- 32
For real part – Successive division by 8
Fractional part – Successive multiplication by 8
Real part- 7546÷8=943 -->2
943 ÷8=117 -->7
117÷ 8= 14 -->5
14÷8= 1 --> 6
1÷8=0 ---> 1
Collect the reminders from bottom to top
7546.32(10) = 16572.2436 (8)
Fractional part
0.32×8= 2.56---> 2
0.56×8= 4.48 --->4
0.48×8= 3.84--->3
0.84×8= 6.72--->6
Collect the quotients from top to bottom
10. Decimal to Hexadecimal conversion
6876.94(10) is a decimal number
Real part- 6876
Fractional part- 0.94
For real part – Successive division by 16
Fractional part – Successive multiplication by 16
Real part- 6876÷16=429-->12 (C)
429÷16=26 -->13(D)
26÷16=1 -->10 (A)
1÷16=0 -->1
Collect the reminders from bottom to top
6876.94(10) = 1ADC.F0A3 (16)
Fractional part
0.94×16= 15.04---> 15(F)
0.04×16= 0.64---> 0
0.64×16= 10.24 --> 10(A)
0.24× 16= 3.84 --->3
Collect the quotients from top to bottom
22. 1’s complement method of subtraction
Perform 11001(2) - 10111(2) using 1’s complement method of subtraction
Minuend - 11001
Subtrahend- 10111
1’s complement of subtrahend - 01000
Add minuend with 1’s complement of subtrahend
11001
01000
……………..
[1]00001
Add carry 1 to 00001 to get the final result
00010
23. 2’s complement method of subtraction
Perform 11001(2) - 10111(2) using 2’s complement
method of subtraction
Minund - 11001
Subtrahend- 10111
1’s complement of subtrahend - 01000
2’s complement of subtrahend- 01000+1 = 01001
Add minuend with 1’s complement of subtrahend
11001
01001
• ……………..
• [1]00010
Leave the carry to get the final result
00010
Note:- if carry is 0 then find 2’s complement to
Result obtained after addition to get the final result.
•
•
•
• ```
25. Binary Division
0÷0 is undefined
0÷1=0
1÷0 is undefined
1÷1=1
Divide 11001(2) with 101 (2)
101 ) 11001 ( 101
101
.................
101
101
…………..
000
26. BCD Code
Binary coded decimal
Input and output of digital system
8421 code
Convert decimal number 4782 in to BCD code
4 7 8 2
0100 0111 1000 0010
BCD code- 0100011110000010