STM bit ARM Cortex MCUs STM32F030 Series

Similar documents
STM32 F0 Value Line. Entry-level MCUs

STM32F4 Introduction F1/F2/F4 Comparison Features Highlight

Introducing STM32 L0x Series. April

TEVATRON TECHNOLOGIES PVT. LTD Embedded! Robotics! IoT! VLSI Design! Projects! Technical Consultancy! Education! STEM! Software!

Hello, and welcome to this presentation of the STM32 Reset and Clock Controller.

STM8L and STM32 L1 series. Ultra-low-power platform

Hello, and welcome to this presentation of the STM32 Low Power Universal Asynchronous Receiver/Transmitter interface. It covers the main features of

Hello, and welcome to this presentation of the STM32L4 power controller. The STM32L4 s power management functions and all power modes will also be

AVR XMEGA Product Line Introduction AVR XMEGA TM. Product Introduction.

Interconnects, Memory, GPIO

Hello, and welcome to this presentation of the STM32 Real- Time Clock. It covers the main features of this peripheral, which is used to provide a

STM32F4 Labs. T.O.M.A.S Technically Oriented Microcontroller Application Services V1.07

STM32G0 MCU Series Efficiency at its Best

Hello, and welcome to this presentation of the STM32 Universal Synchronous/Asynchronous Receiver/Transmitter Interface. It covers the main features

STM32F7 series ARM Cortex -M7 powered Releasing your creativity

STM32L4 System operating modes

AVR XMEGA TM. A New Reference for 8/16-bit Microcontrollers. Ingar Fredriksen AVR Product Marketing Director

STM32F429 Overview. Steve Miller STMicroelectronics, MMS Applications Team October 26 th 2015

ARM Cortex core microcontrollers 12 th Energy efficient operation

Universität Dortmund. MCUs Low-Power Features

STM32L4+ MCU series Excellence in ultra-low-power with more performance

STM32 Cortex-M3 STM32F STM32L STM32W

STG - STM32 + FreeRTOS + LwIP/EmWin

AN5123 Application note

STM32G070CB/KB/RB. Arm Cortex -M0+ 32-bit MCU, 128 KB Flash, 36 KB RAM, 4x USART, timers, ADC, comm. I/Fs, V. Features

Reset and clock control (RCC)

Getting Started With the Stellaris EK-LM4F120XL LaunchPad Workshop. Version 1.05

AN4325 Application note

STM32F7 series ARM Cortex -M7 powered Releasing your creativity

The course provides all necessary theoretical and practical know-how for start developing platforms based on STM32L4 family.

STM8 platform 8-bit microcontrollers

ZigBee Compliant Platform 2.4G RF Low Power Transceiver Module for IEEE Standard. DATA SHEET Version B

AK-STM32-ETH Development Board

[MG2420] MCU Module Datasheet. (No. ADS0705) V1.0

STM32 F-2 series High-performance Cortex-M3 MCUs

STM8L151x6/8 STM8L152x6/8

STM32F3. Cuauhtémoc Carbajal ITESM CEM 12/08/2013

Value-line ARM -based 32-bit MCU with up to 256 KB Flash, timers, ADC, communication interfaces, V operation

AN4749 Application note

AN Migrating to the LPC1700 series

New STM32WB Series MCU with Built-in BLE 5 and IEEE

Microcontrollers: Lecture 2 Low power Modes, Buses, Memory, GPIOs. Michele Magno

ARDUINO MEGA INTRODUCTION

AN2585 Application note

STM32 Journal. In this Issue:

KL03 Product Brief Supports all KL03 devices

2-Oct-13. the world s most energy friendly microcontrollers and radios

to ARM Cortex TM -M3 October 17, 2007 MCD Application Team

STM32L4 Architecture

NXP Unveils Its First ARM Cortex -M4 Based Controller Family

Advanced Microcontrollers Grzegorz Budzyń Extras: STM32F4Discovery

STM32L052x6 STM32L052x8

Hello, and welcome to this presentation of the STM32L4 System Configuration Controller.

ARM Cortex core microcontrollers 3. Cortex-M0, M4, M7

