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.

LAUNCHXL-F280025C: 如何計算PWM頻率

Part Number: LAUNCHXL-F280025C
Other Parts Discussed in Thread: C2000WARE

我目前使用開發板LAUNCHXL-F280025C, 並參考C2000Ware的example: epwm_ex2_updown_aq,裡面設定PWM的週期如下:

EPWM_setClockPrescaler(myEPWM1_BASE, EPWM_CLOCK_DIVIDER_1, EPWM_HSCLOCK_DIVIDER_1);
EPWM_setTimeBasePeriod(myEPWM1_BASE, 2000);
EPWM_setTimeBaseCounter(myEPWM1_BASE, 0);
EPWM_setTimeBaseCounterMode(myEPWM1_BASE, EPWM_COUNTER_MODE_UP_DOWN);
EPWM_disablePhaseShiftLoad(myEPWM1_BASE);
EPWM_setPhaseShift(myEPWM1_BASE, 0);

我用示波器量到的週期是25KHz, 請問是如何計算的?