DocID13902 Rev 15 394/1128
RM0008 General-purpose timers (TIM2 to TIM5)
417
Figure 143. Triggering timer 2 with update of timer 1
As in the previous example, you can initialize both counters before starting counting.
Figure 144 shows the behavior with the same configuration as in Figure 141 but in trigger
mode instead of gated mode (SMS=110 in the TIM2_SMCR register).
Figure 144. Triggering timer 2 with Enable of timer 1
TIMER 2-TIF
Write TIF=0
FD
FE FF
00
01
45 47 48
CK_INT
TIMER1-UEV
TIMER1-CNT
TIMER2-CNT
02
46
TIMER2-CEN=CNT_EN
TIMER 2-TIF
Write TIF=0
75 00 01
CK_INT
TIMER1-CEN=CNT_EN
TIMER1-CNT
TIMER2-CNT
02
TIMER1-CNT_INIT
CD 00 E7 E8 EA
TIMER2-CNT_INIT
TIMER2
write CNT
E9