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.
Hi all
TI 2802x PSFB PCMC里关于PWM初始化配置有个地方不懂,PWM3作为PWM2、4的bypass sync讯号,
其配置的位移量35对于整体控制有甚么作用吗? 对于ADC、COMP1是否有时序上的影响?
另外,在PWM起始时,比较器对于PWM2的动作是如何,能不能稍微解释一下,谢谢。
//Configure EPWM(n+2) time base for ADC SOC generation and syncing the DAC
//Time Base SubModule Register
(*ePWM[n + 2]).TBCTL.bit.PRDLD = TB_IMMEDIATE;
(*ePWM[n + 2]).TBPRD = period - 1;
(*ePWM[n + 2]).TBPHS.half.TBPHS = period - 35;
(*ePWM[n + 2]).TBCTR = 0;