AnsweredAssumed Answered

Issue with timer interrupt routines

Question asked by martinu.jiri on Apr 14, 2013
Latest reply on Apr 22, 2013 by martinu.jiri
Hello all,
I've run into the following problem with the program execution.

On the STM32f4 Discovery board I've configured two timers with the IRQ routines for measuring two external PWM signals. This works excellently...but...

In the main function (within the while block) I need to make some other things (e.g. reading LIS302DL accelerometer values) but only IRQ routines are executed and the while block takes place only after the PWM signal interruption. If PWM signal is not present, the accelerometer values are read well.

What can I do to execute all main function and to measure the PWM in the same time?
Have I to create another timer with interrupt routine for execution other parts of code?

Thank you for your answers in advance.