The parity method is calculated over byte, word or double word. When number of ones is even then parity bit is set to 1. Odd Parity: Checks if there is an odd number of ones if so, parity bit is zero.When the number of ones is odd then parity bit is set to 1. Even parity: Checks if there is an even number of ones if so, parity bit is zero.Thus if we consider 8-bit data, adding the parity bit will make it 9 bit long.Īt the receiver side, once again parity is calculated and matched with the received parity (bit 9), and if they match, data is ok, otherwise data is corrupt. Based on this information an additional bit is appended to the original data. In parity codes, every data byte, or nibble (according to how user wants to use it) is checked if they have even number of ones or even number of zeros. To detect these data errors, we use special codes, which are error detection codes. When data is transmitted from one point to another, like in wireless transmission, or it is just stored, like in hard disks and memories, there are chances that data may get corrupted. Below are a few examples of codes which permit error detection and error correction after detection. For reliable transmission and storage of digital data, error detection and correction is required.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |