里面的SFO函数形式有点不一样,v5是
int SFO_MepEn_V5(int nEpwmModule);
int SFO_MepDis_V5(int nEpwmModule);
v6是int SFO(void);
声名中差一个PWM路数。而不同型号的DSP官方例程里有的用的是v5有的是v6
所以我在想v6是v5的新版还是用于其他方面的并列版本?v6中的SFO(void)是否可以用于多路不同参数的HRPWM的刷新?
Seven Han:
Code written for the HRPWM extension to the ePWM can be directly ported unless the Scale FactorOptimization library (SFO_TI_Build.lib and SFO_TI_Build_V5(B).lib) functions were being utilized for the280x/2801x/2804x devices. The 2802x/2803x devices use a different SFO library, SFO_TI_Build_V6.lib,which calls the SFO() function instead of the MepEn() or MepDis() functions from the previously libraries.
http://www.ti.com/lit/an/sprab40c/sprab40c.pdf 第17页9.7 Enhanced Pulse Width Modulator (ePWM)
里面的SFO函数形式有点不一样,v5是
int SFO_MepEn_V5(int nEpwmModule);
int SFO_MepDis_V5(int nEpwmModule);
v6是int SFO(void);
声名中差一个PWM路数。而不同型号的DSP官方例程里有的用的是v5有的是v6
所以我在想v6是v5的新版还是用于其他方面的并列版本?v6中的SFO(void)是否可以用于多路不同参数的HRPWM的刷新?
Xiao Yang:
回复 Seven Han:
我看见了这样的字句
“SFO() can be called at any time in the background while the ePWM channels are running in HRPWM
mode. The scale factor result obtained in MEP_ScaleFactor can be applied to all ePWM channelsrunning in HRPWM mode because the function makes use of the diagnostics logic in the MEPcalibration module (which runs independently of ePWM channels).”
这是否说明函数的算法会自动作出权衡,再将同一个尺度因子赋值给所有PWM?可不可以让不同通道的PWM精细度划分不一样(尺度因子不同)呢?