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-01-16
上传用户:hphh
本人把这次课程设计作为培养实践能力的初次练兵,以数字通信中的编码器、译码器及锁存器为核心设计了八路抢答器。
标签: 实践
上传时间: 2015-10-27
上传用户:leehom61
本方案是利用8255芯片,用汇编语言编写的4人抢答器代码
上传时间: 2015-11-02
上传用户:1079836864
用AVR Atmega128驱动多串口芯片Tl164C554A的程序,四路同时收发正常
上传时间: 2015-11-02
上传用户:R50974
ad转换的程序,c8051f021老程序,18B20测温00,抢答器程序,pwm_pac.c。
上传时间: 2015-12-19
上传用户:水口鸿胜电器
We have a group of N items (represented by integers from 1 to N), and we know that there is some total order defined for these items. You may assume that no two elements will be equal (for all a, b: a<b or b<a). However, it is expensive to compare two items. Your task is to make a number of comparisons, and then output the sorted order. The cost of determining if a < b is given by the bth integer of element a of costs (space delimited), which is the same as the ath integer of element b. Naturally, you will be judged on the total cost of the comparisons you make before outputting the sorted order. If your order is incorrect, you will receive a 0. Otherwise, your score will be opt/cost, where opt is the best cost anyone has achieved and cost is the total cost of the comparisons you make (so your score for a test case will be between 0 and 1). Your score for the problem will simply be the sum of your scores for the individual test cases.
标签: represented integers group items
上传时间: 2016-01-17
上传用户:jeffery
PLC制作,实用抢答器。和电视台综艺节目上用是功能一致
标签: PLC
上传时间: 2013-12-03
上传用户:dengzb84
一个圣诞彩灯控制芯片的vrilog源代码,可以综合,经过FPGA验证,产生四路输出,控制四路彩灯,有跑马闪,星闪等多种功能
上传时间: 2016-04-01
上传用户:王楚楚
角度传感器KMZ241andUZZ9000和fas-g,FAS-G结合了一个角速度陀螺仪和两个正交DC 加速度计, 多路(復用)器, 12 位A/D变换器,微控制器, 和D/A变换器以提供在动态和静态环境中和倾斜度成线性比例的模拟电压.
上传时间: 2016-04-11
上传用户:vodssv
许多比赛中,为了准确 、公正、直观判断出第一抢答者,通常设计一台抢答器。通过抢答器的数显、灯光和音响等手段指示第一抢答者。同时,还可以设置定时、记分、犯规以及奖惩等多功能
标签:
上传时间: 2013-12-31
上传用户:waizhang