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.

[参考译文] TMS570LS0432:TMS570 CAN 总线仲裁负载。

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1136242/tms570ls0432-tms570-can-bus-arbitration-load

器件型号:TMS570LS0432

您好!  

我使用 TMS570 MCU CAN 总线功能。

我需要加载 CAN ID 和数据。

如何将 代码写入该代码?

我将消息框9 ID 设置为0x14EA01EF。

我将 int 变量"u32temp"设置为读取 ID、但它可以正常工作。

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

    您好、Kuanlee、

    您需要将消息仲裁或 ID 从消息 RAM 传输到 IFx 寄存器

       CANREG1->IF1CMD = 0x20U;

       canREG1>IF1NO = MessageBox;

    然后从 IFx 寄存器中读取 ID

      u32temp = node->IF1ARB

    可以使用 canGetID(...) 以读取消息 ID。