You are on page 1of 1

T1.14 Assessed Tutorial: A Hamming coded BCD reads p0 p1 b3 p2 b2 b1 b0.

Assuming that even parity is used, what is the actual BCD code? Code: 0100111 c0 = even {b3, b2, b0} = even {0, 1, 1} = 0 = p0 -> E0 = 0 c1 = even {b3, b1, b0} = even {0, 1, 1} = 0 p1 -> E1 = 1 c2 = even {b2, b1, b0} = even {1, 1, 1} = 1 p2 -> E2 = 1 Hence the error position E2 E1 E0 = 110 = 6 Position 6 has an error; it should be 0 instead of 1 The corrected code should be 0000111 Hence, the actual BCD code is 0111

You might also like