klop
Junior Member level 2
CRC calculation problem
My task is to design CRC calculation hardware according to the given software.
The previous version of software contain the following table for CRC calculation:
unsigned int crc_tabccitt[256]= { 0x0000, 0x1021, 0x2042, 0x3063, ...
I found that such a table corresponds to the polynomial: x^16+x^12+x^5+1
I generated CRC calculation H/W at h**p://w*w.easics.com/webtools/crctool and it worked perfect.
Now the table is
static int fcstab[256*] = { 0x0000, 0x1189, 0x2312, 0x329b, 0x4624, 0x57ad, ...
I found that such a table corresponds to the polynomial: x^16+x^11+x^4+1
(So called reversed CCITT)
I generated CRC calculation H/W at https://www.easics.com/webtools/crctool and
it doesn't work properly (H/W and S/W dive the different results). I tried to complement and swap bytes but such an operations don't not help.
Could somebody please help me?
klop.
My task is to design CRC calculation hardware according to the given software.
The previous version of software contain the following table for CRC calculation:
unsigned int crc_tabccitt[256]= { 0x0000, 0x1021, 0x2042, 0x3063, ...
I found that such a table corresponds to the polynomial: x^16+x^12+x^5+1
I generated CRC calculation H/W at h**p://w*w.easics.com/webtools/crctool and it worked perfect.
Now the table is
static int fcstab[256*] = { 0x0000, 0x1189, 0x2312, 0x329b, 0x4624, 0x57ad, ...
I found that such a table corresponds to the polynomial: x^16+x^11+x^4+1
(So called reversed CCITT)
I generated CRC calculation H/W at https://www.easics.com/webtools/crctool and
it doesn't work properly (H/W and S/W dive the different results). I tried to complement and swap bytes but such an operations don't not help.
Could somebody please help me?
klop.