Is it possible to manage two interrupt timers for two timer one act base timer and one worked as a counter if yes how to call different elapsed timer. Call back function
I Don't know what your harware is.
The callback function called automaticaly after you start the timer by call HAL_TIM_Base_Start_IT(...)
To distinguish interrupts between different timers you can use some code like this.
//Do something .The interrupt is from Timer 2
//Do something else The interrupt is from Timer 3
// Don't use "else" statement because you may lose some "simultaneous" interrupt from another timer
thanks it is working
M abouhasem wrote: thanks it is working
M abouhasem wrote:
Let's make our STM32 forum more efficient!
Retrieving data ...