This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Delays for two PWM signals

Hi!

I need to generate two PWM signals using MCBSTR9. 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?

Parents Reply Children
No data