EPWM_ConfigOutputChannel(EPWM0, EPWM_Axis, speed_cmd, 50);
EPWM_EnableOutput(EPWM0, EPWM_CH_1_MASK);
EPWM_EnableAcc(EPWM0, EPWM_Axis, pls, EPWM_IFA_ZERO_POINT);
EPWM_EnableAccStopMode(EPWM0, EPWM_Axis);
// EPWM_EnableAccPDMA(EPWM0, EPWM_Axis);
EPWM_Start(EPWM0, EPWM_CH_1_MASK);
这样的话,提前配置好PDMA,不使能ACCPDMA也可以?这是为什么? |