setup_power_pwm(prescale,modes, postscale, time_base, period, compare, compare_postscale, dead_time)
nếu dò theo như vậy thì có lẽ bạn ko sử dụng chế độ time base.vậy thì làm sao mà PWM tuân theo duty cycle của bạn nhỉ!! sửa lại hen!!
setup_power_pwm(PWM_CLOCK_DIV_4|PWM_FREE_RUN,0,1,0,80,0,1, 0);
|