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.

[参考译文] TMS320F280049C:通过 HAW 修改 C2000Ware 示例以将 OST 替换为 CBC?

Guru**** 2537120 points
Other Parts Discussed in Thread: C2000WARE

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1231484/tms320f280049c-haw-to-modify-c2000ware-example-to-replace-ost-with-cbc

器件型号:TMS320F280049C
主题中讨论的其他器件:C2000WARE

您好!

如示例中所示

\C2000Ware_4_03_00_00\driverlib\f28004x\examples\cmpss\cmpss_ex1_asynch.c

仅考虑一次触发跳闸操作、完全缺少逐周期

与此相关、中提出了一个问题

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1181145/tms320f280049c-cmpss-ramp-generator?tisearch=e2e-sitesearch&keymatch=RAMP%20CMPSS#

我认为答案不完整,请回答以下问题,以便作出澄清:

请提供 cmpss_ex1_asynch.c 的完整代码、由于 CBC 与 DCBEVT2相连、而不是 DCBEVT1、因此修改后将 OST 替换为 CBC。

此外、请在 C2000Ware 的下一个正式版本中包含 CMPSS 上带有斜坡的修改示例

从 cmpss_ex1_asynch.c 中提取

 //
   //启用 DCB 作为 OST
   //
   ePWM_enableTripZoneSignals (EPWM8_BASE、EPWM_TZ_SIGNAL_DCBEVT1);

   //
   //将 DCB 路径配置为未过滤和异步
   //
   EPWM_setDigitalCompareEventSource (EPWM8_BASE、
                                     EPWM_DC_MODULE_B、
                                     EPWM_DC_EVENT_1、
                                     EPWM_DC_EVENT_SOURCE_ORIG_SIGNAL);

谢谢。

Andrei.

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

    由于阵亡将士纪念日放假、请于星期二之前收到答复。

    谢谢。

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

    您好、Andrei:

    感谢您的耐心。

    我只想澄清一点、在本示例中、我们只想 为  DCBEVT1分配一次性操作。

    请注意、每个跳闸区输入和数字比较(直流)子模块 DCAEVT1/2或 DCBEVT1/2强制事件都可以分配给单次触发或逐周期操作。

    此致、

    哈迪