English
Language : 

RM0385 Datasheet, PDF (741/1644 Pages) STMicroelectronics – This reference manual targets application developers
RM0385
General-purpose timers (TIM2/TIM3/TIM4/TIM5)
Figure 236. Triggering TIM with update of TIM3
&.B,17
7,08(9
7,0&17
7,0&17
7,0&(1 &17B(1
7,07,)
)'
)(
))







:ULWH7,) 
069
As in the previous example, you can initialize both counters before starting counting.
Figure 237 shows the behavior with the same configuration as in Figure 236 but in trigger
mode instead of gated mode (SMS=110 in the TIM_SMCR register).
Figure 237. Triggering TIM with Enable of TIM3
&.B,17
7,0&(1 &17B(1
7,0&17B,1,7
7,0&17


7,0&17
&'

(


(
(
($
7,0&17B,1,7
7,0
ZULWH&17
7,07,)
:ULWH7,) 
069
Starting 2 timers synchronously in response to an external trigger
In this example, we set the enable of TIM3 when its TI1 input rises, and the enable of TIM2
with the enable of TIM3. Refer to Figure 233 for connections. To ensure the counters are
aligned, TIM3 must be configured in Master/Slave mode (slave with respect to TI1, master
with respect to TIM2):
DocID026670 Rev 1
741/1644
770