AN5062-STM32F0DISCOVERY peripheral firmware examples.pdf
文本预览下载声明
March 2013 DocID022897 Rev 3 1/17
AN4062
Application note
STM32F0DISCOVERY peripheral firmware examples
Introduction
This application note describes the peripheral firmware examples provided for the
STM32F0DISCOVERY Kit.
These ready-to-run examples are provided to help the user get started quickly with
STM32F0xx peripherals and STM32F0DISCOVERY board hardware. Preconfigured
projects for EWARM (IAR Embedded Workbench? for ARM?), MDK-ARM?, Atollic
TrueSTUDIO? and Altium TASKING? toolchains are provided for each example.
These examples are included in the firmware applications package available for download
on /stm32f0discovery.
Users are advised to first read the document Getting started with software and firmware
environments for the STM32F0DISCOVERY Kit (UM1523) to familiarize themselves with
the STM32F0DISCOVERY Kit.
Table 1 lists the microcontrollers and development tools concerned by this application note.
Table 1. Applicable products and tools
Type Part numbers and product categories
Microcontrollers STM32F0 series
Development tools STM32F0DISCOVERY
Software STSW-STM32049
Contents AN4062
2/17 DocID022897 Rev 3
Contents
1 Peripheral firmware examples structure overview . . . . . . . . . . . . . . . . 3
2 Clock configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.1 PLL_SOURCE_HSI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.2 PLL_SOURCE_HSE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.3 PLL_SOURCE_HSE_BYPASS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3 Peripheral firmware examples description . . . . . . . . . . . . . . . . . . . . . . . 5
3.1 GPIO toggle example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.2 EXTI example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.3 SysTick example . . . . . .
显示全部