STM8L151x4, STM8L151x6, STM8L152x4, STM8L152x6

Designing with STM32F2x & STM32F4

Introduction to ARM LPC2148 Microcontroller

New STM32 F7 Series. World s 1 st to market, ARM Cortex -M7 based 32-bit MCU

STM32x. tec.pres. STM32 ARM CortexTM-M3 Based Product Introduction

Product Technical Brief S3C2412 Rev 2.2, Apr. 2006

STM32 F2 series High performance Cortex M3 MCUs

Hello, and welcome to this presentation of the STM32 Flash memory interface. It covers all the new features of the STM32F7 Flash memory.

Typical Applications: GHz Bluetooth low energy systems - Proprietary 2.4 GHz systems - Sports and leisure equipment - Mobile phone accessories,

Kinetis EA Ultra-Reliable Microcontrollers. Automotive and Industrial Applications

联系人黄生 : QQ: General Description The KN02GxxA series are low-cost 32-bit microcontroller with embedded ARM Cortex -M0 core for i

Military Grade SmartFusion Customizable System-on-Chip (csoc)

STM8AF5xxx STM8AF6x69/7x/8x/9x/Ax

Remote Keyless Entry In a Body Controller Unit Application

Product Technical Brief S3C2413 Rev 2.2, Apr. 2006

Embedded Programming with ARM Cortex-M3 Basic Experiments 1

New STM32WB Series MCU with built-in Bluetooth 5 and IEEE

Hello, and welcome to this presentation of the STM32F7 System Configuration Controller.

AT-501 Cortex-A5 System On Module Product Brief

AVR Microcontrollers Architecture

LPC4370FET256. Features and benefits

ecog1kg Microcontroller Product Brief

Arduino Uno R3 INTRODUCTION

Ultra Low Power Microcontroller - Design Criteria - June 2017

Product Brief Supports all SKEA64 devices

PC87435 Enhanced IPMI Baseboard Management Controller

AN2606 Application note

Product Technical Brief S3C2416 May 2008

STM8L151x8 STM8L152x8 STM8L151R6 STM8L152R6

M68HC08 Microcontroller The MC68HC908GP32. General Description. MCU Block Diagram CPU08 1

KE02 Sub-Family Product Brief Supports all KE02 devices with 40 MHz core

Z8 Encore! XP F1680 Series 8-Bit Flash Solution with Extended Peripherals

KV30F and KV31F Family Product Brief Supports 120/100MHz devices with 64 KB to 512 KB Embedded Flash

Product Brief Supports all SKEA8 devices


BLE MODULE SPECIFICATIONS

Typical Applications: GHz Bluetooth low energy systems - Proprietary 2.4 GHz systems - Sports and leisure equipment - Mobile phone accessories -

STM32 MCU family. 32-bit Flash microcontrollers powered by ARM Cortex -M3. June

STM32SnippetsL0. STM32L0xx Snippets firmware package. Features. Description

Chapter 15 ARM Architecture, Programming and Development Tools

Product Technical Brief S3C2440X Series Rev 2.0, Oct. 2003

STM8AL313x/4x/6x STM8AL3L4x/6x

MICROPROCESSOR BASED SYSTEM DESIGN

KLx7 Product Brief Supports all KLx7 devices

Network Embedded Systems Sensor Networks Fall Hardware. Marcus Chang,

VLSI Design Lab., Konkuk Univ. Yong Beom Cho LSI Design Lab

Transcription:

STM32 32-bit ARM Cortex MCUs STM32F030 Series

ST has licensed Cortex-M processors 2 Forget traditional 8/16/32-bit classifications and get Seamless architecture across all applications Every product optimized for ultra-low power and ease of use Cortex-M0 Cortex-M3 Cortex-M4 MCU 8/16-bit applications 16/32-bit applications 32-bit/DSC applications Binary and tool compatible

