General-purpose timers (TIM15/16/17)
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
0010: f
0011: f
0100: f
0101: f
0110: f
0111: f
1000: f
1001: f
1010: f
1011: f
1100: f
1101: f
1110: f
1111: f
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).
15.5.8
TIM15 capture/compare enable register (TIM15_CCER)
Address offset: 0x20
Reset value: 0x0000
15
14
13
Bits 15:8
Bit 7 CC2NP: Capture/Compare 2 complementary output polarity
Bit 6 Reserved, must be kept at reset value.
Bit 5 CC2P: Capture/Compare 2 output polarity
426/709
=f
SAMPLING
CK_INT
=f
SAMPLING
CK_INT
=f
SAMPLING
CK_INT
=f
/2, N=6
SAMPLING
DTS
=f
/2, N=8
SAMPLING
DTS
=f
/4, N=6
SAMPLING
DTS
=f
/4, N=8
SAMPLING
DTS
=f
/8, N=6
SAMPLING
DTS
=f
/8, N=8
SAMPLING
DTS
=f
/16, N=5
SAMPLING
DTS
=f
/16, N=6
SAMPLING
DTS
=f
/16, N=8
SAMPLING
DTS
=f
/32, N=5
SAMPLING
DTS
=f
/32, N=6
SAMPLING
DTS
=f
/32, N=8
SAMPLING
DTS
12
11
10
9
Reserved
Reserved, must be kept at reset value.
refer to CC1NP description
refer to CC1P description
DTS
, N=2
, N=4
, N=8
8
7
6
CC1NP
Res;
rw
RM0041 Rev 6
5
4
3
2
CC2P
CC2E
CC1NP CC1NE
rw
rw
rw
rw
RM0041
1
0
CC1P
CC1E
rw
rw
Need help?
Do you have a question about the STM32F100 Series and is the answer not in the manual?
Questions and answers