|
Single Bits
A parity bit is a binary digit that indicates whether the number of bits with value of one in a given set of bits is even or odd. Parity bits are used as the simplest error detecting code. more...
Home
Building & Hardware
Dining & Bar
Electrical & Solar
Food & Wine
Heating, Cooling & Air
Home Security
Kitchen
Major Appliances
Outdoor Power Equipment
Plumbing & Fixtures
Tools
Air Compressors
Air Tools
Flashlights
Generators, Home-Use
Hand Tools
Meters, Testers & Probes
Other Tools
Power Tools
Batteries & Chargers
12V
14.4V
18V
9.6V
Other Batteries & Chargers
Buffers, Polishers
Combination Sets
Corded Drills
Black & Decker
Bosch
Craftsman
DeWalt
Makita
Milwaukee Electric
Other Drill Drivers
Porter Cable
Angle Drills
Drill Drivers
Drill Presses
Impact Drivers & Wrenches
Cordless Drills
13.2 volt & Lower
13.2 volt & Lower Black &...
13.2 volt & Lower Craftsman
13.2 volt & Lower DeWalt
13.2 volt & Lower Makita
13.2 volt & Lower Other...
14.4 - 16.8 vol Craftsman
14.4 - 16.8 vol DeWalt
14.4 - 16.8 vol Makita
14.4 - 16.8 vol Other Brands
14.4 - 16.8 volt
18 volt
18 volt Craftsman
18 volt DeWalt
18 volt Makita
18 volt Milwaukee
18 volt Other Brands
18 volt Ryobi
19.2 volt & Higher
19.2 volt & Higher Craftsman
19.2 volt & Higher DeWalt
19.2 volt & Higher Makita
19.2 volt & Higher Other...
Other Voltages
Drill Bits
Multi-Bit Sets
Single Bits
Grinders
Angle Grinders
Bench Grinders
Grinding Wheels &...
Other Grinders
Heat Guns
Jacks & Stands
Joiners
Biscuit Joiners
Standard Joiners
Lathes & Accessories
Nail and Staple Guns,...
Finishing
Framing
Other
Staple, Brad
Other Power Tools
Planers
Rotary Tools
Routers, Bits, & Accessories
Multi-Bit Sets
Router Tables
Routers
Single Router Bits
Sanders & Accessories
Belt Sanders
Finishing, Detail Sanders
Orbital Sanders
Other Sanders & Accessories
Sanding Belts
Sanding Disks
Saws, Blades, & Accessories
Band Saws
Circular, Table & Miter...
Corded Circular Saws
Cordless Circular Saws
Jig, Scroll Blades
Jig, Scroll Saws
Miter, Chop Saws
Other
Other Saw Blades
Reciprocating Blades
Reciprocating Saws
Saw Blades
Table Saws
Tile Saws
Screwdrivers
Sharpeners
Winches
Safety, Protective Gear
Tie Downs, Straps
Tool Boxes, Belts & Storage
Welding & Soldering Tools
Vacuum Cleaners &...
Wholesale Lots
Window Treatments
There are two types of parity bits: even parity bit and odd parity bit. An even parity bit is set to 1 if the number of ones in a given set of bits is odd (making the total number of ones even). An odd parity bit is set to 1 if the number of ones in a given set of bits is even (making the total number of ones odd). Even parity is actually a special case of a cyclic redundancy check (CRC), where the 1-bit CRC is generated by the polynomial x+1.
Error detection
If an odd number of bits (including the parity bit) are changed in transmission of a set of bits then parity bit will be incorrect and will thus indicate that an error in transition has occurred. Therefore, parity bit is an error detecting code, but is not an error correcting code as there is no way to determine which particular bit is corrupted. The data must be discarded entirely, and re-transmitted from scratch. On a noisy transmission medium a successful transmission could take a long time, or even never occur. Parity does have the advantage, however, that it is about the best possible code that uses only a single bit of space and it requires only a number of XOR gates to generate. See Hamming code for an example of an error-correcting code.
There is a limitation to parity schemes. A parity bit is only guaranteed to detect an odd number of bit errors. If an even number of bits have an error, the parity bit records the correct number of ones, even though the data is corrupt. (See also error detection and correction.)
For example, our parity bit can be computed as follows assuming we are sending a simple 4-bit value 1001:
1^0^0^1 = 0 (Computing Even Parity)
This mechanism enables the detection of single bit errors, because if one bit gets flipped due to line noise, there will be an incorrect number of ones in the received data. Consider the following assuming even parity:
B computes the parity:
1^1^0^1 = 1
The parity bits do not match (even parity the XOR result should be 0), indicating an error.
Usage
Because of its simplicity, parity is used in many hardware applications where an operation can be repeated in case of difficulty, or where simply detecting the error is helpful. For example, the SCSI bus uses parity to detect transmission errors, and many microprocessor instruction caches include parity protection. Because the I-cache data is just a copy of main memory, it can be thrown away and re-fetched if it is found to be corrupted.
In serial data transmission, a common format is 7 data bits, an even parity bit, and one or two stop bits. This format neatly accommodates all the 7-bit ASCII characters in a convenient 8-bit byte. Other formats are possible; 8 bits of data plus a parity bit can convey all 8-bit byte values.
Read more at Wikipedia.org
|
|