RM0444 Rev 5 775/1390
RM0444 General-purpose timers (TIM15/TIM16/TIM17)
830
25.4.18 Timer input XOR function (TIM15 only)
The TI1S bit in the TIMx_CR2 register, allows the input filter of channel 1 to be connected to
the output of a XOR gate, combining the two input pins TIMx_CH1 and TIMx_CH2.
The XOR output can be used with all the timer input functions such as trigger or input
capture. It is useful for measuring the interval between the edges on two input signals, as
shown in Figure 266.
Figure 266. Measuring time interval between edges on 2 signals
MS31400V1
TI1
TI2
TI1 XOR TI2
Counter