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 #315 background imageLoading...
Page #315 background image
UM1581
Reset and clock control (RCC)
DocID023800 Rev 1
315/584
 Check that the new number of WS is taken into account by reading FLASH_ACR
 Modify the CPU clock source, using "RCC_SYSCLKConfig()" function
 If needed, modify the CPU clock prescaler by using "RCC_HCLKConfig()"
function
 Check that the new CPU clock source is taken into account by reading the clock
source status, using "RCC_GetSYSCLKSource()" function
ï‚· Decreasing the CPU frequency
 Modify the CPU clock source, using "RCC_SYSCLKConfig()" function
 If needed, modify the CPU clock prescaler by using "RCC_HCLKConfig()"
function
 Check that the new CPU clock source is taken into account by reading the clock
source status, using "RCC_GetSYSCLKSource()" function
 Program the new number of WS, using "FLASH_SetLatency()" function
 Check that the new number of WS is taken into account by reading FLASH_ACR
 Disable the Flash Prefetch buffer using "FLASH_PrefetchBufferCmd(DISABLE)"
function
 Check that Flash Prefetch buffer deactivation is taken into account by reading
FLASH_ACR using the FLASH_GetPrefetchBufferStatus() function.
ï‚· RCC_SYSCLKConfig()
ï‚· RCC_GetSYSCLKSource()
ï‚· RCC_HCLKConfig()
ï‚· RCC_PCLK1Config()
ï‚· RCC_PCLK2Config()
ï‚· RCC_GetClocksFreq()
18.2.4 Peripheral clocks configuration functions
This section provide functions allowing to configure the Peripheral clocks.
1. The RTC clock which is derived from the LSE, LSI or HSE_Div32 (HSE divided by
32).
2. After restart from Reset or wakeup from STANDBY, all peripherals are off except
internal SRAM, Flash and SWD. Before to start using a peripheral you have to enable
its interface clock. You can do this using RCC_AHBPeriphClockCmd(),
RCC_APB2PeriphClockCmd() and RCC_APB1PeriphClockCmd() functions.
3. To reset the peripherals configuration (to the default state after device reset) you can
use RCC_AHBPeriphResetCmd(), RCC_APB2PeriphResetCmd() and
RCC_APB1PeriphResetCmd() functions.
ï‚· RCC_ADCCLKConfig()
ï‚· RCC_I2CCLKConfig()
ï‚· RCC_TIMCLKConfig()
ï‚· RCC_USARTCLKConfig()
ï‚· RCC_USBCLKConfig()
ï‚· RCC_RTCCLKConfig()
ï‚· RCC_I2SCLKConfig()
ï‚· RCC_RTCCLKCmd()
ï‚· RCC_BackupResetCmd()
ï‚· RCC_AHBPeriphClockCmd()
ï‚· RCC_APB2PeriphClockCmd()
ï‚· RCC_APB1PeriphClockCmd()
ï‚· RCC_AHBPeriphResetCmd()
ï‚· RCC_APB2PeriphResetCmd()
ï‚· RCC_APB1PeriphResetCmd()

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