Uploaded by Bharati Ingale

EXPT 2 Study of Codes

advertisement
Department of Artificial Intelligence & Data Sciences
SE SEM III
DLCA
Tutorial 2: CODES
1
Represent (29)10 into excess – 3 code and Gray code
29/2
14/2
7/2
3/2
1 /2
2
3
HW5
HW6
HW7
14
7
3
1
0
1 LSB
0
1
1
1MSB
Step1: Convert (29)10 into binary number ==(11101)2
Step 2: Convert (29)10 into excess – 3 code = (0101 1100)Excess - 3
Step 3: Convert binary code into gray code == (10011)GRAY
Represent (55)10 into excess – 3 code and Gray code (110111)2 (1000 1000)EXCESS -3(101100)GRAY
1101 11
1 0 1 1 00
Convert the following decimal numbers to BCD, excess – 3 and Gray code
i.
35 --- to BCD, excess – 3 and Gray code 8421
(35)10 =(0011 0101)BCD =(01101000)excess -3 =(100011)2 =(110010)gray
ii.
174.45---- to BCD, excess – 3 and Gray code
(174.45)10 =(0001 0111 0100.0100 0101)BCD =(0011 1010 0111.0111 1000)excess -3
=(100010110.011100)2 =(110011101.010010)gray
iii.
428--- to BCD, excess – 3 and Gray code
0100 0010 1000 0111 0101 1011 110101100
101111010
iv.
2479 == to BCD, excess – 3
Represent (52)10 into excess – 3 code and Gray code
Represent (79)10 into excess – 3 code and Gray code
Convert the 2479 decimal numbers to BCD and excess – 3
[Type here]
Download