Click here to Skip to main content
15,897,273 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,
What is mean by parity scheme in DCB? what is the use of parity scheme? Please explain me.
Posted

1 solution

Parity is a simple error checking algorithm which was widely used for data transfer, and still is for serial communications. It consists of a single extra bit of data that is sent with each value. Generally, parity is worked out on a single character or byte based value - other checking is done on a message basis. Parity can be one of three states: odd, even, or none.

To work out the parity, count all the "one" bits in the original value:
Odd parity is when the count should be an odd number. If it is even, set the parity bit to one otherwise set it to zero
Even parity is when the count should be an even number. If it is odd, set the parity bit to one otherwise set it to zero
With no parity (or none) no extra bit is transferred.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900