不同频率下的pwm配置

200k

    //PWM1
    PWMPERDL1=0xb3;
    PWMPERDH1= 0x00;    
    PWMCCNTL1=0x6B;
    PWMCCNTH1= 0;
    PWMDBDY1=0x2B;     //死区延时计时器
    //PWM0
    PWMPERDL0=pwm_per_L ;
    PWMPERDH0=pwm_per_H ;
    PWMCCNTL0=0x6B ;     
    PWMCCNTH0=0x00 ;     
    PWMDBDY0=0x2B;    //死区延时计时器    

500k

 

posted @ 2015-02-03 21:59  fx427103  阅读(344)  评论(0编辑  收藏  举报