Above answer is with the parity bits + message included. But for message answer will be 0xAB.
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
1 |
1 |
1 |
0 |
0 |
1 |
0 |
1 |
1 |
1 |
1 |
1 |
P1(parity) |
P2 |
M1(message) |
P3 |
m2 |
m3 |
m4 |
P4 |
m5 |
m6 |
m7 |
m8 |
Now, I'm taking the even parity.
P1 = { 1,3,5,7,9,11} = 1 1 0 0 1 1 ( EVEN)
P2 ={2,3,6,7,10,11} = 1 1 1 0 1 1 ( ODD)
P3 = {4,5,6,7,12} = 0 0 1 0 1 ( EVEN)
P4 = {8,9,10,11,12} = 1 1 1 1 1 ( ODD)
C4 C3 C2 C1
1 0 1 0 = ( 10th bit position have to be change)
then message with parity will be ==> 0xE5B.
Message = 0xAB.