STM32F303 PDF
STM32F303 PDF
STM32F303xB STM32F303xC
ARM Cortex-M4F 32b MCU+FPU, up to 256KB Flash+48KB SRAM
4 ADCs, 2 DAC ch., 7 comp, 4 PGA, timers, 2.0-3.6 V operation
Datasheet − production data
Features
■ Core: ARM® 32-bit Cortex™-M4F CPU (72 MHz
max), single-cycle multiplication and HW
LQFP48 (7 × 7 mm)
division, DSP instruction with FPU (floating-point LQFP64 (10 × 10 mm)
unit) and MPU (memory protection unit). LQFP100 (14 × 14 mm)
Contents
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3 Functional overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.1 ARM® Cortex™-M4F core with embedded Flash and SRAM . . . . . . . . . 13
3.2 Memory protection unit (MPU) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.3 Embedded Flash memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.4 Embedded SRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.5 Boot modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.6 Cyclic redundancy check (CRC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.7 Power management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.7.1 Power supply schemes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.7.2 Power supply supervisor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.7.3 Voltage regulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.7.4 Low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.8 Clocks and startup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.9 General-purpose input/outputs (GPIOs) . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.10 Direct memory access (DMA) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.11 Interrupts and events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.11.1 Nested vectored interrupt controller (NVIC) . . . . . . . . . . . . . . . . . . . . . . 19
3.12 Fast analog-to-digital converter (ADC) . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.12.1 Temperature sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.12.2 Internal voltage reference (VREFINT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.12.3 VBAT battery voltage monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.12.4 OPAMP reference voltage (VOPAMP) . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.13 Digital-to-analog converter (DAC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
3.14 Operational amplifier (OPAMP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
3.15 Fast comparators (COMP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
3.16 Timers and watchdogs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.16.1 Advanced timers (TIM1, TIM8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.16.2 General-purpose timers (TIM2, TIM3, TIM4, TIM15, TIM16, TIM17) . . 24
3.16.3 Basic timers (TIM6, TIM7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
5 Memory mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
6 Electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
6.1 Parameter conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
6.1.1 Minimum and maximum values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
6.1.2 Typical values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
6.1.3 Typical curves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
6.1.4 Loading capacitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
6.1.5 Pin input voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
6.1.6 Power supply scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
6.1.7 Current consumption measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
6.2 Absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
6.3 Operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
6.3.1 General operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
6.3.2 Operating conditions at power-up / power-down . . . . . . . . . . . . . . . . . . 59
6.3.3 Embedded reset and power control block characteristics . . . . . . . . . . . 59
6.3.4 Embedded reference voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
6.3.5 Supply current characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
List of tables
List of figures
1 Introduction
This datasheet provides the ordering information and mechanical device characteristics of
the STM32F30xB/C microcontrollers.
This STM32F30xB/C datasheet should be read in conjunction with the STM32F30xB/C
reference manual. The reference manual is available from the STMicroelectronics website
www.st.com.
For information on the Cortex™-M4F core please refer to:
● Cortex™-M4F 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.subset.cortexm.m4/
index.html
● STM32F3xxx and STM32F4xxx Cortex-M4 programming manual (PM0214)
available from the www.st.com website at the following address:
http://www.st.com/internet/com/TECHNICAL_RESOURCES/
TECHNICAL_LITERATURE/PROGRAMMING_MANUAL/DM00046982.pdf
2 Description
Flash (Kbytes) 128 256 128 256 128 256 128 256 128 256 128 256
SRAM (Kbytes) on
24 32 24 32 24 32 32 40 32 40 32 40
data bus
SRAM (Kbytes) on
instruction bus (CCM: 8
core coupled memory)
Advanced
1 (16-bit) 2 (16-bit)
control
Timers General 5 (16-bit)
purpose 1 (32-bit)
Basic 1 (16-bit) 2 (16-bit)
SPI(I2S)(1) 3 3(2)
I2C 2
Comm.
USART 3
interfaces
UART 0 2 0 2
CAN 1
USB 1
Normal
I/Os 20 27 45 20 27 45
(TC, TTa)
GPIOs 5 volts
Tolerant
17 25 42 17 25 42
I/Os
(FT, FTf)
DMA channels 12
Capacitive sensing
17 18 24 17 18 24
channels
12-bit ADCs 2 4
12-bit DAC channels 1 2
Analog comparator 4 7
Operational amplifiers 2 4
CPU frequency 72 MHz
Operating voltage 2.0 to 3.6 V
Operating Ambient operating temperature: - 40 to 85 °C / - 40 to 105 °C
temperature Junction temperature: - 40 to 125 °C
Packages LQFP48 LQFP64 LQFP100 LQFP48 LQFP64 LQFP100
1. In STM32F303xB/STM32F303xC devices the SPI interfaces can work in an exclusive way in either the SPI mode or the I2S
audio mode.
OBL
as AF MPU/FPU
interface
@VDDIO
Flash
JTRST FLASH 256 KB
Ibus
JTDI 64 bits POR Supply
JTCK/SWCLK Cortex M4 CPU Supervision
JTMS/SWDIO Dbus Reset NRESET
JTDO Fmax: 72 MHz CCM RAM Int. POR /PDR VDDA
As AF 8KB VSSA
BusMatrix
System PVD
SRAM
NVIC
40 KB @VDDA @VDDA
CRC TIMER2
PA[15:0] GPIO PORT A (32-bit/PWM) 4 Channels, ETR as AF
AHB2 AHB2
UART5 RX, TX as AF
APB2 APB1
TIMER 1 / PWM
4 Comp channels, OpAmp1 INxx / OUTxx
ETR, BRK as AF
@VDDA OpAmp2 INxx / OUTxx
MOSI, MISO, SPI1
SCK,NSS as AF GP Comparator 6
GP Comparator 4 @VDDA
RX, TX, CTS, RTS, USART1
GP Comparator 2
SmartCard as AF
GP Comparator 1
OBL
as AF MPU/FPU
interface
@VDDIO
Flash
JTRST FLASH 256 KB
Ibus
JTDI 64 bits POR Supply
JTCK/SWCLK Cortex M4 CPU Supervision
JTMS/SWDIO Dbus Reset NRESET
JTDO Fmax: 72 MHz CCM RAM Int. POR /PDR VDDA
As AF 8KB VSSA
BusMatrix
System PVD
SRAM
NVIC
40 KB @VDDA @VDDA
CRC TIMER2
PA[15:0] GPIO PORT A (32-bit/PWM) 4 Channels, ETR as AF
4 Channels, ETR as AF
AHB2 AHB2
UART5 RX, TX as AF
APB2 APB1
4 Channels,
4 Comp channels, TIMER 1 / PWM
OpAmp1 INxx / OUTxx
INTERFACE
ETR, BRK as AF
4 Channels, OpAmp2 INxx / OUTxx
TIMER 8 / PWM
4 Comp channels,
ETR, BRK as AF SYSCFG CTL OpAmp3 INxx / OUTxx
MS18960V4
Xx Ins, 7 OUTs as AF
3 Functional overview
FLITFCLK
to Flash programming interface
HSI
I2SSRC
SYSCLK
to I2Sx (x = 2,3)
I2S_CKIN Ext. clock
USB
prescaler USBCLK
8 MHz HSI /1,1.5 to USB interface
HSI RC
/2
HCLK to AHB bus, core,
memory and DMA
PLLSRC SW /8 to cortex System timer
PLLMUL
HSI FHCLK Cortex free
PLL PLLCLK AHB
AHB APB1 running clock
PCLK1
x2,x3,.. prescaler prescaler to APB1 peripherals
x16 /1,2,..512 /1,2,4,8,16
HSE
SYSCLK
CSS If (APB1 prescaler to TIM 2,3,4,6,7
/2,/3,...
=1) x1 else x2
/16
PCLK1
OSC_OUT SYSCLK to U(S)ARTx (x = 2..5)
4-32 MHz HSI
HSE OSC LSE
OSC_IN
APB2
PCLK2
prescaler to APB2 peripherals
/32 /1,2,4,8,16
OSC32_IN RTCCLK to RTC
LSE OSC
32.768kHz LSE If (APB2 prescaler to TIM 15,16,17
OSC32_OUT =1) x1 else x2
RTCSEL[1:0]
PCLK2
LSI RC LSI IWDGCLK SYSCLK to USART1
40kHz to IWDG HSI
/2 PLLCLK LSE
Main clock
HSI
MCO output
LSI
HSE x2 TIM1/8
SYSCLK
MCO
ADC
Prescaler
/1,2,4 to ADCxy
(xy = 12, 34)
ADC
Prescaler
/1,2,4,6,8,10,12,16,
32,64,128,256
MS19989V4
TIM1,
TIM8
Any integer
(on Up, Down,
Advanced 16-bit between 1 Yes 4 Yes
STM32F303xB Up/Down
and 65536
/STM32F303x
C devices only)
Any integer
General- Up, Down,
TIM2 32-bit between 1 Yes 4 No
purpose Up/Down
and 65536
Any integer
General- Up, Down,
TIM3, TIM4 16-bit between 1 Yes 4 No
purpose Up/Down
and 65536
Any integer
General-
TIM15 16-bit Up between 1 Yes 2 1
purpose
and 65536
Any integer
General-
TIM16, TIM17 16-bit Up between 1 Yes 1 1
purpose
and 65536
TIM6,
TIM7
Any integer
(on
Basic 16-bit Up between 1 Yes 0 No
STM32F303xB
and 65536
/STM32F303x
C devices only)
In debug mode, the advanced-control timer counter can be frozen and the PWM outputs
disabled to turn off any power switches driven by these outputs.
Many features are shared with those of the general-purpose TIM timers (described in
Section 3.16.2 using the same architecture, so the advanced-control timers can work
together with the TIM timers via the Timer Link feature for synchronization or event chaining.
In addition, they provide hardware support for SMBUS 2.0 and PMBUS 1.1: ARP capability,
Host notify protocol, hardware CRC (PEC) generation/verification, timeouts verifications and
ALERT protocol management. They also have a clock domain independent from the CPU
clock, allowing the I2Cx (x=1,2) to wake up the MCU from Stop mode on address match.
The I2C interfaces can be served by the DMA controller.
Refer to Table 5 for the features available in I2C1 and I2C2.
TIM17 is used to provide the carrier frequency and TIM16 provides the main signal to be
sent. The infrared output signal is available on PB9 or PA13.
To generate the infrared remote control signals, TIM16 channel 1 and TIM17 channel 1 must
be properly configured to generate correct waveforms. All standard IR pulse modulation
modes can be obtained by programming the two timers output compare channels.
TIMER 16 OC
TIMER 17 OC
(for carrier)
MS30365V1
G1 3 3 3
G2 3 3 3
G3 3 3 2
G4 3 3 3
G5 3 3 3
G6 3 3 3
G7 3 0 0
G8 3 0 0
Number of capacitive
24 18 17
sensing channels
BOOT0
VDD_1
VSS_1
PA15
PA14
PB6
PB5
PB4
PB3
PB9
PB8
PB7
48 47 46 45 44 43 42 41 40 39 38 37
VBAT 1 36 VDD_3
PC13 2 35 VSS_3
PC14/OSC32_IN 3 34 PA13
PC15/OSC32_OUT 4 33 PA12
PF0/OSC_IN 5 32 PA11
PF1/OSC_OUT 6 31 PA10
NRST 7
,1&0 30 PA9
VSSA/VREF- 8 29 PA8
VDDA/VREF+ 9 28 PB15
PA0 10 27 PB14
PA1 11 26 PB13
PA2 12 25 PB12
13 14 15 16 17 18 19 20 21 22 23 24
PA4
PA5
PA3
PA7
PB2
PB10
PB0
PB1
PA6
PB11
VDD_2
VSS_2
.47
BOOT0
VDD_1
VSS_1
PC12
PC10
PC11
PA15
PA14
PD2
PB9
PB8
PB7
PB6
PB5
PB4
PB3
64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49
VBAT 1 48 VDD_3
PC13 2 47 VSS_3
PC14/OSC32_IN 3 46 PA13
PC15/OSC32_OUT 4 45 PA12
PF0/OSC_IN 5 44 PA11
PF1/OSC_OUT 6 43 PA10
NRST 7 42 PA9
PC0 8 41 PA8
PC1 9 ,1&0 40 PC9
PC2 10 39 PC8
PC3 11 38 PC7
VSSA/VREF- 12 37 PC6
VDDA 13 36 PB15
PA0 14 35 PB14
PA1 15 34 PB13
PA2 16 33 PB12
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
PB11
PB10
VDD_4
PB2
PA4
PA5
PA6
PA7
PC4
PC5
PB0
PB1
PF4
VDD_2
PA3
VSS_2
AI6
"//4
633?
6$$?
0#
0#
0#
0!
0!
0$
0$
0$
0$
0$
0$
0$
0$
0%
0%
0"
0"
0"
0"
0"
0"
0"
0% 6$$?
0% 633?
0% 0&
0% 0!
0% 0!
6"!4 0!
0# 0!
0#/3#?). 0!
0#/3#?/54 0!
0& 0#
0& 0#
0&/3#?). 0#
0&/3#?/54 ,1&0 0#
.234 0$
0# 0$
0# 0$
0# 0$
0# 0$
0& 0$
633!62%&
0$
62%& 0$
6$$! 0"
0! 0"
0! 0"
0! 0"
6$$?
6$$?
0!
0!
0!
0!
0!
0#
0#
0%
0%
0%
0%
0%
0%
0"
0"
0"
0"
0"
0%
0%
0%
633?
0&
AI6
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
S Supply pin
Pin type I Input only pin
I/O Input / output pin
FT 5 V tolerant I/O
FTf 5 V tolerant I/O, FM+ capable
TTa 3.3 V tolerant I/O directly connected to ADC
I/O structure
TC Standard 3.3V I/O
B Dedicated BOOT0 pin
RST Bidirectional reset pin with embedded weak pull-up resistor
Unless otherwise specified by a note, all I/Os are set as floating inputs during
Notes
and after reset
Alternate
Functions selected through GPIOx_AFR registers
functions
Pin
functions Additional
Functions directly selected/enabled through peripheral registers
functions
I/O structure
Pin number Pin functions
Pin name
Pin type
Notes
LQFP100
(function
LQFP64
LQFP48
after Alternate functions Additional functions
reset)
I/O structure
Pin number Pin functions
Pin name
Pin type
Notes
LQFP100
(function
LQFP64
LQFP48
after Alternate functions Additional functions
reset)
USART2_CTS,
ADC1_IN1, COMP1_INM,
TIM2_CH1_ETR,
23 14 10 PA0 I/O TTa RTC_ TAMP2, WKUP1,
TIM8_BKIN(3), TIM8_ETR(3),
COMP7_INP(3)
TSC_G1_IO1, COMP1_OUT
ADC1_IN2, COMP1_INP,
USART2_RTS, TIM2_CH2,
24 15 11 PA1 I/O TTa OPAMP1_VINP,
TSC_G1_IO2, TIM15_CH1N
OPAMP3_VINP(3)
USART2_TX, TIM2_CH3,
ADC1_IN3, COMP2_INM,
25 16 12 PA2 I/O TTa TIM15_CH1, TSC_G1_IO3,
OPAMP1_VOUT
COMP2_OUT
ADC1_IN4, OPAMP1_VINP,
USART2_RX, TIM2_CH4,
26 17 13 PA3 I/O TTa COMP2_INP,
TIM15_CH2, TSC_G1_IO4
OPAMP1_VINM
(1)
27 18 PF4 I/O TTa COMP1_OUT ADC1_IN5
28 19 VDD_4 S
ADC2_IN1, DAC1_OUT1,
OPAMP4_VINP(3),
COMP1_INM, COMP2_INM,
SPI1_NSS, SPI3_NSS,
COMP3_INM(3),
29 20 14 PA4 I/O TTa I2S3_WS(3), USART2_CK,
COMP4_INM,
TSC_G2_IO1, TIM3_CH2
COMP5_INM(3),
COMP6_INM,
COMP7_INM(3)
ADC2_IN2, DAC1_OUT2(3)
OPAMP1_VINP,
OPAMP2_VINM,
OPAMP3_VINP(3),
SPI1_SCK, TIM2_CH1_ETR, COMP1_INM, COMP2_INM,
30 21 15 PA5 I/O TTa
TSC_G2_IO2 COMP3_INM(3),
COMP4_INM,
COMP5_INM(3),
COMP6_INM,
COMP7_INM(3)
SPI1_MISO, TIM3_CH1,
TIM8_BKIN(3), TIM1_BKIN,
31 22 16 PA6 I/O TTa ADC2_IN3, OPAMP2_VOUT
TIM16_CH1, COMP1_OUT,
TSC_G2_IO3
SPI1_MOSI, TIM3_CH2,
ADC2_IN4, COMP2_INP,
TIM17_CH1, TIM1_CH1N,
32 23 17 PA7 I/O TTa OPAMP2_VINP,
TIM8_CH1N(3), TSC_G2_IO4,
OPAMP1_VINP
COMP2_OUT
(1)
33 24 PC4 I/O TTa USART1_TX ADC2_IN5
(1) ADC2_IN11, OPAMP2_VINM,
34 25 PC5 I/O TTa USART1_RX, TSC_G3_IO1
OPAMP1_VINM
I/O structure
Pin number Pin functions
Pin name
Pin type
Notes
LQFP100
(function
LQFP64
LQFP48
after Alternate functions Additional functions
reset)
ADC3_IN12(3), COMP4_INP,
TIM3_CH3, TIM1_CH2N,
35 26 18 PB0 I/O TTa OPAMP3_VINP(3),
TIM8_CH2N(3), TSC_G3_IO2
OPAMP2_VINP
TIM3_CH4, TIM1_CH3N,
ADC3_IN1(3),
36 27 19 PB1 I/O TTa TIM8_CH3N(3), COMP4_OUT,
OPAMP3_VOUT(3)
TSC_G3_IO3
ADC2_IN12, COMP4_INM,
37 28 20 PB2 I/O TTa TSC_G3_IO4
OPAMP3_VINM(3)
(1)
38 PE7 I/O TTa TIM1_ETR ADC3_IN13(3), COMP4_INP
(1)
39 PE8 I/O TTa TIM1_CH1N COMP4_INM, ADC34_IN6(3)
(1)
40 PE9 I/O TTa TIM1_CH1 ADC3_IN2(3)
(1)
41 PE10 I/O TTa TIM1_CH2N ADC3_IN14(3)
(1)
42 PE11 I/O TTa TIM1_CH2 ADC3_IN15(3)
(1)
43 PE12 I/O TTa TIM1_CH3N ADC3_IN16(3)
(1)
44 PE13 I/O TTa TIM1_CH3 ADC3_IN3(3)
(1)
45 PE14 I/O TTa TIM1_CH4, TIM1_BKIN2 ADC4_IN1(3)
(1)
46 PE15 I/O TTa USART3_RX, TIM1_BKIN ADC4_IN2(3)
COMP5_INM(3),
USART3_TX, TIM2_CH3,
47 29 21 PB10 I/O TTa OPAMP4_VINM(3),
TSC_SYNC
OPAMP3_VINM(3)
USART3_RX, TIM2_CH4, COMP6_INP,
48 30 22 PB11 I/O TTa
TSC_G6_IO1 OPAMP4_VINP(3)
49 31 23 VSS_2 S Digital ground
50 32 24 VDD_2 S Digital power supply
SPI2_NSS, I2S2_WS(3), ADC4_IN3(3),
51 33 25 PB12 I/O TTa I2C2_SMBA, USART3_CK, COMP3_INM(3),
TIM1_BKIN, TSC_G6_IO2 OPAMP4_VOUT(3),
ADC3_IN5(3),
SPI2_SCK, I2S2_CK(3),
COMP5_INP(3),
52 34 26 PB13 I/O TTa USART3_CTS, TIM1_CH1N,
OPAMP4_VINP(3),
TSC_G6_IO3
OPAMP3_VINP(3)
SPI2_MISO, I2S2ext_SD(3),
COMP3_INP(3),
53 35 27 PB14 I/O TTa USART3_RTS, TIM1_CH2N,
ADC4_IN4(3), OPAMP2_VINP
TIM15_CH1, TSC_G6_IO4
SPI2_MOSI, I2S2_SD(3),
ADC4_IN5(3), RTC_REFIN,
54 36 28 PB15 I/O TTa TIM1_CH3N, TIM15_CH1N,
COMP6_INM
TIM15_CH2
(1) ADC4_IN12(3),
55 PD8 I/O TTa USART3_TX
OPAMP4_VINM(3)
56 PD9 I/O TTa (1) USART3_RX ADC4_IN13(3)
57 PD10 I/O TTa (1) USART3_CK ADC34_IN7(3), COMP6_INM
I/O structure
Pin number Pin functions
Pin name
Pin type
Notes
LQFP100
(function
LQFP64
LQFP48
after Alternate functions Additional functions
reset)
I/O structure
Pin number Pin functions
Pin name
Pin type
Notes
LQFP100
(function
LQFP64
LQFP48
after Alternate functions Additional functions
reset)
74 47 35 VSS_3 S Ground
75 48 36 VDD_3 S Digital power supply
I2C1_SDA, USART2_TX,
76 49 37 PA14 I/O FTf TIM8_CH2(3), TIM1_BKIN,
TSC_G4_IO4, SWCLK-JTCK
I2C1_SCL, SPI1_NSS,
SPI3_NSS, I2S3_WS(3), JTDI,
77 50 38 PA15 I/O FTf
USART2_RX, TIM1_BKIN,
TIM2_CH1_ETR, TIM8_CH1(3)
SPI3_SCK, I2S3_CK(3),
(1)
78 51 PC10 I/O FT USART3_TX, UART4_TX,
TIM8_CH1N(3)
SPI3_MISO, I2S3ext_SD(3),
(1)
79 52 PC11 I/O FT USART3_RX, UART4_RX,
TIM8_CH2N(3)
SPI3_MOSI, I2S3_SD(3),
(1)
80 53 PC12 I/O FT USART3_CK, UART5_TX,
TIM8_CH3N(3)
(1)
81 PD0 I/O FT CAN_RX
(1) CAN_TX, TIM8_CH4(3),
82 PD1 I/O FT
TIM8_BKIN2(3)
(1) UART5_RX, TIM3_ETR,
83 54 PD2 I/O FT
TIM8_BKIN(3)
(1) USART2_CTS,
84 PD3 I/O FT
TIM2_CH1_ETR
(1)
85 PD4 I/O FT USART2_RTS, TIM2_CH2
(1)
86 PD5 I/O FT USART2_TX
(1)
87 PD6 I/O FT USART2_RX, TIM2_CH4
(1)
88 PD7 I/O FT USART2_CK, TIM2_CH3
SPI3_SCK, I2S3_CK(3),
SPI1_SCK, USART2_TX,
TIM2_CH2, TIM3_ETR,
89 55 39 PB3 I/O FT
TIM4_ETR, TIM8_CH1N(3),
TSC_G5_IO1, JTDO-
TRACESWO
SPI3_MISO, I2S3ext_SD(3),
SPI1_MISO, USART2_RX,
90 56 40 PB4 I/O FT TIM3_CH1, TIM16_CH1,
TIM17_BKIN, TIM8_CH2N(3),
TSC_G5_IO2, NJTRST
I/O structure
Pin number Pin functions
Pin name
Pin type
Notes
LQFP100
(function
LQFP64
LQFP48
after Alternate functions Additional functions
reset)
SPI3_MOSI, SPI1_MOSI,
I2S3_SD(3), I2C1_SMBA,
91 57 41 PB5 I/O FT USART2_CK, TIM16_BKIN,
TIM3_CH2, TIM8_CH3N(3),
TIM17_CH1
I2C1_SCL, USART1_TX,
TIM16_CH1N, TIM4_CH1,
92 58 42 PB6 I/O FTf
TIM8_CH1(3), TSC_G5_IO3,
TIM8_ETR(3), TIM8_BKIN2(3)
I2C1_SDA, USART1_RX,
TIM3_CH4, TIM4_CH2,
93 59 43 PB7 I/O FTf
TIM17_CH1N, TIM8_BKIN(3),
TSC_G5_IO4
94 60 44 BOOT0 I B Boot memory selection
I2C1_SCL, CAN_RX,
TIM16_CH1, TIM4_CH3,
95 61 45 PB8 I/O FTf
TIM8_CH2(3), TIM1_BKIN,
TSC_SYNC, COMP1_OUT
I2C1_SDA, CAN_TX,
TIM17_CH1, TIM4_CH4,
96 62 46 PB9 I/O FTf
TIM8_CH3(3), IR_OUT,
COMP2_OUT
(1) USART1_TX, TIM4_ETR,
97 PE0 I/O FT
TIM16_CH1
(1)
98 PE1 I/O FT USART1_RX, TIM17_CH1
99 63 47 VSS_1 S Ground
100 64 48 VDD_1 S Digital power supply
1. Function availability depends on the chosen device.
When using the small packages (48 and 64 pin packages), the GPIO pins which are not present on these packages, must
not be configured in analog mode.
2. PC13, PC14 and PC15 are supplied through the power switch. Since the switch sinks only 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 current sources (e.g. to drive an LED).
After the first backup domain power-up, PC13, PC14 and PC15 operate as GPIOs. Their function then depends on the
content of the Backup registers which is not reset by the main reset. For details on how to manage these GPIOs, refer to
the Battery backup domain and BKP register description sections in the reference manual.
3. On STM32F303xx devices only.
TIM2_
TSC_ USART2 COMP1 TIM8_ TIM8_ EVENT
PA0 CH1_
G1_IO1 _CTS _OUT BKIN ETR OUT
ETR
TIM2_ TSC_ USART2 TIM15_ EVENT
PA1
CH2 G1_IO2 _RTS CH1N OUT
TIM2_ TSC_ USART2 COMP2 TIM15_ EVENT
PA2
CH3 G1_IO3 _TX _OUT CH1 OUT
TIM2_ TSC_ USART2 TIM15_ EVENT
PA3
CH4 G1_IO4 _RX CH2 OUT
Doc ID 023353 Rev 5
STM32F302xx/STM32F303xx
PA8 MCO TIM1_CH1
SMBA MCK _CK _OUT ETR OUT
TSC_ I2C2_ I2S3_ USART1 COMP5 TIM15_ TIM2_ EVENT
PA9 TIM1_CH2
G4_IO1 SCL MCK _TX _OUT BKIN CH3 OUT
TIM17_ TSC_ I2C2_ USART1 COMP6 TIM2_ TIM8_ EVENT
PA10 TIM1_CH3
BKIN G4_IO2 SDA _RX _OUT CH4 BKIN OUT
STM32F302xx/STM32F303xx
Port
&
AF0 AF1 AF2 AF3 AF4 AF5 AF6 AF7 AF8 AF9 AF10 AF11 AF12 AF14 AF15
Pin
Name
WO
TIM16_ TIM3_ TSC_ TIM8_ SPI1_ SPI3_MISO, USART2_ TIM17_ EVENT
PB4 NJTRST
CH1 CH1 G5_IO2 CH2N MISO I2S3ext_SD RX BKIN OUT
TIM16_ TIM3_ TIM8_ I2C1_ SPI1_ SPI3_MOSI, USART2_ TIM17_ EVENT
PB5
BKIN CH2 CH3N SMBA MOSI I2S3_SD CK CH1 OUT
TIM16_ TIM4_ TSC_ TIM8_ USART1_ TIM8_ EVENT
PB6 I2C1_SCL TIM8_CH1
CH1N CH1 G5_IO3 ETR TX BKIN2 OUT
TIM17_ TIM4_ TSC_ I2C1_ TIM8_ USART1_ TIM3_ EVENT
PB7
CH1N CH2 G5_IO4 SDA BKIN RX CH4 OUT
TIM16_ TIM4_ TSC_ COMP1_ TIM8_ TIM1_ EVENT
PB8 I2C1_SCL CAN_RX
STM32F302xx/STM32F303xx
CH1 CH3 SYNC OUT CH2 BKIN OUT
TIM17_ TIM4_ I2C1_ COMP2_ TIM8_ EVENT
PB9 IR_OUT CAN_TX
CH1 CH4 SDA OUT CH3 OUT
TIM2_ TSC_ USART3_ EVENT
PB10
CH3 SYNC TX OUT
TIM2_ TSC_ USART3_ EVENT
PB11
CH4 G6_IO1 RX OUT
TSC_ I2C2_ SPI2_NSS, TIM1_ USART3_ EVENT
PB12
G6_IO2 SMBA I2S2_WS BKIN CK OUT
Table 13. Alternate functions for port B (continued)
STM32F302xx/STM32F303xx
Port
&
AF0 AF1 AF2 AF3 AF4 AF5 AF6 AF7 AF8 AF9 AF10 AF12 AF15
Pin
Name
PC0 EVENTOUT
PC1 EVENTOUT
PC2 EVENTOUT COMP7_OUT
PC3 EVENTOUT TIM1_BKIN2
PC4 EVENTOUT USART1_TX
PC5 EVENTOUT TSC_G3_IO1 USART1_RX
PC6 EVENTOUT TIM3_CH1 TIM8_CH1 I2S2_MCK COMP6_OUT
Doc ID 023353 Rev 5
STM32F302xx/STM32F303xx
STM32F302xx/STM32F303xx
Table 15. Alternate functions for port D
Port &
AF1 AF2 AF3 AF4 AF5 AF6 AF7
Pin Name
STM32F302xx/STM32F303xx
STM32F302xx/STM32F303xx
Table 17. Alternate functions for port F
Port &
AF1 AF2 AF3 AF4 AF5 AF6 AF7
Pin Name
5 Memory mapping
0x5000 07FF
AHB3
0xFFFF FFFF 0x5000 0000
Cortex-M4F Reserved
7 Internal
Peripherals
0x4800 1800
AHB2
0xE000 0000 0x4800 0000
Reserved
6 0x4002 43FF
AHB1
0xC000 0000
0x4002 0000
Reserved
5
0x4001 6C00
APB2
0xA000 0000
0x4001 0000
Reserved
4 0x4000 A000
APB1
0x8000 0000 0x4000 0000
3 0x1FFF FFFF
Option bytes
0x6000 0000
0x1FFF F800
System memory
2 0x1FFF D800
Reserved
0x1000 2000
0x4000 0000 Peripherals CCM RAM
0x1000 0000
1 0x0804 0000
Reserved
0x0800 0000
0 CODE Reserved
0x0004 0000
0x0000 0000
Flash, system memory
or SRAM, depending
on BOOT configuration
Reserved
0x0000 0000
MS30355V1
Table 18. STM32F30xB/C memory map and peripheral register boundary addresses
(continued)
Size
Bus Boundary address Peripheral
(bytes)
6 Electrical characteristics
-#5 PIN -#5 PIN
C = 50 pF 6).
-36 -36
Backup circuitry
Po wer swi tch (LSE,RTC,
1.65 - 3.6V
Wake-up logic
Backup registers)
Level shifter
OUT
IO
GP I/Os Logic
IN Kernel logic
(CPU,
Digital
VDD
& Memories)
4 × VDD
Regulator
4 × 100 nF
+ 1 × 4.7 μF 3 × VSS
VDDA
VDDA
VREF
MS19875V3
1. Dotted lines represent the internal connections on low pin count packages, joining the dedicated supply
pins.
Caution: Each power supply pair (VDD/VSS, VDDA/VSSA etc..) must be decoupled with filtering
ceramic capacitors as shown above. These capacitors must be placed as close as possible
to, or below the appropriate pins on the underside of the PCB to ensure the good
functionality of the device.
)$$
6$$
)$$!
6$$!
-36
IVDD(Σ) Total current into sum of all VDD_x power lines (source) 160
IVSS(Σ) Total current out of sum of all VSS_x ground lines (sink) − 160
(1)
IVDD Maximum current into each VDD_x power line (source) 100
IVSS Maximum current out of each VSS _x ground line (sink)(1) − 100
Output current sunk by any I/O and control pin 25
IIO(PIN)
Output current source by any I/O and control pin − 25
mA
(2)
Total output current sunk by sum of all IOs and control pins 80
ΣIIO(PIN)
Total output current sourced by sum of all IOs and control pins(2) − 80
Injected current on FT, FTf and B pins(3) -5/+0
IINJ(PIN) Injected current on TC and RST pin(4) ±5
(5)
Injected current on TTa pins ±5
ΣIINJ(PIN) Total injected current (sum of all I/O and control pins)(6) ± 25
1. All main power (VDD, VDDA) and ground (VSS and VSSA) pins must always be connected to the external power supply, in
the permitted range.
2. This current consumption must be correctly distributed over all I/Os and control pins.The total output current must not be
sunk/sourced between two consecutive power supply pins referring to high pin count LQFP packages
3. Positive injection is not possible on these I/Os and does not occur for input voltages lower than the specified maximum
value.
4. A positive injection is induced by VIN>VDD while a negative injection is induced by VIN<VSS. IINJ(PIN) must never be
exceeded. Refer to Table 19: Voltage characteristics for the maximum allowed input voltage values.
5. A positive injection is induced by VIN>VDDA while a negative injection is induced by VIN<VSS. IINJ(PIN) must never be
exceeded. Refer also to Table 19: Voltage characteristics for the maximum allowed input voltage values. Negative injection
disturbs the analog performance of the device. See note (2) below Table 68.
6. When several inputs are submitted to a current injection, the maximum ΣIINJ(PIN) is the absolute sum of the positive and
negative injected currents (instantaneous values).
Table 28. Typical and maximum current consumption from VDD supply at VDD = 3.6V
All peripherals enabled All peripherals disabled
Table 28. Typical and maximum current consumption from VDD supply at VDD = 3.6V
All peripherals enabled All peripherals disabled
Table 29. Typical and maximum current consumption from the VDDA supply
VDDA = 2.4 V VDDA = 3.6 V
Conditions
Symbol Parameter (1) fHCLK Max @ TA(2) Max @ TA(2) Unit
Typ Typ
25 °C 85 °C 105 °C 25 °C 85 °C 105 °C
1. Current consumption from the VDDA supply is independent of whether the peripherals are on or off. Furthermore when the
PLL is off, IDDA is independent from the frequency.
2. Data based on characterization results, not tested in production.
Table 30. Typical and maximum VDD consumption in Stop and Standby modes
Typ @VDD (VDD=VDDA) Max(1)
Symbol Parameter Conditions Unit
TA = TA = TA =
2.0 V 2.4 V 2.7 V 3.0 V 3.3 V 3.6 V
25 °C 85 °C 105 °C
Table 31. Typical and maximum VDDA consumption in Stop and Standby modes
Typ @VDD (VDD = VDDA) Max(1)
Symbol Parameter Conditions Unit
TA = TA = TA =
2.0 V 2.4 V 2.7 V 3.0 V 3.3 V 3.6 V
25 °C 85 °C 105 °C
Supply
current in Regulator in low-power
Stop mode mode, all oscillators 1.81 1.95 2.07 2.20 2.35 2.52 3.7 5.5 8.8
OFF
Supply LSI ON and IWDG ON 2.22 2.42 2.59 2.78 3.0 3.24 - - -
current in
Standby LSI OFF and IWDG
1.69 1.82 1.94 2.08 2.23 2.40 3.5 5.4 9.2
mode OFF
IDDA µA
Regulator in run mode,
1.05 1.08 1.10 1.15 1.22 1.29 - - -
VDDA monitoring OFF
Table 32. Typical and maximum current consumption from VBAT supply
Max
Typ @VBAT
@VBAT = 3.6 V(2)
Para Conditions
Symbol (1) Unit
meter
T = TA = TA =
1.65V 1.8V 2V 2.4V 2.7V 3V 3.3V 3.6V A
25°C 85°C 105°C
Figure 13. Typical VBAT current consumption (LSE and RTC ON/LSEDRV[1:0] = ’00’)
6
6
6
6"!4 !
6
6
)
6
6
6
# # # #
4! #
-36
Table 33. Typical current consumption in Run mode, code with data processing running from
Flash
Typ
Symbol Parameter Conditions fHCLK Peripherals Peripherals Unit
enabled disabled
72 MHz 61.3 28.0
64 MHz 54.8 25.4
48 MHz 41.9 19.3
32 MHz 28.5 13.3
24 MHz 21.8 10.4
Supply current in 16 MHz 14.9 7.2
IDD Run mode from mA
VDD supply 8 MHz 7.7 3.9
4 MHz 4.5 2.5
2 MHz 2.8 1.7
1 MHz 1.9 1.3
500 kHz 1.4 1.1
Running from HSE
crystal clock 8 MHz, 125 kHz 1.1 0.9
code executing from 72 MHz 240.3 239.5
Flash
64 MHz 210.9 210.3
48 MHz 155.8 155.6
32 MHz 105.7 105.6
24 MHz 82.1 82.0
Supply current in 16 MHz 58.8 58.8
IDDA(1) (2) Run mode from µA
VDDA supply 8 MHz 2.4 2.4
4 MHz 2.4 2.4
2 MHz 2.4 2.4
1 MHz 2.4 2.4
500 kHz 2.4 2.4
125 kHz 2.4 2.4
1. VDDA monitoring is ON.
2. When peripherals are enabled, the power consumption of the analog part of peripherals such as ADC, DAC, Comparators,
OpAmp etc. is not included. Refer to the tables of characteristics in the subsequent sections.
Table 34. Typical current consumption in Sleep mode, code running from Flash or RAM
Typ
Symbol Parameter Conditions fHCLK Peripherals Peripherals Unit
enabled disabled
72 MHz 44.1 7.0
64 MHz 39.7 6.3
48 MHz 30.3 4.9
32 MHz 20.5 3.5
24 MHz 15.4 2.8
Supply current in 16 MHz 10.6 2.0
IDD Sleep mode from mA
VDD supply 8 MHz 5.4 1.1
4 MHz 3.2 1.0
2 MHz 2.1 0.9
1 MHz 1.5 0.8
500 kHz 1.2 0.8
Running from HSE
crystal clock 8 MHz, 125 kHz 1.0 0.8
code executing from 72 MHz 239.7 238.5
Flash or RAM
64 MHz 210.5 209.6
48 MHz 155.0 155.6
32 MHz 105.3 105.2
24 MHz 81.9 81.8
Supply current in 16 MHz 58.7 58.6
IDDA(1) (2) Sleep mode from µA
VDDA supply 8 MHz 2.4 2.4
4 MHz 2.4 2.4
2 MHz 2.4 2.4
1 MHz 2.4 2.4
500 kHz 2.4 2.4
125 kHz 2.4 2.4
1. VDDA monitoring is ON
2. When peripherals are enabled, the power consumption of the analog part of peripherals such as ADC, DAC, Comparators,
OpAmp etc. is not included. Refer to the tables of characteristics in the subsequent sections.
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 52: I/O static characteristics.
For the output pins, any external pull-down or external load must also be considered to
estimate the current consumption.
Additional I/O current consumption is due to I/Os configured as inputs if an intermediate
voltage level is externally applied. This current consumption is caused by the input Schmitt
trigger circuits used to discriminate the input value. Unless this specific configuration is
required by the application, this supply current consumption can be avoided by configuring
these I/Os in analog mode. This is notably the case of ADC input pins which should be
configured as analog inputs.
Caution: Any floating input pin can also settle to an intermediate voltage level or switch inadvertently,
as a result of external electromagnetic noise. To avoid current consumption related to
floating pins, they must either be configured in analog mode, or forced internally to a definite
digital value. This can be done either by using pull-up/down resistors or by configuring the
pins in output mode.
I/O dynamic current consumption
In addition to the internal peripheral current consumption (seeTable 36: Peripheral current
consumption), the I/Os used by an application also contribute to the current consumption.
When an I/O pin switches, it uses the current from the MCU supply voltage to supply the I/O
pin circuitry and to charge/discharge the capacitive load (internal or external) connected to
the pin:
I SW = V DD × f SW × C
where
ISW is the current sunk by a switching I/O to charge/discharge the capacitive load
VDD is the MCU supply voltage
fSW is the I/O switching frequency
C is the total capacitance seen by the I/O pin: C = CINT+ CEXT+CS
The test pin is configured in push-pull output mode and is toggled by software at a fixed
frequency.
2 MHz 0.90
4 MHz 0.93
VDD = 3.3 V 8 MHz 1.16
Cext = 0 pF
C = CINT + CEXT+ CS 18 MHz 1.60
36 MHz 2.51
48 MHz 2.97
2 MHz 0.93
4 MHz 1.06
VDD = 3.3 V 8 MHz 1.47
Cext = 10 pF
C = CINT + CEXT +CS 18 MHz 2.26
36 MHz 3.39
48 MHz 5.99
2 MHz 1.03
I/O current
ISW 4 MHz 1.30 mA
consumption VDD = 3.3 V
Cext = 22 pF 8 MHz 1.79
C = CINT + CEXT +CS
18 MHz 3.01
36 MHz 5.99
2 MHz 1.10
4 MHz 1.31
VDD = 3.3 V
Cext = 33 pF 8 MHz 2.06
C = CINT + CEXT+ CS
18 MHz 3.47
36 MHz 8.35
2 MHz 1.20
4 MHz 1.54
VDD = 3.3 V
Cext = 47 pF 8 MHz 2.46
C = CINT + CEXT+ CS
18 MHz 4.51
36 MHz 9.98
1. CS = 5 pF (estimated value).
TIM6 9.7
TIM7 12.1
WWDG 6.4
SPI2 40.4
SPI3 40.0
USART2 41.9
USART3 40.2
UART4 36.5 µA/MHz
UART5 30.8
I2C1 10.5
I2C2 10.4
USB 26.2
CAN 33.4
PWR 5.7
DAC 15.4
1. The power consumption of the analog part (IDDA) of peripherals such as ADC, DAC, Comparators, OpAmp
etc. is not included. Refer to the tables of characteristics in the subsequent sections.
2. BusMatrix is automatically active when at least one master is ON (CPU, DMA1 or DMA2).
3. The APBx bridge is automatically active when at least one peripheral is ON on the same bus.
Regulator in
4.1 3.9 3.8 3.7 3.6 3.5 4.5
run mode
Wakeup from
tWUSTOP Regulator in
Stop mode
low power 7.9 6.7 6.1 5.7 5.4 5.2 9 µs
mode
Wakeup from LSI and
tWUSTANDBY(1) 69.2 60.3 56.4 53.7 51.7 50 100
Standby mode IWDG OFF
CPU
Wakeup from
tWUSLEEP 6 - clock
Sleep mode
cycles
1. Data based on characterization results, not tested in production.
T7(3%(
6(3%(
6(3%,
TR(3% T
TF(3% T7(3%,
4(3%
-36
T7,3%(
6,3%(
6,3%,
TR,3% T
TF,3% T7,3%,
4,3%
-36
For CL1 and CL2, it is recommended to use high-quality external ceramic capacitors in the
5 pF to 25 pF range (typ.), designed for high-frequency applications, and selected to match
the requirements of the crystal or resonator (see Figure 16). CL1 and CL2 are usually the
same size. The crystal manufacturer typically specifies a load capacitance which is the
series combination of CL1 and CL2. PCB and MCU pin capacitance must be included (10 pF
can be used as a rough estimate of the combined pin and board capacitance) when sizing
CL1 and CL2.
Note: For information on selecting the crystal, refer to the application note AN2867 “Oscillator
design guide for ST microcontrollers” available from the ST website www.st.com.
-36
LSEDRV[1:0]=00
- 0.5 0.9
lower driving capability
LSEDRV[1:0]=01
- - 1
medium low driving capability
IDD LSE current consumption µA
LSEDRV[1:0]=10
- - 1.3
medium high driving capability
LSEDRV[1:0]=11
- - 1.6
higher driving capability
LSEDRV[1:0]=00
5 - -
lower driving capability
LSEDRV[1:0]=01
8 - -
Oscillator medium low driving capability
gm µA/V
transconductance LSEDRV[1:0]=10
15 - -
medium high driving capability
LSEDRV[1:0]=11
25 - -
higher driving capability
tSU(LSE)(3) Startup time VDD is stabilized - 2 - s
1. Refer to the note and caution paragraphs below the table, and to the application note AN2867 “Oscillator design guide for
ST microcontrollers”.
2. Guaranteed by design, not tested in production.
3. tSU(LSE) is the startup time measured from the moment it is enabled (by software) to a stabilized 32.768 kHz oscillation is
reached. This value is measured for a standard crystal and it can vary significantly with the crystal manufacturer
Note: For information on selecting the crystal, refer to the application note AN2867 “Oscillator
design guide for ST microcontrollers” available from the ST website www.st.com.
/3#?/5 4
#,
Note: An external resistor is not required between OSC32_IN and OSC32_OUT and it is forbidden
to add one.
-!8
-).
4! ; #=
-36
1. The above curves are based on characterisation results, not tested in production
Prequalification trials
Most of the common failures (unexpected reset and program counter corruption) can be
reproduced by manually forcing a low state on the NRST pin or the Oscillator pins for 1
second.
To complete these trials, ESD stress can be applied directly on the device, over the range of
specification values. When unexpected behavior is detected, the software can be hardened
to prevent unrecoverable errors occurring (see application note AN1015).
0.1 to 30 MHz 7
VDD = 3.3 V, TA = 25 °C,
LQFP100 package 30 to 130 MHz 20 dBµV
SEMI Peak level
compliant with IEC 130 MHz to 1GHz 27
61967-2
SAE EMI Level 4 -
Static latch-up
Two complementary static tests are required on six parts to assess the latch-up
performance:
● A supply overvoltage is applied to each power supply pin
● A current injection is applied to each input, output and configurable I/O pin
These tests are compliant with EIA/JESD 78A IC latch-up standard.
Note: It is recommended to add a Schottky diode (pin to ground) to analog pins which may
potentially inject negative currents.
All I/Os are CMOS and TTL compliant (no software configuration required). Their
characteristics cover more than the strict CMOS-technology or TTL parameters. The
coverage of these requirements is shown in Figure 19 and Figure 20 for standard I/Os.
Bas
Area not determined
MS30255V2
VIL/VIH (V)
98 ns
+0.3 tio
45V DD simula
TTL standard requirements VIHmin = 2 V = 0.4 n
VIHmin 2.0 V IHmin on desig
d
Base
s
D+
0.07 ulation
x=
0.3V D sign sim
1.3 V IL m a d e
d on
Area not determined Base
VILmax 0.8
0.7 TTL standard requirements VILmax = 0.8 V
VDD (V)
2.0 2.7 3.0 3.3 3.6
MS30256V2
Figure 21. Five volt tolerant (FT and FTf) I/O input characteristics - CMOS port
VIL/VIH (V)
7 VDD
VIHmin = 0. 0.2 ulations
irements V DD+
an dard requ = 0.5 sign sim
CMOS st V IHmin e
2.0 on d
production B ased
Tested in
-0.2 tions
75V DD simula
Area not determined = 0.4 ign
1.0 V ILmax on des
d
Base
MS30257V2
Figure 22. Five volt tolerant (FT and FTf) I/O input characteristics - TTL port
VIL/VIH (V)
0.2 ns
V DD+ simulatio
TTL standard requirements VIHmin = 2 V = 0.5 n
2.0 V IHmin n desig
d o
Base
Area not determined -0.2 tions
75V DDn simula
= 0.4 ig
1.0 V ILmin d on des
Base
0.8
TTL standard requirements VILmax = 0.8 V
0.5
VDD (V)
2.0 2.7 3.6
MS30258V2
VOL(1) Output low level voltage for an I/O pin CMOS port(2) - 0.4
IIO = +8 mA
VOH(3) Output high level voltage for an I/O pin 2.7 V < VDD < 3.6 V VDD–0.4 -
VOL (1) Output low level voltage for an I/O pin TTL port(2) - 0.4
IIO =+ 8mA
VOH (3) Output high level voltage for an I/O pin 2.7 V < VDD < 3.6 V 2.4 -
VOL(1)(4) Output low level voltage for an I/O pin IIO = +20 mA - 1.3 V
VOH(3)(4) Output high level voltage for an I/O pin 2.7 V < VDD < 3.6 V VDD–1.3 -
VOL(1)(4) Output low level voltage for an I/O pin IIO = +6 mA - 0.4
VOH(3)(4) Output high level voltage for an I/O pin 2 V < VDD < 2.7 V VDD–0.4 -
Output low level voltage for an FTf I/O pin in IIO = +20 mA
VOLFM+(1)(4) - 0.4
FM+ mode 2.7 V < VDD < 3.6 V
1. The IIO current sunk by the device must always respect the absolute maximum rating specified in Table 20 and the sum of
IIO (I/O ports and control pins) must not exceed ΣIIO(PIN).
2. TTL and CMOS outputs are compatible with JEDEC standards JESD36 and JESD52.
3. The IIO current sourced by the device must always respect the absolute maximum rating specified in Table 20 and the sum
of IIO (I/O ports and control pins) must not exceed ΣIIO(PIN).
4. Data based on design simulation.
Input/output AC characteristics
The definition and values of input/output AC characteristics are given in Figure 23 and
Table 54, respectively.
Unless otherwise specified, the parameters given are derived from tests performed under
ambient temperature and VDD supply voltage conditions summarized in Table 22.
90% 10%
50% 50%
10% 90%
Maximum frequency is achieved if (tr + tf) ≤ 2/3)T and if the duty cycle is (45-55%)
when loaded by 50pF
ai14131
0.3VDD+
VIL(NRST)(1) NRST Input low level voltage - -
0.07(1)
V
0.445VDD+
VIH(NRST)(1) NRST Input high level voltage - -
0.398(1)
Vhys(NRST) NRST Schmitt trigger voltage hysteresis - 200 - mV
RPU Weak pull-up equivalent resistor(2) VIN = VSS 25 40 55 kΩ
(1)
VF(NRST) NRST Input filtered pulse - - 100 ns
VNF(NRST)(1) NRST Input not filtered pulse 500 - - ns
1. Guaranteed by design, not tested in production.
2. The pull-up is designed with a true resistance in series with a switchable PMOS. This PMOS contribution to the series
resistance must be minimum (~10% order).
6$$
%XTERNAL
RESET CIRCUIT
205 )NTERNAL 2ESET
.234
&ILTER
&
-36
0.475VDDA
VIL(NPOR)(1) NPOR Input low level voltage
- 0.2
V
0.5VDDA
VIH(NPOR)(1) NPOR Input high level voltage
+ 0.2
NPOR Schmitt trigger voltage
Vhys(NPOR)(1) 200 mV
hysteresis
RPU Weak pull-up equivalent resistor(2) VIN = VSS 25 40 55 kΩ
1. Guaranteed by design, not tested in production.
2. The pull-up is designed with a true resistance in series with a switchable PMOS. This PMOS contribution to
the series resistance is minimal (~10% order).
1 - tTIMxCLK
fTIMxCLK = 72 MHz
13.9 - ns
tres(TIM)(2) Timer resolution time (except TIM1/8)
fTIMxCLK = 144 MHz,
6.95 - ns
x= 1.8
1 65536 tTIMxCLK
fTIMxCLK = 72 MHz
0.0139 910 µs
tCOUNTER(2) 16-bit counter clock period (except TIM1/8)
fTIMxCLK = 144 MHz,
0.0069 455 µs
x= 1.8
- 65536 × 65536 tTIMxCLK
/4 0 0.1 409.6
/8 1 0.2 819.2
/16 2 0.4 1638.4
/32 3 0.8 3276.8
/64 4 1.6 6553.6
/128 5 3.2 13107.2
/256 7 6.4 26214.4
1. These timings are given for a 40 kHz clock but the microcontroller’s internal RC frequency can vary from 30
to 60 kHz. Moreover, given an exact RC oscillator frequency, the exact timings still depend on the phasing
of the APB interface clock versus the LSI clock so that there is always a full RC period of uncertainty.
6$$ 6$$
2 2 -#5
Ω
3$!
)# BUS Ω
3#,
3 4!24 2%0%!4%$
3 4!24
TSU34! 3 4!24
3$!
TF3$! TR3$! TSU3$!
3 4/0 TW34/34!
TH34! TW3#,, TH3$!
3#,
TW3#,( TR3#, TF3#, TSU34/
-36
SPI/I2S characteristics
Unless otherwise specified, the parameters given in Table 61 for SPI or in Table 62 for I2S
are derived from tests performed under ambient temperature, fPCLKx frequency and VDD
supply voltage conditions summarized in Table 22.
Refer to Section 6.3.14: I/O port characteristics for more details on the input/output alternate
function characteristics (NSS, SCK, MOSI, MISO for SPI and WS, CK, SD for I2S).
NSS input
tc(SCK)
tSU(NSS) th(NSS)
CPHA= 0
SCK Input
CPOL=0
tw(SCKH)
CPHA= 0 tw(SCKL)
CPOL=1
Figure 27. SPI timing diagram - slave mode and CPHA = 1(1)
NSS input
tSU(NSS) tc(SCK) th(NSS)
CPHA=1
SCK Input
CPOL=0
tw(SCKH)
CPHA=1 tw(SCKL)
CPOL=1
ai14135
.33 INPUT
TC3#+
3#+ /UTPUT
#0(!
#0/,
#0(!
#0/,
3#+ /UTPUT
#0(!
#0/,
#0(!
#0/,
TW3#+( TR3#+
TSU-) TW3#+, TF3#+
-)3/
).0 54 -3 "). ") 4 ). ,3"