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.
工程中添加SFO_TI_Build_V6b.lib等库文件;
头文件
#include "SFO_V6.h" // SFO lib functions (needed for HRPWM)
例程:
int
MEP_ScaleFactor; // Global variable used by teh SFO library
main ()
{
int status;
status = SFO_INCOMPLETE;
while (status==SFO_INCOMPLETE) {
status = SFO();
}
if(status!=SFO_ERROR) { // IF SFO() is complete with no errors
EALLOW;
EPwm1Regs.HRMSTEP=MEP_ScaleFactor;
EDIS;
}
具体请参照Controlsuite中的例程。谢谢!