cancel
Showing results for 
Search instead for 
Did you mean: 

Delay for PWM signals

iu5334
Associate
Posted on November 08, 2011 at 01:18

Hi!

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.)

Questions:

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?

0 REPLIES 0