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_setTimeBasePeriod(myEPWM1_BASE, 4000); EPWM_setClockPrescaler(myEPWM1_BASE, EPWM_CLOCK_DIVIDER_2, EPWM_HSCLOCK_DIVIDER_2);
PWM时钟复位的时候默认是100MHz。
实测3.125k,能否帮我讲解下,3.125k是如何配置出来的?
TBCLK = EPWMCLK/(highSpeedPrescaler * pre-scaler)
按照这个公式,时基 = 100/(2*2) = 25 M
周期 = 25M/4000 = 6.25k,为何实测是3.125k