309
/
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
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.
011: Compare pulse - Triggers the output to send a positive pulse (TRGO) when the
TIMx_STS.CC1ITF is to be set (even if it is already high), when a capture or a comparison
succeeds.
100: Compare - OC1REF signal is used as the trigger output (TRGO).
101: Compare - OC2REF signal is used as the trigger output (TRGO).
110: Compare - OC3REF signal is used as the trigger output (TRGO).
111: Compare - OC4REF signal is used as the trigger output (TRGO).
3
CCDSEL
Capture/compare DMA selection
0: When a CCx event occurs, a DMA request for CCx is sent.
1: When an update event occurs, a DMA request for CCx is sent.
2
CCUSEL
Capture/compare control update selection
0: If TIMx_CTRL2.CCPCTL = 1, they can only be updated by setting CCUDGN bits
1: If TIMx_CTRL2.CCPCTL = 1, they can be updated by setting CCUDGN bits or a rising edge
on TRGI.
Note: This bit only applied to channels with complementary outputs.
1
Reserved
Reserved, the reset value must be maintained
0
CCPCTL
Capture/ Compare preloaded control
0: No preloading of CCxEN, CCxNEN and OCxMD bits occurs.
1: Preloading of CCxEN, CCxNEN and OCxMD bits occurs. they are updated only when a
commutation event COM occurs (CCUDGN bit set or rising edge on TRGI depending on
CCUSEL bit)
Note: This bit only applied to channels with complementary outputs.
11.4.4
Slave mode control register (TIMx_SMCTRL)
Offset address: 0x08
Reset value: 0x0000
Bit field
Name
Description
15
EXTP
External trigger polarity
This bit is used to select whether the trigger operation is to use ETR or the inversion of ETR.
0: ETR active at high level or rising edge.
1: ETR active at low level or falling edge.
14
EXCEN
External clock enable