Skip to main content
orlandospac
Associate II
December 8, 2015
Question

HSE ext. clock with PLL

  • December 8, 2015
  • 1 reply
  • 684 views
Posted on December 08, 2015 at 10:44

Hello,

im using a STM32f103 with a external digital clock of 10MHz. By the PLL it was set up to 30MHz with fit to our application. I used the std. perherals library to configure the clock. I adapted the function:

SetSysClockTo36() 

I changed the PLL configuration to get a SYSCLK of 30MHz

RCC->CFGR |= (uint32_t)(RCC_CFGR_PLLSRC_HSE | RCC_CFGR_PLLXTPRE_HSE_Div2 | RCC_CFGR_PLLMULL6);
// RCC->CFGR |= (uint32_t)(RCC_CFGR_PLLSRC_HSE | RCC_CFGR_PLLXTPRE_HSE_Div2 | RCC_CFGR_PLLMULL9);

I did not activate the bypass bit in the RCC_CR register. Could this cause a problem? Thanks Frank
    This topic has been closed for replies.

    1 reply

    Amel NASRI
    ST Technical Moderator
    December 9, 2015
    Posted on December 09, 2015 at 15:04

    Hi schmitt.frank,

    This should be a correct configuration.

    Are you facing any particular issue?

    -Mayla-

    To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.