AnsweredAssumed Answered

How to corretly stop timer

Question asked by Deer90 on Feb 13, 2015
Latest reply on Feb 14, 2015 by Deer90
Hello, I am measuring voltage via ADC, using timer TRGO interrupt trgiggered DMA. After measuring 1000samples I need to stop, proces meassured data and then continue in meassuring. I stop timer by:


and after data processing I run timer again by:

TIM_ITConfig(TIM3, TIM_IT_Update, ENABLE);

But in debug after TIM_ITConfig(...., DISABLE);  new samples are still coming and overwriting old samples. How is it possible when I stopped timer update?

When I use: TIM_Cmd(TIM3, DISABLE);  everything is OK, but I dont know if it is neccesary to turn off whole timer....

Thank you for answeres and ideas.