cancel
Showing results for 
Search instead for 
Did you mean: 

Start two timers synchronous in STM32F1 eval board

santhosh
Associate
Posted on February 05, 2015 at 06:30

Hello,

I have to start two timers exactly at the same time... like In my program i am using TIM3 four channels for 4 four hall sensors and TIM4 for 5 hall sensor... I need to start all the 5 hall sensors at time.. So i need to synchronous the TIM3 four channels and TIM4 one channel... Could please help in any example how to start two timers at time and processing same with out any problem upto end programming.. 

Please reply ASAP..

Thank you in  advance...

#stm32f103-eval-board #stm32-mcu
1 REPLY 1
Posted on February 05, 2015 at 11:12

I dont' quite understand what are you trying to achieve, but to start both timers simultaneously, use the internal link between them - there is a detailed description how to achieve this in the UM, under ''Starting 2 timers synchronously in response to an external trigger''. Of course, you can use any two linkable timers (thus TIM3 -> TIM4 or vice versa) and use any external trigger from the selection given by TIMx_SMCR.TS to start the process.

JW