日韩免费一级毛片在线观看-中文日韩亚洲综合-欧美系列日韩另类-欧美激情极品日韩-午夜日韩爱爱毛片视频免费看-欧美日韩一区免费观看-欧美日韩欧美黄色三级

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

日韩专区一区| 久久久久久久久综合影视网| 久久国产精品永久免费网站| 九九干| 你懂的在线观看视频| 青青青草影院| 精品国产一区二区三区久久久狼| 欧美激情一区二区三区在线| 成人av在线播放| 99热精品在线| 国产麻豆精品高清在线播放| 成人影视在线观看| 国产亚洲精品成人a在线| 国产原创中文字幕| 国产成人精品影视| 精品美女| 免费国产在线视频| 一级片片| a级精品九九九大片免费看| 你懂的在线观看视频| 天堂网中文字幕| 成人免费网站久久久| 国产91精品系列在线观看| 国产一区二区精品久久91| 四虎久久影院| 国产91精品露脸国语对白| 国产伦精品一区二区三区无广告| 精品视频一区二区| 一级女人毛片人一女人| 久久久成人影院| 成人a级高清视频在线观看| 成人免费观看视频| 超级乱淫伦动漫| 亚洲 激情| 国产亚洲精品aaa大片| 国产成人精品影视| 韩国三级香港三级日本三级la| 欧美激情在线精品video| 夜夜操天天爽| 91麻豆高清国产在线播放| 亚洲精品中文一区不卡| 日本在线不卡免费视频一区| a级精品九九九大片免费看| 久久99欧美| 日日夜夜婷婷| 中文字幕一区二区三区精彩视频 | 日韩欧美一及在线播放| a级黄色毛片免费播放视频| 午夜在线观看视频免费 成人| 九九干| 99久久精品国产片| 日韩欧美一二三区| 午夜激情视频在线播放| 国产不卡高清在线观看视频| 天堂网中文字幕| 欧美大片毛片aaa免费看| 精品久久久久久中文字幕2017| 韩国三级香港三级日本三级| 久久国产精品只做精品| 日韩一级精品视频在线观看| 久久精品免视看国产明星| 欧美爱色| 黄色福利片| 亚飞与亚基在线观看| 国产综合成人观看在线| 精品国产亚洲一区二区三区| 欧美一级视| 精品久久久久久中文| 久久精品道一区二区三区| 亚洲 激情| 国产视频网站在线观看| 国产欧美精品| 国产伦久视频免费观看 视频| 沈樵在线观看福利| 久久99欧美| 国产麻豆精品免费密入口| 日本伦理片网站| 午夜激情视频在线播放| 亚洲精品久久玖玖玖玖| 可以在线看黄的网站| 免费国产在线观看不卡| 精品国产一区二区三区久久久狼| 国产一区二区精品久久91| 国产一区二区精品久久91| 日日日夜夜操| 日韩字幕在线| 国产伦精品一区三区视频| 国产一区二区精品尤物| 欧美激情一区二区三区在线| 国产高清视频免费| 99久久精品国产片| 国产一区二区精品久久91| 国产麻豆精品| 国产成人啪精品视频免费软件| 国产麻豆精品视频| 九九热国产视频| 国产不卡高清在线观看视频| 精品在线观看国产| 99久久精品国产高清一区二区| 成人a大片在线观看| 国产精品123| 国产麻豆精品视频| 欧美另类videosbestsex高清| 国产精品自拍在线观看| 欧美激情一区二区三区中文字幕| 美女免费精品视频在线观看| 99热热久久| 国产一区二区精品| 色综合久久天天综线观看| 色综合久久手机在线| 美女免费黄网站| 四虎影视久久久| 可以免费在线看黄的网站| 精品视频在线观看一区二区| 欧美夜夜骑 青草视频在线观看完整版 久久精品99无色码中文字幕 欧美日韩一区二区在线观看视频 欧美中文字幕在线视频 www.99精品 香蕉视频久久 | 久草免费在线观看| 久久久久久久免费视频| 久久99中文字幕| 国产a毛片| 青青青草影院 | 欧美夜夜骑 青草视频在线观看完整版 久久精品99无色码中文字幕 欧美日韩一区二区在线观看视频 欧美中文字幕在线视频 www.99精品 香蕉视频久久 | 九九热国产视频| 麻豆系列 在线视频| 精品国产亚洲一区二区三区| 亚洲天堂一区二区三区四区| 日韩字幕在线| 免费一级片网站| 久久国产影院| 日韩av东京社区男人的天堂| 国产一区精品| 九九久久99综合一区二区| 免费国产一级特黄aa大片在线| 99久久网站| 日韩中文字幕一区| 国产精品自拍亚洲| 国产麻豆精品视频| 欧美国产日韩在线| 国产激情视频在线观看| 精品国产一区二区三区久 | 国产91精品一区二区| 亚洲精品中文字幕久久久久久| 国产伦久视频免费观看视频| 日本伦理片网站| 99久久精品国产国产毛片| 日韩中文字幕一区| 日本特黄特色aa大片免费| 国产成人精品综合在线| 国产高清视频免费| 欧美激情一区二区三区在线 | 韩国三级一区| 成人免费观看的视频黄页| 国产一区精品| 91麻豆高清国产在线播放| 精品视频在线看| 欧美激情在线精品video| 91麻豆精品国产片在线观看| 成人高清护士在线播放| 久久精品道一区二区三区| 欧美1卡一卡二卡三新区| 日本久久久久久久 97久久精品一区二区三区 狠狠色噜噜狠狠狠狠97 日日干综合 五月天婷婷在线观看高清 九色福利视频 | 久草免费资源| 久久成人综合网| 亚洲天堂一区二区三区四区| 精品久久久久久综合网| 国产伦精品一区二区三区在线观看| 沈樵在线观看福利| 成人影院一区二区三区| 成人影视在线观看| 日韩在线观看视频黄| 久久精品免视看国产明星| 黄视频网站免费观看| 日本伦理片网站| 成人a大片高清在线观看| 国产不卡在线观看视频| 九九免费精品视频| 日韩中文字幕在线亚洲一区| 99久久网站| 美女免费精品视频在线观看| 91麻豆精品国产高清在线| 日本久久久久久久 97久久精品一区二区三区 狠狠色噜噜狠狠狠狠97 日日干综合 五月天婷婷在线观看高清 九色福利视频 | 午夜在线影院| 亚飞与亚基在线观看| 日韩专区第一页| 日韩一级黄色| 欧美激情一区二区三区视频高清| 久久久成人影院| 99久久网站| 日本久久久久久久 97久久精品一区二区三区 狠狠色噜噜狠狠狠狠97 日日干综合 五月天婷婷在线观看高清 九色福利视频 | 黄视频网站免费看| 欧美大片aaaa一级毛片| 日本久久久久久久 97久久精品一区二区三区 狠狠色噜噜狠狠狠狠97 日日干综合 五月天婷婷在线观看高清 九色福利视频 | 四虎影视精品永久免费网站| 亚洲女初尝黑人巨高清在线观看| 日韩中文字幕在线播放| 精品视频在线看| 台湾毛片| 精品在线视频播放| 国产极品精频在线观看| 免费国产一级特黄aa大片在线| 日日日夜夜操|