319
/
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
Note: CC2SEL is writable only when the channel is off (TIMx_CCEN.CC2EN = 0).
7:4
IC1F[3:0]
Input Capture 1 filter
These bits are used to define sampling frequency of TI1 input and the length of digital filter. The
digital filter is an event counter that generates an output transition after N events are recorded.
0000: No filter, sampling at f
DTS
frequency
0001: f
SAMPLING
= f
CK_INT
, N = 2
0010: f
SAMPLING
= f
CK_INT
, N = 4
0011: f
SAMPLING
= f
CK_INT
, N = 8
0100: f
SAMPLING
= f
DTS
/2, N = 6
0101: f
SAMPLING
= f
DTS
/2, N = 8
0110: f
SAMPLING
= f
DTS
/4, N = 6
0111: f
SAMPLING
= f
DTS
/4, N = 8
1000: f
SAMPLING
= f
DTS
/8, N = 6
1001: f
SAMPLING
= f
DTS
/8, N = 8
1010: f
SAMPLING
= f
DTS
/16, N = 5
1011: f
SAMPLING
= f
DTS
/16, N = 6
1100: f
SAMPLING
= f
DTS
/16, N = 8
1101: f
SAMPLING
= f
DTS
/32, N = 5
1110: f
SAMPLING
= f
DTS
/32, N = 6
1111: f
SAMPLING
= f
DTS
/32, N = 8
3:2
IC1PSC[1:0]
Input Capture 1 prescaler
These bits are used to select the ratio of the prescaler for IC1 (CC1 input).
When TIMx_CCEN.CC1EN = 0, the prescaler will be reset.
00: No prescaler, capture is done each time an edge is detected on the capture input
01: Capture is done once every 2 events
10: Capture is done once every 4 events
11: Capture is done once every 8 events
1:0
CC1SEL[1:0]
Capture/Compare 1 selection
These bits are used to select the input/output and input mapping of the channel
00: CC1 channel is configured as output
01: CC1 channel is configured as input, IC1 is mapped on TI1
10: CC1 channel is configured as input, IC1 is mapped on TI2
11: CC1 channel is configured as input, IC1 is mapped to TRC. This mode is only active when the
internal trigger input is selected by TIMx_SMCTRL.TSEL.
Note: CC1SEL is writable only when the channel is off (TIMx_CCEN.CC1EN = 0).