herunterladen
October 2012 Doc ID 023560 Rev 1 1/17
AN4152
Application note
Clock configuration tool for
STM32F302xx/STM32F303xx/STM32F31xxx microcontrollers
Introduction
This application note presents the clock system configuration tool for the
STM32F302xx/STM32F303xx/STM32F31xxx microcontroller family.
The purpose of this tool is to help the user configure the microcontroller clocks, taking into
consideration product parameters such as power supply and Flash access mode.
The configuration tool is implemented in the “STM32F30x_Clock_Configuration_VX.Y.Z.xls”
file which is supplied with the STM32F30xxx Standard Peripherals Library and can be
downloaded from www.st.com.
This tool supports the following functionalities for
STM32F302xx/STM32F303xx/STM32F31xxx microcontrollers:
● Configuration of the system clock, HCLK source, and output frequency
● Configuration of the Flash latency (number of wait states depending on the HCLK
frequency)
● Setting of the PCLK1, PCLK2, TIMCLK (timer clocks), and I2SCLK frequencies
● Generation of a ready-to-use system_stm32f30x.c file with all the above settings
(STM32F30x CMSIS Cortex-M4 device peripheral access layer system source file)
The STM32F30x_Clock_Configuration_VX.Y.Z.xls is referred to as “clock tool” throughout
this document.
Before using the clock tool, it is essential to read the STM32F30xxx/STM32F31xxx
microcontroller reference manual (RM0316). This application note is not a substitute for the
reference manual.
This tool supports only the STM32F302xx/STM32F303xx/STM32F31xxx devices.
For VX.Y.Z, please refer to the tool version, example V1.0.0.
In the software menus, STM32F30x is used to refer to STM32F302xx, STM32F303xx and
STM32F31xxx devices.
Table 1. Applicable products
Type Part numbers
Microcontrollers
STM32F302xx, STM32F303xx
STM32F31xxx
www.st.com
Verzeichnis
- ・ Anwendungsbereich on Seite 17
- ・ Teilenummernliste on Seite 1