We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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?
This is really a question about the hardware details of the STR9 processor; nothing really to do with Keil tools.
Therefore, you might be better seeking help direct from ST, or on the ST forum...