Extra, redundant bits are added to the transmitted data so that the receiving end can detect errors and maybe correct them as well.
A systematic way of representing data using specific patterns of bits.
Usually, redundant bits are included with the original data. To enable the detection, and sometimes correction, of errors that may occur during transmission.
Separability
Section titled “Separability”When A code has separate fields for the data and the code bits.
When a code is separable, the decoding is easier.
Parity
Section titled “Parity”Simplest separable code scheme. Includes data bits and parity bit. Parity bit is added so that the total number of 1’s in the code ( bits) is even or odd.
2D Parity
Section titled “2D Parity”Extended version of parity bit for a matrix of bits. Parity bits are added for each row and each column. Can find a unique erroneous bit.
2D parity is commonly used in memory systems and communication protocols where simple error detection and correction are needed.
Hamming Distance
Section titled “Hamming Distance”Between 2 code words, the number of differing bits in matching positions.
Hamming Code
Section titled “Hamming Code”Developed based on hamming distance concept. Assigns multiple parity bits to cover each bit of data. Many hamming code schemes exist. For simplicity, (7,4) single error correcting (SEC) Hamming Code will be discussed here.
Suppose a hamming code has data bits and parity bits. The following equation must be satisfied:
Because parity bits can be used to denote states. Each bit position in the word requires a state, and another additional one to denote no errors.
Parity bits are placed at positions for .
(7,4) SEC Hamming Code
Section titled “(7,4) SEC Hamming Code”Uses 7 bit code (4 data bits + 3 parity bits). Can correct single bit errors.
Short for Cyclic Redundancy Checksum. A non-separable code. A divisor polynomial (of bits) is used. The message is considered to be a polynomial. Binary division is done for message (after padding with zeros), with the divisor. Remainder is appended to the message.