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.

[参考译文] TMS570LS1114:CAN

Guru**** 2392095 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/1057434/tms570ls1114-can

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

尊敬的,

问题1:  CAN 是否可以在 TMS570中发送 FIFO? 如何实现发送功能?

问题2:"" uint32 canFillMessageObjectData (canBASE-t *节点、uint32 MessageBox、const uint8 * data) "" 函数是什么?  如何使用?

问题3:可以发送少于8字节的数据。  更新消息框的 MCTL 后、为什么接收器读取的 MCTL 值仍然为8个字节? 是否  只能发送8个字节?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    [引用 userid="472354" URL"~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1057434/tms570ls1114-can 问1:  可以在 TMS570中发送 FIFO 吗? 如何实现发送功能?[/quot]

    是的、您的邮箱配置正确。 最后一个缓冲区的 EOB 应设置为1、所有其他缓冲区的 EOB 应清除。

    [引用 userid="472354" URL"~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1057434/tms570ls1114-can "]问题2:" uint32 canFillMessageObjectData (canBASE-t *节点、uint32 MessageBox、const uint8 * data) "" 该函数是什么?  如何使用?

    这是 HALCOGen 生成的 API。 它用于向 CAN 存储器 RAM 中的报文对象写入数据、但不会触发报文传输。

    [引用 userid="472354" URL"~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1057434/tms570ls1114-can ]问题3:可以发送少于8个字节的数据。  更新消息框的 MCTL 后、为什么接收器读取的 MCTL 值仍然为8个字节? 是否  只能发送8个字节?

    是的、DLC (数据长度代码)是可编程的。 DLC = 0~7。  当报文处理器在报文对象中存储数据帧时、它将存储接收到的数据长度码和8个数据字节。 如果数据 长度码小于8、报文对象的剩余字节可能会被非 指定值覆盖。