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.

[参考译文] TMS320F28P650DH:如何使用 pto_plusegen_runPulseGen ()、例如如何设置参数以在1秒内输出10个脉冲?

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1435385/tms320f28p650dh-how-to-use-pto_plusegen_runpulsegen-such-as-how-to-set-parameter-to-output-10-pulses-in-1-second

器件型号:TMS320F28P650DH

工具与软件:

大家好、团队成员:

我向我的客户提问、我们已阅读 PTO 库 UG.Link:https://www.ti.com/lit/ug/sprac77e/sprac77e.pdf?ts PTO=1730869305836&ref_url=http%253A%252F%252Fti.com%252Fproduct%252FTMS320F28379D

但不知道如何设置参数、您能让我们设置正确的参数在1秒内实现10个脉冲吗?

谢谢!

此致、

Zane

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

    您好!

    您可以参考示例中包含 pto_setOptions()的第175行。 该函数执行 pto_pulsegen_runPulseGen()使用的中间计算。

    更新 pto_setOptions()中的参数以反映所需的参数。

    例如、1秒内10个脉冲的波形如下所示:

    PTO_setOptions (10,1001000000,500、1、1);

    希望这对您有所帮助!

    此致、

    Ozino