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.

TMS320F28027例程学习电机参数

Other Parts Discussed in Thread: MOTORWARE

想学习新电机参数该用哪个例程具体怎么操作

  • “想学习新电机参数该用哪个例程具体怎么操作”
    ERIC:
    首先可以考虑InstaSPIN FOC的方案,芯片对应是F28027F。
    其次下载motorware 软件,然后用里面的例程。
    C:\ti\motorware\motorware_1_01_00_18\docs\labs
    参考上面这个文档。
    如果是电机参数识别,可以用Lab02.
    当然,如果有开发板最好。
    不然你就得根据自己的板子修改例程。
  • Lab02里随便哪一个吗 需要更改里面的代码吗
  • 电机参数识别您也可以参考motorware中的相关资料:

    例程选择:

  • 谢谢回答!我还有个小疑问想请教一下 ,在这个函数里
    void HAL_setupGpios(HAL_Handle handle)
    {
    HAL_Obj *obj = (HAL_Obj *)handle;


    // PWM1
    GPIO_setMode(obj->gpioHandle,GPIO_Number_0,GPIO_0_Mode_GeneralPurpose);//GPIO_0_Mode_EPWM1A
    GPIO_setDirection(obj->gpioHandle,GPIO_Number_0,GPIO_Direction_Output);
    GPIO_setHigh(obj->gpioHandle,GPIO_Number_0);

    // PWM2
    GPIO_setMode(obj->gpioHandle,GPIO_Number_1,GPIO_1_Mode_GeneralPurpose);//GPIO_1_Mode_EPWM1B
    GPIO_setDirection(obj->gpioHandle,GPIO_Number_1,GPIO_Direction_Output);
    GPIO_setLow(obj->gpioHandle,GPIO_Number_1);
    我想把GPIO0和GPIO1口电压分别置高和置低,这样写对吗?还是下面那个PWM2设置模式也是GPIO_0_Mode_GeneralPurpose;没太明白这个序号是否需要对应