RM0440
27.6.22 TIMx capture/compare register 6 (TIMx_CCR6)(x = 1, 8, 20) . . . . . . 1167
27.6.23 TIMx capture/compare mode register 3
27.6.24 TIMx timer deadtime register 2 (TIMx_DTR2)(x = 1, 8, 20) . . . . . . . . 1169
27.6.25 TIMx timer encoder control register (TIMx_ECR)(x = 1, 8, 20) . . . . . 1170
27.6.26 TIMx timer input selection register (TIMx_TISEL)(x = 1, 8, 20) . . . . . 1171
27.6.27 TIMx alternate function option register 1 (TIMx_AF1)(x = 1, 8, 20) . . 1172
27.6.28 TIMx alternate function register 2 (TIMx_AF2)(x = 1, 8, 20) . . . . . . . 1175
27.6.29 TIMx DMA control register (TIMx_DCR)(x = 1, 8, 20) . . . . . . . . . . . . 1177
27.6.30 TIMx DMA address for full transfer (TIMx_DMAR)(x = 1, 8, 20) . . . . 1178
27.6.31 TIMx register map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1179
28
General-purpose timers (TIM2/TIM3/TIM4/TIM5) . . . . . . . . . . . . . . . . 1182
28.1
TIM2/TIM3/TIM4/TIM5 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . .1182
28.2
TIM2/TIM3/TIM4/TIM5 main features . . . . . . . . . . . . . . . . . . . . . . . . . . .1182
28.3
TIM2/TIM3/TIM4/TIM5 implementation . . . . . . . . . . . . . . . . . . . . . . . . .1183
28.4
TIM2/TIM3/TIM4/TIM5 functional description . . . . . . . . . . . . . . . . . . . . .1184
28.4.1
28.4.2
28.4.3
28.4.4
28.4.5
28.4.6
28.4.7
28.4.8
28.4.9
28.4.10 Output compare mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1211
28.4.11 PWM mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1213
28.4.12 Asymmetric PWM mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1221
28.4.13 Combined PWM mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1222
28.4.14 Clearing the tim_ocxref signal on an external event . . . . . . . . . . . . . 1223
28.4.15 One-pulse mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1225
28.4.16 Retriggerable one pulse mode (OPM) . . . . . . . . . . . . . . . . . . . . . . . . 1226
28.4.17 Pulse on compare mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1227
28.4.18 Encoder interface mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1229
28.4.19 Direction bit output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1247
28.4.20 UIF bit remapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1248
(TIMx_CCMR3)(x = 1, 8, 20) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1168
Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1184
TIM2/TIM3/TIM4/TIM5 pins and internal signals . . . . . . . . . . . . . . . . 1185
Time-base unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1189
Counter modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1191
Clock selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1203
Capture/compare channels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1207
Input capture mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1209
PWM input mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1210
Forced output mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1211
RM0440 Rev 1
Contents
27/2083
47
Need help?
Do you have a question about the STM32G4 Series and is the answer not in the manual?