MCUs new families development focus 3 Flash (bytes) 2 M High-performance & Ultra-low-power 32-bit core 128 K 16 K 2 K Standard voltage & Ultra-low-power STM8S Mainstream STM8A Automotive STM8L Ultra-low-power STM32 F4 - Cortex -M4 STM32 F3 - Cortex -M4 STM32 F2 - Cortex -M3 STM32 F1 - Cortex -M3 STM32 F0 - Cortex -M0 STM32 L1 - Cortex -M3 8-bit core 32-bit ARM Cortex -M Features STM32 short roadmap 28/10/2013

MCUs new families development focus 4 Flash size (bytes) 2 M Cortex -M0/M3/M4 Flash High performance 16 K Select your fit product inside a wide, compatible portfolio 36 pins 176 pins

Cortex-M firmware compatibility 5 Cortex-M processors are F/W and binary compatible Migrating path M0->M3->M4 is straight forward Instruction set of Cortex-Mx is strictly included in the instruction set of Cortex-My (for x<y), allowing direct migration, while taking advantage of higher MCU clock speed and von Neumann to Harvard performance increase Re-compilation of the code is recommended When moving from M0/M3 to M4, some part of the code might be re-coded using intrinsics, taking advantage of the advanced DSP/SIMD instructions When moving backwards M3/M4 -> M0, the code needs to be recompiled in order to use only M0 instruction codes

STM32 6 product series 6

Cortex-M0 Cortex-M3 Cortex-M4 STM32F Family by core 7 Extended performance MCUs 72 MHz Cortex-M4 64- to 256-Kbyte Flash Up to 48-Kbyte SRAM Mainstream MCUs 24 to 72 MHz Cortex-M3 16-Kbyte to 1-Mbyte Flash Up to 96-Kbyte SRAM Entry-level MCUs 48 MHz Cortex-M0 16- to 64-Kbyte Flash Up to 8-Kbyte SRAM High-Performance DSP MCUs Up to 180 MHz Cortex-M4 128-Kbyte to 2-Mbyte Flash Up 256-Kbyte SRAM 32-bit/DSC applications High-performance MCUs 120 MHz Cortex-M3 128-Kbyte to 1-Mbyte Flash Up to 128-Kbyte SRAM 16/32-bit applications 8/16-bit applications

Meets industry safety specifications No compromise on robustness 8 Hardware RAM parity check Clock Security System (CSS) for switching to back-up internal RC in case of external clock failure 2x Watchdogs (2x WDG) capable of real-time code execution monitoring and ensuring the application integrity independently from system clock Cyclic Redundancy Check (CRC) with DMA support for embedded Flash-memory content-integrity checking

STM32F0 Series Entry-level MCUs for cost-sensitive applications

Cortex-M feature set comparison 10 Cortex-M0 Cortex-M3 Cortex-M4 Architecture Version V6M v7m v7me Instruction set architecture Thumb, Thumb-2 System Instructions Thumb + Thumb-2 Thumb + Thumb-2, DSP, SIMD, FP DMIPS/MHz 0.9 1.25 1.25 Bus interfaces 1 3 3 Integrated NVIC Yes Yes Yes Number interrupts 1-32 + NMI 1-240 + NMI 1-240 + NMI Interrupt priorities 4 8-256 8-256 Breakpoints, Watchpoints 4/2/0, 2/1/0 8/4/0, 2/1/0 8/4/0, 2/1/0 Memory Protection Unit (MPU) No Yes (Option) Yes (Option) Integrated trace option (ETM) No Yes (Option) Yes (Option) Fault Robust Interface No Yes (Option) No Single Cycle Multiply Yes (Option) Yes Yes Hardware Divide No Yes Yes WIC Support Yes Yes Yes Bit banding support No Yes Yes Single cycle DSP/SIMD No No Yes Floating point hardware No No Yes Bus protocol AHB Lite AHB Lite, APB AHB Lite, APB CMSIS Support Yes Yes Yes

