308
/
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
11.4.3
Control register 2 (TIMx_CTRL2)
Offset address: 0x04
Reset value: 0x0000 0000
Bit field
Name
Description
31:19
Reserved
Reserved, the reset value must be maintained
18
OI6
Output idle state 6 (OC6 output). See TIMx_CTRL2.OI1 bit.
17
Reserved
Reserved, the reset value must be maintained
16
OI5
Output idle state 5 (OC5 output). See TIMx_CTRL2.OI1 bit.
15
Reserved
Reserved, the reset value must be maintained
14
OI4
Output idle state 4 (OC4 output). See TIMx_CTRL2.OI1 bit.
13
OI3N
Output idle state 3 (OC3N output). See TIMx_CTRL2.OI1N bits.
12
OI3
Output idle state 3 (OC3 output). See TIMx_CTRL2.OI1 bit.
11
OI2N
Output idle state 2 (OC2N output). See TIMx_CTRL2.OI1N bits.
10
OI2
Output idle state 2 (OC2 output). See TIMx_CTRL2.OI1 bit.
9
OI1N
Output Idle state 1 (OC1N Output)
0: When TIMx_BKDT.MOEN = 0, after dead-time OC1N = 0
1: When TIMx_BKDT.MOEN = 0, after dead-time OC1N = 1
8
OI1
Output Idle state 1
0: When TIMx_BKDT.MOEN = 0, if OC1N is implemented, after dead-time OC1 = 0
1: When TIMx_BKDT.MOEN = 0, if OC1N is implemented, after dead-time OC1 = 1
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.