move code update pwm out