CRC seed value for MC33GD3100

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

CRC seed value for MC33GD3100

2,035 次查看
MarcoDeg
Contributor I

Hello,

in the datasheet for the MC33GD3100 I believe the is a mistake: the CRC seed is stated to be 11111111,

however on the software example and in the manual for the GD3162 is 0x42.

0 项奖励
回复
3 回复数

1,937 次查看
MarcoDeg
Contributor I

Hello, I did manage to test some software on a board that has the GD3100, and the sw is as per the NXP example:

static unsigned char Calculate_SPI_CRC(unsigned short wData)
{
	uint8_t tbl_idx;
	uint8_t crc;
	uint16_t len = 2;

	uint8_t data[2];
	data[0] = wData & 0xFF;
	data[1]= (wData >>  & 0xFF;

	crc = 0x42;  // seed

	while (len)
	{
		len--;
		tbl_idx = (crc ^ *(data + len));
		crc = crc_table[tbl_idx];
	}
	return crc;
}

.

Hence I do believe the datasheet is wrong.

 

0 项奖励
回复

2,011 次查看
guoweisun
NXP TechSupport
NXP TechSupport

I am not familiar with this demo code, but please design your CRC software code according the data sheet states.

 

 

0 项奖励
回复

2,016 次查看
guoweisun
NXP TechSupport
NXP TechSupport

I will double check this!

0 项奖励
回复