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.

ccs中debug时候单步运行配置完pwm,并无波形输出,必须RESUME运行才行,这是什么原因

我用的ti的标准例程  Example_2803xEPwmDeadBand

如下图,在配置完pwm后增加while循环,如果单步执行的话,理论上配置完最口一个开启pwm同步时钟应该就有pwm输出了,实际上没有,

如果此时改成全速运行

resume 则就有pwm输出,请问有人知道原因吗,

感之不尽

  • 又仔细看了手册,原来是每个外设都有寄存器设置在调试时候的暂停状态,例如我说的这个就是设置这个寄存器
    Table 3-28. Time-Base Control Register (TBCTL) Field Descriptions
    15:14 FREE, SOFT Emulation Mode Bits. These bits select the behavior of the ePWM time-base counter during
    emulation events:
  • 很高兴您能解决问题!谢谢分享答案