367
/
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
Bit field
Name
Description
1
UPDIS
Update disable
This bit is used to enable/disable the Update event (UEV) events generation by software.
0: Enable UEV. And UEV will be generated if one of following condition been fulfilled:
–
Counter overflow/underflow
–
The TIMx_EVTGEN.UDGN bit is set
–
Update generation from the slave mode controller
Shadow registers will update with preload value.
1: UEV disabled. No update event is generated, and the shadow registers (AR, PSC, and
CCDATx) keep their values. If the TIMx_EVTGEN.UDGN bit is set or a hardware reset is
issued by the slave mode controller, the counter and prescaler are reinitialized.
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
.
12.4.3
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 the mapping of ETR input to IOM, see 7.2.5.7
Before operating this bit, the extended mode of the chip must be turned on (set
PWR_CTRL3.EXMODE)
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.