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.

PWM相位差问题



if(objMtr->mtrNum == HAL_MTR1)
{
PWM_disableCounterLoad(objMtr->pwmHandle[0]); // disable phase syncronization
}
else if(objMtr->mtrNum == HAL_MTR2)
{
PWM_enableCounterLoad(objMtr->pwmHandle[0]); // enable phase syncronization
PWM_setPhase(objMtr->pwmHandle[0],(halfPeriod_cycles>>1)); // half PWM period
}

改变halfPeriod_cycles这个值 ,两路PWM的相位差为什么不变化?