Advanced-control timers (TIM1)
RM0365
531/1080
DocID025202 Rev 7
Output compare mode
Input capture mode
Bits 31:25 Reserved, must be kept at reset value.
Bit 24
OC4M[3]
: Output Compare 4 mode - bit 3
Bits 23:17 Reserved, must be kept at reset value.
Bit 16
OC3M[3]
: Output Compare 3 mode - bit 3
Bit 15
OC4CE
: Output compare 4 clear enable
Bits 14:12
OC4M
: Output compare 4 mode
Bit 11
OC4PE
: Output compare 4 preload enable
Bit 10
OC4FE
: Output compare 4 fast enable
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).
Bit 7
OC3CE:
Output compare 3 clear enable
Bits 6:4
OC3M
: Output compare 3 mode
Bit 3
OC3PE
: Output compare 3 preload enable
Bit 2
OC3FE
: Output compare 3 fast enable
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).
Bits 31:16 Reserved, must be kept at reset value.
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).