RM0453 Rev 5 29/1450
RM0453 Contents
44
26.4.5 TIM2 status register (TIM2_SR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 873
26.4.6 TIM2 event generation register (TIM2_EGR) . . . . . . . . . . . . . . . . . . . 875
26.4.7 TIM2 capture/compare mode register 1 (TIM2_CCMR1) . . . . . . . . . . 876
26.4.8 TIM2 capture/compare mode register 1 [alternate] (TIM2_CCMR1) . . 878
26.4.9 TIM2 capture/compare mode register 2 (TIM2_CCMR2) . . . . . . . . . . 880
26.4.10 TIM2 capture/compare mode register 2 [alternate] (TIM2_CCMR2) . . 881
26.4.11 TIM2 capture/compare enable register
(TIM2_CCER) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 882
26.4.12 TIM2 counter (TIM2_CNT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 883
26.4.13 TIM2 counter [alternate] (TIM2_CNT) . . . . . . . . . . . . . . . . . . . . . . . . . 884
26.4.14 TIM2 prescaler (TIM2_PSC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 884
26.4.15 TIM2 auto-reload register (TIM2_ARR) . . . . . . . . . . . . . . . . . . . . . . . . 885
26.4.16 TIM2 capture/compare register 1 (TIM2_CCR1) . . . . . . . . . . . . . . . . . 885
26.4.17 TIM2 capture/compare register 2 (TIM2_CCR2) . . . . . . . . . . . . . . . . . 885
26.4.18 TIM2 capture/compare register 3 (TIM2_CCR3) . . . . . . . . . . . . . . . . . 886
26.4.19 TIM2 capture/compare register 4 (TIM2_CCR4) . . . . . . . . . . . . . . . . . 886
26.4.20 TIM2 DMA control register (TIM2_DCR) . . . . . . . . . . . . . . . . . . . . . . . 887
26.4.21 TIM2 DMA address for full transfer (TIM2_DMAR) . . . . . . . . . . . . . . . 888
26.4.22 TIM2 option register 1 (TIM2_OR1) . . . . . . . . . . . . . . . . . . . . . . . . . . . 888
26.4.23 TIM2 alternate function option register 1 (TIM2_AF1) . . . . . . . . . . . . . 888
26.4.24 TIM2 timer input selection register (TIM2_TISEL) . . . . . . . . . . . . . . . . 889
26.4.25 TIMx register map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 890
27 General-purpose timers (TIM16/TIM17) . . . . . . . . . . . . . . . . . . . . . . . . 893
27.1 TIM16/TIM17 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 893
27.2 TIM16/TIM17 main features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 893
27.3 TIM16/TIM17 functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . 895
27.3.1 Time-base unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 895
27.3.2 Counter modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 897
27.3.3 Repetition counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 901
27.3.4 Clock selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 902
27.3.5 Capture/compare channels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 904
27.3.6 Input capture mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 906
27.3.7 Forced output mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 907
27.3.8 Output compare mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 907
27.3.9 PWM mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 909
27.3.10 Complementary outputs and dead-time insertion . . . . . . . . . . . . . . . . 910