RM0365
Bits 7:4 IC1F[3:0]: Input capture 1 filter
This bit-field defines the frequency used to sample TI1 input and the length of the digital filter applied
to TI1. The digital filter is made of an event counter in which N consecutive events are needed to
validate a transition on the output:
0000: No filter, sampling is done at f
0001: f
SAMPLING
0010: f
SAMPLING
0011: f
SAMPLING
0100: f
SAMPLING
0101: f
SAMPLING
0110: f
SAMPLING
0111: f
SAMPLING
1000: f
SAMPLING
1001: f
SAMPLING
1010: f
SAMPLING
1011: f
SAMPLING
1100: f
SAMPLING
1101: f
SAMPLING
1110: f
SAMPLING
1111: f
SAMPLING
Bits 3:2 IC1PSC: Input capture 1 prescaler
This bit-field defines the ratio of the prescaler acting on CC1 input (IC1). The prescaler is reset as
soon as CC1E='0' (TIMx_CCER register).
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
Bits 1:0 CC1S: Capture/Compare 1 Selection
This bit-field defines the direction of the channel (input/output) as well as the used input.
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 on TRC. This mode is working only if an
internal trigger input is selected through TS bit (TIMx_SMCR register)
Note: CC1S bits are writable only when the channel is OFF (CC1E = '0' in TIMx_CCER).
20.4.8
TIM1 capture/compare mode register 2 (TIMx_CCMR2)
Address offset: 0x1C
Reset value: 0x0000 0000
Refer to the above CCMR1 register description.
31
30
29
28
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
15
14
13
12
OC4
OC4M[2:0]
CE
IC4F[3:0]
rw
rw
rw
rw
DTS
=f
, N=2
CK_INT
=f
, N=4
CK_INT
=f
, N=8
CK_INT
=f
/2, N=6
DTS
=f
/2, N=8
DTS
=f
/4, N=6
DTS
=f
/4, N=8
DTS
=f
/8, N=6
DTS
=f
/8, N=8
DTS
=f
/16, N=5
DTS
=f
/16, N=6
DTS
=f
/16, N=8
DTS
=f
/32, N=5
DTS
=f
/32, N=6
DTS
=f
/32, N=8
DTS
27
26
25
24
Res.
Res.
Res.
OC4M[3]
Res.
Res.
Res.
Res.
rw
11
10
9
8
OC4
OC4
PE
FE
CC4S[1:0]
IC4PSC[1:0]
rw
rw
rw
rw
DocID025202 Rev 7
Advanced-control timers (TIM1)
23
22
21
20
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
7
6
5
4
OC3
OC3M[2:0]
CE.
IC3F[3:0]
rw
rw
rw
rw
19
18
17
16
Res.
Res.
Res.
OC3M[3]
Res.
Res.
Res.
Res.
rw
3
2
1
0
OC3
OC3
PE
FE
CC3S[1:0]
IC3PSC[1:0]
rw
rw
rw
rw
530/1080
549
Need help?
Do you have a question about the RM0365 and is the answer not in the manual?