以TIM3为例,假如APB1CLK=36Mhz, TIM_TimeBaseStructure.TIM_Period = 8000; TIM_TimeBaseStructure.TIM_Prescaler = 17; TIM_TimeBaseStructure.TIM_ClockDivision = 0x0; TIM_TimeBaseStructure.TIM_CounterMode = TIM_CounterMode_Up; TIM_TimeBaseInit(TIM3, &TIM_TimeBaseStructure);
则更新频率为:36000000/(17+1)/8000Hz? 但事实上测得的管脚频率为72000000/(17+1)/8000Hz 请问怎么理解?还是配置有问题?谢谢! |