Having a bit of trouble understanding why there are two different truth tables for BCD to Gray.(adsbygoogle = window.adsbygoogle || []).push({});

Using ABCD as the BCD and WXYZ as the Gray,

The way I learned it is:

1) MSB of BCD (A) = MSB of Gray (W)

2) A ⊕ B = X

3) B ⊕ C = Y

4) C ⊕ D = Z

5) Since BCD only ranges from 0 - 9, 10 - 15 become "don't cares"

Following the rules, chart prints:

http://i.imgur.com/IPsPoAS.png

However, while browsing through examples of converting BCD to Gray, I found these:

Example Problem

Example Problem 2

The rules I posted don't work in the Example Problems.

Are there some sort of exceptions that may alter the Gray Code?

**Physics Forums - The Fusion of Science and Community**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# BCD to Gray Code Converter

Loading...

Similar Threads - Gray Code Converter | Date |
---|---|

M-code vs. P-code in GPS | Dec 25, 2017 |

Efficient way to convert kinetic energy to heat | Nov 1, 2016 |

Unsteady vorticity transport equation: codes available? | Apr 24, 2015 |

Capacitor Codes | Dec 15, 2014 |

MATLAB code for Computational Fluid Mechanics | Nov 16, 2014 |

**Physics Forums - The Fusion of Science and Community**