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.

28035的Trip Zone 模块疑惑?请TI员工帮忙解答,非常感谢



我所理解的TZDCSEL:Trip Zone 模块数字比较事件选择寄存器是用来选择数据比较器未高电平或者低电平时执行动作。

问题来了:

1.Digital Compare Output要么输出1要么输出0。为什么还有DCBL 和DCBH (DCBL = high, DCBH = low)之分呢?

2.在例程Example_2803xEpwmDCEventTrip.c中,配置TZSEL,和动作PWM输出让我觉得很是疑惑?

   EPwm1Regs.TZSEL.bit.DCAEVT1 = 1;//选用的是数字比较器1

   EPwm1Regs.TZCTL.bit.TZA = TZ_FORCE_HI;           // EPWM1A will go high
   EPwm1Regs.TZCTL.bit.TZB = TZ_FORCE_LO;           // EPWM1B will go low

为什么不是用数据比较器的输出作为事件触发PWM动作时选择输出(EPwm1Regs.TZCTL.bit.DCAEVT1=1;)?而是用的TZ触发PWM的动作。

是因为这里把数字比较器的输出作为了事件吗?那么TZCTL的DCAEVT1意义在哪?