cancel
Showing results for 
Search instead for 
Did you mean: 

STM32f091 External clock source mode 1 for TI3/TI4

slavokhire5
Associate
Posted on May 30, 2016 at 10:19

Hi everyone. Excuse me for my poor English.

Is it possible to set TIM2/TIM3 for external clock from TI3/TI4 inputs?

If it is not, give me a hint how to count amount of external pulses for PB11/PC9 without using interrupt for every pulse
1 REPLY 1
Posted on May 30, 2016 at 10:35

For CH3, you could use the XOR facility, see TI1S in TIMx_CR2; then select TI1FP1 as input to the slave controller set to external clock mode 1.

However, both those pins are CH4. The only option which comes to my mind is to set up a capture on CH4, set it to trigger a DMA, and then [ab]use the DMA to count the number of captures.

JW