91精品综合久久久久久五月天_国产精品一区电影_中文字幕欧美日韩一区二区_亚洲一区二区三区精品动漫

CAN bus cyclic redundancy check code and circuit theory

Abstract: In the CAN network to transfer photo paper, the noise disturbance or interruption of transmission and other factors tend to make the receiver received the message error code appears. In order to timely and reliable manner to transmit packets to each other and effectively detect errors, need to adopt error control. Details of the CAN bus error cyclic redundancy check code control principle and implementation method.

In the CAN system to ensure the accuracy of message transmission, the need for error control communication process. The most commonly used method, the feedback re-issued, or upon receipt of error messages issued by the receiver, the sender will automatically resend, this time the error control error detection function only. Error detection code commonly used in two types: parity check codes and cyclic redundancy check code. Parity code is the most common error detection code, and its implementation is simple, but less error detection capability; cyclic redundancy check code encoding is also very simple and low false positives, so to get a communication system wide range of applications. Here CAN networks cyclic redundancy check code (ie, CRC code) of the principle and method.

CAN bus cyclic redundancy check code and circuit theory

1 CRC error detection code works

CRC error detection code is to be processed packet sequence of bits as a binary polynomial A (x) the coefficient, the coefficient divided by the sender and receiver agree in advance a good generator polynomial g (x) after to obtain the remainder P (x) as a CRC check code appended to the text on the original report, and sent with the recipient. Receiver use the same g (x) to remove received packets B (x), if the remainder is equal to p (x), then the transmission is correct (in this case A (x) and B (x) the same); otherwise transfer process in error, re-issued by the sender to re-start CRC checksum, until correct date.

The validation process there are several points to note: ① during CRC calculation, using the binary (modulo 2) algorithms, which do not carry the addition, subtraction did not hesitate bit, its essence is the two operands to XOR logic; ② sent during CRC calculation before the first message expressed by the polynomial A (x) multiplied by xn, where n is generating polynomial g (x) the maximum power value. Multiplication of the binary terms, A (x) · xn is to A (x) shifted left n bits used to store the remainder p (x), it actually sent the message becomes A (x) · xn p (x ); ③ generator polynomial g (x) the first and last coefficient must be 1.

Figure 1 is a CRC check of the working process.

Now there are a variety of generator polynomial is included in the international standards, such as: CRC-4, CRC-12, CRC-16, CCITT-16, CRC-32 and so on. CAN bus used in the generator polynomial is g (x) = x15 x14 x10 x8 x7 x4 x3 1. Can be seen, CANU called line of CRC check polynomial used to verify seven, than CRC checksum (CRC-4, CRC-12, CRC-16, etc.) series (2 ~ 5 ) is much higher, so its error detection ability of a strong, very low false positives, to become effective to improve the quality of data transmission error detection means.

CAN bus cyclic redundancy check code and circuit theory

2 CRC code of the circuit

2.1 Characteristics of hardware

In the CAN bus in order to generate CRC code, the hardware circuit has reset and clock signals in addition to other, but also the participation of the following two control signals: ① fill bit to lift the signal destuff, its effective boolean value is 1; ② CRC test enable signal enable, valid logic 1. The hardware circuit Dete Dian is used selector and replace it with the traditional design using inverse XOR gates, realized Bijiaogongneng also reduce the production costs and also provides engineers with a new design concept of the.

2.2 Hardware Circuit

Figure 2 CRC code shall be to achieve the hardware circuit diagram.

Figure shows the points that need as follows: ① enable signal to lift signal and fills spaces omitted; ② crcnxt represent logic value input packet sequence and the highest bit CRC register XOR the result; ③ grade 0 to 14 as indicated by 15-bit CRC register, rising edge trigger; ④ numbered 1 to 6 as indicated by selector and a combination of logic inverter to realize XOR function, the selector logic function Y = AB AC, the specific structure shown in Figure 3 shown.

2.3 The working process of the circuit

From the above analysis shows: ① When the enable = 0 時, CRC clear 0; ② When the enable = 1, destuff = 1 when calculating the normal CRC; ③ When the enable = 1 and destuff = 0 when the lift is being filled, the data suspended transmission.

In all control signals are valid, the input packets, and each CRC register is the highest bit different and moved after the lowest, while the first 13,9,7,6,3,2 bit registers were and their maximum bit different, or, the results were shifted to the left one; other XOR operation did not register left one bit value, respectively, until each and every packet CRC register are moved up, then register to take the calculated value received CRC code.

