PWM/S-Bus to PPM converter