Can I just say from the outset that this isn't a homework question as I'm way to old for that. But is related to an open source radio decoder project I'm working on ..
http://github.com/IanWraith/DMRDecode
Part of the radio protocol I'm interested uses a Hamming (7,4,3) code to protect 4 bits in a particular part of a data packet. So for every 4 bits of data it adds 3 parity bits which is easy enough for me even 20 years after I studied this at technical college. The specification document just gives the Hamming generator matrix which is as follows
1000 101
0100 111
0010 110
0001 011
DDDD HHH
1234 210
Now my question is does this mean the following ..
H2 is the XORed product of D1 , D2 , D3
H1 is the XORed product of D2 , D3 , D4
H0 is the XORed product of D1 , D2 , D4
or have I got this horribly wrong ?
Thanks for your time.
Ian