Parity Bit

What is Parity?
Checks whether data has lost or written over when it is moved from one place to another.

What is Parity bit?
A bit with value 0 or 1 that is added to a block of data for error detection purpose.

Error Detection:
Detection of errors caused by noise during transmission from transmitter to receiver.

How data is checked whether transmitter and receiver has same message?
By using Odd, Even parity.

Odd Parity:
Initial value: 1010101 four 1's.
Parity bit: 1.
Value:10101011.
Result five 1's.

Even Parity:
Initial value: 1010101 four 1's.
Parity bit: 0.
Value: 10101010.
Result is four 1's.

How Parity bit is added?
Based on given value.
Type of output we want whether odd or even parity.

Parity Checking:
We send data 1010 as input.
Obtained output is 1001.
It will check how many 1's and 0's no error will be detected.
So it is reliable for small packet size.

How data will be transferred?

Start bit:
0 indicates that data is transmitting.

Stop bit:
Still let know the other end that the connection is still there and still valid.

Uses of Parity bit:
Hardware applications.
Test memory storage device.
Raid levels to achieve redundancy.

RAID:
Redundant array of independent disks.
Way of storing same data in different places on multiple hard disk to protect data in case of failure.

How RAID levels is used in Parity data? 
 If D1 : 01101101.
 D2    :  11010100.
To calculate Parity XOR is performed.
 01101101.
11010100      XOR.
------------------------
10111001 Stored in D3.
If D2 fail reconstructed by D1 and D3.

Parity Generator:
Combination circuit that generates parity bit in generator.

Even Parity Genertor:

Odd Parity Generator:

You Might Also Like