1. Examples
1. (11100)Gray Code = ( ? )16
Solution: (11100)GrayCode = (_______)16
1. Convert GrayCode to binary Gray code : `11100`
Method-1: (Gray code to Binary) `b_4=g_4=1`
`b_3=b_4 o+ g_3=1 o+ 1=0`
`b_2=b_3 o+ g_2=0 o+ 1=1`
`b_1=b_2 o+ g_1=1 o+ 0=1`
`b_0=b_1 o+ g_0=1 o+ 0=1`
`:.` Binary : `10111`
Method-2: (Gray code to Binary)`g_4` `1` | | `g_3` `1` | | `g_2` `1` | | `g_1` `0` | | `g_0` `0` | Gray code | `darr` | | `darr` | | `darr` | | `darr` | | `darr` | | `1` | `rarr` | `0` | `rarr` | `1` | `rarr` | `1` | `rarr` | `1` | | `b_4` `=g_4` | | `b_3` `=b_4 o+ g_3` | | `b_2` `=b_3 o+ g_2` | | `b_1` `=b_2 o+ g_1` | | `b_0` `=b_1 o+ g_0` | Binary code |
`:.` Binary : `10111`
2. Convert binary to hexadecimal (10111)2 = (_______)16
`:.` (10111)2 = (17)16
`:.` (11100)GrayCode = (17)16
2. (101100)Gray Code = ( ? )16
Solution: (101100)GrayCode = (_______)16
1. Convert GrayCode to binary Gray code : `101100`
Method-1: (Gray code to Binary) `b_5=g_5=1`
`b_4=b_5 o+ g_4=1 o+ 0=1`
`b_3=b_4 o+ g_3=1 o+ 1=0`
`b_2=b_3 o+ g_2=0 o+ 1=1`
`b_1=b_2 o+ g_1=1 o+ 0=1`
`b_0=b_1 o+ g_0=1 o+ 0=1`
`:.` Binary : `110111`
Method-2: (Gray code to Binary)`g_5` `1` | | `g_4` `0` | | `g_3` `1` | | `g_2` `1` | | `g_1` `0` | | `g_0` `0` | Gray code | `darr` | | `darr` | | `darr` | | `darr` | | `darr` | | `darr` | | `1` | `rarr` | `1` | `rarr` | `0` | `rarr` | `1` | `rarr` | `1` | `rarr` | `1` | | `b_5` `=g_5` | | `b_4` `=b_5 o+ g_4` | | `b_3` `=b_4 o+ g_3` | | `b_2` `=b_3 o+ g_2` | | `b_1` `=b_2 o+ g_1` | | `b_0` `=b_1 o+ g_0` | Binary code |
`:.` Binary : `110111`
2. Convert binary to hexadecimal (110111)2 = (_______)16
`:.` (110111)2 = (37)16
`:.` (101100)GrayCode = (37)16
This material is intended as a summary. Use your textbook for detail explanation. Any bug, improvement, feedback then
|