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.

[参考译文] TMS570LS1224:DCAN、DCAN 中断请求示例代码

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/597043/tms570ls1224-dcan-request-for-sample-code-for-dcan-interrupt

器件型号:TMS570LS1224
主题中讨论的其他器件:HALCOGEN

大家好。

 我知道有3种类型的中断、消息对象中断、状态更改中断和错误中断。 但是、是否有人可以提供一些代码来说明如何对其进行编程、或者提供一个逻辑流程图来说明如何访问它。

非常感谢。

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

    您是否了解过 Halcogen 随附的示例代码? 其中包含一个基于中断的代码。 我不确定它们是否具有这些特定类型、但所有中断都将被矢量化到同一矢量。 然后、在 DCAN ISR 内部、您必须读取中断标志寄存器以检查中断类型并对发生的特定类型执行适当的处理。

    该示例位于 Halcogen--> Help --> Examples ->TMS570LS12x_11x\Example_CanIntCommunication.c 中,或者直接通过路径 C:\ti\Hercules \HALCoGen\v04.06.01\examples\TMS570LS12x_11x\examples_CanIntCommunication.c (假设您安装在默认位置)的资源管理器窗口。