AnsweredAssumed Answered

STM32F373 Timer questions

Question asked by gaijingeek on Jun 24, 2014
Latest reply on Oct 26, 2017 by Omar BOUZOURRAA

I have a timer performing input capture on one channel. Can I set another channel OF THE SAME TIMER as an output with a frequency double of the captured input signal frequency?
I am not 100% clear on how the input capture works, but I expect that (also seeing the code examples) the timer starts counting at the System Clock frequency, and then the input signal frequency is calculated based on the distance in timer counts, and computed as:
TIM2Freq = (uint32_t) (SystemCoreClock / Capture); I'd expect that if I set another channel in utput compare with a prescaler = Capture/2-1 it should be feasible....?
Can you clarify on this point?

Thanks a lot!!!