Part # Application Notes Access Control Accessories Adapters Audio Broadcast Computer Power Supply Corded Terminals Cordless Terminal D datasheet

Part Manufacturer: ST Microelectronics

ST Microelectronics

Part Description: Application examples of the STM32F101xx and STM32F103xx core and system peripherals


Part Details:

AN2585 Application note Application examples of the STM32F101xx and STM32F103xx core and system peripherals Introduction The STM32F10xxx is built around the latest CortexTM-M3 core from ARM® designed for advanced microcontrollers. Its specific Thumb®-2 instruction set delivers 32-bit performance using 16-bit code density. The STM32F10xxx has three low-power modes with a fast startup capability using the embedded 8 MHz RC oscillator. The STM32F10xxx also embeds a real-time clock running from either an internal 40 kHz RC or an external quartz oscillator.In addition, the STM32F10xxx has the VBAT function that allows it to operate from the battery for portable applications and ultralow power consumption.Security and safety are also key features of the STM32F10xxx owing to an embedded reset circuitry, a dual watchdog architecture (including an independent watchdog running from its own clock source), a backup clock in case of main oscillator failure, and anti-tamper and backup register functions. This application note is intended to provide practical application examples of the different STM32F10xxx features listed above. The Cortex-M3 and a number of peripherals are addressed: the NVIC, SysTick, DMA, RCC, EXTI, PWR, BKP, RTC, Flash memory, IWDG and WWDG. This document, its associated firmware, and other such application notes are written to accompany the STM32F10xxx firmware library. These are available for download from the STMicroelectronics website: www.st.com. October 2007 Rev 2 1/38 www.st.com Contents AN2585 - Application note Contents 1 CortexTM-M3 core . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.1 How to use CortexTM-M3 bit-band access . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.1.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.1.2 Firmware description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.2 How to modify the Cortex-M3 Privileged Thread mode and the stack used 7 1.2.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.2.2 Firmware description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2 NVIC application examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1 STM32F10xxx NVIC: preemption and subpriority handling . . . . . . . . . . . . 8 2.1.1 Hardware description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1.2 Firmware description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.2 STM32F10xxx NVIC: IRQ channel interrupts . . . . . . . . . . . . . . . . . . . . . 10 2.2.1 Hardware description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.2.2 Firmware description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.3 STM32F10xxx NVIC: system handlers . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.3.1 Hardware description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.3.2 Firmware description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.4 STM32F10xxx NVIC: WFE and WFI modes . . . . . . . . . . . . . . . . . . . . . . 12 2.4.1


Please click the following link to download the datasheet:

Application Notes Access Control Accessories Adapters Audio Broadcast Computer Power Supply Corded Terminals Cordless Terminal D.pdf Datasheet