CD Automation srl
The following flow-diagram show how to organize the CRC 16 bit.
C Language CRC 16 Example
static short CRC16 (unsigned char *p_first,unsigned char *p_last)
{
unsigned int crc=0xffff;
short j;
for (;p_first<=p_last;p_first++)
{
crc ^= *p_first;
for(j=8;j>0;j--)
{
if(crc & 0x0001)
else
}
}
return (crc);
}
CD3200-1PH from 15A to 110A
{
crc = crc >> 1;
crc ^= 0xA001;
}
{
crc = crc >> 1;
}
38
User's Manual
Need help?
Do you have a question about the CD3200 and is the answer not in the manual?
Questions and answers