Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
288
/
631
Bit field
Name
Description
1: Shadow register enable for TIMx_AR register
6:4
Reserved
Reserved, the reset value must be maintained
3
ONEPM
One-pulse mode
0: Disable one-pulse mode, the counter counts are not affected when an update event occurs.
1: Enable one-pulse mode, the counter stops counting when the next update event occurs
(clearing TIMx_CTRL1.CNTEN bit)
2
UPRS
Update request source
This bit is used to select the UEV event sources by software.
0: If update interrupt or DMA request is enabled, any of the following events will generate an
update interrupt or DMA request:
–
Counter overflow
–
The TIMx_EVTGEN.UDGN bit is set
1: If update interrupt or DMA request is enabled, only counter overflow will generate update
interrupt or DMA request
1
UPDIS
Update disable
This bit is used to enable/disable the Update event (UEV) events generation by software.
0: Enable UEV. UEV will be generated if one of following condition been fulfilled:
–
Counter overflow
–
The TIMx_EVTGEN.UDGN bit is set
Shadow registers will update with preload value.
1: UEV disabled. No update event is generated, and the shadow registers (AR, PSC) keep their
values. If the TIMx_EVTGEN.UDGN bit is set, the counter and prescaler are reinitialized.
0
CNTEN
Counter Enable
0: Disable counter
1: Enable counter
Control Register 2 (TIMx_CTRL2)
Offset address: 0x04
Reset value: 0x0000
Bit field
Name
Description
15:7
Reserved
Reserved, the reset value must be maintained
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: