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.
尊敬的朋友:
我在 TMS320F28377D 中使用 CAN。我参考了用于 CAN 外部传输检查的 C2000示例文件。在中、使用 API 提供了去模糊位时间计算。
但在找到技术参考手册时 ,我想使用给出的示例20.12.2.2 (第 NO- 2009页)和20.12.2.3 (第 NO- 2010页)来计算 BRP 值。
我不理解他如何使用公式得到的值:
{示例-1 20.12.2.2 (页号- 2009)}=(1-1) base 3 &(8-1) base 4 &(1-1) base 2 &(1-1) base6 = 0x0000700;
{example -2 20.12.2.3 (页码- 2010)}=(4-1) base 3 &(5-1) base 4 &(4-1) base 2 &(1-1) base6 = 0x00034C1;
有人能解释一下吗?
此致、
Ashrumochan。
您使用的是 TRM 的过时版本。 请使用最新版本: http://www.ti.com/lit/ug/spruhm8g/spruhm8g.pdf
位速率的公式为:CAN 模块时钟/[BRP x 位时间]
BRP 是 BRPreg + 1的值。 位时间=(TSEG1reg + 1)+(TSEG2reg + 1)+ 1
在上面的等式 BRPreg、TESG1reg 和 TSEG2reg 中,表示写入 CANBTC 寄存器相应字段的实际值。 当 CAN 模块访问这些参数时、TSEG1reg、TSEG2reg、SJWreg 和 BRPreg 参数会自动增强1。
示例1:
BRP 为1。 位时间为10。
示例2:
BRP 为2。 位时间为10。
我同意、在 TRM 中、所有这些都不清楚。 我们正在进行更新、并已将其标记为澄清。
您可能还想参阅以下有用资源 :http://www.ti.com/lit/an/sprac35/sprac35.pdf
谢谢 您、Haresh、
我将会详细介绍这一点。
此致、
Ashrumochan