Hello,
What I meant was to use a GP output for your PWM signal. Then, within the periodic timer ISR you could increment a counter variable, and test the new value -
If the new value is equal to the required pulse width, clear the output.
If the new value is equal to the "terminal count" value, set the output and clear the counter value.
The total PWM period would be (timer interrupt period * terminal count).
Regards,
Mac