359
/
838
Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
Figure 12-24 TIM2 gated by enable signal of TIM1
Master timer to start another timer
In this example, we can use update event as trigger source.TIM1 is master, TIM2 is slave.
The configuration steps are shown as below:
Setting TIM1_CTRL2.MMSEL=’ 010’ to use the update event of TIM1 as trigger output
Configure TIM1_AR register to set the output period.
Setting TIM2_SMCTRL .TSEL= ‘000’ to connect TIM1 trigger output to TIM2.
Setting TIM2_SMCTRL. SMSEL = ‘110’ to set TIM2 to trigger mode.
Setting TIM1_CTRL1.CNTEN=1 to start TIM1.
CK_INT
CNTEN
CNT
87
88
89
CNT
Clear TITF
00
01
02
TITF
TIM1
TIM2