Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
A sensor sends each reading as seven data bits, 1011001. The link uses even parity, and the parity bit is placed in front of the data.
Interference can cause data loss, data gain and data change. With even parity the parity bit makes the number of 1s in the byte even; with odd parity it makes it odd. The receiver counts the 1s in each byte: the wrong parity means an error. An even number of flipped bits is not detected.
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.
Step 1. Count. 1011001 has ones.
Step 2. The parity bit. is already even. To keep the total even, the parity bit is .
Step 3. The byte. Put the parity bit in front: 01011001.
Check. The byte 01011001 has ones, an even number.
What if? With odd parity the parity bit would be , and the byte would be 11011001.
Answer: (a) . (b) . (c) 01011001.
Log in to join the discussion.
Loading…