EasyManuals Logo

ST STM32F31xx User Manual

ST STM32F31xx
584 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #325 background imageLoading...
Page #325 background image
UM1581
Reset and clock control (RCC)
DocID023800 Rev 1
325/584
18.2.7.6 RCC_GetClocksFreq
Function Name
void RCC_GetClocksFreq ( RCC_ClocksTypeDef *
RCC_Clocks)
Function Description
Returns the frequencies of the System, AHB, APB2 and APB1
busses clocks.
Parameters
ï‚· RCC_Clocks : pointer to a RCC_ClocksTypeDef structure
which will hold the clocks frequencies.
Return values
ï‚· None.
Notes
ï‚· This function returns the frequencies of : System, AHB, APB2
and APB1 busses clocks, ADC1/2/3/4 clocks,
USART1/2/3/4/5 clocks, I2C1/2 clocks and TIM1/8 Clocks.
ï‚· The frequency returned by this function is not the real
frequency in the chip. It is calculated based on the predefined
constant and the source selected by RCC_SYSCLKConfig().
ï‚· If SYSCLK source is HSI, function returns constant
HSI_VALUE(*)
ï‚· If SYSCLK source is HSE, function returns constant
HSE_VALUE(**)
ï‚· If SYSCLK source is PLL, function returns constant
HSE_VALUE(**) or HSI_VALUE(*) multiplied by the PLL
factors.
ï‚· (*) HSI_VALUE is a constant defined in stm32f30x.h file
(default value 8 MHz) but the real value may vary depending
on the variations in voltage and temperature, refer to
RCC_AdjustHSICalibrationValue().
ï‚· (**) HSE_VALUE is a constant defined in stm32f30x.h file
(default value 8 MHz), user has to ensure that HSE_VALUE is
same as the real frequency of the crystal used. Otherwise,
this function may return wrong result.
ï‚· The result of this function could be not correct when using
fractional value for HSE crystal.
ï‚· This function can be used by the user application to compute
the baudrate for the communication peripherals or configure
other parameters.
ï‚· Each time SYSCLK, HCLK, PCLK1 and/or PCLK2 clock
changes, this function must be called to update the structure's
field. Otherwise, any configuration based on this function will
be incorrect.
18.2.8 Peripheral clocks configuration functions
18.2.8.1 RCC_ADCCLKConfig

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32F31xx and is the answer not in the manual?

ST STM32F31xx Specifications

General IconGeneral
BrandST
ModelSTM32F31xx
CategoryMicrocontrollers
LanguageEnglish

Related product manuals