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.

[参考译文] TM4C123GH6PZ:如果我启用了 TM4C123GH6PZ 上的 CAN 接口,我是否可以使用 CANBitTimingSet 即时配置 tCANBitClkParms?

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/897893/tm4c123gh6pz-if-i-have-enable-the-can-interface-on-tm4c123gh6pz-can-i-config-tcanbitclkparms-using-canbittimingset-on-the-fly

器件型号:TM4C123GH6PZ

如果我启用了 TM4C123GH6PZ 上的 CAN 接口,是否可以使用 CANBitTimingSet 即时配置 tCANBitClkParms?

谢谢

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

    是的、您可以这样做、但这样做将暂时禁用、然后重新启用 CAN 模块。 只有当 CANCTL 寄存器的 INIT 位置位时、位时序才能改变。  CANBitTimingSet()函数将设置该位,更改时序,然后将该位恢复到其先前的状态。

    当然、这会破坏当前帧的传输或接收。 此外、如果时序与总线其余部分的时序不兼容、则会导致错误。