UM0306 Advanced control timer (TIM1)
209/519
12.5.9 Capture/compare enable register (TIM1_CCER)
Address offset: 20h
Reset value: 0000h
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 TRGI. This mode is
working only if an internal trigger input is selected through TS bit (TIM1_SMCR
register)
Note: CC4S bits are writable only when the channel is OFF (CC4E = ’0’ in
TIM1_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 TRGI. This mode is
working only if an internal trigger input is selected through TS bit (TIM1_SMCR
register)
Note: CC3S bits are writable only when the channel is OFF (CC3E = ’0’ in
TIM1_CCER).
1514131211109876543210
Reserved CC4P CC4E
CC3N
P
CC3N
E
CC3P CC3E
CC2N
P
CC2N
E
CC2P CC2E
CC1N
P
CC1N
E
CC1P CC1E
rw rw rw rw rw rw rw rw rw rw rw rw rw 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