I need to generate two PWM signals using board MCBSTR9 (STR912FAW44). Main parameters for signals are delay, pulse width, period length. I send this params to board with RS-232. There are no problems with setting pulse width and period length. But I'm not sure for delay.
I use TIM0 for PWM output and TIM2 for comparing.
So TIM2 works as delay and I use its ISR for starting PWM. (For second PWM signal I use TIM3 and for its delay TIM1.)
If I have 2 timers for comparing do I need to organise in their ISR nested interrupts? (I think I must)?
Is this way optimal for generating delay?