crc任意位生成多项式 任意位运算 自适应算法 循环冗余校验码(CRC,Cyclic Redundancy Code)是采用多项式的 编码方式,这种方法把要发送的数据看成是一个多项式的系数 ,数据为bn-1bn-2…b1b0 (其中为0或1),则其对应的多项式为: bn-1Xn-1+bn-2Xn-2+…+b1X+b0 例如:数据“10010101”可以写为多项式 X7+X4+X2+1。 循环冗余校验CRC 循环冗余校验方法的原理如下: (1) 设要发送的数据对应的多项式为P(x)。 (2) 发送方和接收方约定一个生成多项式G(x),设该生成多项式 的最高次幂为r。 (3) 在数据块的末尾添加r个0,则其相对应的多项式为M(x)=XrP(x) 。(左移r位) (4) 用M(x)除以G(x),获得商Q(x)和余式R(x),则 M(x)=Q(x) ×G(x)+R(x)。 (5) 令T(x)=M(x)+R(x),采用模2运算,T(x)所对应的数据是在原数 据块的末尾加上余式所对应的数据得到的。 (6) 发送T(x)所对应的数据。 (7) 设接收端接收到的数据对应的多项式为T’(x),将T’(x)除以G(x) ,若余式为0,则认为没有错误,否则认为有错。
上传时间: 2014-11-28
上传用户:宋桃子
Visual C Project Case Navigation source code ,Visual C++,source in ebook.
标签: Visual source Navigation Project
上传时间: 2014-12-20
上传用户:磊子226
本程式為使用VHDL撰寫的I2C controller modular, 使用者可以輕易的套用, 方便控制i2C的硬件. 也可以從code style了解I2C的spec. 動作模式. 極適用於初學者.
标签: controller I2C modular style
上传时间: 2013-12-24
上传用户:fnhhs
C++ Standard Library, A Tutorial and Reference source code
标签: Reference Standard Tutorial Library
上传时间: 2015-08-09
上传用户:2467478207
code.lpc23xx.peripherals.uvision.zip LPClpc23xx的外设软件包,官方下载,可以借鉴
标签: peripherals uvision LPClpc code
上传时间: 2013-11-25
上传用户:亚亚娟娟123
Program to simulate Rayleigh fading using a p-th order autoregressive model AR(p) according to % Baddour s work: "Autoregressive modeling for fading channel simulation"
标签: autoregressive according simulate Rayleigh
上传时间: 2013-12-02
上传用户:tb_6877751
VB code for acii help
上传时间: 2014-08-28
上传用户:hphh
VB code for plot a graph
上传时间: 2014-01-06
上传用户:hakim
Messy GA code in C (for IlliGAL Report 91008.)
标签: IlliGAL Report Messy 91008
上传时间: 2013-11-29
上传用户:气温达上千万的
Simple GA code (Pascal code from Goldberg, D. E. (1989), Genetic Algorithms in Search, Optimization, and Machine Learning.)
标签: D. E. code Optimization
上传时间: 2014-12-07
上传用户:wlcaption