RM0090 General-purpose timers (TIM2 to TIM5)
Doc ID 018909 Rev 4 456/1422
Figure 162. Triggering timer 2 with update of timer 1
As in the previous example, you can initialize both counters before starting counting.
Figure 163 shows the behavior with the same configuration as in Figure 162 but in trigger
mode instead of gated mode (SMS=110 in the TIM2_SMCR register).
Figure 163. 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