This topic is useful for KTU Regulation 2019 1. EET206 Digital Electronics ( ELECTRICAL AND ELECTRONICS ENGINEERING) 2. CST203 Logic System Design ( COMPUTER SCIENCE ENGINEERING) 3. ECT203 Logic Circuit Design (ELECTRONICS AND COMMUNICATION ENGINEERING) 4. EBT205 Logic Circuit and Design (BIOMEDICAL ENGINEERING) 5. ITT203 Logic System Design (INFORMATION TECHNOLOGY) 6. ECT203 Logic Circuit Design (APPLIED ELECTRONICS ENGINEERING) KTU Regulation 2015 1. EE204 Digital Electronics and Logic Design (ELECTRICAL AND ELECTRONICS ENGINEERING) 2. CS203 Switching Theory and Logic Design (COMPUTER SCIENCE ENGINEERING) 3. EC207 Logic Circuit Design (ELECTRONICS AND COMMUNICATION ENGINEERING) 4. EC207 Logic Circuit Design (APPLIED ELECTRONICS ENGINEERING AND INSTRUMENTATION) 5. IC207 Design of Logic Circuit (BIOMEDICAL ENGINEERING) FOR FULL CLASSES : https://youtube.com/playlist?list=PL2UV2EJdMQmgLuA8dwLY7-4DsbNQTsUOg #digitalelectronics#ktu#eee#electrical#cse FOR FULL CLASSES : https://youtube.com/playlist?list=PL2UV2EJdMQmgLuA8dwLY7-4DsbNQTsUOg
Hello Students, Today we are going to discuss about Hexadecimal to Octal Conversion.
In the last class, we have discussed about how to convert Octal to Hexadecimal, Decimal and Without Decimal.
In today's class, we are going to discuss about Hexadecimal to Octal Conversion.
First question, I want to convert 7a to the base 16a into Octal.
Before converting it into Octal, what should we do first?
Step 1. Convert 8a to Binary.
Step 2. Convert 8a to Octal.
There are two steps in Octal to Hexadecimal Conversion.
Step 1. Convert 8a to Binary.
Step 2. Convert 8a to Hexadecimal.
Hexadecimal to Octal Conversion is the same step.
Step 1. Convert 8a to Binary.
Step 2. Convert 8a to Octal.
First question, I want to convert 7a to the base 16a into Octal.
What is the binary of 7a?
0, 1, 1, 1, 8, 4, 2, 1.
Because it is given in Hexadecimal, we are writing in 4-bit terms.
What is a?
a is 10.
10 is a combination of 8 and 2.
Give 1 to it and give 0 to the rest.
10 is 10.
But what do we write for Hexadecimal 1010?
a.
What is the binary value of a?
1, 0, 1, 0.
Write it down.
0, 1, 1, 1, 0, 1, 0.
We got it in Binary.
Now convert it to Octal.
We got it in Binary.
Now convert it to Octal.
To convert it from Binary to Octal,
if it is not a decimal,
we have studied how to group it from right to left in 3-bit.
3-bit 1st group.
3-bit 2nd group.
0, 1, 0, 1, 1, 1, 1, 0.
We have to give a filling of 0.
I gave 0.
Earlier it was 0 and 1.
It became a group.
The next group is 3-bit 1, 1, 1.
Next is 0, 1, 0.
This is what we have to change.
Now 4, 2, 1.
0, 0, 1.
What is the value of 1?
1.
Next is 1, 1, 1.
1, 1, 1.
4 plus 2 is 6.
6 plus 1 is 7.
What is the value of 7?
Next is 0, 1, 0.
0, 1, 0.
What is the value of 2?
1, 7, 2 to the base 8.
What is 1, 7, 2 to the base 8?
Hexadecimal to Octal conversion.
When we convert 8 to the base 16, we get 1, 7, 2 to the base 8.
Let us look at the next question.
Our second question.
I have to convert 8e to the base 16 to octal.
What is the corresponding 4-bit binary value of 8?
Write 8, 4, 2.
8 is 1, 0, 0, 0.
Value is 1, 0, 0, 0.
What is e?
The value we got is e.
The value of e is 14.
What are the values of 14?
We need 8.
What is 8 plus 4?
12.
Then we need 2.
Do we need 1?
No.
We took 0 for that.
Give that value to this.
1, 1, 1, 0.
We have to rewrite everything.
1, 0, 0.
1, 1, 1, 0.
To the base 2.
What do I have to convert it to?
Octal.
When we convert it to octal, what is the number of bits we have to form?
3 bits.
Where do we start?
We start from the right side.
Form the first group of 3 bits.
Form the next group of 3 bits.
Since a value is missing here, I am taking 0 for that.
I wrote the remaining 1 and 0 at the bottom.
Next is 0, 0, 1.
Then 1, 1, 0.
What is the corresponding octal value?
0, 1, 0.
What is the value?
2.
I wrote that.
Next is 0, 0, 1.
What is the value?
1.
I wrote that too.
Next is 1, 1, 0.
What is 4 and 2?
What is 4 plus 2?
6.
2, 1, 6 to the base 8.
This is the answer.
When we convert 8e to the base 16 to octal, what is it?
2, 1, 6 to the base 8.
Now let us look at two decimal cases.
First question.
I have to convert 4b.1f to the base 16 to octal.
What is the corresponding binary of 4?
What is 4?
0, 1, 0, 0.
Next is b.
What is b?
10a, 11b.
What is 11?
8, 2, 1.
8 plus 2 is 10.
10 plus 1 is 11.
What is 4?
I wrote 0 at the bottom of 4.
I wrote its value as 1, 0, 1, 1.
I wrote the decimal as 1.
0, 0, 0, 1.
Next is f.
Isn't it 15?
F has value in hexadecimal.
So, value is 15.
1, 1, 1, 1.
8 plus 2 is 10.
Plus 4 is 14.
Plus 1 is 15.
1, 1, 1, 1.
What is the answer?
I have to convert it to octal.
The previous decimal case is from right to left.
This is binary.
What should we convert it to?
We have to convert it to octal.
How to do it?
Octal is 3-bit.
This is decimal case.
We have to start from the previous decimal number.
From there, we have to convert it to 3-bit from right to left.
We have to do grouping.
Here, we have to give 0.
After the next decimal, we have to convert it to 3-bit from left to right.
Here, we have to give 0.
What is next?
Check the value chart and write.
This is 421 chart.
What is the value of 001?
It is 1.
What is the value of 001?
It is 1.
What is the value of 011?
It is 3.
After the next decimal, we have to give 3.
What is 000?
It is 0.
What is 111?
It is 7.
What is 110?
It is 6.
What is the answer?
It is 113.076 to the base 8.
This is the answer.
Let us check one more question.
Next question.
Let us convert ab.c to the base 16.
It is 8421.
What is a?
It is 10.
It is 1010.
The answer is 1010.
What is b?
It is 11.
What is c?
It is 12.
grouping
group them in the order of 0 to 3
and then
from left to right
group them in the order of 0 to 3
010 is 2
next is 101
101 is 5
next is 011
011 is 3
next is 110
110 is 6
next is 10
110 is 7
next is 8
next is 6
next is 0
253.60
to the base
is 8
and we got the answer
I hope you understood both the cases
what we did now is
hexadecimal to octal conversion
we discussed with decimal and without decimal
cases
we studied binary
we studied octal
we studied hexadecimal
number system conversion
cases
I hope you understood
in the next class
we will see how to convert decimal
to binary
to octal
to hexadecimal
thank you