STM32F091xB STM32F091xC
ARM
®
-based 32-bit MCU, up to 256 KB Flash, CAN, 12 timers,
ADC, DAC, and comm. interfaces, 2.0 - 3.6V
Datasheet
-
production data
Features
•
Core: ARM
®
32-bit Cortex
®
-M0 CPU,
frequency up to 48 MHz
•
Memories
– 128 to 256 Kbytes of Flash memory
– 32 Kbytes of SRAM with HW parity
•
CRC calculation unit
•
Reset and power management
– Digital & I/Os supply: V
DD
= 2.0 V to 3.6 V
– Analog supply: V
DDA
= V
DD
to 3.6 V
– Power-on/Power down reset (POR/PDR)
– Programmable voltage detector (PVD)
– Low power modes: Sleep, Stop, Standby
– V
BAT
supply for RTC and backup registers
•
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
– Internal 48 MHz oscillator with automatic
trimming based on ext. synchronization
•
Up to 88 fast I/Os
– All mappable on external interrupt vectors
– Up to 69 I/Os with 5V-tolerant capability
and 19 with independent supply V
DDIO2
•
12-channel DMA controller
•
One 12-bit, 1.0 µs ADC (up to 16 channels)
– Conversion range: 0 to 3.6 V
– Separate analog supply: 2.4 V to 3.6 V
•
One 12-bit D/A converter (with 2 channels)
•
Two fast low-power analog comparators with
programmable input and output
•
Up to 24 capacitive sensing channels for
touchkey, linear and rotary touch sensors
•
Calendar RTC with alarm and periodic wakeup
from Stop/Standby
LQFP100 14x14 mm UFQFPN48
LQFP64 10x10 mm
7x7 mm
LQFP48 7x7 mm
UFBGA100
7x7 mm
UFBGA64
5x5 mm
WLCSP64
3.3x3.6mm
•
12 timers
– One 16-bit advanced-control timer for
6 channel PWM output
– One 32-bit and seven 16-bit timers, with up
to 4 IC/OC, OCN, usable for IR control
decoding or DAC control
– Independent and system watchdog timers
– SysTick timer
•
Communication interfaces
– Two I
2
C interfaces supporting Fast Mode
Plus (1 Mbit/s) with 20 mA current sink, one
supporting SMBus/PMBus and wakeup
– Up to eight USARTs supporting master
synchronous SPI and modem control, three
with ISO7816 interface, LIN, IrDA, auto
baud rate detection and wakeup feature
– Two SPIs (18 Mbit/s) with 4 to 16
programmable bit frames, and with I
2
S
interface multiplexed
– CAN interface
•
HDMI CEC wakeup on header reception
•
Serial wire debug (SWD)
•
96-bit unique ID
•
All packages ECOPACK
®
2
Table 1. Device summary
Reference
STM32F091xB
STM32F091xC
Part number
STM32F091CB, STM32F091RB, STM32F091VB
STM32F091CC, STM32F091RC, STM32F091VC
January 2017
This is information on a product in full production.
DocID026284 Rev 4
1/128
www.st.com
Contents
STM32F091xB STM32F091xC
Contents
1
2
3
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Functional overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.1
3.2
3.3
3.4
3.5
ARM
®
-Cortex
®
-M0 core . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Memories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Boot modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Cyclic redundancy check calculation unit (CRC) . . . . . . . . . . . . . . . . . . . 14
Power management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.5.1
3.5.2
3.5.3
3.5.4
Power supply schemes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Power supply supervisors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Voltage regulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.6
3.7
3.8
3.9
Clocks and startup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
General-purpose inputs/outputs (GPIOs) . . . . . . . . . . . . . . . . . . . . . . . . . 17
Direct memory access controller (DMA) . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Interrupts and events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.9.1
3.9.2
Nested vectored interrupt controller (NVIC) . . . . . . . . . . . . . . . . . . . . . . 17
Extended interrupt/event controller (EXTI) . . . . . . . . . . . . . . . . . . . . . . 18
Temperature sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Internal voltage reference (V
REFINT
) . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
V
BAT
battery voltage monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.10
Analog-to-digital converter (ADC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.10.1
3.10.2
3.10.3
3.11
3.12
3.13
3.14
Digital-to-analog converter (DAC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Comparators (COMP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Touch sensing controller (TSC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Timers and watchdogs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.14.1
3.14.2
3.14.3
3.14.4
3.14.5
Advanced-control timer (TIM1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
General-purpose timers (TIM2, 3, 14, 15, 16, 17) . . . . . . . . . . . . . . . . . 22
Basic timers TIM6 and TIM7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Independent watchdog (IWDG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
System window watchdog (WWDG) . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
2/128
DocID026284 Rev 4
STM32F091xB STM32F091xC
3.14.6
Contents
SysTick timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.15
3.16
3.17
3.18
3.19
3.20
3.21
3.22
Real-time clock (RTC) and backup registers . . . . . . . . . . . . . . . . . . . . . . 23
Inter-integrated circuit interface (I
2
C) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Universal synchronous/asynchronous receiver/transmitter (USART) . . . 25
Serial peripheral interface (SPI) / Inter-integrated sound interface (I
2
S) . 26
High-definition multimedia interface (HDMI) - consumer
electronics control (CEC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Controller area network (CAN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Clock recovery system (CRS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Serial wire debug port (SW-DP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
4
5
6
Pinouts and pin descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Memory mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
6.1
Parameter conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
6.1.1
6.1.2
6.1.3
6.1.4
6.1.5
6.1.6
6.1.7
Minimum and maximum values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Typical values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Typical curves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Loading capacitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Pin input voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Power supply scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Current consumption measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
6.2
6.3
Absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
6.3.1
6.3.2
6.3.3
6.3.4
6.3.5
6.3.6
6.3.7
6.3.8
6.3.9
6.3.10
General operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Operating conditions at power-up / power-down . . . . . . . . . . . . . . . . . . 54
Embedded reset and power control block characteristics . . . . . . . . . . . 55
Embedded reference voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Supply current characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Wakeup time from low-power mode . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
External clock source characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Internal clock source characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
PLL characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Memory characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
DocID026284 Rev 4
3/128
4
Contents
6.3.11
6.3.12
6.3.13
6.3.14
6.3.15
6.3.16
6.3.17
6.3.18
6.3.19
6.3.20
6.3.21
6.3.22
STM32F091xB STM32F091xC
EMC characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Electrical sensitivity characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
I/O current injection characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
I/O port characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
NRST pin characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
12-bit ADC characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
DAC electrical specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Comparator characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Temperature sensor characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
V
BAT
monitoring characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Timer characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Communication interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
7
Package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
7.1
7.2
7.3
7.4
7.5
7.6
7.7
7.8
UFBGA100 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
LQFP100 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
UFBGA64 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
WLCSP64 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
LQFP64 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .112
LQFP48 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .115
UFQFPN48 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .118
Thermal characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
7.8.1
7.8.2
Reference document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
Selecting the product temperature range . . . . . . . . . . . . . . . . . . . . . . 121
8
9
Ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
4/128
DocID026284 Rev 4
STM32F091xB STM32F091xC
List of tables
List of tables
Table 1.
Table 2.
Table 3.
Table 4.
Table 5.
Table 6.
Table 7.
Table 8.
Table 9.
Table 10.
Table 11.
Table 12.
Table 13.
Table 14.
Table 15.
Table 16.
Table 17.
Table 18.
Table 19.
Table 20.
Table 21.
Table 22.
Table 23.
Table 24.
Table 25.
Table 26.
Table 27.
Table 28.
Table 29.
Table 30.
Table 31.
Table 32.
Table 33.
Table 34.
Table 35.
Table 36.
Table 37.
Table 38.
Table 39.
Table 40.
Table 41.
Table 42.
Table 43.
Table 44.
Table 45.
Table 46.
Device summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
STM32F091xB/xC family device features and peripheral counts . . . . . . . . . . . . . . . . . . . . 11
Temperature sensor calibration values. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Internal voltage reference calibration values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Capacitive sensing GPIOs available on STM32F091xB/xC devices . . . . . . . . . . . . . . . . . 20
Number of capacitive sensing channels available
on STM32F091xB/xC devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Timer feature comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Comparison of I
2
C analog and digital filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
STM32F091xB/xC I
2
C implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
STM32F091xB/xC USART implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
STM32F091xB/xC SPI/I
2
S implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Legend/abbreviations used in the pinout table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
STM32F091xB/xC pin definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Alternate functions selected through GPIOA_AFR registers for port A . . . . . . . . . . . . . . . 41
Alternate functions selected through GPIOB_AFR registers for port B . . . . . . . . . . . . . . . 42
Alternate functions selected through GPIOC_AFR registers for port C . . . . . . . . . . . . . . . 43
Alternate functions selected through GPIOD_AFR registers for port D . . . . . . . . . . . . . . . 43
Alternate functions selected through GPIOE_AFR registers for port E . . . . . . . . . . . . . . . 44
Alternate functions selected through GPIOF_AFR registers for port F. . . . . . . . . . . . . . . . 44
STM32F091xB/xC peripheral register boundary addresses . . . . . . . . . . . . . . . . . . . . . . . . 46
Voltage characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Current characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Thermal characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
General operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Operating conditions at power-up / power-down . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Embedded reset and power control block characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . 55
Programmable voltage detector characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Embedded internal reference voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Typical and maximum current consumption from V
DD
supply at V
DD
= 3.6 V . . . . . . . . . . 58
Typical and maximum current consumption from the V
DDA
supply . . . . . . . . . . . . . . . . . 59
Typical and maximum consumption in Stop and Standby modes . . . . . . . . . . . . . . . . . . . 60
Typical and maximum current consumption from the V
BAT
supply. . . . . . . . . . . . . . . . . . . 61
Typical current consumption, code executing from Flash memory,
running from HSE 8 MHz crystal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Switching output I/O current consumption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Peripheral current consumption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Low-power mode wakeup timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
High-speed external user clock characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Low-speed external user clock characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
HSE oscillator characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
LSE oscillator characteristics (f
LSE
= 32.768 kHz) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
HSI oscillator characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
HSI14 oscillator characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
HSI48 oscillator characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
LSI oscillator characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
PLL characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Flash memory characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
DocID026284 Rev 4
5/128
6