Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
263
/
631
Bit field
Name
Description
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:0
Reserved
Reserved, the reset value must be maintained
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
This bit is used to enable external clock mode 2, and the counter is driven by any active edge on
the ETRF signal in this mode.
0: External clock mode 2 disable.
1: External clock mode 2 enable.
Note 1: When external clock mode 1 and external clock mode 2 are enabled at the same time, the
input of the external clock is ETRF.
Note 2: The following slave modes can be used simultaneously with external clock mode 2: reset
mode, gated mode and trigger mode; However, TRGI cannot connect to ETRF
(TIMx_SMCTRL.TSEL ≠ '111').
Note 3: Setting the TIMx_SMCTRL.EXCEN bit has the same effect as selecting external clock
mode 1 and connecting TRGI to ETRF (TIMx_SMCTRL.SMSEL = 111 and TIMx_SMCTRL.TSEL
= 111).
13:12
EXTPS[1:0]
External trigger prescaler
The frequency of the external trigger signal ETRP must be at most 1/4 of TIMxCLK frequency.
When a faster external clock is input, a prescaler can be used to reduce the frequency of ETRP.