Error Detection Codes The Binary I
Error Detection Codes The Binary I
another location through some communication medium. The external noise can change
bits from 1 to 0 or 0 to 1.This changes in values changes the meaning of actual
message and is called error. For efficient data transfer, there should be an error
detection and correction codes. An error detection code is a binary code that
detects digital errors during transmission. To detect error in the received
message, we add some extra bits to the actual data.
1. Parity Bit
2. CheckSum
Parity Bit Method : A parity bit is an extra bit included in binary message to make
total number of 1’s either odd or even. Parity word denotes number of 1’s in a
binary string. There are two parity system – even and odd parity checks.
1. Even Parity Check: Total number of 1’s in the given data bit should be even. So
if the total number of 1’s in the data bit is odd then a single 1 will be appended
to make total number of 1’s even else 0 will be appended(if total number of 1’s
are already even). Hence, if any error occurs, the parity check circuit will detect
it at the receiver’s end. Let’s understand this with example, see the below diagram
:
In the above image, as we can see the data bits are ‘1011000’ and since this is
even parity check that we’re talking about, 1 will be appended as the parity bit
(highlighted in red) to make total count of 1’s even in the data sent. So here, our
parity bit is 1. If the total count of 1 in the given data bits were already even,
then 0 would’ve been appended.