Is CRC8 possible for CRC module?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Is CRC8 possible for CRC module?

ソリューションへジャンプ
2,290件の閲覧回数
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,999件の閲覧回数
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,999件の閲覧回数
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 件の賞賛
返信
2,000件の閲覧回数
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 件の賞賛
返信