Professional Documents
Culture Documents
Hamming Code: N (Where N 0.1.2 .N) I.E
Hamming Code: N (Where N 0.1.2 .N) I.E
7 6 5 4 3 2 1
• P1 ------> D3 D5 D7
• P2------> D3 D6 D7
• P4------> D5 D6 D7
Cont..
1 0 1 0 1 0 1
Cont..
1 0 1 1 0 1 1
• checking for P4: D5D6D7 = 101 and P4 value is 1, here total number of 1’s is
odd but it is even parity, so it means here is an error. Whenever this situation
comes put the parity bit as 1. So, P4 = 1.
• Checking for P2: D3D6D7 = 001, P2 = 1, here total number of 1’s is even so no
error. As, there is no error, so P2 = 0.
• Checking for P1: D3D5D7 = 011, P1 = 1, here total number of 1’s is odd, so
error, therefore, P1= 1.
Cont..
• Now P4P2P1 = (101)2 = (5)10 which means that fifth bit contains an error.
• D7 D6 D5 P4 D3 P2 P1
1 0 1 1 0 1 1
Bit No: 7 6 5 4 3 2 1
1 0 0 1 0 1 1