STM32中TIMx的映射及其通道
TIMx,通道x,无映射,部分映射,完全映射
TIM1_CH1, PA8, PE9,
TIM1_CH2, PA9, PE11
TIM1_CH3, PA10, PE13
TIM1_CH4, PA11, PE14
TIM2_CH1, PA15
TIM2_CH2, PA1, PB3
TIM2_CH3, PA2, PB10
TIM2_CH4, PA3, PB11
TIM3_CH1, PA6, PB4, PC6
TIM3_CH2, PA7, PB5, PC7
TIM3_CH3, PB0, PC8
TIM3_CH4, PB1, PC9
TIM4_CH1, PB6, PD12
TIM4_CH2, PB7, PD13
TIM4_CH3, PB8, PD14
TIM4_CH4, PB9, PD15
TIM5_CH1, PA0, PH10
TIM5_CH2, PA1, PH11
TIM5_CH3, PA2, PH12
TIM5_CH4, PA3, PI10
TIM8_CH1, PC6, PI5
TIM8_CH2, PC7, PI6
TIM8_CH3, PC8, PI7
TIM8_CH4, PC9, PI2
TIM9_CH1, PA2, PE5
TIM9_CH2, PA3, PE6
TIM10_CH1, PB8, PF6
TIM11_CH1, PB9, PF7
TIM12_CH1, PB14, PH6
TIM12_CH2, PB15, PH9
TIM13_CH1, PA6, PF8
TIM14_CH1, PA7, PF9
APB1 定时器有 TIM2, TIM3 ,TIM4, TIM5, TIM6, TIM7, TIM12, TIM13, TIM14
APB2 定时器有 TIM1, TIM8 ,TIM9, TIM10, TIM11
APB1 定时器的输入时钟 TIMxCLK = SystemCoreClock / 2; 84M
APB2 定时器的输入时钟 TIMxCLK = SystemCoreClock; 168M