EasyManuals Logo

CD Automation CD3000 E-3PH User Manual

CD Automation CD3000 E-3PH
59 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #49 background imageLoading...
Page #49 background image
CD Automation srl CD3000E-3PH from 25A to 500A User’s Manual
49
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)
{
crc = crc >> 1;
crc ^= 0xA001;
}
else
{
crc = crc >> 1;
}
}
}
return (crc);
}

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the CD Automation CD3000 E-3PH and is the answer not in the manual?

CD Automation CD3000 E-3PH Specifications

General IconGeneral
BrandCD Automation
ModelCD3000 E-3PH
CategoryController
LanguageEnglish