in Digital Logic edited by
1,220 views
0 votes
0 votes

x1= 10101010

x2=11111111



x1x2------>EX-OR------>GRAY CODE--------->(Output in decimal)????

in Digital Logic edited by
1.2k views

4 Comments

if we consider inputs as SIGNED NUMBER then ??
0
0
then also final answer(127) will not change since MSB=0
0
0
exactly ,

(10101010)(11111111)'+(10101010)'(11111111)

(1010101010)(00000000)+(01010101)(11111111)

0+(0101010101)+01010101

ex-or=01010101

now convert it into gray =01111111

(01111111)gray = + (127) base 10

correct ??????
0
0

2 Answers

0 votes
0 votes
(127)10

1 comment

yes i am also getting 127 as answer
0
0
0 votes
0 votes
x1 xor x2 = 01010101

Gray equivalent of x1 xor x2 is 01111111

convert the gray code (01111111) into decimal code =(127)$_{10}$