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软件的功能

Other Parts Discussed in Thread: CONTROLSUITE

请教关于SFO软件功能,在HRPWM模块中是怎么使用的?谢谢!

  • 工程中添加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中的例程。谢谢!

  • 谢谢Martin!