You are on page 1of 21

DEPARTMENT OF TECHNICAL EDUCATION

ANDHRA PRADESH
• Name : P.Swarupa
• Designation : Lecturer
• Branch : ECE
• Institute : Govt. Polytechnic,
• Masabtank, Hyd.
• Semester : III Semester
• Subject : Digital Electronics
• Subject Code : EC – 304
• Topic : Basics of Digital Electronics
• Duration : 50 Mts.
• Sub-Topic : Number Systems
• (octal system)
• Teaching Aids : PPT, Animations
EC304.2 1
Objectives

On completion of this period, you will be able to

• Know what is an Octal number.

• Convert a Decimal number to an Octal number & Vice-versa.

• Convert an Octal number to Binary number & Vice-versa.

EC304.2 2
Recap
• What is the Binary equivalent of decimal number 3?

• Which method do you use to Convert a decimal to


binary?
j
• How many digits are in Binary system?
f
• How many digits are in decimal system? l

EC304.2 3
Recap (contd..)

• The base or radix of a number system equals


the number of digits it uses.
b
• The base of decimal number system is 10.
j
• It uses digits 0 to 9.
v
• The binary number system has a base of 2.

EC304.2 4
Octal number system

• An octal number system has a base of 8.


f
• It uses the eight decimal digits
0,1,2,3,4,5,6 & 7.

EC304.2 5
Decimal to Octal Conversion
• Octal dabble, a method similar to double dabble is used.

• Divide the decimal number by 8, write down the


remainders after each division.

• The remainders in reverse order form the octal number.

• Example : Convert decimal 175 as follows:

• Therefore (175)10 = (257)8


EC304.2 6
For Fractions
With decimal fractions, multiply by ‘8’ instead of divide,
write the carry into integer position .
m
• Example convert decimal 0.23 into an octal fraction.
,
• 0.23 x 8 = 1.84 = 0.84 with a carry 1

• 0.84 x 8 = 6.72 = 0.72 with a carry 6

• 0.72 x 8 = 5.76 = 0.76 with a carry 5

• Hence, the octal fraction is = 0.165

• Therefore, (0.23)10 = (0.165)8


EC304.2 7
Octal to Decimal Conversion
• In octal number system each digit position corresponds
to a power of 8 as follows :

• 8³ 8² 8¹ 8º . 8³ ‫ ־‬8 ² ‫ ־‬8 ¹‫־‬

• Therefore, to convert from octal to decimal, multiply each


octal digit by its weight.

• Example : Octal 23 is converted to decimal as follows:

• 2 x 8¹ + 3 x 8º = 16 + 3 = 19.

• Therefore, (23)10 = (19)8.


EC304.2 8
For Fractional Part
• The conversion is as follows:

• Example : Convert the Octal 0.28 into decimal.

• 2 x 8² ‫ ־‬x 8 8 + ¹ ‫־‬

• = 2 x 0.125 + 8 x 0.015625

• = 0.25 + 0.125

• = 0.375

EC304.2 9
Octal to Binary conversion
• Replace each octal digit by its 3-bit equivalent binary.

• Example: Convert (736)8 into an equivalent Binary. l

7 3 6

111 011 110

• Therefore, (736)8 = (111011110)2

10
EC304.2
Binary to Octal Conversion

• Binary numbers can be converted into equivalent Octal

numbers.
n
• Make groups of 3 bits starting from LSB & moving
towards MSB for Integer part .
f
• Replace each group of three bits by its Octal number b

EC304.2 11
Binary to Octal Conversion (Contd)

• For Example: convert (1001110)2 to its octal.


d
• The given number is grouped into 3-bits as
• 1 001 110
• By adding zero’s on left side the same is written a
• 001 001 110
• 1 1 6
• Therefore, (1001110)2 = (116)8

EC304.2 12
Binary to Octal Fractional part Conversion(Contd)
• To convert the fractional part the groupings of three are
made starting from the binary point.

• For example: Convert (0.10100110)2 to its

• Equivalent octal number

• (0.10100110)2 = (0.101 001 100)2



• 0.5 1 4

• Therefore, (0.10100110)2 = (0.514)2


EC304.2 13
Binary and decimal equivalents of Octal
numbers
Decimal Binary Octal
0 000 0
1 001 1
2 010 2
3 011 3
4 100 4
5 101 5
6 110 6
7 111 7
8 1000 10
9 1001 11
10 1010 12
EC304.2 14
Summary

We have discussed about

• Octal number system.

• Conversion of an octal number to decimal & vice-versa.

• Conversion of octal to binary & vice-versa.

EC304.2 15
QUIZ

EC304.2 16
1. How many digits are there in an octal system

(i) 9

(ii) 10

(iii) 8

(iv) 11

EC304.2 17
1. What is the base of the number in an octal system?

(i) 9

(ii) 10

(iii) 8

(iv) 11
EC304.2 18
1. What is the Octal equivalent of decimal 8

(i) 10

(ii) 11

(iii) 15

(iv) 16
EC304.2 19
1. What is the decimal equivalent of Octal number 12?

(i) 8

(ii) 9

(iii) 10

(iv) 11

EC304.2 20
Frequently Asked Questions

• Convert decimal 247 into Octal ?


• Convert 6975 decimal into Octal ?
• Convert 3267.5198 decimal into Octal ?
• Convert 306.28 octal into decimal ?
• Convert 22.74 octal into decimal ?
• Convert 765.31 octal into binary ?

EC304.2 21

You might also like