STM32F0 : 8-, 32- and 64-Kbyte fact sheet 11 ARM 32-bit Cortex-M0 core 48 MHz max CPU frequency 2.4 to 3.6V power supply 5 x channels DMA Safety features RAM Hardware parity check, CRC, 2x watchdogs, clock security system.. Communication peripherals 1x USART, 1x SPI, 1x I 2 C I 2 C fast mode + (20 ma drive capability) SPI (18 Mbit/s) with 4-16 bit programmable bit frame USART auto baud rate detection Additional USART, SPI and I2C on 64KB versions Timers 1x 16-bit PWM motor control AC timer Up to 5 x 16-bit timer with up to 8xIC/OC/PWM Real Time Clock H/W calendar, alarm functions and two tamper inputs I/O ports Analog features 1x 12-bit ADC 1.0µS with separate analog supply and independent clock. 1x Temperature Sensor 1x voltage reference 1.2V Debug mode Serial wire debug (SWD)

Main common features STM32F0 Product lines 12

STM32F030 block diagram 13 Description 2.4 to 3.6V 48 MHz/38 DMIPS Int. RC 8 MHz + PLL Trim-able 1% RC 5 channels DMA Up 55 I/Os Packages TSSOP20 LQFP32,48 and 64

STM32F030 Series Entry-level MCUs for cost-sensitive applications

Flash general features: Up to 64KBytes 64 pages of 1KBytes size and 16 Sectors of 4KBytes size (4 pages) Endurance: 1k cycles Access time: 35ns Half word (16-bit) program time: 52.5µs (Typ) Page erase time and Mass erase time: 30ms (Typ) Flash Features 15 Flash interface features: Read Interface with pre-fetch buffer Option Bytes loader Flash program/erase operations Types of Protection: Readout Protection: Level 0, Level 1 and Level 2 (No debug) Write Protection Memory organization: Main Program memory block (or Main Flash memory) Information block : 3KBytes of System memory + 6 Option Bytes (12 with complements) 2 option bytes for write protection and 1 for Readout protection 1 option byte for device configuration : VDDA supervisor, BOOT1, Reset w/ STDBY/STOP, IWWG HW 2 option bytes reserved for user data

SLEEP Mode: Core stopped, peripherals kept running Entered by executing special instructions WFI (Wait For Interrupt) WFE (Wait For Event) STOP Mode: all periph clocks, PLL, HSI and HSE are disabled, SRAM and registers contents are preserved. If the RTC and IWWDG are running they are not stopped in STOP (either as their clock sources) To further reduce power consumption the Voltage Regulator can be put in Low Power mode STANDBY Mode: Voltage Regulator off, the entire V18 domain is powered off. SRAM and register contents are lost except registers in the Backup domain and STANDBY circuitry PLL, the HSI RC and the HSE crystal oscillators are also switched off. RTC and IWWDG are kept running in STANDBY (if enabled) Low Power Modes(1/2) 16 In STANDBY mode all IO pins are high impedance and non-active except

Low Power Modes(2/2) 17 Typ Parameter Condition f HCLK Peripherals enabled Supply current in Run mode, code executing from Flash HSE crystal clock 8MHz Peripherals disabled 48 MHz 23.3 11.5 8 MHz 4.5 3.0 Unit ma Parameter Supply current in stop mode Supply current in Standby mode Condition Regulator in run mode, all oscillators OFF Regulator in low-power mode, all oscillators OFF Typ @V DD Max 3.6V T A = 85 19 48 5 32 LSI ON and IWDG ON 2 - Unit ua

Clock Features System Clock (SYSCLK) sources: HSE (High Speed External osc) 4MHz to 32MHz, can be bypassed by user clock HSI (High Speed Internal RC): factory trimmed internal RC oscillator 8MHz +/- 1% PLL x2, x3,.. x16 (16MHz min. output freq.) 18 Additional clock sources: LSI (Low Speed Internal RC): 30kHz ~ 50kHz internal RC LSE (Low Speed External oscillator): 32.768kHz, can be bypassed by user clock HSI14 (High Speed Internal RC 14MHz): dedicated oscillator for ADC Clock-out capability on the MCO (HSI14, LSI, LSE, SYSCLK, HSI, HSE, PLL/2) Clock Security System (CSS) to switch to backup clock in case of HSE clock failure Enabled by SW w/ interrupt capability linked to Cortex NMI RTC Clock sources: LSE, LSI and HSE clock divided by 32 USART, I2C & CEC have multiple possible clock sources

