摘要:
频率 10K,占空比可以达到1%变化的精度,100K只能是10%的变化精度。 #define PWM_CLK1M_ARR_10K100-1void IzADCPWMInit(uint8_t duty)//10%~90%{ if(duty>90) {duty = 90; } if(duty<10) {duty = 10; } //reset /* TIM4 enable counter */ TIM_Cmd(TIM4, DISABLE); /* TIM4 Main Output Enable */ TIM_CtrlPWMOutputs(TIM4, DISABLE); //end of 阅读全文
posted @ 2011-06-16 10:16 蓝色星宇 阅读(10738) 评论(1) 推荐(0) 编辑