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.

[参考译文] LAUNCHXL-F28379D:如何更新 CPU 计时器的命令? F28379D

Guru**** 2524550 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/987552/launchxl-f28379d-how-to-update-commands-for-cpu-timer-f28379d

器件型号:LAUNCHXL-F28379D

你(们)好  

我有与本主题中讨论的相同的问题:

https://e2e.ti.com/support/microcontrollers/c2000/f/c2000-microcontrollers-forum/880736/ccs-launchxl-f28379d-how-to-update-commands-for-cpu-timer

我已将 configcpu 计时器更改为 ConfigCpuTimer (&CpuTimer0、200、5);从 ConfigCpuTimer (&CpuTimer1、200、 1000000);

我想以200kHz 的频率进行采样。 我没有改变 CpuTimer0Regs.tcr.all = 0x4000;

现在、经过一段时间后、即使 CpuTimerCount 不断递增、PWM 也会冻结。

如上一个主题中所述,我无法找到 CpuTimer0Regs.TCR.all 中需要更新的解决  方案。

有人可以提供帮助吗?

谢谢

Sneha Thakur

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

    您好、Sneha、

    [引用 userid="329063" URL"~/support/microcontrollers/c2000/f/c2000-microcontrollers-forum/987552/launchxl-f28379d-how-to-update-commands-for-cpu-timer-f28379d "]一段时间后、即使 CpuTimerCount 不断递增、PWM 也会冻结。

    如果您禁用计时器、您是否仍然看到 PWM 输出存在问题?  

    [引用 userid="329063" URL"~/support/microcontrollers/c2000/f/c2000-microcontrollers-forum/987552/launchxl-f28379d-how-to-update-commands-for-cpu-timer-f28379d "]我无法找到 CpuTimer0Regs.TCR.All[/quot]中需要更新的解决方案  

    TCR 寄存器是 CPU 定时器的控制寄存器。 技术参考手册包含寄存器中不同位的相关信息、可帮助指导您了解需要更新的内容。 如果您只更改了周期值、则可以将其保留为原样: CpuTimer0Regs.TCR.all = 0x4000。  

    此致、

    Marlyn

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

    您好、Marlyn

    感谢你的答复。

    问题已解决。 我在错误的地方使用了计时器计数器。

    谢谢

    Sneha