0% found this document useful (0 votes)
85 views

Conversion From Gray Code To Binary Code and Vice Versa A015d46a

The document discusses conversion between Gray code and binary code. It provides the formulas and examples for converting a Gray code to binary and vice versa. Specifically, it gives the step-by-step method for determining each binary digit based on the previous digits and corresponding Gray code digit. Tables with examples of conversions between the number systems are also included. The document aims to help students prepare for the GATE exam by understanding these important conversion concepts.

Uploaded by

Md Shafdar Ali
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
85 views

Conversion From Gray Code To Binary Code and Vice Versa A015d46a

The document discusses conversion between Gray code and binary code. It provides the formulas and examples for converting a Gray code to binary and vice versa. Specifically, it gives the step-by-step method for determining each binary digit based on the previous digits and corresponding Gray code digit. Tables with examples of conversions between the number systems are also included. The document aims to help students prepare for the GATE exam by understanding these important conversion concepts.

Uploaded by

Md Shafdar Ali
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Conversion from Gray Code to Binary

Code and Vice Versa


An important step in your preparation for GATE EC or GATE EE is the study of
Conversion Codes. To understand the Basics of Conversion, you need to be familiar with
the concepts of Conversion from Gray Code to Binary Code and Vice Versa. Use these
GATE Study Material to help you in your GATE 2019 preparation. In these free GATE
Notes you can learn about Binary Code and its Conversions. You can also download these
free notes in PDF. These notes are also useful for other exams like IES, BSNL, ECIL,
DRDO, BARC, etc.

Event Details Specifications


Exam Name GATE (Graduate Aptitude Test in Engineering)
Conducting Body IIT Madras
Exam Level National Level Examination
Exam Mode Online
Exam Duration 180 minutes (3 hours)
Language English

Conversion from Gray Code to Binary Code

Let Gray Code be g3 g2 g1 g0. Then the respective Binary Code can be obtained as follows:

1|P ag e
i.e.

b3 = g 3

b2 = b3 ⊕ g2

b1 = b2 ⊕ g1

b0 = b 1 ⊕ g 0

Example:

Gray Code: g3 g2 g1 g0 = 1 0 0 1 then Binary Code: b3 b2 b1 b0

b3 = g 3 = 1

b2 = b3 ⊕ g2 = 1 ⊕ 0 = 1

b1 = b2 ⊕ g1 = 1 ⊕ 0 = 1

b0 = b1 ⊕ g0 =1 ⊕ 1 = 0

2|P ag e
∴ Final Binary Code: 1 1 1 0

Conversion from Binary code to Gray Code

Let Binary code be b3 b2 b1 b0. Then the respective Gray Code can be obtained is as
follows

i.e.

g3 = b3

g2 = b3 ⊕ b2

g1 = b2 ⊕ b1

g0 = b1 ⊕ b0

Example:

Binary Code: b3 b2 b1 b0 = 1 1 1 0 Gray Code: g3 g2 g1 g0

3|P ag e
g3 = b3 = 1

g2 = b3 ⊕ b2 = 1 ⊕ 1 = 0

g1 = b2 ⊕ b1 = 1 ⊕ 1 = 0

g0 = b1 ⊕ b0 =1 ⊕ 0 = 1

∴ Final Gray code: 1 0 0 1

Conversion Table from Binary to Gray Code:

Decimal Binary Gray


0 0000 0000
1 0001 0001
2 0010 0011
3 0011 0010
4 0100 0110
5 0101 0111
6 0110 0101
7 0111 0100
8 1000 1100
9 1001 1101
10 1010 1111
11 1011 1110
12 1100 1010
4|P ag e
13 1101 1011
14 1110 1001
15 1111 1000

Liked this article on Conversion from Gray Code to Binary Code and Vice Versa? Let us
know in the comments! Here are more articles that you may like –

Partial Differentiation
Mean Value Theorem
Differentiation
Limits Continuity & Differentiability
Laplace transform
State Space Analysis
Designing and Tuning in Control Systems
Time signal transformation
Vector integration
Vector calculus
Integration
Maxima & Minima

For more information on GATE 2019, you can click the links given below

Time Management Tips for GATE GATE 2019 Exam Schedule Out
2019
GATE Virtual Calculator 2019 PSUs Recruitment Through GATE
2019

5|P ag e

You might also like