Quantcast
Channel: Motor drivers forum - Recent Threads
Viewing all articles
Browse latest Browse all 14309

DRV3245Q-Q1: CRC Demo Problem

$
0
0
Part Number: DRV3245Q-Q1

CRC Implementation with DRV32xxSeries" 这个文档里面CRC的表格这个函数是不是有点问题,这个函数的效果等同于while(1)

Below is right?

void generate_crctable(){
byte crctable[256];
for(int I = 0; I < 256; I++){
crc = I;
for(int j = 8; j > 0; j--){
if((crc & 0x80) != 0){
crc <<= 1;
crc ^= 0x2F;
}
else{
crc <<= 1;
}
}
crctable[i] = crc;
}
return crctable;
}


Viewing all articles
Browse latest Browse all 14309

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>