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精品综合久久久久久五月天_国产精品一区电影_中文字幕欧美日韩一区二区_亚洲一区二区三区精品动漫
国产精品入口免费| 欧美成人四级hd版| 欧美 日韩 国产 高清| 亚洲永久在线观看| 亚洲色婷婷久久精品av蜜桃| 欧美激情在线观看视频| 亚洲一区二区高清视频| 亚洲欧洲精品一区| 无码人妻丰满熟妇区96| 日本www在线播放| 秋霞毛片久久久久久久久| 欧美成人一区二区在线观看| 激情婷婷综合网| 国产又黄又猛视频| 91麻豆精品秘密入口| 国产v亚洲v天堂无码| 国产av熟女一区二区三区| 日韩中文字幕免费视频| 丝袜亚洲欧美日韩综合| 国产精品啪啪啪视频| 中文字幕av导航| 日本不卡一区二区三区视频| 精品欧美日韩| 91精品久久久久久久久青青| 色偷偷9999www| 久久久久久69| 欧美综合77777色婷婷| 国产欧美欧洲| 久久精品99| 久久久久国产精品一区| 欧美中日韩一区二区三区| 99在线观看| 欧美性视频在线| 国产啪精品视频| 久久精品这里热有精品| 国产一区二区三区小说| 91麻豆国产精品| 久久91亚洲精品中文字幕| 欧美中文字幕在线观看| 国产精彩视频一区二区| 一区二区不卡视频| 国产免费内射又粗又爽密桃视频 | 久久人人爽人人爽人人片av高清 | 三区精品视频观看| 国产九九精品视频| 国产精品久久久久久久9999| 日韩 欧美 自拍| 97免费中文视频在线观看| 九九精品在线视频| 国产女人精品视频| 久久亚洲精品一区| 国产综合视频在线观看| 久久久久久久久久久一区| 亚洲色欲久久久综合网东京热| 精品一区二区久久久久久久网站| 精品国产区一区二区三区在线观看| 亚洲a区在线视频| 99在线影院| 亚洲在线观看视频网站| 国产精品av免费观看| 欧美一级片一区| 久久久久久久久久久久av| 欧洲精品视频在线| 国产精品久久国产精品99gif| 成人国产精品色哟哟| 欧美猛少妇色xxxxx| 国模视频一区二区三区| 制服诱惑一区| 91免费看片在线| 日韩女优人人人人射在线视频| 久久久久久久久久久免费精品| 欧美高清中文字幕| 伊人久久大香线蕉综合75| 久草综合在线观看| 国产一区二区不卡视频在线观看| 亚洲中文字幕无码专区| 久久九九全国免费精品观看| 成人在线一区二区| 日韩国产欧美亚洲| 中文字幕在线乱| 国产精品免费在线| 91久久久久久久久| 国产欧美丝袜| 午夜精品www| 久久国产视频网站| 色妞一区二区三区| 99国产精品久久久久老师| 奇米四色中文综合久久| 亚洲国产精品视频一区| 欧美自拍视频在线| 欧美一区1区三区3区公司| 欧美激情精品在线| 国产精品极品美女粉嫩高清在线| 久久久久久久久亚洲| 久久免费成人精品视频| 99久久自偷自偷国产精品不卡| 免费看又黄又无码的网站| 青青草国产精品一区二区| 中文字幕99| 一区二区三区四区免费视频| 久久亚洲影音av资源网 | 成人a级免费视频| 国产日韩在线一区二区三区| 精品99在线视频| 黄色一级片av| 国产日韩精品综合网站| 国产在线精品自拍| 国产天堂视频在线观看| 国产人妖伪娘一区91| 国内精品久久久久伊人av| 欧美综合在线第二页| 欧洲亚洲免费视频| 激情久久av| 国产青青在线视频| 97国产精品人人爽人人做| 91久久精品美女高潮| 尤物av无码色av无码| 亚洲精品中字| 日本国产欧美一区二区三区| 热门国产精品亚洲第一区在线| 欧美性一区二区三区| 海角国产乱辈乱精品视频| 国产一区二区视频播放| 99精品国产一区二区| 久久久久久久国产精品| 久久久久欧美| 插插插亚洲综合网| 欧美一级视频一区二区| 精品日产一区2区三区黄免费 | 国产精品一区二区免费看| 91精品久久久久久蜜桃| 国产成人三级视频| 欧美日韩成人网| 欧洲亚洲在线视频| 国产精品自产拍在线观看中文| 91免费视频网站在线观看| 国产成人精品一区二区三区福利 | 久久99精品久久久久久噜噜 | 99久久精品无码一区二区毛片| 日韩视频―中文字幕| 一区二区精品视频| 国产一区二区三区乱码| 久久久久久亚洲精品| 一本久道中文无码字幕av| 欧美日韩成人一区二区三区| 国产精品夜色7777狼人| 久久久久久免费精品| 亚洲精品在线免费| 国产一区二区三区小说| 精品国产依人香蕉在线精品| 色阁综合av| 久久综合久久久| 亚州成人av在线| 91精品免费视频| 亚洲欧美国产一区二区| 99久热re在线精品996热视频| 欧美激情精品久久久久久| 国产日产欧美精品| 久久不射热爱视频精品| 欧美伊久线香蕉线新在线| 色偷偷9999www| 日本欧美视频在线观看| 九一免费在线观看| 欧美中文字幕在线观看视频| 日韩中文字幕av| 激情五月亚洲色图| 亚洲色欲久久久综合网东京热| 黄色片视频在线播放| 国产视频精品网| 国产在线精品播放| 日本精品免费在线观看| 国产精品国产亚洲精品看不卡| 国产对白在线播放| 国严精品久久久久久亚洲影视| 国内一区在线| 久久久久久亚洲精品不卡4k岛国| 欧美精品videofree1080p| 国产主播精品在线| 国产精品久久婷婷六月丁香| 国内免费久久久久久久久久久| 国产精品久久中文| 国产三区二区一区久久| 一本色道久久综合亚洲二区三区| 91国视频在线| 欧美性受xxxx黑人猛交88| 国产精品三级美女白浆呻吟| 国产一区二区在线网站| 亚洲日本精品国产第一区| 久久精品二区| 国产在线一区二区三区四区| 九色成人免费视频| 国产精品免费在线播放| 欧美亚洲另类在线| 一本—道久久a久久精品蜜桃| 日韩在线视频播放| 高清一区二区三区日本久| 欧美日韩另类丝袜其他| 亚洲一二三区精品| 久久综合久久美利坚合众国| 久久99国产精品99久久|