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 #323 background imageLoading...
Page #323 background image
UM1581
Reset and clock control (RCC)
DocID023800 Rev 1
323/584
selected, the switch will occur when the clock source will be
ready. You can use RCC_GetSYSCLKSource() function to
know which clock is currently used as system clock source.
18.2.7.2 RCC_GetSYSCLKSource
Function Name
uint8_t RCC_GetSYSCLKSource ( void )
Function Description
Returns the clock source used as system clock.
Parameters
ï‚· None.
Return values
ï‚· The clock source used as system clock. The returned
value can be one of the following values:
 0x00: HSI used as system clock
 0x04: HSE used as system clock
 0x08: PLL used as system clock
Notes
ï‚· None.
18.2.7.3 RCC_HCLKConfig
Function Name
void RCC_HCLKConfig ( uint32_t RCC_SYSCLK)
Function Description
Configures the AHB clock (HCLK).
Parameters
ï‚· RCC_SYSCLK : defines the AHB clock divider. This clock is
derived from the system clock (SYSCLK). This parameter can
be one of the following values:
 RCC_SYSCLK_Div1 : AHB clock = SYSCLK
 RCC_SYSCLK_Div2 : AHB clock = SYSCLK/2
 RCC_SYSCLK_Div4 : AHB clock = SYSCLK/4
 RCC_SYSCLK_Div8 : AHB clock = SYSCLK/8
 RCC_SYSCLK_Div16 : AHB clock = SYSCLK/16
 RCC_SYSCLK_Div64 : AHB clock = SYSCLK/64
 RCC_SYSCLK_Div128 : AHB clock = SYSCLK/128
 RCC_SYSCLK_Div256 : AHB clock = SYSCLK/256
 RCC_SYSCLK_Div512 : AHB clock = SYSCLK/512
Return values
ï‚· None.
Notes
ï‚· Depending on the device voltage range, the software has to
set correctly these bits to ensure that the system frequency
does not exceed the maximum allowed frequency (for more

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