Advanced-control timers (TIM1/TIM8/TIM20)
Bits 31:20 Reserved, must be kept at reset value.
Bits 19:0 CCR6[19:0]: Capture/compare 6 value
27.6.23
TIMx capture/compare mode register 3
(TIMx_CCMR3)(x = 1, 8, 20)
Address offset: 0x050
Reset value: 0x0000 0000
Refer to the above CCMR1 register description. Channels 5 and 6 can only be configured in
output.
31
30
29
Res.
Res.
Res.
Res.
15
14
13
OC6
OC6M[2:0]
CE
rw
rw
rw
Bits 31:25 Reserved, must be kept at reset value.
Bit 24 OC6M[3]: Output compare 6 mode - bit 3
Bits 23:17 Reserved, must be kept at reset value.
Bit 16 OC5M[3]: Output compare 5 mode - bit 3
Bit 15 OC6CE: Output compare 6 clear enable
Bits 14:12 OC6M[2:0]: Output compare 6 mode
Bit 11 OC6PE: Output compare 6 preload enable
Bit 10 OC6FE: Output compare 6 fast enable
Bits 9:8 Reserved, must be kept at reset value.
Bit 7 OC5CE: Output compare 5 clear enable
Bits 6:4 OC5M[2:0]: Output compare 5 mode
Bit 3 OC5PE: Output compare 5 preload enable
Bit 2 OC5FE: Output compare 5 fast enable
Bits 1:0 Reserved, must be kept at reset value.
1168/2083
CCR6 is the value to be loaded in the actual capture/compare 6 register (preload value).
It is loaded permanently if the preload feature is not selected in the TIMx_CCMR3 register
(bit OC6PE). Else the preload value is copied in the active capture/compare 6 register when
an update event occurs.
The active capture/compare register contains the value to be compared to the counter
TIMx_CNT and signaled on tim_oc6 output.
Non-dithering mode (DITHEN = 0)
The register holds the compare value in CCR6[15:0]. The CCR6[19:16] bits are reset.
Dithering mode (DITHEN = 1)
The register holds the integer part in CCR6[19:4]. The CCR6[3:0] bitfield contains the
dithered part.
28
27
26
25
Res.
Res.
Res.
12
11
10
9
OC6
OC6FE
Res.
PE
rw
rw
rw
24
23
22
OC6M[3]
Res.
Res.
rw
8
7
6
OC5
Res.
OC5M[2:0]
CE
rw
rw
RM0440 Rev 1
21
20
19
18
Res.
Res.
Res.
Res.
5
4
3
2
OC5PE OC5FE
rw
rw
rw
rw
RM0440
17
16
Res.
OC5M[3]
rw
1
0
Res.
Res.
Need help?
Do you have a question about the STM32G4 Series and is the answer not in the manual?