Parity Generator and Checker
Parity Generator and Checker
Transmeter reciver
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-
(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-
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.
While if it has odd number error, then checker will generate error-