CD Automation srl
REVO M
User’s Manual
REVO_M08
38
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;+)
{
crc ^= *p_first;
for(j=8;j>0;j--)
{
if(crc & 0x0001)
{
crc = crc >> 1;
crc ^= 0xA001;
}
else
{
crc = crc >> 1;
}
}
}
return (crc);
}
Summary of Contents for Revo M 1PH
Page 2: ...CD Automation srl REVO M User s Manual REVO_M08 2 ...
Page 19: ...CD Automation srl REVO M User s Manual REVO_M08 19 11 2 Schematic ...
Page 24: ...CD Automation srl REVO M User s Manual REVO_M08 24 12 1 Scroll the parameters ...
Page 32: ...CD Automation srl REVO M User s Manual REVO_M08 32 17 Electronic boards 17 1 How to access ...
Page 48: ...CD Automation srl REVO M User s Manual REVO_M08 48 ...