trying to work on a combined pwm + pulse in example