when stopping pwm set value to 0