2016-11-09 05:58 AM
Hi all,
I'm evaluating STM32F765 uc for my application and I need to clarify how the GP Timers are clocked.In other words, at page 38 of product datasheet, for TIM3 is wrote: Max Interface clock = 54MHz, Max Timer clock = 108/216 MHz.What's the difference between ''Interface'' and ''Timer'' clock? What's the maximum frequency I can use to clock the timer? 108 or 216 MHz?Thanks in advance for your support.Maurizio #stm3235f765-clock-timers2016-11-10 05:30 AM
Hi
mauri1106,The timers connected to APB2 are clocked from TIMxCLK up to 216 MHz, while the timers connected to APB1 are clocked from TIMxCLK either up to 108 MHz or 216 MHz depending on TIMPRE bit configuration in the RCC_DCKCFGR register:
When TIMPRE bit in the RCC_DCKCFGR1 register is set, if APBx prescaler is 1,2 or 4, then TIMxCLK = HCLK, otherwise TIMxCLK = 4x PCLKx
-Hannibal-2016-11-10 05:32 AM
Hello,
The maximum timer clock is depends on TIMPRE bit configuration in the RCC_DCKCFGR register: when the APB prescaler is configured to adivision factor of 1, the timer clock frequencies are set totwice to the frequency of the APB domain to which the timers are connected:TIMxCLK = 2xPCLKx.Thus, when the APB prescaler is configured to adivision factor of 1, 2 or 4, the timer clock frequencies are setto four times to the frequency of the APB domain to which the timers are connected:TIMxCLK = 4xPCLKx.You have to check the reference manual for more clarification.Regards