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.

[参考译文] TMS320F28069:F28069可以发送和中断

Guru**** 2601915 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/676253/tms320f28069-f28069-can-send-and-interrupt

器件型号:TMS320F28069

您好!

当我写入 CAN 通信程序时、使用串行端口中断。 当串行端口接收到一条消息时、它进入中断例程。 中断程序调用可以通过 CAN 进行通信并发送串行数据。 但是、当 CAN 发送数据时会遇到问题。 如果串行端口中断、则无法发送正确的数据、因为 CPU 开始执行串行数据。 如何解决这个问题? 是否可以设置 CAN 发送中断? 非常感谢。

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

    我不明白您所说的“CPU 开始执行串行数据”是什么意思。

    是的、您可以配置 CAN 发送中断操作。 请下载我的 app.note SPRA876并查找包含中断的示例代码。