PWM gateway