RM0440 Rev 4 27/2126
RM0440 Contents
48
28.3.14 Asymmetric PWM mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1125
28.3.15 Combined PWM mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1126
28.3.16 Combined 3-phase PWM mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1127
28.3.17 Complementary outputs and dead-time insertion . . . . . . . . . . . . . . . 1128
28.3.18 Using the break function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1131
28.3.19 Bidirectional break inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1137
28.3.20 Clearing the tim_ocxref signal on an external event . . . . . . . . . . . . . 1138
28.3.21 6-step PWM generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1140
28.3.22 One-pulse mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1141
28.3.23 Retriggerable one pulse mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1143
28.3.24 Pulse on compare mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1144
28.3.25 Encoder interface mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1146
28.3.26 Direction bit output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1164
28.3.27 UIF bit remapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1165
28.3.28 Timer input XOR function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1165
28.3.29 Interfacing with Hall sensors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1165
28.3.30 Timer synchronization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1167
28.3.31 ADC synchronization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1172
28.3.32 DMA burst mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1172
28.3.33 TIM1/TIM8/TIM20 DMA requests . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1173
28.3.34 Debug mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1173
28.4 TIM1/TIM8/TIM20 low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . . .1174
28.5 TIM1/TIM8/TIM20 interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1174
28.6 TIM1/TIM8/TIM20 registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1175
28.6.1 TIMx control register 1 (TIMx_CR1)(x = 1, 8, 20) . . . . . . . . . . . . . . . 1175
28.6.2 TIMx control register 2 (TIMx_CR2)(x = 1, 8, 20) . . . . . . . . . . . . . . . 1176
28.6.3 TIMx slave mode control register (TIMx_SMCR)(x = 1, 8, 20) . . . . . 1180
28.6.4 TIMx DMA/interrupt enable register (TIMx_DIER)(x = 1, 8, 20) . . . . . 1184
28.6.5 TIMx status register (TIMx_SR)(x = 1, 8, 20) . . . . . . . . . . . . . . . . . . . 1185
28.6.6 TIMx event generation register (TIMx_EGR)(x = 1, 8, 20) . . . . . . . . . 1188
28.6.7 TIMx capture/compare mode register 1 [alternate]
(TIMx_CCMR1)(x = 1, 8, 20) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1189
28.6.8 TIMx capture/compare mode register 1 [alternate]
(TIMx_CCMR1)(x = 1, 8, 20) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1191
28.6.9 TIMx capture/compare mode register 2 [alternate]
(TIMx_CCMR2)(x = 1, 8, 20) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1194
28.6.10 TIMx capture/compare mode register 2 [alternate]
(TIMx_CCMR2)(x = 1, 8, 20) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1195