General-purpose timers (TIM2/TIM3/TIM4)
RM0365
611/1080
DocID025202 Rev 7
21.4.9
TIMx capture/compare enable register (TIMx_CCER)
Address offset: 0x20
Reset value: 0x0000
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).
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
CC4NP
Res.
CC4P
CC4E CC3NP
Res.
CC3P
CC3E CC2NP
Res.
CC2P
CC2E CC1NP
Res.
CC1P
CC1E
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
Bit 15
CC4NP
:
Capture/Compare 4 output Polarity.
Refer to CC1NP description
Bit 14 Reserved, must be kept at reset value.
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 output Polarity.
Refer to CC1NP description
Bit 10 Reserved, must be kept at reset value.
Bit 9
CC3P
:
Capture/Compare 3 output Polarity.
Refer to CC1P description
Bit 8
CC3E
:
Capture/Compare 3 output enable.
Refer to CC1E description
Bit 7
CC2NP
:
Capture/Compare 2 output Polarity.
Refer to CC1NP description
Bit 6 Reserved, must be kept at reset value.
Bit 5
CC2P
:
Capture/Compare 2 output Polarity.
refer to CC1P description
Bit 4
CC2E
:
Capture/Compare 2 output enable.
Refer to CC1E description
Bit 3
CC1NP
:
Capture/Compare 1 output Polarity.
CC1 channel configured as output
: CC1NP must be kept cleared in this case.
CC1 channel configured as input
: This bit is used in conjunction with CC1P to define
TI1FP1/TI2FP1 polarity. refer to CC1P description.