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.

EPWM占空比设置



设置pwm的占空比主要是设cc模块,我的设置是这样的:

#define EPWM1_TIMER_TBPRD 37500 // Period register
#define EPWM1_MAX_CMPA 4687.5
#define EPWM1_MIN_CMPA 937.5
#define EPWM1_MAX_CMPB 1950
#define EPWM1_MIN_CMPB 50

我的目的是设置epwm1A的占空比在0.025到0.125之间变化。但是这样设,占空比却一点不变。我该怎么改?