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.

piccolo 2803x hrpwmSPRUGE8E Duty Cycle Range Limitation 请教非常感谢您!



您好!piccolo 2803x hrpwmSPRUGE8E手册中第24页关于增减计数模式的占空比范围限制的问题:

Figure 10. Up-Down Count Duty Cycle Range Limitation Example (HRPCTL[HRPE]=1)

NOTE: If the application has enabled high-resolution period control (HRPCTL[HRPE]=1), the duty

cycle must not fall within the restricted range. Otherwise, there will be undefined behavior on
the ePWM output.

问题如下:如果占空比范围偶尔处在图10中在过零附近的3个TBCLK时钟以及周期值TBPRD左右3个TBCLK周期,按照刚才的

note可知将出现不可控行为发生。但是作为电力电子闭环控制,我的占空比范围限制是在0%到100%,我不可避免会进入到这个

占空比限制范围内,那么对于这个问题怎么避免不可控行为发生?此时关驱动还是将HRPCTL[HRPE]置零,非常感谢您!

  • 就是你不能把高精度寄存器的最小值赋值到小于3,但是可以给0,如果小于3就会产生不稳定,可能会全高或者全低,你可以在程序中做一个判断,如果小于3,就直接给0.