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.

[参考译文] TM4C123BE6PM:CAN 状态(CANSTS)最后一个错误代码、

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/761308/tm4c123be6pm-can-status-cansts-last-error-code

器件型号:TM4C123BE6PM

您好!

我想了解 CAN 总线寄存器、CAN 状态(CANSTS)寄存器中有最后一个错误代码(LEC)位
描述 CAN 总线上最后一次发生的错误。
我无法理解0x7 (无事件)错误、寄存器描述提到"没有 CAN 总线事件
因为该值被写入 LEC 域"。 请告诉我该错误是什么意思、以及
它的含义是 CAN 总线事件。

这是否意味着自上次 CPU 读取状态寄存器以来未检测到 CAN 总线事件?

此致
巴杜语

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

    用户可以将值0x7写入 LEC 位。 当接收或发送 CAN 帧时、如果帧没有错误、CAN 控制器将把0x7更改为0x0;如果检测到错误、将把0x1更改为0x6。