0% found this document useful (0 votes)
77 views9 pages

Parity Generator and Checker

Parity is used to detect single bit errors during data transmission. There are two types of parity - even parity and odd parity. Even parity ensures the total number of 1s in the transmitted data stream (including the parity bit) is even. Odd parity ensures the total number of 1s is odd. A parity checker at the receiver compares the parity of the received data to the transmitted parity and can detect single bit errors.

Uploaded by

anythingsomuch
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
77 views9 pages

Parity Generator and Checker

Parity is used to detect single bit errors during data transmission. There are two types of parity - even parity and odd parity. Even parity ensures the total number of 1s in the transmitted data stream (including the parity bit) is even. Odd parity ensures the total number of 1s is odd. A parity checker at the receiver compares the parity of the received data to the transmitted parity and can detect single bit errors.

Uploaded by

anythingsomuch
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Parity : -

• It is concept to detect errors.


• A single bit error is detected by it.

Transmeter reciver

✓ Signals are transmitted through the channel from the


transmitter and received by receiver.
✓ Assume we are transmitting 4-bit signal and because of noise
some bit changes 0 to 1 and 1 to 0. Then it only can be detect
by parity.
✓ Parity is an extra bit which we send a bit-stream(signal) and
also an extra bit. (This extra bit tells us total no. of 1’s in
transmitted signal).
There are two types of parity:-

1. Even parity:- If, in even parity the original signal has


odd number of 1’s, then the extra bit will be 1. So that the
number of total 1’s can be made even.

Ex-
0 100 0 extra bit
If, in even parity the original signal has even number of 1’s, then the
extra bit will be 0. So that the number of total 1’s can be made even.
Ex-

0110 0 extra bit

(Total no. of 1’s in the code, including the parity bit should be even)

2. Odd parity:- In the odd parity, if the original signal has odd no.
of 1’s, then the extra bit will be 0. So that the no. of total 1’s can be
odd.
Ex-

0100 0 extra bit

In the odd parity, if the original signal has even no. of 1’s, then the
extra bit will be 1. So that the no. of total 1’s can be odd.

Ex-
1100 1 extra bit

(Total no. of 1’s in the code, including the parity bit should be odd)
parity checker

parity checker check the parity of the received code and decide
whether the received code is correct or not.

odd parity checker-

✓ Including the parity bit, The code is transmitted from the


transmitter side to the receiver. But due to noise one bit get
flipped at receiver side.
✓ Now at the receiver side, the parity checker will check the
parity of the received code. And it find that the parity of the
received code is even.
✓ Since we are using odd parity, so it will generate the error
even parity checker-

✓ Similarly including the parity bit, The code is transmitted from


the transmitter side to the receiver. But due to noise one bit
get flipped at receiver side.
✓ Now at the receiver side, the parity checker will check the
parity of the received code. And it find that the parity of the
received code is odd.
✓ Since we are using even parity, so it will generate the error.
If we have two number of errors, then as per the parity checker
circuit the overall parity of the received code is equal to even. And
since we are using even parity checker, so it will not generate any
error.

While if it has odd number error, then checker will generate error-

➢ Mean if the parity checker circuit is even, then it can detect


only odd number errors.
➢ And if it is odd, then it can detect only even number errors.
{error – when no. of 1’s are odd}
If we have error, the parity checker becomes 1, Otherwise 0.
Ic 74180 can be used
as parity generator
and checker.

{error – when no. of 1’s are even}


If we have error, the parity checker becomes 1, Otherwise 0.

You might also like