This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

changing Clock and PLL setting

Hello....
I was using keil 5 that I installed it last year.This year, after refreshing my windows, I had to install keil 5 again, but this time, I have a problem with new version of system_stm32f4xx.c (19-June-2014), and I don't know how to change system clock, I want to use PLL and like to have 168 MHz(I know that my clock is equal to HSI,16MHz)!
Could you please help me?

Thanks in advance

Parents
  • It's a function multiplication and division.

    Pick the HSI as the source, set the PLL_M division to 16 to get the comparison frequency as 1 MHz, then all the other would stay the same PLL_N 336 (x336), PLL_P w (/2)

    (16 / 16) * 336 / 2 = 168
    QED

Reply
  • It's a function multiplication and division.

    Pick the HSI as the source, set the PLL_M division to 16 to get the comparison frequency as 1 MHz, then all the other would stay the same PLL_N 336 (x336), PLL_P w (/2)

    (16 / 16) * 336 / 2 = 168
    QED

Children