0% found this document useful (0 votes)
2 views5 pages

Digital Technologies 02

دجتل

Uploaded by

sddhyabsrhannahy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views5 pages

Digital Technologies 02

دجتل

Uploaded by

sddhyabsrhannahy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Digital Technologies

‫ن‬
‫المحاضة الثانية‬ ‫التقنيات الرقمية‬ ‫ن‬
‫حسي دمحم طالب‬ ‫م‬.‫م‬

g. Binary to Octal Conversion or Octal to Binary Conversion


The base numbers of binary and octal are 2 and 8, respectively. In a binary number, the pair
of three bits is equal to one octal digit. There are only two steps to convert a binary number
into an octal number which are as follows:

1. In the first step, we have to make the pairs of three bits on both sides of the binary point. If
there will be one or two bits left in a pair of three bits pair, we add the required number of
zeros on extreme sides.

2. In the second step, we write the octal digits corresponding to each pair. See Fig 1.

Fig 1. Octal Digits Table

1
‫ن‬
‫المحاضة الثانية‬ ‫التقنيات الرقمية‬ ‫ن‬
‫حسي دمحم طالب‬ ‫م‬.‫م‬

EX1: Convert (753.21)8 to Binary.


Solution: 7 = 111, 5 = 101, 3 = 011. 2 = 010, 1 = 001
(111101011.010001)2

EX2: Convert (10101.1011)2 to octal.


Solution: 010 = 2, 101 = 5. 101 = 5, 100 = 4
(25.54)8

EX3: Convert (011010110)2 to octal.


Solution: 011 = 3, 010 = 2, 110 = 6
(326)8

EX4: Convert (10101.101100)2 to octal.


Solution: 010 = 2, 101 = 5. 101 = 5, 100 = 4
(25.54)8

EX5: Convert (11010110)2 to octal.


Solution: 011 = 3, 010 = 2, 110 = 6
(326)8
EX6: Convert (00011101.10101000)2 to octal.
Solution: 000 = 0, 011 = 3, 101 = 5. 101 = 5, 010 = 2, 0 = 000
(035.520)8 = (35.52)8

2
‫ن‬
‫المحاضة الثانية‬ ‫التقنيات الرقمية‬ ‫ن‬
‫حسي دمحم طالب‬ ‫م‬.‫م‬

h. Binary to Hexadecimal Conversion or Hexadecimal to Binary


Conversion
The base numbers of binary and hexadecimal are 2 and 16, respectively. In a binary number,
the pair of four bits is equal to one hexadecimal digit. There are also only two steps to
convert a binary number into a hexadecimal number which are as follows:

1. In the first step, we have to make the pairs of four bits on both sides of the binary point. If
there will be one, two, or three bits left in a pair of four bits pair, we add the required
number of zeros on extreme sides.

2. In the second step, we write the hexadecimal digits corresponding to each pair. See Fig 2.

Fig 1. Hexadecimal Digits Table

EX1: Convert (1001011110110101)2 to hexadecimal. Ans = 97B5


EX2: Convert (FA.32)16 to binary. Ans = 11111010.0011001
EX3: Convert (10001011110)2 to hexadecimal. Ans = 45E
3
‫ن‬
‫المحاضة الثانية‬ ‫التقنيات الرقمية‬ ‫ن‬
‫حسي دمحم طالب‬ ‫م‬.‫م‬

i. Octal to hexadecimal conversion


For converting octal to hexadecimal, there are two steps required to perform, which are as
follows:

1. In the first step, we will find the binary equivalent of the octal number.

2. Next, we have to make the pairs of four bits on both sides of the binary point. If there will
be one, two, or three bits left in a pair of four bits pair, we add the required number of zeros
on extreme sides and write the hexadecimal digits corresponding to each pair.

Example 1: Convert (152)8 to Hexadecimal. Ans = 6A

Example 2: Convert the octal number 64 to Hexadecimal. Ans = 34

j. Hexadecimal to Octal Conversion


For converting hexadecimal to octal, there are two steps required to perform, which are as
follows:

1. In the first step, we will find the binary equivalent of the hexadecimal number.

2. Next, we have to make the pairs of three bits on both sides of the binary point. If there will
be one or two bits left in a pair of three bits pair, we add the required number of zeros on
extreme sides and write the octal digits corresponding to each pair.

Example 1: Convert (152A)16 to octal. Ans = 12452

Example 2: Convert (A.3)16 to octal. Ans = 12.14

Example 3: Convert (3B)16 to octal. Ans = 73

Classwork: Convert (1011101010)2 to Hexadecimal.


Homework: a. Convert (10110111)2 to Hexadecimal.
b. Convert (1111011111100)2 to Hexadecimal.
c. Convert (7932)10 to Hexadecimal.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy