2023-08-01 11:13 PM
Hello,
TIMER8 is configured with Reset Mode. where, external pulse is given to TIM8_ETR (PA0) and timer is configured in reset mode as follows.
The timer pulses are synchronized with the external signal and it works fine.
Now, I want to provide delay after sync with external pulse. i.e. the timer PWM should start after few microseconds.
Is there any way to provide delay after sync (not keeping controller busy in the delay)?
Thanks,
Nikhil
Solved! Go to Solution.
2023-08-02 02:09 AM
Hello @Nsg1987,
One way is to configure one of the timer's output compare channels to generate an interrupt after a certain delay. In the interrupt handler, you can start the PWM output, in this case, the delay is the number of timer counts to wait before the PWM.
Another approach is to use DWT for delay loops
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-08-02 02:09 AM
Hello @Nsg1987,
One way is to configure one of the timer's output compare channels to generate an interrupt after a certain delay. In the interrupt handler, you can start the PWM output, in this case, the delay is the number of timer counts to wait before the PWM.
Another approach is to use DWT for delay loops
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.