在cw2015的设备树节点中,divider_res1、divider_res2属性的意思
时间: 2024-05-29 09:14:11 浏览: 63
在cw2015的设备树节点中,divider_res1和divider_res2属性通常用于描述时钟分频器的设置。具体来说,divider_res1属性用于设置分频器的分子,divider_res2属性用于设置分母。通过这两个属性的值可以确定分频器的分频比,从而控制时钟的频率。例如,如果divider_res1的值为2,divider_res2的值为5,那么时钟频率将会被分频为原来的1/2.5,即原来的40%。需要注意的是,divider_res1和divider_res2属性的具体含义可能会因为不同的设备而有所不同。
相关问题
EPWM_setClockPrescaler(myEPWM3_BASE, EPWM_CLOCK_DIVIDER_2, EPWM_HSCLOCK_DIVIDER_1);
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.
阅读全文