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

DRV3245Q-Q1: Whether there is an issue with the CRC routine

$
0
0
Part Number: DRV3245Q-Q1

Hi Team,

I wonder if there is a problem with the CRC table function in this 'CRC Implementation with DRV32xxSeries' file? The effect achieved by this function is equivalent to that of while(1).

Should it be the above function?

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;
}

Kind regards,

Katherine


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>