Error Detection Correction I
Error Detection Correction I
TECHNIQUES
WHAT IS ERROR?
Error is a condition when the output information does not match with
the input information. During transmission, digital signals suffer from
noise that can introduce errors in the binary bits travelling from one
system to other. That means a 0 bit may change to 1 or a 1 bit may
change to 0.
ERROR-DETECTING CODES
In the case of odd parity, the coding is reversed. For a given set of bits, if the count of bits
with a value of 1 is even, the parity bit value is set to 1 making the total count of 1's in the
whole set (including the parity bit) an odd number. If the count of bits with a value of 1 is
odd, the count is already odd so the parity bit's value is 0.
2
1 0 1 1 1 0 1 1
Row Parities
0 1 1 1 0 0 1 0
3
4 0 1 0 1 0 0 1 1
0 1 0 1 0 1 0 1
Column Parities
Wrapped sum 1 1
1 Check sum 0
EXAMPLE
• Suppose the following block of 16 bits is to be sent using a
checksum of 8 bits.
• 10101001 00111001
• The numbers are added using one’s complement
• 10101001
• 00111001
------------
Sum 11100010
• Checksum 00011101
• The pattern sent is 10101001 00111001 00011101
• Now suppose the receiver receives the pattern without any error
10101001 00111001 00011101
• When the receiver adds the three sections, it will get all 1s, which, after
complementing, is all 0s and shows that there is no error.
10101001
00111001
00011101
Sum 11111111
Complement 00000000 means that the pattern is OK.
EX. 1.