Nations Technologies Inc.
Tel
:
+86-755-86309900
:
info@nationstech.com
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
262
/
631
Bit field
Name
Description
0
CNTEN
Counter Enable
0: Disable counter
1: Enable counter
Note: external clock, gating mode and encoder mode can only work after
TIMx_CTRL1.CNTEN bit is set in the software. Trigger mode can automatically set
TIMx_CTRL1.CNTEN bit by hardware
.
Control register 2 (TIMx_CTRL2)
Offset address: 0x04
Reset value: 0x0000
Bit field
Name
Description
15:9
Reserved
Reserved, the reset value must be maintained
8
ETRSEL
External Triggered Selection storage (ETR Selection)
0: Select external ETR (from IOM) signal;
1: Reserved
Note: For TIM4 and TIM5, ETR input is not support.
7
TI1SEL
TI1 selection
0: TIMx_CH1 pin connected to TI1 input.
1: TIMx_CH1, TIMx_CH2, and TIMx_CH3 pins are XOR connected to the TI1 input.
6:4
MMSEL[2:0]
Master Mode Selection
These 3 bits (TIMx_CTRL2. MMSEL [2:0]) are used to select the synchronization information
(TRGO) sent to the slave timer in the master mode. Possible combinations are as follows:
000: Reset –When the TIMx_EVTGEN.UDGN is set or a reset is generated by the slave mode
controller, a TRGO pulse occurs. And in the latter case, the signal on TRGO is delayed
compared to the actual reset.
001: Enable - The TIMx_CTRL1.CNTEN bit is used as the trigger output (TRGO). Sometimes
you need to start multiple timers at the same time or enable slave timer for a period of time.
The counter enable signal is set when TIMx_CTRL1.CNTEN bit is set or the trigger input in
gated mode is high.
When the counter enable signal is controlled by the trigger input, there is a delay on TRGO
except if the master/slave mode is selected (see the description of the TIMx_SMCTRL.MSMD
bit).
010: Update - The update event is selected as the trigger output (TRGO). For example, a master
timer clock can be used as a slave timer prescaler.