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.

28335 EPWM模块 TBCTR的输出与写入

在用28335的EPWM模块中遇到了些问题,想请教各位:

1、无法从CCS的Watch Window中获得TBCTR的实时值,每次看都是TBPRD的值,之前看过说是通过增加代码输出来看,我把TBCTR赋值给变量,得到的也是TBPRD的值,想知道如何能看到TBCTR的值。

2、想实现一个功能,外部中断来时,使EPWM停止当前的周期,重新开始。我的做法是在中断中写入TBCTR,想知道这种做法是否可行,该写入0还是周期值还是皆可?

  • 关于第二个问题,你可以把中断信号输入到EPWMSYNCI管脚

    可参考:http://www.ti.com/lit/ug/sprufz6b/sprufz6b.pdf