File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
exercises/intergalactic-transmission Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11# Instructions
22
33A parity bit is simple way of detecting transmission errors.
4- The transmitters and receives can only transmit and receive * exactly * eight bits at a time (including the parity bit).
5- The parity bit is set so that there is an * even * number 1s in each transmission and is always the first bit from the right.
6- So if the receiver receives ` 11000001 ` , ` 01110101 ` or ` 01000000 ` (i.e. a transmission with an odd number of 1 bits), it knows there is an error.
4+ The transmitters and receives can only transmit and receive _ exactly _ eight bits at a time (including the parity bit).
5+ The parity bit is set so that there is an _ even _ number 1s in each transmission and is always the first bit from the right.
6+ So if the receiver receives ` 11000001 ` , ` 01110101 ` or ` 01000000 ` (i.e. a transmission with an odd number of 1 bits), it knows there is an error.
77
88However, messages are rarely this short.
99The message needs to be transmitted in a sequence when they are longer.
@@ -29,7 +29,7 @@ The data in the first transmission in the sequence (`1100000`) has two 1 bits (a
2929The first transmission becomes ` 11000000 ` (or ` C0 ` in hex).
3030
3131The data in the next transmission (` 0000000 ` ) has none (an even number again), so the parity bit is 0 again.
32- The second transmission becomes ` 00000000 ` (or ` 00 ` in hex).
32+ The second transmission becomes ` 00000000 ` (or ` 00 ` in hex).
3333
3434The data for the next two transmissions (` 0111000 ` and ` 0001101 ` ) have three 1 bits.
3535Their parity bits are set to 1 so that they have an even number of 1 bits in the transmission.
You can’t perform that action at this time.
0 commit comments