pwm thread running