Tim2 Capture/Compare Mode Register 1 [Alternate] (Tim2_Ccmr1) - ST STM32WL5 Series Reference Manual

Advanced arm-based 32-bit mcus with sub-ghz radio solution
Hide thumbs Also See for STM32WL5 Series:
Table of Contents

Advertisement

General-purpose timer (TIM2)
26.4.7

TIM2 capture/compare mode register 1 [alternate] (TIM2_CCMR1)

Address offset: 0x18
Reset value: 0x0000 0000
The same register can be used for input capture mode (this section) or for output compare
mode (next section). The direction of a channel is defined by configuring the corresponding
CCxS bits. All the other bits of this register have a different function in input and in output
mode.
Input capture mode:
31
30
29
Res.
Res.
Res.
Res.
15
14
13
IC2F[3:0]
rw
rw
rw
Bits 31:16 Reserved, must be kept at reset value.
Bits 15:12 IC2F[3:0]: Input capture 2 filter
Bits 11:10 IC2PSC[1:0]: Input capture 2 prescaler
Bits 9:8 CC2S[1:0]: Capture/compare 2 selection
This bit-field defines the direction of the channel (input/output) as well as the used input.
00: CC2 channel is configured as output.
01: CC2 channel is configured as input, IC2 is mapped on TI2.
10: CC2 channel is configured as input, IC2 is mapped on TI1.
11: CC2 channel is configured as input, IC2 is mapped on TRC. This mode is working only if
an internal trigger input is selected through TS bit (TIMx_SMCR register)
Note: CC2S bits are writable only when the channel is OFF (CC2E = 0 in TIMx_CCER).
884/1461
28
27
26
25
Res.
Res.
Res.
12
11
10
9
IC2PSC[1:0]
CC2S[1:0]
rw
rw
rw
rw
24
23
22
Res.
Res.
Res.
8
7
6
IC1F[3:0]
rw
rw
rw
RM0453 Rev 1
21
20
19
18
Res.
Res.
Res.
Res.
5
4
3
2
IC1PSC[1:0]
rw
rw
rw
rw
RM0453
17
16
Res.
Res.
1
0
CC1S[1:0]
rw
rw

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32WL5 Series and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF