2015-02-04 09:30 PM
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-mcu2015-02-05 02:12 AM
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