Timers overview 19 Timer type Timer Counter resolution Counter Type DMA request generation Capture/ compare channels Complementary outputs Advanced Control TIM1 Up, down, up/down Yes 4 Yes TIM3 Up, down, up/down Yes 4 No General purpose TIM14 16 bit Up No 1 No TIM15 Up Yes 2 Yes TIM16, TIM17 Up Yes 1 Yes Basic TIM6 Up Yes 0 No

USART Features (1/2) 20 Fully-programmable serial interface characteristics: Configurable oversampling method by 16 or by 8 Up to 6Mbps when the clock frequency is 48MHz and oversampling by 8 is selected. Programmable data order with MSB or LSB first. Swappable Tx/Rx pin configuration Dual clock domain allowing UART functionality and wakeup from Stop mode Convenient baud rate programming independent from the PCLK reprogramming Support for DMA LIN Master/Slave compatible Synchronous Mode: Master mode only

IrDA SIR Encoder Decoder USART Features (2/2) 21 Smartcard Capability T = 0(character mode), T = 1(block mode) (using the Address/character match, End of block, receiver timeout etc ) Single wire Half Duplex Communication Multi-Processor communication USART can enter Mute mode Mute mode: disable receive interrupts Wake up from mute mode (by idle line detection or address mark detection) Auto-baudrate detection using various character patterns. Driver enable (for RS485) signal sharing the same pin as nrts.

USART Implementation 22 USART features USART1 USART2 Hardware Flow Control YES YES Continous communication using DMA YES YES Multiprocessor communication YES YES Synchronous mode YES YES Smartcard mode YES NO Single wire half duplex mode YES YES IrDA YES NO LIN YES NO Dual clock domain and wake up from STOP mode YES NO Receiver timeout YES NO Modbus Communication YES NO Autobaudrate detection YES NO Driver enable YES YES

RTC Features(1/2) 23 Calendar with subseconds, seconds, minutes, hours( 12 or 24 ), week day, date, month, and year. In BCD( binary-coded decimal ) format Automatically correction for 28, 29, 30 and 31 day of the month Programmable alarm with wake up from Stop and Standby mode capability Digital calibration circuit with 1ppm resolution, to compensate for quartz crystal inaccuracy 2 anti-tamper detection pins with programmable filter Timestamp feature which can be used to save the calendar content. Periodic wakeup from Stop/Standby Reference clock detection : a more precise second source clock( 50 or 60 Hz ) can be used to enhance the calendar precision.

RTC Features(2/2) 24 The RTC clock sources can be : A 32.768kHz external crystal A resonator or oscillator The internal low-power RC Oscillator The High-speed external clock divided by 32 Presentation Title 28/10/2013

ADC Features 25 ADC conversion rate 1 MHz and 12-bit resolution Conversion range: 0 to 3.6 V ADC supply requirement: 2.4 V to 3.6 V ADC input range: V SSA V IN V DDA Up to 16 external channels 16 external channels 2 internal channels connected to : Temperature sensor V SENSE Internal voltage reference V REFINT

Demostration - WPC( Wireless Power Charger ) - BLDC Motor Control

WPC( Wireless Power Charger ) 27

WPC( Wireless Power Charger ) 28 Status LED Buzzer STM32F030R8T6 - Protocol Analyzer - RF Power Management - Switch RF channel - Status Control Amplifier Part Demodulation Part Coil antenna BIAS - Power Supply

29 WPC( Wireless Power Charger ) Demostration

BLDC Motor Driving 30 MCU VDD 1. MCU ( STM32F030R8T6 ) 2. Sensor(Hall, Encoder, OPAMP) CONTROL BLOCK VDC BUS POWER SUPPLY BLOCK POWER BLOCK 1. Rectifier 2. High voltage converter 3. Voltage regulator : Step down 1. Gate driver 2. Half bridge(fet or IGBT)

Serial communication Start / Stop commands Set speed ramp. Fine tuning motor control variables Real time communication BLDC Motor Driving 31

32 BLDC Motor Control Demostration

Thank you

Cortex-M processors binary compatible

USART register map