Is CRC8 possible for CRC module?

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

Is CRC8 possible for CRC module?

跳至解决方案
1,358 次查看
kenansun
Contributor II

Hi,

I'm trying to use the CRC module on my K60 MCU to generate CRC 8 code. I checked the methods in PEx and I found it not possible. It seems that the poly should be at least 16bit.

I also find a similar question here:

CRC_8 for Kinetis K60?

but no answers yet.

Does anybody know the answer? Please help me!

Many thanks!

Kenan

标记 (1)
1 解答
1,067 次查看
Kan_Li
NXP TechSupport
NXP TechSupport

Hi Kenan SUN,

I am sorry, but this module just supports CRC-16/32 . No support for 8 bit calculations.


Sorry for the inconvenience that has caused.


Have a great day!

B.R

Kan

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,067 次查看
tim_povall
Contributor II

8-bit CRC actually is possible with a 16 or 32-bit CRC module.

 

You can convert the 8-bit polynomial into 16-bit by shifting 8 bits to the left, and then to get a 8-bit result do the same to the resulting 16-bit CRC. Similarly, with 32-bit you would need to shift 24 bits to the left.

 

See my more detailed answer to a similar question here: S32DS CRC 8 calculation 

0 项奖励
回复
1,068 次查看
Kan_Li
NXP TechSupport
NXP TechSupport

Hi Kenan SUN,

I am sorry, but this module just supports CRC-16/32 . No support for 8 bit calculations.


Sorry for the inconvenience that has caused.


Have a great day!

B.R

Kan

0 项奖励
回复