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.

TMS320F280039C: what is priority of ePWM AQ "Do nothing" - please dont close this question

Part Number: TMS320F280039C

I configure  xA, output controlled by CMPA,CMPB,CNT

My configuration as follow:

TBCTR Period Counter = 100, CNT = 0  Set xA output high  , CMPA = 50 -> Set output Low , CMPB = 50 ->Do nothing   ; Since CMPB have higher priority than CMPA

->  what happen while Counter = 50 ? will output  xB  be pull low or Still High?

此问题没有解决,请不要关闭, 请TI FAE 答复下

  • 您好,

        "不执行任何操作"基本上是禁用的操作。

        因此,当计数器点击比较B值时,输出将继续其当前状态,因为比较B命中上的操作配置为"不执行任何操作"。

  • 所以上面 counter = 50时,xB = Low 还是high? 

  • 麻烦给个清晰的答案,上面条件下 Counter = 50 ,xB 输出高还是低?

  • 您好,

    当计数器点击比较B值时,输出将继续其当前状态

         请查看前面回复。

  • 请TI 原厂FAE回复下:

    看不懂你的答案,见下图红色字体,当CMPA = CMPB 时,输出是高还是低?端口要么是高,要不是低, 麻烦给个清晰的回答麻烦

    请问下面2个答案你选哪个?

    a) Counter = 50 时 输出高

    b) Counter = 50 时,输出为低

  • 实际测试了一下,PWMA在CMPA点输出会变为低,按照“CMPA = 50 -> Set output Low”指令执行。

    实际配置和波形如下:

    就如之前我们讨论的:“”Do nothing”的配置,到底是交出控制权啥也不干,还是保留控制权并保持之前的电平不能变。

    从结果来看,是交出了控制权,PWM输出受其他配置的影响。

    我只是个过客,不是TI支持。

  • 您好,

           根据此配置,CMPA = CMPB = 50,CMPA设置为低值,CMPB不执行任何操作。 输出已经很高,它会撞到CMPA (使其更低),因此选项将是(b)。