Contents RM0440
28/2126 RM0440 Rev 4
28.6.11 TIMx capture/compare enable register
(TIMx_CCER)(x = 1, 8, 20) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1198
28.6.12 TIMx counter (TIMx_CNT)(x = 1, 8, 20) . . . . . . . . . . . . . . . . . . . . . . . 1202
28.6.13 TIMx prescaler (TIMx_PSC)(x = 1, 8, 20) . . . . . . . . . . . . . . . . . . . . . 1202
28.6.14 TIMx auto-reload register (TIMx_ARR)(x = 1, 8, 20) . . . . . . . . . . . . . 1203
28.6.15 TIMx repetition counter register (TIMx_RCR)(x = 1, 8, 20) . . . . . . . . 1203
28.6.16 TIMx capture/compare register 1 (TIMx_CCR1)(x = 1, 8, 20) . . . . . . 1204
28.6.17 TIMx capture/compare register 2 (TIMx_CCR2)(x = 1, 8, 20) . . . . . . 1204
28.6.18 TIMx capture/compare register 3 (TIMx_CCR3)(x = 1, 8, 20) . . . . . . 1205
28.6.19 TIMx capture/compare register 4 (TIMx_CCR4)(x = 1, 8, 20) . . . . . . 1206
28.6.20 TIMx break and dead-time register (TIMx_BDTR)(x = 1, 8, 20) . . . . 1207
28.6.21 TIMx capture/compare register 5 (TIMx_CCR5)(x = 1, 8, 20) . . . . . . 1211
28.6.22 TIMx capture/compare register 6 (TIMx_CCR6)(x = 1, 8, 20) . . . . . . 1212
28.6.23 TIMx capture/compare mode register 3
(TIMx_CCMR3)(x = 1, 8, 20) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1213
28.6.24 TIMx timer deadtime register 2 (TIMx_DTR2)(x = 1, 8, 20) . . . . . . . . 1214
28.6.25 TIMx timer encoder control register (TIMx_ECR)(x = 1, 8, 20) . . . . . 1215
28.6.26 TIMx timer input selection register (TIMx_TISEL)(x = 1, 8, 20) . . . . . 1216
28.6.27 TIMx alternate function option register 1 (TIMx_AF1)(x = 1, 8, 20) . . 1217
28.6.28 TIMx alternate function register 2 (TIMx_AF2)(x = 1, 8, 20) . . . . . . . 1220
28.6.29 TIMx DMA control register (TIMx_DCR)(x = 1, 8, 20) . . . . . . . . . . . . 1222
28.6.30 TIMx DMA address for full transfer (TIMx_DMAR)(x = 1, 8, 20) . . . . 1223
28.6.31 TIMx register map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1224
29 General-purpose timers (TIM2/TIM3/TIM4/TIM5) . . . . . . . . . . . . . . . . 1227
29.1 TIM2/TIM3/TIM4/TIM5 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . 1227
29.2 TIM2/TIM3/TIM4/TIM5 main features . . . . . . . . . . . . . . . . . . . . . . . . . . 1227
29.3 TIM2/TIM3/TIM4/TIM5 implementation . . . . . . . . . . . . . . . . . . . . . . . . 1228
29.4 TIM2/TIM3/TIM4/TIM5 functional description . . . . . . . . . . . . . . . . . . . . 1229
29.4.1 Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1229
29.4.2 TIM2/TIM3/TIM4/TIM5 pins and internal signals . . . . . . . . . . . . . . . . 1230
29.4.3 Time-base unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1234
29.4.4 Counter modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1236
29.4.5 Clock selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1248
29.4.6 Capture/compare channels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1252
29.4.7 Input capture mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1254
29.4.8 PWM input mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1255