If the message bit sequence of length 16, 16 need to be on the left of each message are processed. Ck that if the first k-bit CRC register bit values, Ck 'said the first k bits after shifting bit value (k = 0,1,2,3 ... ... 15), the shift rule in Table 1.

CAN bus cyclic redundancy check code and circuit theory

Table 1 shift rule table

C14 '= C13 ^ crcnxt C13' = 12 C12 '= C11 C11' = C10
C10 '= C9 ^ crcnxt C9' = C8 C8 '= C7 ^ crcnxt C7' = C6 ^ crcnxt
C6 '= C5 C5' = C4 C4 '= C3 ^ crcnxt C3' = C2 ^ crcnxt
C2 '= C1 C1' = C0 C0 '= crcnxt ^ datain

3 CRC checksum of the software

CRC check together with the software is very easy. Given the current information on the methods described in greater use of C language, assembly language to achieve, but the lack of a hardware description language, CRC code given here behavioral Verilog HDL description of the procedure.

Under this program Verilog_XL compile, while successful in the Synopsis on the integrated and optimized.

/ / Code using Verilog HDL to achieve CRC
module crc (clk, rst, enable, destuff, datain, crc);
input clk;
input rst;
input enable;
input destuff;
input datain;
output [14:0] crc;
reg [14:0] crc;
wire crcnxt = datain ^ crc [14];
always @ (posedge rst or posedge clk)
begin
if (rst) crc = 0;
else if (enable & & destuff)
begin
if (crcnxt)
crc <= crc ^ 15h'4599;
else
crc <= (crc [13:0], 1'b0);
end
end
endmodule

CAN bus cyclic redundancy check code and circuit theory

4 Simulation waveform

Assumption is a standard format to send a remote frame, the demand of data bytes is 8, the identifier sequence is 10101011000, then the above process of simulation, the waveform shown in Figure 4. Crc Series 20 starting from the output.

CRC checksum error detection codes are strong, and because of CRC error detection code of software and hardware are simple, they have been widely used in various types of data validation. CRC error detection code to improve data quality, powerful and efficient means of error detection.

Declined comment

91精品综合久久久久久五月天_国产精品一区电影_中文字幕欧美日韩一区二区_亚洲一区二区三区精品动漫
欧美另类一区| 欧美成人久久久| 国产在线精品一区免费香蕉| 日韩精品成人一区二区在线观看| 欧美一区二区三区精美影视 | 亚洲人成网站在线观看播放| 一区二区传媒有限公司| 亚洲影院色在线观看免费| 一区二区不卡在线视频 午夜欧美不卡' | 国产午夜精品一区| 激情视频综合网| 免费看成人午夜电影| 国产一区二区视频在线免费观看| 国产日韩一区在线| 超碰国产精品久久国产精品99| 91久久国产精品91久久性色| 久久99国产精品99久久| 国产精品视频99| 欧美激情综合亚洲一二区| 亚洲精品日韩激情在线电影| 日韩福利二区| 国产中文字幕91| 成人av网站观看| 国产二级片在线观看| 久久精品视频在线观看| 国产精品对白一区二区三区| 中文字幕免费在线不卡| 日本午夜在线亚洲.国产| 美女黄毛**国产精品啪啪| 超碰在线97av| www国产91| 一卡二卡三卡视频| 欧美综合激情网| 国产伦精品免费视频| 国产极品尤物在线| 国产精品对白刺激| 日本亚洲欧美三级| 国产伦精品一区二区三区在线| 国产成人在线亚洲欧美| 精品伦精品一区二区三区视频| 亚洲一区二区在线播放| 欧美成人精品免费| 国产高潮呻吟久久久| 久久99视频免费| 欧美日韩一区在线观看视频| 99国产盗摄| 国产精品美女久久| 日本伊人精品一区二区三区介绍 | 奇米四色中文综合久久| 成人av免费看| 国产精品日韩二区| 亚洲免费在线精品一区| 欧洲精品码一区二区三区免费看| 成人av免费看| 国产精品美女在线| 日本www在线播放| 91精品国自产在线观看| 精品久久sese| 加勒比海盗1在线观看免费国语版 加勒比在线一区二区三区观看 | 久久精品中文字幕免费mv| 亚洲在线观看视频| 国产美女久久精品| 久久精品福利视频| 日韩人妻一区二区三区蜜桃视频| 粉嫩av一区二区三区天美传媒| 日韩在线观看成人| 日本精品视频网站| 2019日韩中文字幕mv| 欧美精品久久久久久久久| 国产综合在线观看视频| 国产精品欧美久久久| 青青影院一区二区三区四区| 国产成人成网站在线播放青青| 亚洲激情一区二区三区| 成人伊人精品色xxxx视频| 精品久久久三级| 免费99视频| 国产精品大陆在线观看| 欧美黄色免费影院| 久久久精品电影| 欧美在线www| 久久久久久久久久av| 日韩偷拍一区二区| 日韩一二三在线视频播| 热草久综合在线| 视频在线一区二区| 青草青草久热精品视频在线观看 | 国产精品一区二区三区久久 | 欧美欧美一区二区| 国产精品日韩高清| 黄色影院一级片| 国产精品久久一| 国产一区二区丝袜| 自拍另类欧美| 国产精品50p| 日韩精品无码一区二区三区| 国产精品无码电影在线观看| 国模私拍视频一区| 国产99在线|中文| 97碰在线观看| 日韩欧美在线免费观看视频| 久久韩国免费视频| 海角国产乱辈乱精品视频| 国产精品成人在线| av日韩一区二区三区| 亚洲国产一区二区精品视频| 国产精品9999| 欧美在线不卡区| 不卡伊人av在线播放| www久久99| 欧美一区二区三区综合| 深夜福利一区二区| 国产一区免费| 懂色一区二区三区av片| 日韩三级成人av网| 国产欧美一区二区在线播放| 日韩一区免费观看| 久久精品国产一区| 国产精品揄拍一区二区| 午夜视频久久久| 久久人人爽人人爽人人片亚洲 | 男人的天堂狠狠干| 亚洲最大的av网站| 日韩专区中文字幕| 国产免费一区二区三区在线能观看 | 日韩欧美一区二区在线观看| 国产精品视频色| 国产色婷婷国产综合在线理论片a 国产色一区二区三区 | 国产福利一区视频| 精品一区二区成人免费视频| 午夜久久久久久久久久久| 国产精品久久久久久久天堂| 97精品国产97久久久久久粉红| 奇米一区二区三区四区久久| 久久国产精品影片| 久久精品国产精品国产精品污| 精品一区二区日本| 天堂av一区二区| 不卡av在线播放| 久久精精品视频| 国产视频九色蝌蚪| 日韩久久久久久久久久久久| 久久久久久18| 久久久久北条麻妃免费看| 91精品视频网站| 国产日韩换脸av一区在线观看| 三年中文高清在线观看第6集| 欧美wwwxxxx| 国产精品视频一区国模私拍| 911国产网站尤物在线观看| 韩国国内大量揄拍精品视频| 日韩一级免费看| 亚洲一区二区三区免费观看| 国产精品盗摄久久久| 色青青草原桃花久久综合 | 成人精品一区二区三区 | 国产成人一区二区三区别| 国产欧美一区二区三区久久人妖| 欧美中文字幕在线视频| 日韩中文字幕三区| 亚洲综合视频一区| 九九久久精品一区| 另类专区欧美制服同性| 精品国内产的精品视频在线观看| 久久综合九色综合久99| 国产麻花豆剧传媒精品mv在线| 国内精品久久国产| 色大师av一区二区三区| 亚洲一区二区久久久久久久| 精品国产乱码久久久久软件 | 亚洲最大福利网| 久久国产精品久久精品| 国产精品黄页免费高清在线观看| 日韩在线视频观看| 色偷偷9999www| 丝袜美腿精品国产二区| 国产传媒久久久| 国产成人综合精品| 久久66热这里只有精品| 国产二区一区| 7777精品久久久大香线蕉小说| 99久久99久久精品国产片| 粉嫩精品一区二区三区在线观看| 国产日韩欧美电影在线观看| 国产综合在线观看视频| 美女一区视频| 国产欧美在线观看| 俄罗斯精品一区二区| 国产精品亚洲αv天堂无码| 国产精品夜色7777狼人| 国产美女精品在线观看| 国产毛片视频网站| y111111国产精品久久婷婷| 91精品国产91久久久久| 国产成人一区二区在线| 久久九九国产视频| 日韩一级裸体免费视频| 国产精品美女网站| 国产99在线|中文| 亚洲二区三区四区|