/*PWM输出配置说明*/ /* - Prescaler = (TIM3CLK / TIM3 counter clock) - 1 选择timer工作在36MHZ The TIM3 is running at 36 MHz: TIM3 Frequency = TIM3 counter clock/(ARR + 1) = 36 MHz / 3600 = 10 KHz TIM3 Channel1 duty cycle = (TIM3_CCR1/ TIM3_ARR)* 100 */ /*转换周期10K*/