parity checking 奇偶校验 笔记
2011-09-16 16:33
176 查看
1. 检查 一个传输单位(7,8 bits)中,被设置为1的位数,按照位数是奇数或者偶数来设置校验位,并把校验位添加到传输单位的后面。
2. even parity: If the number of set bits is even, it sets the parity bit to 0; if the number of set bits is odd, it sets the parity bit to 1.
from:http://www.webopedia.com/TERM/P/parity_checking.html
parity checking
In communication, parity checking refers to the use of parity
bits to check that data has been transmitted accurately. The parity bit is added to every data unit (typically seven or eight bits ) that are transmitted. The
parity bit for each unit is set so that all
bytes have either an odd number or an even number of set bits(值为1的位).
Assume, for example, that two
devices are communicating with even parity (the most common form of parity checking). As the transmitting device sends data, it counts the number of set bits in each group of seven bits. If
the number of set bits is even, it sets the parity bit to 0; if the number of set bits is odd, it sets the parity bit to 1. In this way, every byte has an even number of set bits. On the receiving side, the device checks each byte to make sure that
it has an even number of set bits. If it finds an odd number of set bits, the receiver knows there was an error during transmission.
The sender and receiver must both agree to use parity checking and to agree on whether parity is to be odd or even. If the two sides are not
configured with the same
parity sense, communication will be impossible.
Parity checking is the most basic form of
error detection in communications. Although it detects many errors, it is not foolproof, because it cannot detect situations in which an even number of bits in the same data unit are changed due to electrical
noise. There are many other more sophisticated
protocols for ensuring transmission accuracy, such as
MNP and
CCITT V.42.
Parity checking is used not only in communications but also to test
memory storage devices. Many
PCs, for example, perform a parity check on memory every time a byte of data is read.
2. even parity: If the number of set bits is even, it sets the parity bit to 0; if the number of set bits is odd, it sets the parity bit to 1.
from:http://www.webopedia.com/TERM/P/parity_checking.html
parity checking
In communication, parity checking refers to the use of parity
bits to check that data has been transmitted accurately. The parity bit is added to every data unit (typically seven or eight bits ) that are transmitted. The
parity bit for each unit is set so that all
bytes have either an odd number or an even number of set bits(值为1的位).
Assume, for example, that two
devices are communicating with even parity (the most common form of parity checking). As the transmitting device sends data, it counts the number of set bits in each group of seven bits. If
the number of set bits is even, it sets the parity bit to 0; if the number of set bits is odd, it sets the parity bit to 1. In this way, every byte has an even number of set bits. On the receiving side, the device checks each byte to make sure that
it has an even number of set bits. If it finds an odd number of set bits, the receiver knows there was an error during transmission.
The sender and receiver must both agree to use parity checking and to agree on whether parity is to be odd or even. If the two sides are not
configured with the same
parity sense, communication will be impossible.
Parity checking is the most basic form of
error detection in communications. Although it detects many errors, it is not foolproof, because it cannot detect situations in which an even number of bits in the same data unit are changed due to electrical
noise. There are many other more sophisticated
protocols for ensuring transmission accuracy, such as
MNP and
CCITT V.42.
Parity checking is used not only in communications but also to test
memory storage devices. Many
PCs, for example, perform a parity check on memory every time a byte of data is read.
相关文章推荐
- 备战考研算法笔记(二) 奇偶校验
- stm8s串口奇偶校验学习笔记
- TCP_IP协议详解学习笔记_卷1_第12章_多播和广播
- 笔记:解决文件互相包含问题的小方法
- 自己学正则时做的笔记,其实正则也不难哦
- 深入浅出之多态分析(笔记二)
- android学习零碎笔记
- 核心JavaScript基础-1(学习笔记)
- 《Javascript高级程序设计》(第2版)学习笔记14--Form表单
- cisco 配置笔记(1)上网配置
- 读《C程序设计语言》笔记8
- IBM大型机技术学习笔记(一) ——大型机发展历史和服务简介
- FPGA学习笔记6-Quartus II中的TCL脚本(翻译)
- SharePoint学习笔记001:访问站点列表碰到的一些问题
- C++笔记15之函数对象
- ExtJs4 笔记(6) Ext.MessageBox 消息对话框
- Linux 学习笔记(三)超级用户
- Java 核心技术卷Ⅰ笔记
- 关于c# 静态类的笔记
- Oracle笔记(一) Oracle简介及安装