cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronizing TIMs to generate 'n' pulses at frequency 'f'

Jim Frederick
Associate II
Posted on March 01, 2014 at 23:18

Is it possible to synchronize two TIMs to gate a timer output channel to generate 'n' pulses without an ISR? I'd like to generate a pulse train at roughly 2 to 4 MHz and stop the pulse train at 'n' pulses. I'm using an STM32F10x running at 24 MHz. 

#stm32-timer
1 REPLY 1
Posted on March 02, 2014 at 02:46

For smaller values of N, look at the 8-bit repetition counter.

Should be possible to slave/gate from another timer, can't say I spent any time looking at it.

STM32F10x_StdPeriph_Lib_V3.5.0\Project\STM32F10x_StdPeriph_Examples\TIM\TIM1_Synchro
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..