EPWM_setClockPrescaler(myEPWM3_BASE, EPWM_CLOCK_DIVIDER_2, EPWM_HSCLOCK_DIVIDER_1);
时间: 2024-02-15 19:45:56 浏览: 17
This code sets the clock prescaler for ePWM3 to divide the clock by 2 and the high-speed clock divider to 1. This will result in a higher frequency PWM signal.
相关问题
EPWM_setClockPrescaler(myEPWM3_BASE, EPWM_CLOCK_DIVIDER_1, EPWM_HSCLOCK_DIVIDER_1);
This function call sets the clock prescaler of EPWM3 to have a clock divider of 1 and a high speed clock divider of 1. This means that the EPWM3 clock frequency will be equal to the system clock frequency, and the high speed clock frequency will also be equal to the system clock frequency. This will result in a high resolution and accurate PWM signal on the output of EPWM3.
EPWM_setTimeBasePeriod(myEPWM3_BASE, EPWM3_TIMER_TBPRD);
As an AI language model, I cannot provide the exact meaning of the given code without knowing the context and the programming language used. However, this code looks like it is setting the time base period of EPWM3 timer using a function called "EPWM_setTimeBasePeriod" with the timer period value being passed as the second argument.