Binary Code

Parity bit relation with message bits

E.g.  Consider the parity bit Pand we have to find the position of message bits which we’ll cover with this parity bit.

Firstly write the binary equivalents of positions of message bit

Bit1        bit2       bit3        bit4        bit5        bit6        bit7

Parity    parity                    parity

P1                  P2             M1                P3           M2               M3          M4

 001          010         011          100         101         110         111

Now let’s see in the binary equivalent of position of parity bit Pthat at which position we have 1and we see 1 is at LSB so we select the message bits which have positions with 1 at LSB which are M1, Mand M4 So Pbit would check the parity for M1, Mand M4

E.g.  Consider the parity bit Pand we have to find the position of message bits which we’ll cover with this parity bit

We have 1 at second position from left so we choose message bits which have 1 at 2nd position n their position’s binary equivalent. Hence we get message bits MM3 and M4. So Pchecks parity for message bits of MM3 and M4

Similarly we have 1 at 3rd position of Pmessage bits with 1 at 3rd position are  M2MM4

So we now have

PChecks bit number 1,3,5,7

PChecks bit number 2,3,6,7

PChecks bit number 4,5,6,7

These parity bits can be either even or odd parity bits but all  parity bits must be same i.e. all odd or all even

4 Replies to “Parity bit relation with message bits

  1. Pingback: website

Leave a Reply

Your email address will not be published. Required fields are marked *