I may not fully understand your application so this may not apply.
The PWM function will put out a continuously repeating pulse train at the cycle time and pulse width you specify unless you inhibit the output or you write zero to the pulse width. If you are trying to achieve quasi-analog control with a digital signal, PWM is the ticket. If you want to send out occasionally triggered pulses with the operator entered specifications PWM is probably not what you want.
Keith