Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Serial port
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Parity=== {{Main|Parity bit}} ''Parity'' is a method of detecting errors in transmission. When parity is used with a serial port, an extra data bit is sent with each data character, arranged so that the number of 1 bits in each character, including the parity bit, is always odd or always even. If a byte is received with the wrong number of 1s, then it must have been corrupted. Correct parity does not necessarily indicate absence of corruption as a corrupted transmission with an even number of errors will pass the parity check. A single parity bit does not allow implementation of [[error correction]] on each character, and [[communication protocol]]s working over serial data links will typically have higher-level mechanisms to ensure data validity and request retransmission of data that has been incorrectly received. The parity bit in each character can be set to one of the following: * '''None (N)''' means that no parity bit is sent and the transmission is shortened. * '''Odd (O)''' means that the parity bit is set so that the number of 1 bits is odd. * '''Even (E)''' means that the parity bit is set so that the number of 1 bits is even. * '''Mark (M)''' parity means that the parity bit is always set to the mark signal condition (1 bit value). * '''Space (S)''' parity always sends the parity bit in the space signal condition (0 bit value). Aside from uncommon applications that use the last bit (usually the 9th) for some form of addressing or special signaling, mark or space parity is uncommon, as it adds no error detection information. Odd parity is more useful than even parity since it ensures that at least one state transition occurs in each character, which makes it more reliable at detecting errors like those that could be caused by serial port speed mismatches. The most common parity setting, however, is ''none'', with error detection handled by a communication protocol. To allow detection of messages damaged by [[line noise]], electromechanical teleprinters were arranged to print a special character when received data contained a parity error.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)