RM0008
Input capture mode
Bits 15:12 IC4F: Input Capture 4 Filter.
Bits 11:10 IC4PSC: Input Capture 4 Prescaler.
Bits 9:8 CC4S: Capture/Compare 4 Selection.
This bit-field defines the direction of the channel (input/output) as well as the used input.
00: CC4 channel is configured as output.
01: CC4 channel is configured as input, IC4 is mapped on TI4.
10: CC4 channel is configured as input, IC4 is mapped on TI3.
11: CC4 channel is configured as input, IC4 is mapped on TRC. This mode is working only if an
internal trigger input is selected through TS bit (TIMx_SMCR register)
Note: CC4S bits are writable only when the channel is OFF (CC4E = '0' in TIMx_CCER).
Bits 7:4 IC3F: Input Capture 3 Filter.
Bits 3:2 IC3PSC: Input Capture 3 Prescaler.
Bits 1:0 CC3S: Capture/Compare 3 Selection.
This bit-field defines the direction of the channel (input/output) as well as the used input.
00: CC3 channel is configured as output.
01: CC3 channel is configured as input, IC3 is mapped on TI3.
10: CC3 channel is configured as input, IC3 is mapped on TI4.
11: CC3 channel is configured as input, IC3 is mapped on TRC. This mode is working only if an
internal trigger input is selected through TS bit (TIMx_SMCR register)
Note: CC3S bits are writable only when the channel is OFF (CC3E = '0' in TIMx_CCER).
12.4.9
Capture/compare enable register (TIMx_CCER)
Address offset: 0x20
Reset value: 0x0000
15
14
13
Reserved
CC4P
CC4E
Res.
rw
Bits 15:14 Reserved, always read as 0.
Bit 13 CC4P: Capture/Compare 4 output Polarity.
refer to CC1P description
Bit 12 CC4E: Capture/Compare 4 output enable.
refer to CC1E description
Bit 11 CC3NP: Capture/Compare 3 Complementary output Polarity.
refer to CC1NP description
Bit 10 CC3NE: Capture/Compare 3 Complementary output enable.
refer to CC1NE description
Bit 9 CC3P: Capture/Compare 3 output Polarity.
refer to CC1P description
Bit 8 CC3E: Capture/Compare 3 output enable.
refer to CC1E description
12
11
10
9
CC3N
CC3N
CC3P
P
E
rw
rw
rw
rw
Advanced-control timers (TIM1&TIM8)
8
7
6
5
CC2N
CC2N
CC3E
CC2P
P
E
rw
rw
rw
rw
4
3
2
1
CC1N
CC1N
CC2E
CC1P
P
E
rw
rw
rw
rw
0
CC1E
rw
261/690
Need help?
Do you have a question about the STM32F102 Series and is the answer not in the manual?
Questions and answers