pwm_generator working