pwm: switched to core