Reset and clock control (RCC)
ï‚· After enabling the LSI, the application software should wait on
LSIRDY flag to be set indicating that LSI clock is stable and
can be used to clock the IWDG and/or the RTC.
ï‚· LSI can not be disabled if the IWDG is running.
ï‚· When the LSI is stopped, LSIRDY flag goes low after 6 LSI
oscillator clock cycles.
18.2.6.9 RCC_PLLConfig
void RCC_PLLConfig ( uint32_t RCC_PLLSource, uint32_t
RCC_PLLMul)
Configures the PLL clock source and multiplication factor.
ï‚· RCC_PLLSource : specifies the PLL entry clock source.
This parameter can be one of the following values:
ï€ RCC_PLLSource_HSI_Div2 : HSI oscillator clock
divided by 2 selected as PLL clock entry
ï€ RCC_PLLSource_PREDIV1 : PREDIV1 clock selected
as PLL clock source
ï‚· RCC_PLLMul : specifies the PLL multiplication factor, which
drive the PLLVCO clock This parameter can be
RCC_PLLMul_x where x:[2,16]
ï‚· This function must be used only when the PLL is disabled.
ï‚· The minimum input clock frequency for PLL is 2 MHz (when
using HSE as PLL source).
18.2.6.10 RCC_PLLCmd
void RCC_PLLCmd ( FunctionalState NewState)
Enables or disables the PLL.
ï‚· NewState : new state of the PLL. This parameter can be:
ENABLE or DISABLE.
ï‚· After enabling the PLL, the application software should wait
on PLLRDY flag to be set indicating that PLL clock is stable
and can be used as system clock source.