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.

TMS320F280023: 怎么在中断和主循环中同时使用VCRC模块

Part Number: TMS320F280023

1、主循环中使用“CRC_run16BitPoly1Reflected”,在中断中使用“CRC_run16BitPoly2”。
2、中断的的CRC_run16BitPoly2”会使主循环中的VCRC计算出错。
3、修改“CRC_run16BitPoly2”,计算始前使用VMOV32保存VCRC的值,计算结束后再恢复。
4、主循环中“CRC_run16BitPoly1Reflected”计算正常。
5、后续测试中,发现主循环和中断的VCRC计算会随机性出错。

6、将“CRC_run16BitPoly1Reflected”,“CRC_run16BitPoly2”都放到主循环中使用,计算正常。
——————————————————————————————————————
问题:如果我要在主循环中和中断同时使用VCRC模块,要怎样才能避免计算出错。