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精品综合久久久久久五月天_国产精品一区电影_中文字幕欧美日韩一区二区_亚洲一区二区三区精品动漫
www国产91| 在线视频91| 伊人久久在线观看| 国内精品在线观看视频| 久久久久久久少妇| 偷拍盗摄高潮叫床对白清晰| 国产精品一区而去| 久久99视频免费| 国产嫩草一区二区三区在线观看| 国产精品美女免费看| 日韩av在线一区二区三区| 成人h视频在线| 欧美激情综合色| 国产乱码一区| 一区二区三区我不卡| 国产精品自拍视频| 久久成人精品视频| 黄色成人在线看| 国产精品美女免费| 国产一区精品在线| 久久99视频免费| 国产日韩一区二区在线| 国产精品久久久久久久久久东京| 欧美这里只有精品| 久久久久久久久久久综合| 欧美一区二区福利| 国产白丝袜美女久久久久| 天堂а√在线中文在线| 国产精华一区| 日韩中文不卡| 久久久久久久免费| 欧美中文字幕在线视频| 国产精品无av码在线观看| 欧美高清性xxxxhd| 国产精品久久久久久久久粉嫩av| 国产在线精品自拍| 在线不卡视频一区二区| 国产精品99久久久久久白浆小说| 日本一区二区黄色| 日韩日本欧美亚洲| 美女精品国产| 亚洲一区二区三区777| 国产黄色激情视频| 欧美精品v日韩精品v国产精品| 国产精品国产自产拍高清av水多| 国产三级中文字幕| 性高潮久久久久久久久| 久久久久久久久综合| 精品一区二区日本| 国产aⅴ精品一区二区三区黄| 粉嫩精品一区二区三区在线观看| 亚洲一区三区视频在线观看| 国产高清精品一区二区三区| 欧美,日韩,国产在线| 欧美激情一二区| 国产高清免费在线| 精品视频免费观看| 亚洲黄色一区二区三区| 国产xxxx振车| 国产一二三四区在线观看| 亚洲精品一区国产精品| 日韩中文字幕在线播放| 男人天堂a在线| 中文字幕一区二区三区最新| 国产福利视频一区二区| 黄色国产精品视频| 亚洲免费视频播放| 国产精品入口福利| 91国内在线视频| 国内精品**久久毛片app| 丁香六月激情网| 国产精品成人免费视频| 久久久成人精品一区二区三区| 久久精品欧美| 蜜桃免费区二区三区| 欧美精品一区二区三区在线看午夜| 视频一区在线免费观看| 欧美精品亚州精品| 国产精品第三页| 国产精品三级在线| 国产精品偷伦视频免费观看国产| 久久国产精品网| 国产成人97精品免费看片| 国产高清av在线播放| 91久久偷偷做嫩草影院| 成人av中文| 97色在线播放视频| 91老司机精品视频| 国产精品99久久久久久久久久久久| 99免费在线观看视频| 99精品国产高清一区二区| av一区二区三区免费观看| 国产欧美日韩在线播放| 国产九色91| 91久久中文字幕| 久久精品午夜一区二区福利| 国产福利一区视频| 久久久久在线观看| 久久久999成人| 国产精品九九九| 国产精品久久久一区| 国产精品视频网站| 国产精品久久久久久亚洲调教| 久久九九免费视频| 欧美精品在线观看91| www.精品av.com| 久久99久久99精品| av动漫在线看| 99在线视频播放| 福利视频久久| 超碰97国产在线| 99热国产免费| wwwwww欧美| 99免费在线视频观看| 国产精品一区专区欧美日韩| 国产大片精品免费永久看nba| 久久一区二区三区av| 久久久久久久久久国产精品| 久久精品中文字幕一区| 久久成人精品电影| 尤物av无码色av无码| 亚洲精品不卡| 少妇av一区二区三区无码 | 欧美一级大片在线观看| 国产麻豆电影在线观看 | 久久久久久网站| 色偷偷偷亚洲综合网另类| 久久久久久亚洲精品不卡4k岛国 | 午夜一区二区三区| 日韩欧美在线观看强乱免费| 日韩网站在线免费观看| 免费在线a视频| 成人免费xxxxx在线观看| 久久久影院一区二区三区| 日韩在线免费高清视频| 国产精品久久久久9999小说| 精品国产一区二区三| 色综合老司机第九色激情| 精品国产一区二区三区久久久久久 | 久久久久高清| 91精品视频播放| 久久免费视频观看| 国产v综合ⅴ日韩v欧美大片| 色妞一区二区三区| 国产精品成人一区二区三区吃奶| 国产99在线|中文| 亚洲一区二区三| 色狠狠久久av五月综合| 热门国产精品亚洲第一区在线| 欧美一区在线直播| 免费国产在线精品一区二区三区| 国产视频九色蝌蚪| 91精品国产乱码久久久久久久久 | 国产日韩精品在线| www.欧美黄色| 久久精品日产第一区二区三区精品版| 亚洲综合视频1区| 日韩av第一页| 国产伦精品一区二区三区四区视频_ | 亚洲国产精品视频一区| 国产精品久久久久久久9999| 影音先锋欧美在线| 热99在线视频| 精品少妇人妻av免费久久洗澡| 91精品综合久久| 国产精品入口尤物| 亚洲自拍欧美另类| 人禽交欧美网站免费| 国产精品嫩草影院久久久| 中文字幕一区综合| 精品无码av无码免费专区| 日韩在线精品一区| 色999日韩自偷自拍美女| 国产精品亚洲一区二区三区| 日韩亚洲精品视频| 亚洲黄色成人久久久| 欧美精品免费在线| 狠狠色狠狠色综合人人| 久久久噜噜噜www成人网| 在线视频不卡一区二区三区| 欧美综合在线观看| 超碰成人在线免费观看| 国产精品视频网站| 性高潮久久久久久久久| 国产一区免费视频| 俺去亚洲欧洲欧美日韩| 亚洲va久久久噜噜噜| 免费av网址在线| 久久99久久久久久久噜噜| 欧洲一区二区在线| 色偷偷噜噜噜亚洲男人的天堂| 日韩一级片一区二区| 91精品国产综合久久香蕉| 中文字幕在线亚洲三区| 国产精品亚洲自拍| 在线精品亚洲一区二区| 国产精品永久在线| 在线不卡日本| 91久久久精品| 少妇人妻在线视频|