STMicroelectronics STM32F050G6 Manual

STMicroelectronics STM32F050G6 Manual

Low- and medium-density advanced arm-based 32-bit mcu with up to 32 kbytes flash, timers, adc and comm. interfaces
Table of Contents

Advertisement

Quick Links

Low- and medium-density advanced ARM™-based 32-bit MCU with
up to 32 Kbytes Flash, timers, ADC and comm. interfaces
Features
Core: ARM 32-bit Cortex™-M0 CPU,
frequency up to 48 MHz
Memories
– 16 to 32 Kbytes of Flash memory
– 4 Kbytes of SRAM with HW parity checking
CRC calculation unit
Reset and supply management
– Voltage range: 2.0 V to 3.6 V
– Power-on/Power-down reset (POR/PDR)
– Programmable voltage detector (PVD)
– Low power modes: Sleep, Stop and
Standby
– V
supply for RTC and backup registers
BAT
Clock management
– 4 to 32 MHz crystal oscillator
– 32 kHz oscillator for RTC with calibration
– Internal 8 MHz RC with x6 PLL option
– Internal 40 kHz RC oscillator
Up to 39 fast I/Os
– All mappable on external interrupt vectors
– Up to 25 I/Os with 5 V tolerant capability
5-channel DMA controller
1 × 12-bit, 1.0 µs ADC (up to 10 channels)
– Conversion range: 0 to 3.6V
– Separate analog supply from 2.4 up to
3.6 V
Up to 9 timers
– 1 x 16-bit 7-channel advanced-control timer
for 6 channels PWM output, with deadtime
generation and emergency stop
– 1 x 32-bit and 1 x 16-bit timer, with up to 4
IC/OC, usable for IR control decoding
– 1 x 16-bit timer, with 2 IC/OC, 1 OCN,
deadtime generation and emergency stop
– 1 x 16-bit timer, with IC/OC and OCN,
deadtime generation, emergency stop and
modulator gate for IR control
September 2012
This is information on a product in full production.
STM32F050x4 STM32F050x6
LQFP48 7x7
LQFP32 7x7
– 1 x 16-bit timer with 1 IC/OC
– Independent and system watchdog timers
– SysTick timer: 24-bit downcounter
Calendar RTC with alarm and periodic wakeup
from Stop/Standby
Communication interfaces
– 1 x I
Plus (1 Mbit/s) with 20 mA current sink,
SMBus/PMBus, and wakeup from STOP
– 1 x USART supporting master synchronous
SPI and modem control; one with ISO7816
interface, LIN, IrDA capability auto baud
rate detection and wakeup feature
– 1 x SPI (18 Mbit/s) with 4 to 16
programmable bit frame, with I
multiplexed
Serial wire debug (SWD)
96-bit unique ID
Table 1.
Reference
STM32F050x4
STM32F050x6
Doc ID 023079 Rev 3
Datasheet
UFQFPN32 5x5
UFQFPN28 4x4
2
C interface; supporting Fast Mode
Device summary
Part number
STM32F050F4, STM32F050G4, STM32F050K4,
STM32F050C4
STM32F050F6, STM32F050G6, STM32F050K6,
STM32F050C6
production data
TSSOP20
2
S interface
1/98
www.st.com
1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F050G6 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for STMicroelectronics STM32F050G6

  • Page 1: Table 1. Device Summary

    – Conversion range: 0 to 3.6V – Separate analog supply from 2.4 up to STM32F050F4, STM32F050G4, STM32F050K4, STM32F050x4 STM32F050C4 3.6 V STM32F050F6, STM32F050G6, STM32F050K6, ■ Up to 9 timers STM32F050x6 STM32F050C6 – 1 x 16-bit 7-channel advanced-control timer for 6 channels PWM output, with deadtime generation and emergency stop –...
  • Page 2: Table Of Contents

    Contents STM32F050xx Contents Introduction ..........8 Description .
  • Page 3 STM32F050xx Contents 3.16 Serial wire debug port (SW-DP) ....... . 22 Pinouts and pin description .
  • Page 4 Contents STM32F050xx Package characteristics ........82 Package mechanical data .
  • Page 5 STM32F050xx List of tables List of tables Table 1. Device summary ............1 Table 2.
  • Page 6 List of tables STM32F050xx Table 48. NRST pin characteristics ..........70 Table 49.
  • Page 7 STM32F050xx List of figures List of figures Figure 1. Block diagram ............11 Figure 2.
  • Page 8: Introduction

    This STM32F050x4 and STM32F050x6 datasheet should be read in conjunction with the STM32F0xxxx reference manual (RM0091). The reference manual is available from the STMicroelectronics website www.st.com. For information on the ARM Cortex™-M0 core, please refer to the Cortex™-M0 Technical Reference Manual, available from the www.arm.com website at the following address: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0432c/index.html.
  • Page 9: Description

    STM32F050xx Description Description The STM32F050xx family incorporates the high-performance ARM Cortex™-M0 32-bit RISC core operating at a 48 MHz maximum frequency, high-speed embedded memories (Flash memory up to 32 Kbytes and SRAM up to 4 Kbytes), and an extensive range of enhanced peripherals and I/Os.
  • Page 10: Table 2. Stm32F050Xx Family Device Features And Peripheral Counts

    Description STM32F050xx Table 2. STM32F050xx family device features and peripheral counts Peripheral STM32F050Fx STM32F050Gx STM32F050Kx STM32F050Cx Flash (Kbytes) SRAM (Kbytes) Advanced 1 (16-bit) control Timers 4 (16-bit) General purpose 1 (32-bit) SPI (I2S) Comm. interfaces USART 12-bit synchronized (9 ext. + 3 int.) (10 ext.
  • Page 11: Figure 1. Block Diagram

    STM32F050xx Description Figure 1. Block diagram POWER SWCLK Serial Wire DD18 =2 to 3.6V SWDAT Debug VOLT. REG. as AF 3.3 V T O 1.8 V FLASH 32 KB 32 bits CORTEX-M0 CPU f HCLK = 48 MHz SUPPLY NRST SUPERVISION Reset SRAM...
  • Page 12: Functional Overview

    Functional overview STM32F050xx Functional overview ® Cortex -M0 core with embedded Flash and SRAM The ARM Cortex™-M0 processor is the latest generation of ARM processors for embedded systems. It has been developed to provide a low-cost platform that meets the needs of MCU implementation, with a reduced pin count and low-power consumption, while delivering outstanding computational performance and an advanced system response to interrupts.
  • Page 13: Cyclic Redundancy Check Calculation Unit (Crc)

    STM32F050xx Functional overview Cyclic redundancy check calculation unit (CRC) The CRC (cyclic redundancy check) calculation unit is used to get a CRC code from a 32-bit data word and a CRC-32 (Ethernet) polynomial. Among other applications, CRC-based techniques are used to verify data transmission or storage integrity.
  • Page 14: Voltage Regulator

    Functional overview STM32F050xx 3.5.3 Voltage regulator The regulator has three operating modes: main (MR), low power (LPR) and power down. ● MR is used in normal operating mode (Run) ● LPR can be used in Stop mode where the power demand is reduced ●...
  • Page 15: Clocks And Startup

    STM32F050xx Functional overview Clocks and startup System clock selection is performed on startup, however the internal RC 8 MHz oscillator is selected as default CPU clock on reset. An external 4-32 MHz clock can be selected, in which case it is monitored for failure. If failure is detected, the system automatically switches back to the internal RC oscillator.
  • Page 16: General-Purpose Inputs/Outputs (Gpios)

    Functional overview STM32F050xx General-purpose inputs/outputs (GPIOs) Each of the GPIO pins can be configured by software as output (push-pull or open-drain), as input (with or without pull-up or pull-down) or as peripheral alternate function. Most of the GPIO pins are shared with digital or analog alternate functions. The I/O configuration can be locked if needed following a specific sequence in order to avoid spurious writing to the I/Os registers.
  • Page 17: Analog To Digital Converter (Adc)

    STM32F050xx Functional overview 3.10 Analog to digital converter (ADC) The 12-bit analog to digital converter has up to 16 external and 3 internal (temperature sensor, voltage reference, VBAT voltage measurement) channels and performs conversions in single-shot or scan modes. In scan mode, automatic conversion is performed on a selected group of analog inputs.
  • Page 18: Timers And Watchdogs

    Functional overview STM32F050xx 3.11 Timers and watchdogs The STM32F050xx family devices include up to six general-purpose timers, one basic timer and an advanced control timer. Table 5 compares the features of the advanced-control, general-purpose and basic timers. Table 5. Timer feature comparison Timer Counter Counter...
  • Page 19: Independent Watchdog (Iwdg)

    STM32F050xx Functional overview TIM2, TIM3 STM32F050xx devices feature two synchronizable 4-channel general-purpose timers. TIM2 is based on a 32-bit auto-reload up/downcounter and a 16-bit prescaler. TIM3 is based on a 16-bit auto-reload up/downcounter and a 16-bit prescaler. They feature 4 independent channels each for input capture/output compare, PWM or one-pulse mode output.
  • Page 20: Systick Timer

    Functional overview STM32F050xx 3.11.5 SysTick timer This timer is dedicated to real-time operating systems, but could also be used as a standard down counter. It features: ● A 24-bit down counter ● Autoreload capability ● Maskable system interrupt generation when the counter reaches 0. ●...
  • Page 21: Universal Synchronous/Asynchronous Receiver Transmitter (Usart)

    STM32F050xx Functional overview Table 6. Comparison of I2C analog and digital filters Analog filter Digital filter Pulse width of Programmable length from 1 to 15  50 ns suppressed spikes I2C peripheral clocks 1. Extra filtering capability vs. standard requirements. Benefits Available in Stop mode 2.
  • Page 22: Serial Wire Debug Port (Sw-Dp)

    Functional overview STM32F050xx 3.16 Serial wire debug port (SW-DP) An ARM SW-DP interface is provided to allow a serial wire debugging tool to be connected to the MCU. 22/98 Doc ID 023079 Rev 3...
  • Page 23: Pinouts And Pin Description

    STM32F050xx Pinouts and pin description Pinouts and pin description Figure 3. LQFP48 48-pin package pinout 48 47 46 45 44 43 42 41 40 39 38 37 VBAT PC13 PA13 PC14/OSC32_IN PA12 PC15/OSC32_OUT PA11 PF0/OSC_IN PA10 PF1/OSC_OUT LQFP48 NRST VSSA PB15 VDDA PB14...
  • Page 24: Figure 5. Ufqfpn32 32-Pin Package Pinout

    Pinouts and pin description STM32F050xx Figure 5. UFQFPN32 32-pin package pinout 31 30 29 27 26 25 PA14 PF0/OSC_IN PA13 PF1/OSC_OUT PA12 NRST PA11 VSSA VDDA PA10 9 10 11 13 14 15 16 MS19844V2 Figure 6. UFQFPN28 28-pin package pinout 26 25 24 23 22 BOOT0 PF0/OSC_IN...
  • Page 25: Table 7. Legend/Abbreviations Used In The Pinout Table

    STM32F050xx Pinouts and pin description Table 7. Legend/abbreviations used in the pinout table Name Abbreviation Definition Unless otherwise specified in brackets below the pin name, the pin function Pin name during and after reset is the same as the actual pin name Supply pin Pin type Input only pin...
  • Page 26: Table 8. Pin Definitions

    Pinouts and pin description STM32F050xx Table 8. Pin definitions Pin number Pin functions Pin name (function after Notes reset) Alternate Additional functions functions VBAT Backup power supply RTC_TAMP1, RTC_TS, (1)(2) PC13 RTC_OUT, WKUP2 PC14- (1)(2) OSC32_IN OSC32_IN (PC14) PC15- (1)(2) OSC32_OUT OSC32_OUT (PC15)
  • Page 27 STM32F050xx Pinouts and pin description Table 8. Pin definitions (continued) Pin number Pin functions Pin name (function after Notes reset) Alternate Additional functions functions SPI1_MISO/I2S1_ MCK, TIM3_CH1, TIM1_BKIN, ADC_IN6 TIM16_CH1, EVENTOUT SPI1_MOSI/I2S1_ SD, TIM3_CH2, TIM14_CH1, ADC_IN7 TIM1_CH1N, TIM17_CH1, EVENTOUT TIM3_CH3, TIM1_CH2N, ADC_IN8 EVENTOUT...
  • Page 28 Pinouts and pin description STM32F050xx Table 8. Pin definitions (continued) Pin number Pin functions Pin name (function after Notes reset) Alternate Additional functions functions USART1_CTS, PA11 TIM1_CH4, EVENTOUT USART1_RTS, PA12 TIM1_ETR, EVENTOUT PA13 IR_OUT, SWDAT (SWDAT) PA14 SWCLK (SWCLK) SPI1_NSS/I2S1_ PA15 TIM2_CH_ETR, EVENTOUT...
  • Page 29 STM32F050xx Pinouts and pin description Table 8. Pin definitions (continued) Pin number Pin functions Pin name (function after Notes reset) Alternate Additional functions functions I2C1_SDA, IR_OUT, TIM17_CH1, EVENTOUT Ground Digital power supply 1. PC13, PC14 and PC15 are supplied through the power switch. Since the switch only sinks a limited amount of current (3 mA), the use of GPIO PC13 to PC15 in output mode is limited: - The speed should not exceed 2 MHz with a maximum load of 30 pF - these GPIOs must not be used as a current sources (e.g.
  • Page 30: Table 9. Alternate Functions Selected Through Gpioa_Afr Registers For Port A

    Table 9. Alternate functions selected through GPIOA_AFR registers for port A Pin name TIM2_CH1_ EVENTOUT TIM2_CH2 TIM2_CH3 TIM2_CH4 SPI1_NSS/ TIM14_CH1 I2S1_WS SPI1_SCK/ TIM2_CH1_ I2S1_CK SPI1_MISO/ TIM3_CH1 TIM1_BKIN TIM16_CH1 EVENTOUT I2S1_MCK SPI1_MOSI/ TIM3_CH2 TIM1_CH1N TIM14_CH1 TIM17_CH1 EVENTOUT I2S1_SD USART1_CK TIM1_CH1 EVENTOUT USART1_TX TIM1_CH2 PA10...
  • Page 31: Table 10. Alternate Functions Selected Through Gpiob_Afr Registers For Port B

    Table 10. Alternate functions selected through GPIOB_AFR registers for port B Pin name EVENTOUT TIM3_CH3 TIM1_CH2N TIM14_CH1 TIM3_CH4 TIM1_CH3N SPI1_SCK/I2S1_CK EVENTOUT TIM2_CH2 SPI1_MISO/I2S1_MCK TIM3_CH1 EVENTOUT SPI1_MOSI/I2S1_SD TIM3_CH2 TIM16_BKIN I2C1_SMBA USART1_TX I2C1_SCL TIM16_CH1N USART1_RX I2C1_SDA TIM17_CH1N I2C1_SCL TIM16_CH1 IR_OUT I2C1_SDA TIM17_CH1 EVENTOUT PB10 TIM2_CH3...
  • Page 32: Memory Mapping

    Memory mapping STM32F050xx Memory mapping Figure 8. STM32F050xx memory map 0xFFFF FFFF 0x4800 17FF AHB2 0x4800 0000 0xE010 0000 Cortex- M Internal Peripherals 0xE000 0000 reserved 0xC000 0000 0x4002 43FF 0x4002 0000 reserved 0xA000 0000 0x4001 8000 0x1FFF FFFF reserved 0x1FFF FC00 0x4001 0000 Option Bytes...
  • Page 33: Table 11. Stm32F050X Peripheral Register Boundary Addresses

    STM32F050xx Memory mapping Table 11. STM32F050x peripheral register boundary addresses Boundary address Size Peripheral 0x4800 1800 - 0x5FFF FFFF ~384 MB Reserved 0x4800 1400 - 0x4800 17FF GPIOF 0x4800 1000 - 0x4800 13FF Reserved 0x4800 0C00 - 0x4800 0FFF Reserved AHB2 0x4800 0800 - 0x4800 0BFF GPIOC...
  • Page 34 Memory mapping STM32F050xx Table 11. STM32F050x peripheral register boundary addresses (continued) Boundary address Size Peripheral 0x4000 7C00 - 0x4000 7FFF Reserved 0x4000 7800 - 0x4000 7BFF Reserved 0x4000 7400 - 0x4000 77FF Reserved 0x4000 7000 - 0x4000 73FF 0x4000 5C00 - 0x4000 6FFF Reserved 0x4000 5800 - 0x4000 5BFF Reserved...
  • Page 35: Electrical Characteristics

    STM32F050xx Electrical characteristics Electrical characteristics Parameter conditions Unless otherwise specified, all voltages are referenced to V 6.1.1 Minimum and maximum values Unless otherwise specified, the minimum and maximum values are guaranteed in the worst conditions of ambient temperature, supply voltage and frequencies by tests in production on 100% of the devices with an ambient temperature at T = 25 °C and T max (given by...
  • Page 36: Power Supply Scheme

    Electrical characteristics STM32F050xx 6.1.6 Power supply scheme Figure 11. Power supply scheme V BAT Backup circuitry Po wer swi tch (LSE,RTC, 1.65 -3.6V Wake-up logic Backup registers) GP I/Os Logic Kernel logic (CPU, Digital V DD & Memories) 2 × V DD Regulator 2 ×...
  • Page 37: Absolute Maximum Ratings

    STM32F050xx Electrical characteristics Absolute maximum ratings Stresses above the absolute maximum ratings listed in Table 12: Voltage characteristics, Table 13: Current characteristics, and Table 14: Thermal characteristics may cause permanent damage to the device. These are stress ratings only and functional operation of the device at these conditions is not implied.
  • Page 38: Table 13

    Electrical characteristics STM32F050xx Table 13. Current characteristics Symbol Ratings Max. Unit Total current into V power lines (source) Total current out of V ground lines (sink) Output current sunk by any I/O and control pin  25 Output current source by any I/Os and control pin Injected current on FT, FTf and B pins Injected current on TC and RST pin ±...
  • Page 39: Operating Conditions

    STM32F050xx Electrical characteristics Operating conditions 6.3.1 General operating conditions Table 15. General operating conditions Symbol Parameter Conditions Unit Internal AHB clock frequency HCLK Internal APB clock frequency PCLK Standard operating voltage Analog operating voltage (ADC not used) Must have a potential equal to or higher than V Analog operating voltage (ADC used)
  • Page 40: Operating Conditions At Power-Up / Power-Down

    Electrical characteristics STM32F050xx 6.3.2 Operating conditions at power-up / power-down The parameters given in Table 16 are derived from tests performed under the ambient temperature condition summarized in Table Table 16. Operating conditions at power-up / power-down Symbol Parameter Conditions Unit ...
  • Page 41: Embedded Reference Voltage

    STM32F050xx Electrical characteristics Table 18. Programmable voltage detector characteristics (continued) Symbol Parameter Conditions Unit Rising edge 2.57 2.68 2.79 PVD threshold 5 PVD5 Falling edge 2.47 2.58 2.69 Rising edge 2.66 2.78 PVD threshold 6 PVD6 Falling edge 2.56 2.68 Rising edge 2.76 2.88...
  • Page 42 Electrical characteristics STM32F050xx Typical and maximum current consumption The MCU is placed under the following conditions: ● All I/O pins are in input mode with a static value at V or V (no load) ● All peripherals are disabled except when explicitly mentioned ●...
  • Page 43: Table 20. Typical And Maximum Current Consumption From

    STM32F050xx Electrical characteristics Table 20. Typical and maximum current consumption from V supply at V = 3.6 All peripherals enabled All peripherals disabled Symbol Parameter Conditions Max @ T Max @ T Unit HCLK 25 °C 85 °C 105 °C 25 °C 85 °C 105 °C...
  • Page 44: Table 21. Typical And Maximum Current Consumption From The

    Electrical characteristics STM32F050xx Table 21. Typical and maximum current consumption from the V supply = 2.4 V = 3.6 V Conditions Symbol Parameter Unit Max @ T Max @ T HCLK 25 °C 85 °C 105 °C 25 °C 85 °C 105 °C 48 MHz bypass, 32 MHz...
  • Page 45: Table 22. Typical And Maximum

    STM32F050xx Electrical characteristics Table 22. Typical and maximum V consumption in Stop and Standby modes Typ @V Symbol Parameter Conditions Unit 2.0 V 2.4 V 2.7 V 3.0 V 3.3 V 3.6 V 25 °C 85 °C 105 °C Regulator in run mode, 15.1 15.25 15.45 15.7 all oscillators OFF Supply...
  • Page 46: Table 23. Typical And Maximum

    Electrical characteristics STM32F050xx Table 23. Typical and maximum V consumption in Stop and Standby modes Typ @V Symbol Parameter Conditions Unit 2.0 V 2.4 V 2.7 V 3.0 V 3.3 V 3.6 V 25 °C 85 °C 105 °C Regulator in run mode, 1.85 2.15 2.45...
  • Page 47: Table 25. Typical Current Consumption In Run Mode, Code With Data Processing

    STM32F050xx Electrical characteristics Typical current consumption The MCU is placed under the following conditions: ● =3.3 V ● All I/O pins are in analog input configuration ● The Flash access time is adjusted to f frequency (0 wait states from 0 to 24 MHz, HCLK 1 wait state above) ●...
  • Page 48: Table 26. Typical Current Consumption In Sleep Mode, Code Running From Flash Or Ram

    Electrical characteristics STM32F050xx Table 26. Typical current consumption in Sleep mode, code running from Flash or Symbol Parameter Conditions Unit HCLK Peripherals Peripherals enabled disabled 48 MHz 13.9 2.98 36 MHz 10.55 2.84 32 MHz 24 MHz 7.23 2.09 16 MHz 5.01 1.58 Supply current in...
  • Page 49 STM32F050xx Electrical characteristics I/O system current consumption The current consumption of the I/O system has two components: static and dynamic. I/O static current consumption All the I/Os used as inputs with pull-up generate current consumption when the pin is externally held low. The value of this current consumption can be simply computed by using the pull-up/pull-down resistors values given in Table 45: I/O static characteristics.
  • Page 50: Table 27. Switching Output I/O Current Consumption

    Electrical characteristics STM32F050xx Table 27. Switching output I/O current consumption I/O toggling Symbol Parameter Conditions Unit frequency (f 4 MHz 0.07 8 MHz 0.15 = 3.3 V 16 MHz 0.31 C =C 24 MHz 0.53 48 MHz 0.92 4 MHz 0.18 8 MHz 0.37...
  • Page 51: Table 28. Peripheral Current Consumption

    STM32F050xx Electrical characteristics On-chip peripheral current consumption The current consumption of the on-chip peripherals is given in Table 28. The MCU is placed under the following conditions: ● all I/O pins are in input mode with a static value at V or V (no load) ●...
  • Page 52: External Clock Source Characteristics

    Electrical characteristics STM32F050xx 6.3.6 External clock source characteristics High-speed external user clock generated from an external source In bypass mode the HSE oscillator is switched off and the input pin is a standard GPIO. The external clock signal has to respect the I/O characteristics in Section 6.3.13.
  • Page 53: Table 30. Low-Speed External User Clock Characteristics

    STM32F050xx Electrical characteristics Low-speed external user clock generated from an external source In bypass mode the LSE oscillator is switched off and the input pin is a standard GPIO. The external clock signal has to respect the I/O characteristics in Section 6.3.13.
  • Page 54: Table 31. Hse Oscillator Characteristics

    Electrical characteristics STM32F050xx High-speed external clock generated from a crystal/ceramic resonator The high-speed external (HSE) clock can be supplied with a 4 to 32 MHz crystal/ceramic resonator oscillator. All the information given in this paragraph are based on design simulation results obtained with typical external components specified in Table 31.
  • Page 55: Figure 15. Typical Application With An 8 Mhz Crystal

    STM32F050xx Electrical characteristics Figure 15. Typical application with an 8 MHz crystal Resonator with integrated capacitors C L1 f HSE OSC_IN Bias 8 MH z controlled resonator gain OSC_OU T R EXT (1) C L2 MS19876V1 1. R value depends on the crystal characteristics. Doc ID 023079 Rev 3 55/98...
  • Page 56: Lse = 32.768 Khz)

    Electrical characteristics STM32F050xx Low-speed external clock generated from a crystal resonator The low-speed external (LSE) clock can be supplied with a 32.768 kHz crystal resonator oscillator. All the information given in this paragraph are based on design simulation results obtained with typical external components specified in Table 32.
  • Page 57: Internal Clock Source Characteristics

    STM32F050xx Electrical characteristics Figure 16. Typical application with a 32.768 kHz crystal Resonator with integrated capacitors C L1 f LSE OSC32_IN Drive 32.768 kH z programmable resonator amplifier OSC32_OU T C L2 MS30253 Note: An external resistor is not required between OSC32_IN and OSC32_OUT and it is forbidden to add one.
  • Page 58 Electrical characteristics STM32F050xx High-speed internal 14 MHz (HSI14) RC oscillator (dedicated to ADC) Table 34. HSI14 oscillator characteristics Symbol Parameter Conditions Unit Frequency HSI14 TRIM HSI14 user-trimming step DuCy Duty cycle (HSI14) = –40 to 105 °C –4.2 = –10 to 85 °C –3.2 Accuracy of the HSI14 HSI14...
  • Page 59: Pll Characteristics

    STM32F050xx Electrical characteristics Table 36. Low-power mode wakeup timings Typ @V Symbol Parameter Conditions Max Unit = 2.0 V = 2.4 V = 2.7 V = 3 V = 3.3 V Regulator in run mode Wakeup from Stop WUSTOP mode Regulator in low 8.05 7.05...
  • Page 60: Memory Characteristics

    Electrical characteristics STM32F050xx 6.3.9 Memory characteristics Flash memory The characteristics are given at T = –40 to 105 °C unless otherwise specified. Table 38. Flash memory characteristics Symbol Parameter Conditions Unit –40 to +105 °C 16-bit programming time T 53.5 µs prog –40 to +105 °C...
  • Page 61: Table 40. Ems Characteristics

    STM32F050xx Electrical characteristics Table 40. EMS characteristics Level/ Symbol Parameter Conditions Class 3.3 V, LQFP64, T +25 °C, Voltage limits to be applied on any I/O pin to 48 MHz FESD HCLK induce a functional disturbance conforms to IEC 61000-4-2 3.3 V, LQFP64, T +25 °C, Fast transient voltage burst limits to be...
  • Page 62: Electrical Sensitivity Characteristics

    Electrical characteristics STM32F050xx 6.3.11 Electrical sensitivity characteristics Based on three different tests (ESD, LU) using specific measurement methods, the device is stressed in order to determine its performance in terms of electrical sensitivity. Electrostatic discharge (ESD) Electrostatic discharges (a positive then a negative pulse separated by 1 second) are applied to the pins of each sample according to each pin combination.
  • Page 63: Table 44. I/O Current Injection Susceptibility

    STM32F050xx Electrical characteristics The characterization results are given in Table Table 44. I/O current injection susceptibility Functional susceptibility Symbol Description Unit Negative Positive injection injection Injected current on BOOT0, PF0-OSC_IN –0 and PF1-OSC_OUT pins Injected current on PA10, PA12, PB4, PB5, PB10 and PB15 with current injection on –5 adjacent pins >...
  • Page 64: I/O Port Characteristics

    Electrical characteristics STM32F050xx 6.3.13 I/O port characteristics General input/output characteristics Unless otherwise specified, the parameters given in Table 45 are derived from tests performed under the conditions summarized in Table 15. All I/Os are CMOS and TTL compliant. Table 45. I/O static characteristics Symbol Parameter...
  • Page 65 STM32F050xx Electrical characteristics Table 45. I/O static characteristics (continued) Symbol Parameter Conditions Unit   1 I/O TC, FT and FTf      3.6 V 1 I/O TTa used in digital mode I/O FT and FTf Input leakage current µA 3.6 V ...
  • Page 66: Figure 17. Tc And Tta I/O Input Characteristics - Cmos Port

    Electrical characteristics STM32F050xx Figure 17. TC and TTa I/O input characteristics - CMOS port IHmin Input range not guaranteed CMOS standard requirements V = 0.3V ILmax ILmax MS30255V1 Figure 18. TC and TTa I/O input characteristics - TTL port TTL standard requirements V = 2 V IHmin IHmin...
  • Page 67: Figure 19. Five Volt Tolerant (Ft And Ftf) I/O Input Characteristics - Cmos Port

    STM32F050xx Electrical characteristics Figure 19. Five volt tolerant (FT and FTf) I/O input characteristics - CMOS port CMOS standard requirements V = 0.7V IH min Input range not guaranteed CMOS standard requirements V = 0.3V ILmax MS30257V1 Figure 20. Five volt tolerant (FT and FTf) I/O input characteristics - TTL port TTL standard requirements V = 2 V IHmin...
  • Page 68: Table 46. Output Voltage Characteristics

    Electrical characteristics STM32F050xx Output driving current The GPIOs (general purpose input/outputs) can sink or source up to +/-8 mA, and sink or source up to +/- 20 mA (with a relaxed V In the user application, the number of I/O pins which can drive current must be limited to respect the absolute maximum rating specified in Section 6.2:...
  • Page 69: Table 47. I/O Ac Characteristics

    STM32F050xx Electrical characteristics Input/output AC characteristics The definition and values of input/output AC characteristics are given in Figure 21 Table 47, respectively. Unless otherwise specified, the parameters given are derived from tests performed under ambient temperature and V supply voltage conditions summarized in Table Table 47.
  • Page 70: Nrst Pin Characteristics

    Electrical characteristics STM32F050xx Figure 21. I/O AC characteristics definition t r(I O)out EXT ERNAL t r(I O)out OUTPUT ON 50pF Maximum frequency is achieved if (t r + t f ) 2/3)T and if the duty cycle is (45-55%) when loaded by 50pF ai14131 6.3.14 NRST pin characteristics...
  • Page 71: 12-Bit Adc Characteristics

    STM32F050xx Electrical characteristics 6.3.15 12-bit ADC characteristics Unless otherwise specified, the parameters given in Table 49 are preliminary values derived from tests performed under ambient temperature, f frequency and V supply voltage PCLK2 conditions summarized in Table Note: It is recommended to perform a calibration after each power-up. Table 49.
  • Page 72: Table 50. Rain Max For F Adc = 14 Mhz

    Electrical characteristics STM32F050xx Equation 1: R max formula  ------------------------------------------------------------- - R –     The formula above (Equation 1) is used to determine the maximum external impedance allowed for an error below 1/4 of LSB. Here N = 12 (from 12-bit resolution). Table 50.
  • Page 73: Figure 23. Adc Accuracy Characteristics

    STM32F050xx Electrical characteristics 2. ADC Accuracy vs. Negative Injection Current: Injecting negative current on any of the standard (non- robust) analog input pins should be avoided as this significantly reduces the accuracy of the conversion being performed on another analog input. It is recommended to add a Schottky diode (pin to ground) to standard analog pins which may potentially inject negative current.
  • Page 74: Temperature Sensor Characteristics

    Electrical characteristics STM32F050xx 6.3.16 Temperature sensor characteristics Table 52. TS characteristics Symbol Parameter Unit 1 2 linearity with temperature °C SENSE Avg_Slope Average slope mV/°C Voltage at 25 °C 1.34 1.43 1.52 Startup time µs START ADC sampling time when reading the (1)(2) 17.1 µs...
  • Page 75: Table 56. Wwdg Min-Max Timeout Value @48 Mhz (Pclk)

    STM32F050xx Electrical characteristics Table 54. TIMx characteristics (continued) Symbol Parameter Conditions Unit 65536 TIMxCLK 16-bit counter clock period COUNTER = 48 MHz 0.0208 1365 µs TIMxCLK 65536 × 65536 TIMxCLK Maximum possible count MAX_COUNT with 32-bit counter = 48 MHz 89.48 TIMxCLK 1.
  • Page 76: Communication Interfaces

    Electrical characteristics STM32F050xx 6.3.19 Communication interfaces C interface characteristics Unless otherwise specified, the parameters given in Table 57 are derived from tests performed under ambient temperature, f frequency and V supply voltage conditions PCLK summarized in Table The I C interface meets the requirements of the standard I C communication protocol with the following restrictions: the I/O pins SDA and SCL are mapped to are not “true”...
  • Page 77: Table 58. I2C Analog Filter Characteristics

    STM32F050xx Electrical characteristics Table 58. I2C analog filter characteristics Symbol Parameter Unit Pulse width of spikes that are suppressed by the analog filter 1. Guaranteed by design, not tested in production. Figure 25. I C bus AC waveforms and measurement circuit V DD V DD 100Ω...
  • Page 78: Figure 26. Spi Timing Diagram - Slave Mode And Cpha = 0

    Electrical characteristics STM32F050xx Table 59. SPI characteristics (continued) Symbol Parameter Conditions Unit NSS setup time Slave mode 4Tpclk su(NSS) NSS hold time Slave mode 2Tpclk + 10 h(NSS) Master mode, f = 36 MHz, w(SCKH) PCLK SCK high and low time Tpclk/2 -2 Tpclk/2 + 1 presc = 4...
  • Page 79 STM32F050xx Electrical characteristics Figure 27. SPI timing diagram - slave mode and CPHA = 1 NSS input t SU(NSS) t c(SCK) t h(NSS) CPHA=1 CPOL=0 t w(SCKH) CPHA=1 t w(SCKL) CPOL=1 t r(SCK) t v(SO) t h(SO) t dis(SO) t a(SO) t f(SCK) MISO MS B O UT...
  • Page 80: Table 60. I 2 S Characteristics

    Electrical characteristics STM32F050xx Table 60. S characteristics Symbol Parameter Conditions Unit Master mode (data: 16 bits, Audio 1.597 1.601 frequency = 48 kHz) S clock frequency c(CK) Slave mode S clock rise time r(CK) Capacitive load C = 15 pF S clock fall time f(CK) I2S clock high time...
  • Page 81: Figure 29. I2S Slave Timing Diagram (Philips Protocol)

    STM32F050xx Electrical characteristics Figure 29. I2S slave timing diagram (Philips protocol) t c(CK) CPOL = 0 CPOL = 1 t h(WS) t w(CKH) t w(CKL) WS input t v(SD_ST) t h(SD_ST) t su(WS) SD transmit LSB transmit MSB transmit Bitn transmit LSB transmit t su(SD_SR) t h(SD_SR)
  • Page 82: Package Characteristics

    Package characteristics STM32F050xx Package characteristics Package mechanical data In order to meet environmental requirements, ST offers these devices in different grades of ® ® ECOPACK packages, depending on their level of environmental compliance. ECOPACK specifications, grade definitions and product status are available at: www.st.com. ®...
  • Page 83: Table 61. Lqfp48 - 7 X 7 Mm, 48-Pin Low-Profile Quad Flat Package Mechanical Data

    STM32F050xx Package characteristics Figure 31. LQFP48 - 7 x 7 mm, 48-pin low-profile quad flat package outline E3 E1 E Pin 1 identification 5B_ME 1. Drawing is not to scale. Table 61. LQFP48 – 7 x 7 mm, 48-pin low-profile quad flat package mechanical data millimeters inches Symbol...
  • Page 84: Figure 32. Lqfp48 Recommended Footprint

    Package characteristics STM32F050xx Figure 32. LQFP48 recommended footprint 0.50 1.20 0.30 0.20 7.30 9.70 5.80 7.30 1.20 5.80 9.70 ai14911b 1. Drawing is not to scale. 2. Dimensions are in millimeters. 84/98 Doc ID 023079 Rev 3...
  • Page 85: Table 62. Lqfp32 - 7 X 7 Mm, 32-Pin Low-Profile Quad Flat Package Mechanical Data

    STM32F050xx Package characteristics Figure 33. LQFP32 - 7 x 7 mm, 32-pin low-profile quad flat package outline E3 E1 E Pin 1 identification 5V_ME 1. Drawing is not to scale. Table 62. LQFP32 – 7 x 7 mm, 32-pin low-profile quad flat package mechanical data millimeters inches Symbol...
  • Page 86: Figure 34. Lqfp32 Recommended Footprint

    Package characteristics STM32F050xx Figure 34. LQFP32 recommended footprint 9.40 7.70 0.54 9.40 0.80 5V_FP 1. Drawing is not to scale. 2. Dimensions are expressed in millimeters. 86/98 Doc ID 023079 Rev 3...
  • Page 87: Table 63. Ufqfpn32 - 5 X 5 Mm, 32-Lead Ultra Thin Fine Pitch Quad Flat No-Lead Package

    STM32F050xx Package characteristics Figure 35. UFQFPN32 - 5 x 5 mm, 32-lead ultra thin fine pitch quad flat no-lead package outline Seating plane ddd C Pin # 1 ID R = 0.30 Bottom view A0B8_ME 1. Drawing is not to scale. 2.
  • Page 88: Figure 36. Ufqfpn32 Recommended Footprint

    Package characteristics STM32F050xx Figure 36. UFQFPN32 recommended footprint 1. Drawing is not to scale. 2. Dimensions are in millimeters. 88/98 Doc ID 023079 Rev 3...
  • Page 89: Table 64. Ufqfpn28 - 4 X 4 Mm, 28-Lead Ultra Thin Fine Pitch Quad Flat No-Lead Package

    STM32F050xx Package characteristics Figure 37. UFQFPN28 - 4 x 4 mm, 28-lead ultra thin fine pitch quad flat no-lead package outline Seating Plane Co 130x45° Pin 1 corner Pin 1 ID Detail Z Detail Z Ro.125 Typ. Seating Plane A0B0_ME_V4 1.
  • Page 90: Figure 38. Ufqfpn28 Recommended Footprint

    Package characteristics STM32F050xx Figure 38. UFQFPN28 recommended footprint 3.30 0.50 3.20 3.20 4.30 3.30 0.30 0.55 0.50 A0B0_ME_FP 0.50 1. Dimensions are in millimeters 2. All leads/pads should also be soldered to the PCB to improve the lead/pad solder joint life. 90/98 Doc ID 023079 Rev 3...
  • Page 91: Table 65. Tssop20 - 20-Pin Thin Shrink Small Outline Package Mechanical Data

    STM32F050xx Package characteristics Figure 39. TSSOP20 - 20-pin thin shrink small outline YA_ME 1. Drawing is not to scale. Table 65. TSSOP20 – 20-pin thin shrink small outline package mechanical data millimeters inches Symbol 0.0472 0.05 0.15 0.002 0.0059 1.05 0.0315 0.0394 0.0413...
  • Page 92: Figure 40. Tssop20 Recommended Footprint

    Package characteristics STM32F050xx Figure 40. TSSOP20 recommended footprint 1. Dimensions are in millimeters 92/98 Doc ID 023079 Rev 3...
  • Page 93: Thermal Characteristics

    STM32F050xx Package characteristics Thermal characteristics The maximum chip junction temperature (T max) must never exceed the values given in Table 15: General operating conditions on page The maximum chip-junction temperature, T max, in degrees Celsius, may be calculated using the following equation: max x ...
  • Page 94 Package characteristics STM32F050xx The following examples show how to calculate the temperature range needed for a given application. Example 1: High-performance application Assuming the following application conditions: Maximum ambient temperature T = 80 °C (measured according to JESD51-2), Amax = 50 mA, V = 3.5 V, maximum 20 I/Os used at the same time in output at low DDmax level with I...
  • Page 95 STM32F050xx Package characteristics In this case, parts must be ordered at least with the temperature range suffix 7 (see Section 8: Part numbering) unless we reduce the power dissipation in order to be able to use suffix 6 parts. Doc ID 023079 Rev 3 95/98...
  • Page 96: Part Numbering

    Part numbering STM32F050xx Part numbering For a list of available options (memory, package, and so on) or for further information on any aspect of this device, please contact your nearest ST sales office. Table 67. Ordering information scheme Example: STM32 F Device family STM32 = ARM-based 32-bit microcontroller Product type...
  • Page 97: Revision History

    STM32F050xx Revision history Revision history Table 68. Document revision history Date Revision Changes 25-Apr-2012 Initial release Features reorganized and Section 3: Functional overview structure changed. Added LQFP32 package. Changed number of GPIOs in Table 2: STM32F050xx family device features and peripheral counts.
  • Page 98 Please Read Carefully: Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any time, without notice.

Table of Contents