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.

[参考译文] AM263P4-Q1:MCAN_setOpMode 的超时周期

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1602804/am263p4-q1-the-timeout-period-for-mcan_setopmode

器件型号: AM263P4-Q1

我正在尝试设置一个适当的超时时间、以便 MCAN_getOpMode()在呼叫后使用进行验证MCAN_setOpMode()。 使用切换到初始化模式或正常模式通常需要多长时间MCAN_setOpMode()? 另外、最坏情况下的持续时间是多久?
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    你好、Imaoka、

    感谢您提出这个出色的问题。 在 CPU 写入 MCAN 寄存器期间会发生一些同步、以解决内部工作时钟和功能 CAN 总线时钟的差异。 我找不到在 INIT 和正常操作模式之间切换的常见或最坏情况时序的硬定义数字或值。 我看到的大多数超时示例代码都使用 1 秒的最大超时值。 这似乎是一个有效的选项、但我的建议是在代码中实施测试计时器来测量应用中开关的实际时间。 然后、考虑到典型情况+限值带、您可以确定更准确的超时周期。

    此致、

    Zackary Fleenor