要求得到下列波形,死区时间1us,CH1和CH1之间的相位差事3us,频率50HZ。![]() 1,To get TIM1 counter clock at 72MHz,the prescaler is computer as follows: Prescaler = (TIM1CLK / TIM1 counter clock) - 1 To objective is to genterate PWM signal at 50KHz: -TIM1_Priod = (SystemCoreClock / 50000) - 1 To get TIM1 output clock at 50KHz , the period (ARR) is computed as follows : ARR = (TIM1 counter clock / TIM1 output clock) - 1 The Two Duty cycles are computed as the following description : TIM1 Channel1 duty cycle = (TIM1_CCR1 / TIM1_ARR)*100 = 50% TIM1 Channel2 duty cycle = (TIM1_CCR1 / TIM1_ARR)*100 = 50% The Timer |
STM32F103VCT6 高级定时器的PWM输出
最新推荐文章于 2024-06-18 00:15:00 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)