cancel
Showing results for 
Search instead for 
Did you mean: 

HSE ext. clock with PLL

orlandospac
Associate II
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
1 REPLY 1
Amel NASRI
ST Employee
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 Accept as Solution on the reply which solved your issue or answered your question.