This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] AM4377:PRU 上的 CRC16实现

Guru**** 2616675 points

Other Parts Discussed in Thread: AM4377

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/660387/am4377-crc16-implementation-on-pru

器件型号:AM4377

大家好、  

我的客户正在使用 AM4377、并希望 PRU 实现一些功能、例如 CRC16。  

代码如下所示、详细信息可在附件中查看。

现在、主要问题来自时间限制。 根据使用场景要求、必须在1600ns 内完成。  

因为我们在评估 PRU 内部 CRC 实施的可能性方面没有类似的经验。  

我想让团队就以下方面提供反馈:

1.以前是否有成功的用例?

2.以下代码是否可以在1600ns 内完成?

3.是否有任何参考代码?  

我认为这是一项非常具有挑战性的要求,需要高度的专业知识,也许没有任何明确的答案。

因此,如果对这一议题有任何意见/建议/估计,我将不胜感激。 谢谢!   

U8_t Compute _CRC16 (U8_t *数据、U32_t num_for_bytes、U8_t *结果_MSB、U8_t
*结果_lsb){

u16_t my_CRC = 0;
u32_t my_count;


对于(my_count = 0;my_count < num_for_bytes;my_count++){

my_CRC =(my_CRC>>8)^ CRC16Table[(my_CRC^((U16_t)(*数据+
+)))(0x00FF];

*结果_MSB =(U8_t)(my_CRC >> 8);
*结果_lsb =(U8_t) my_CRC;

e2e.ti.com/.../CRC16.txt