cancel
Showing results for 
Search instead for 
Did you mean: 

Possible to trigger timer events from software on STM32F4?

arnold_w
Senior

I am working with the STM32F4 family. External interrupts have a register called EXTI->SWIER that makes it possible to generate external interrupt from software. Do the timers have something similar, a register that I can use to generate timer interrupts in software?

1 ACCEPTED SOLUTION

Accepted Solutions
3 REPLIES 3

TIMx_EGR

JW

arnold_w
Senior

Thanks!

Khouloud GARSI
Lead II

Hi @arnold_w​ ,

Correct you have to use the TIMx_EGR as suggested by Jan.

Just do not forget to enable the interrupt in TIMx_DIER register.

Khouloud.