Connect with us

Hi, what are you looking for?

Gray code to binary converter
Gray code to binary converter

Digital Logic Circuits

Code Conversion | Gray code to binary converter

Code Conversion, Gray code to binary converter

In this post on a code conversion, we are going to see Gray code to binary conversion using the k-mapping technique.

If you are seeing this topic for the first time, I suggest you have a look at Binary to Gray code conversion. before reading this Gray code to binary converter topic. Gray code to binary using k map

Also read: A complete study on Logic Gates

Gray code to Binary converter:

                      GRAY CODE INPUT                         BINARY OUTPUT
G3 G2 G1 G0 B3 B2 B1 B0
0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 1
0 0 1 1 0 0 1 0
0 0 1 0 0 0 1 1
0 1 1 0 0 1 0 0
0 1 1 1 0 1 0 1
0 1 0 1 0 1 1 0
0 1 0 0 0 1 1 1
1 1 0 0 1 0 0 0
1 1 0 1 1 0 0 1
1 1 1 1 1 0 1 0
1 1 1 0 1 0 1 1
1 0 1 0 1 1 0 0
1 0 1 1 1 1 0 1
1 0 0 1 1 1 1 0
1 0 0 0 1 1 1 1

A Gray code can be converted into a Binary code by using this following strategy.

0 + o = 0,

o + 1 = 1,

1 + 0 = 1,

1 + 1 = 10 ( 1 is carry)

start from the left and use the above strategy and add the digits.

For example,

The code conversion for 2

Gray Code :                        0             0             1                1

Binary code:                       0         0+0=0    0+1=1       1+1= 10(enter only 0, carry 1 should be added with next digit)

Now let us do Karnaugh mapping.

Code Conversion | Excess 3 -> BCD Converter

K-map for B3:

Gray code to binary converter

As the first preference should be given to eight pair element, the above mapping is done as per 8 pair mapping.

The Gray code equivalent for B3 is G3.

Code Converter | BCD -> Excess-3 Converter

K-map for B2:

Gray code to binary converter

The second preference should be given to 4 paired elements if there are no 8 paired elements. As this rule, the above k – mapping is done for 4 pair elements.

The red framed boxes denote the Mapping of elements.

Code Conversion | Binary -> Gray Code Converter

K-map for B1: 

Gray code to binary converter

Next, to 4 pair elements, the preference should be given to 2 pair elements. As per this rule, the k -mapping is done for B1.

Logic Gates | Logic Gate Symbols | diagram | Truth Table 

K-map for B0:

Gray code to binary converter

Next, to 2 pair elements, the preference should be given to 1 element. As per this rule, the k – mapping is done for B0.

Also, read: code-conversion | binary -> gray code converter

Logic Diagram: 

Gray code to binary converter

The following logic diagram is for Gray code to binary converter.

(In the above conversion, there is no necessity for don’t care conditions, but in other conversions like BCD to Excess-3 there is a need for don’t care conditions in order to proceed k-mapping.)

The Different logic diagram can be drawn by using Combination based on simplified outputs.

You may also like: 

Process | wind power plant?

Layout | Thermal Power Plant?

Layout | Nuclear Power Plant?

Layout | Hydro-electric Power Plant?

Methods of Neutral Grounding | Neutral Earthing

 

You May Also Like

Digital Logic Circuits

Excess-3 to BCD converter In this post on code conversions, we are going to see Excess-3 to BCD converter using k map technique.  K-map If you...

Basics

The Scientific Calculator is an advanced version of an ordinary calculator which helps us to solve complex arithmetic problems. The Normal Calculator consists of...

Digital Logic Circuits

BCD to Excess-3 converter In this post on a code converter, we are going to see BCD to Excess-3 converter using the k-mapping technique....

Latest

Tech Updates

If you’re a Microsoft Outlook user, what if suddenly some error occurs and you become unable to access your email account? No sending or...

Business

Executive Search Firms is a kind of professional service firm. These firms help people to find senior boardroom positions. Potential candidates with their special...

CBD

If you’re interested in reaping all the benefits of marijuana without smoking or vaping, making cannabis edibles can be a great alternative. Edible production...

Basics

Has your gun seen some action this season and started to look a little tired? Cleaning your rifle not only makes it look great...

Law

While you are on the road, a car crash can happen at any moment. Even if you were driving carefully, there are chances that...

Tech Updates

If you’re a Microsoft Outlook user, what if suddenly some error occurs and you become unable to access your email account? No sending or...