- #1
Differentiate1
- 34
- 0
Having a bit of trouble understanding why there are two different truth tables for BCD to Gray.
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?
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?
Last edited: