在peference manul的272面,有如下解释:
Prescaler descriptionThe prescaler can divide the counter clock frequency by any factor between 1 and 65536. Itis based on a 16-bit counter controlled through a 16-bit register (in the TIMx_PSC register).
所以说TIM_ClockDivision和Prescaler是两码事。
分频因子的关系可以看到,分频因子为1 一个系统输入时钟 CLK_INT 计数器CNT 就翻转一次,分频因子为2两个个系统输入时钟CLK_INT 计数器CNT 才翻转一次
对系统时钟和计数器关系的一个控制寄存器,4种分配模式
Prescaler descriptionThe prescaler can divide the counter clock frequency by any factor between 1 and 65536. Itis based on a 16-bit counter controlled through a 16-bit register (in the TIMx_PSC register).
所以说TIM_ClockDivision和Prescaler是两码事。
一周热门 更多>