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精品综合久久久久久五月天_国产精品一区电影_中文字幕欧美日韩一区二区_亚洲一区二区三区精品动漫
日本一区网站| 国产av熟女一区二区三区| 亚洲一区二区三区色| 国产精品日韩专区| 国产精品视频xxx| 国产精品久久久久久久久久久久久| 日韩有码在线电影| 久久精品久久久久| 国产精品网址在线| 国产精品免费电影| 国产精品视频入口| 欧美成人亚洲成人| 在线视频一二三区| 国产999视频| 美女av一区二区三区| 久久99久久99精品免观看粉嫩| 国产精品激情av在线播放| 国产精品第二页| 欧美精品电影在线| 亚洲国产高清国产精品| 亚洲精品国产一区| 日本久久亚洲电影| 国内揄拍国内精品少妇国语| 国产一区二区三区乱码| 国产精品一区在线免费观看| 国产精品一久久香蕉国产线看观看| 99在线国产| 久久久久久久久久久久久国产精品| 久久久久久久久久婷婷| 久久久久久网址| 久久精品国产清自在天天线| 欧美xxxx14xxxxx性爽| 欧美一区二区三区免费视| 欧美性受xxx| 国产伦理久久久| 久久国产成人精品国产成人亚洲| 国产精品久久久999| 亚洲不卡中文字幕| 精品视频一区二区| 久久久水蜜桃| 国产精品久久久久久久久久久久久 | 精品国产三级a∨在线| 亚洲欧洲精品一区二区| 日韩精品一区在线视频| 国产日韩欧美影视| 国产不卡av在线免费观看| 久久99国产综合精品女同| 成人做爰www免费看视频网站| 欧美日韩dvd| 91精品国产高清久久久久久91| 国产精品日韩欧美综合| 欧美一级视频一区二区| 国内精品400部情侣激情| 国产精品 欧美在线| 精品国产免费一区二区三区| 青青草成人免费在线视频| www.日本在线视频| 操人视频在线观看欧美| 欧洲日韩成人av| 久久久久99精品成人片| 亚洲一区二区精品在线观看| 免费在线观看日韩视频| 久久久久欧美| 涩涩日韩在线| 97久久精品视频| 久久99久国产精品黄毛片入口| 欧美不卡1区2区3区| 久久免费福利视频| 一区二区三区四区免费观看| 国内一区二区三区在线视频| 日韩在线视频观看正片免费网站| 亚洲天堂电影网| 国产中文字幕91| 国产精品免费网站| 欧美牲交a欧美牲交aⅴ免费真| 日韩在线中文视频| 日韩视频在线免费播放| 国产成人在线免费看| 一区二区传媒有限公司| 国产精品一区二区三区久久| 欧美精品免费在线| 国产日韩精品电影| 国产精品久久久久久一区二区| 热99精品只有里视频精品| 九九九九九九精品| 人妻有码中文字幕| www.日本久久久久com.| 日本精品一区二区三区在线 | 日韩视频在线免费播放| 国产福利一区视频| 天堂精品一区二区三区| 81精品国产乱码久久久久久| 亚洲乱码中文字幕久久孕妇黑人| 国产区日韩欧美| 中文字幕一区二区三区最新| 白嫩少妇丰满一区二区| 一区二区三区四区免费观看| 99久久自偷自偷国产精品不卡| 亚洲一区免费看| 久久久综合免费视频| 日韩视频在线观看视频| 久久久久久久久久亚洲| 欧美日韩在线高清| 久久91亚洲精品中文字幕| av中文字幕av| 色阁综合av| 国产成人精品视频在线| 国产有码在线一区二区视频| 九九综合九九综合| 国产精品9999久久久久仙踪林| 日本网站免费在线观看| 丝袜一区二区三区| 国产一级片91| 亚洲一区三区视频在线观看| 国产成人一区二区三区电影| 男女视频网站在线观看| 久久99久久99精品中文字幕| 久久久午夜视频| 精品欧美国产一区二区三区不卡| 精品国产91亚洲一区二区三区www| 高清视频一区二区三区| 欧美一区二区三区四区在线| 日韩视频中文字幕| 国产日韩在线看| 色99中文字幕| 久久躁日日躁aaaaxxxx| 91精品视频免费看| 欧美在线免费观看| 在线一区亚洲| 国产成人小视频在线观看| 国产精品自产拍高潮在线观看| 日本一区二区三区精品视频| 国产精品久久久久久久乖乖| 91精品国产乱码久久久久久久久| 黄色一级一级片| 亚洲乱码国产一区三区| 国产精品美女呻吟| 国产高清不卡av| 国产在线视频不卡| 日韩av123| 中文字幕日本最新乱码视频| 久久激情视频久久| 国产精品18毛片一区二区| 国产伊人精品在线| 人偷久久久久久久偷女厕| 在线视频不卡一区二区三区| 国产精品三区四区| 国产成人综合一区二区三区| 国产伦理久久久| 欧美日韩一区二区三区在线观看免 | 国产在线精品91| 日本福利视频导航| 亚洲一区二区免费| 国产精品成人久久久久| 日韩中文娱乐网| 久久一区二区精品| 国产精品一区二区女厕厕| 国内精品小视频在线观看| 欧日韩一区二区三区| 婷婷四房综合激情五月| 中文字幕乱码人妻综合二区三区 | 国产欧美在线观看| 欧美极品欧美精品欧美图片| 欧美一区二区激情| 自拍另类欧美| 欧美日韩成人网| 久久成人人人人精品欧| 国产成人久久婷婷精品流白浆| 国产大尺度在线观看| 国产精品69精品一区二区三区| 国产精品一区电影| 国产区精品在线观看| 精品一区二区三区国产| 欧美一区在线直播| 日韩五码在线观看| 人妻夜夜添夜夜无码av| 日本精品一区二区三区四区| 日本亚洲欧美三级| 日本一区网站| 日本免费不卡一区二区| 日本丰满少妇黄大片在线观看| 日日橹狠狠爱欧美超碰| 少妇人妻无码专区视频| 日本天堂免费a| 欧美一区二区中文字幕| 欧美中文娱乐网| 激情久久av| 国产又粗又猛又爽又黄的网站| 国内久久久精品| 国产一区二区片| 国产一区二区久久久| 国产欧亚日韩视频| 风间由美一区二区三区| caopor在线视频| 久久全球大尺度高清视频| 国产精品10p综合二区| 国产精国产精品| 国产成人精品视频| 久久精品人人爽| 久久亚洲国产精品|