Is it possible to calculate CRC16 GENIBUS in Hardware on LPC1778 ?

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

Is it possible to calculate CRC16 GENIBUS in Hardware on LPC1778 ?

2,680 次查看
easter91
Contributor I

Good morning,

for a wireless application i need to calculate CRC values according to the GENIBUS-Specification (see page 26).

Polynomial x^16+x^12+x^5+1 Preset 0xFFFF

According to the LPC1778 User Manual on page 861, CRC-CCITT is using the same polynomal.

Input Message 0xC100F0 should result in CRC16/GENIBUS 0xCDBB.

So i set the CRC_POLY register to CRC-CCIT ans the SEED register to 0xFFFF.

After writing the Input Message 0xC100F0 to the CRC_WR_DATA Register, CRC_SUM shows wrong results.

What am i missing ?

Is th Hardware capable to do CRC16/GENIBUS ?

标签 (1)
0 项奖励
回复
1 回复

2,043 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi Christian Ostermeier,

Thank you for your interest in NXP Semiconductor products and the for the opportunity to serve you.

I'd highly recommend you to refer the CRC demo in the LPC177x_8xCMSIS library whose link is below:

LPC177x和LPC178x符合标准外设的固件驱动程序库——CMSIS(Keil, IAR) | www.LPCware.com 


Have a great day,
Ping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复