STM32F302VB Datasheet
STM32F302VB Datasheet
STM32F302VB Datasheet
Features
• Core: ARM® Cortex®-M4 32-bit CPU with FPU
(72 MHz max), single-cycle multiplication and LQFP48 (7 × 7 mm)
LQFP64 (10 × 10 mm) WLCSP100 (0.4 mm pitch)
HW division, DSP instruction and MPU LQFP100 (14 × 14 mm)
(memory protection unit) • Up to 11 timers
• Operating conditions: – One 32-bit timer and two 16-bit timers with
– VDD, VDDA voltage range: 2.0 V to 3.6 V up to 4 IC/OC/PWM or pulse counter and
• Memories quadrature (incremental) encoder input
– 128 to 256 Kbytes of Flash memory – One 16-bit 6-channel advanced-control
– Up to 40 Kbytes of SRAM, with HW parity timer, with up to 6 PWM channels, deadtime
check implemented on the first 16 Kbytes. generation and emergency stop
• CRC calculation unit – One 16-bit timer with 2 IC/OCs, 1
• Reset and supply management OCN/PWM, deadtime generation and
– Power-on/Power-down reset (POR/PDR) emergency stop
– Programmable voltage detector (PVD) – Two 16-bit timers with IC/OC/OCN/PWM,
– Low-power modes: Sleep, Stop and Standby deadtime generation and emergency stop
– VBAT supply for RTC and backup registers – Two watchdog timers (independent, window)
• Clock management – SysTick timer: 24-bit downcounter
– 4 to 32 MHz crystal oscillator – One 16-bit basic timer to drive the DAC
– 32 kHz oscillator for RTC with calibration • Calendar RTC with Alarm, periodic wakeup
– Internal 8 MHz RC with x 16 PLL option from Stop/Standby
– Internal 40 kHz oscillator • Communication interfaces
• Up to 87 fast I/Os – CAN interface (2.0B Active)
– All mappable on external interrupt vectors – Two I2C Fast mode plus (1 Mbit/s) with
– Several 5 V-tolerant 20 mA current sink, SMBus/PMBus, wakeup
• Interconnect matrix from STOP
• 12-channel DMA controller – Up to five USART/UARTs (ISO 7816
• Two ADCs 0.20 µS (up to 17 channels) with interface, LIN, IrDA, modem control)
selectable resolution of 12/10/8/6 bits, 0 to – Up to three SPIs, two with multiplexed
3.6 V conversion range, single half/full duplex I2S interface, 4 to 16
ended/differential input, separate analog supply programmable bit frames
from 2 to 3.6 V – USB 2.0 full speed interface
• One 12-bit DAC channel with analog supply – Infrared transmitter
from 2.4 to 3.6 V • Serial wire debug, Cortex®-M4 with FPU ETM,
• Four fast rail-to-rail analog comparators with JTAG
analog supply from 2 to 3.6 V • 96-bit unique ID
• Two operational amplifiers that can be used in
PGA mode, all terminals accessible with analog Table 1. Device summary
supply from 2.4 to 3.6 V
Reference Part number
• Up to 24 capacitive sensing channels supporting
touchkey, linear and rotary touch sensors STM32F302xB STM32F302CB, STM32F302RB, STM32F302VB
STM32F302xC STM32F302CC, STM32F302RC, STM32F302VC
Contents
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3 Functional overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.1 ARM® Cortex®-M4 core with FPU 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 supervision . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.7.3 Voltage regulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.7.4 Low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.8 Interconnect matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.9 Clocks and startup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.10 General-purpose input/outputs (GPIOs) . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.11 Direct memory access (DMA) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.12 Interrupts and events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.12.1 Nested vectored interrupt controller (NVIC) . . . . . . . . . . . . . . . . . . . . . . 19
3.13 Fast analog-to-digital converter (ADC) . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.13.1 Temperature sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.13.2 Internal voltage reference (VREFINT) . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.13.3 VBAT battery voltage monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.13.4 OPAMP reference voltage (VREFOPAMP) . . . . . . . . . . . . . . . . . . . . . . 21
3.14 Digital-to-analog converter (DAC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.15 Operational amplifier (OPAMP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.16 Fast comparators (COMP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.17 Timers and watchdogs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
3.17.1 Advanced timer (TIM1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
5 Memory mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
6 Electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
6.1 Parameter conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
6.1.1 Minimum and maximum values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
6.1.2 Typical values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
6.1.3 Typical curves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
6.1.4 Loading capacitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
6.1.5 Pin input voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
6.1.6 Power supply scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
6.1.7 Current consumption measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
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
List of tables
List of figures
1 Introduction
This datasheet provides the ordering information and mechanical device characteristics of
the STM32F302xB/STM32F302xC microcontrollers.
This STM32F302xB/STM32F302xC datasheet should be read in conjunction with the
STM32F302xx reference manual (RM0365). The reference manual is available from the
STMicroelectronics website www.st.com.
For information on the Cortex®-M4 core with FPU, please refer to:
• Cortex®-M4 with FPU Technical Reference Manual, available from ARM website
www.arm.com.
• STM32F3xxx and STM32F4xxx Cortex®-M4 programming manual (PM0214)
available from our website www.st.com.
2 Description
Communication USART 3
interfaces UART 0 2
CAN 1
USB 1
Normal I/Os 45 in LQFP100
20 27
(TC, TTa) 37 in WLCSP100
GPIOs
5-volt tolerant 42 in LQFP100
17 25
I/Os (FT, FTf) 40 in WLCSP100
DMA channels 12
Capacitive sensing channels 17 18 24
12-bit ADCs 2
Number of channels 9 16 17
12-bit DAC channels 1
Analog comparator 4
Operational amplifiers 2
CPU frequency 72 MHz
Operating voltage 2.0 to 3.6 V
Ambient operating temperature: - 40 to 85 °C / - 40 to 105 °C
Operating temperature
Junction temperature: - 40 to 125 °C
LQFP100
Packages LQFP48 LQFP64
WLCSP100
1. This total number considers also the PWMs generated on the complementary output channels
2. The SPI interfaces can work in an exclusive way in either the SPI mode or the I2S audio mode.
2%/
DV$) 038)38
LQWHUIDFH
#9'',2
)ODVK
-7567 )/$6+.%
,EXV
-7', ELWV 325 6XSSO\
-7&.6:&/. &RUWH[0&38 6XSHUYLVLRQ
-7066:',2 'EXV 5HVHW 15(6(7
-7'2 )PD[0+] ,QW 3253'5 9''$
$V$) 966$
%XV0DWUL[
6\VWHP 39'
65$0
19,&
.% #9''$ #9''$
&5& 7,0(5
3$>@ *3,23257$ ELW3:0 &KDQQHOV(75DV$)
3'>@ *3,23257'
026,6'0,62H[WB6'
63,,6 6&.&.166:60&/.DV$)
3(>@ *3,23257(
63,,6 026,6'0,62H[WB6'
*3,23257) 6&.&.166:60&/.DV$)
3)>@
86$57 5;7;&76576DV$)
86$57 5;7;&76576DV$)
;;*URXSVRI 7RXFK6HQVLQJ
FKDQQHOVDV$) &RQWUROOHU
8$57 5;7;DV$)
$+% $+%
8$57 5;7;DV$)
$3% $3%
,& 6&/6'$60%$DV$)
(;7,7
;;$) ,& 6&/6'$60%$DV$)
:.83
:LQ:$7&+'2*
E[&$1
&KDQQHOV&RPS %65$0 &$17;&$15;
&KDQQHO%5.DV$) 7,0(5 86%65$0%
$3%IPD[ 0+]
86%)6 86%B'386%B'0
&KDQQHO&RPS 7,0(5
&KDQQHO%5.DV$)
&KDQQHO&RPS 7,0(5 ,) ELW'$&
7,0(5 '$&B&+DV$)
&KDQQHO%5.DV$)
#9''$
&KDQQHOV 6<6&)*&7/
,17(5)$&(
7,0(53:0
&RPSFKDQQHOV 2S$PS ,1[[287[[
(75%5.DV$)
#9''$ 2S$PS ,1[[287[[
026,0,62 63,
6&.166DV$) *3&RPSDUDWRU
*3&RPSDUDWRU #9''$
5;7;&76576 86$57
*3&RPSDUDWRU
6PDUW&DUGDV$)
*3&RPSDUDWRU
;[,QV287VDV$)
06Y9
3 Functional overview
3.1 ARM® Cortex®-M4 core with FPU with embedded Flash and
SRAM
The ARM Cortex-M4 processor with FPU is the latest generation of ARM processors for
embedded systems. It was 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 response to interrupts.
The ARM Cortex-M4 32-bit RISC processor with FPU features exceptional code-efficiency,
delivering the high-performance expected from an ARM core in the memory size usually
associated with 8- and 16-bit devices.
The processor supports a set of DSP instructions which allow efficient signal processing and
complex algorithm execution.
Its single precision FPU speeds up software development by using metalanguage
development tools, while avoiding saturation.
With its embedded ARM core, the STM32F302xB/STM32F302xC family is compatible with
all ARM tools and software.
Figure 1 shows the general block diagram of the STM32F302xB/STM32F302xC family
devices.
GPIO
RTCCLK Clock source used as input channel for HSI and
TIM16
HSE/32 LSI calibration
MC0
CSS
CPU (hard fault)
TIM1,
COMPx Timer break
TIM15, 16, 17
PVD
GPIO
TIMx External trigger, timer break
GPIO ADCx
Conversion external trigger
DAC1
DAC1 COMPx Comparator inverting input
Note: For more details about the interconnect actions, please refer to the corresponding sections
in the reference manual (RM0365.
+6,
,665&
6<6&/.
WR,6[[
,6B&.,1 ([WFORFN
86%
SUHVFDOHU 86%&/.
0+] +6, WR86%LQWHUIDFH
+6,5&
+&/. WR$+%EXVFRUH
PHPRU\DQG'0$
3//65& 6: WRFRUWH[6\VWHPWLPHU
3//08/
+6, )+&/.&RUWH[IUHH
3// 3//&/. $+%
$+% $3% UXQQLQJFORFN
3&/.
[[ SUHVFDOHU SUHVFDOHU WR$3%SHULSKHUDOV
[
+6(
6<6&/.
&66 ,I$3%SUHVFDOHU WR7,0
[HOVH[
3&/.
26&B287 6<6&/. WR86$57[[
0+] +6,
+6(26& /6(
26&B,1
$3%
3&/.
SUHVFDOHU WR$3%SHULSKHUDOV
26&B,1 57&&/. WR57&
/6(26&
N+] /6( ,I$3%SUHVFDOHU
26&B287 WR7,0
[HOVH[
57&6(/>@
3&/.
/6,5& /6, ,:'*&/. 6<6&/. WR86$57
N+] WR,:'* +6,
/6(
3//&/. [ 7,0
+6,
0&2 /6,
+6( $'&
6<6&/. 3UHVFDOHU
0&2 WR$'&[\
0DLQFORFN [\
RXWSXW
$'&
3UHVFDOHU
069
Any integer
Up, Down,
Advanced TIM1 16-bit between 1 Yes 4 Yes
Up/Down
and 65536
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
Any integer
Basic TIM6 16-bit Up between 1 Yes 0 No
and 65536
Note: TIM1/8 can have PLL as clock source, and therefore can be clocked at 144 MHz.
• 17-bit Auto-reload counter for periodic interrupt with wakeup from STOP/STANDBY
capability.
The RTC clock sources can be:
• A 32.768 kHz external crystal
• A resonator or oscillator
• The internal low-power RC oscillator (typical frequency of 40 kHz)
• The high-speed external clock divided by 32.
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 7 for the features available in I2C1 and I2C2.
SMBus X X
Wakeup from STOP X X
1. X = supported.
7,0(5 2&
IRUHQYHORS 3%3$
7,0(5 2&
IRUFDUULHU
06Y9
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
%227
3$
3$
9''
966
3%
3%
3%
3%
3%
3%
3%
9%$7 9''
3& 966
3&26&B,1 3$
3&26&B287 3$
3)26&B,1 3$
3)26&B287 3$
/4)3
1567 3$
966$95() 3$
9''$ 3%
3$ 3%
3$ 3%
3$ 3%
3$
3$
3$
3$
3$
3%
3%
3%
966
9''
3%
3%
06Y9
%227
3'
3&
3&
3&
3$
3$
9''
966
3%
3%
3%
3%
3%
3%
3%
9%$7 9''
3& 966
3&26&B,1 3$
3&26&B287 3$
3)26&B,1 3$
3)26&B287 3$
1567 3$
3& 3$
3& /4)3 3&
3& 3&
3& 3&
966$95() 3&
9''$ 3%
3$ 3%
3$ 3%
3$ 3%
3$
966
3$
3$
3$
3$
3&
3&
3%
3%
3%
3%
3%
9''
966
9''
069
%227
3&
3&
3&
3$
3$
3'
3'
3'
3'
3'
3'
3'
3'
3(
3(
3%
3%
3%
3%
3%
3%
3%
966
9''
3( 9''
3( 966
3( 3)
3( 3$
3( 3$
9%$7 3$
3& 3$
3&26&B,1 3$
3&26&B287 3$
3) 3&
3) 3&
3)26&B,1 3&
3)26&B287 /4)3 3&
1567 3'
3& 3'
3& 3'
3& 3'
3& 3'
3) 3'
966$95() 3'
95() 3'
9''$ 3%
3$ 3%
3$ 3%
3$ 3%
9''
9''
966
3$
3$
3$
3$
3$
3&
3&
3(
3(
3(
3(
3(
3%
3%
3%
3%
3(
3(
3(
3)
3(
3%
069
$ 966 966 3& 3' 3% 3% %227 3( 9'' 9''
% 966 3$ 3' 3' 3% 3% 3( 9'' 3( 9''
' 3$ 9'' 3& 3' 3% 3( 3( 9%$7 3& 3)
26&287
( 3$ 3$ 3$ 3& 3$ 3( 3( 3) 1567 3)
) 3) 3)
3& 3& 3& 3& 3$ 3& 3$ 3(
26&287 26&,1
* 3' 3' 3' 3' 3( 3& 3$ 3& 3& 3&
+ 3' 3' 3' 3% 3( 3$ 3$ 966$ 3$ 3&
06Y9
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 name
Pin type
WLCSP100
Notes
(function
LQFP100
LQFP64
LQFP48
TRACECK, TIM3_CH1,
D6 1 - - PE2 I/O FT (1) -
TSC_G7_IO1, EVENTOUT
TRACED0, TIM3_CH2,
D7 2 - - PE3 I/O FT (1) -
TSC_G7_IO2, EVENTOUT
TRACED1, TIM3_CH3,
C8 3 - - PE4 I/O FT (1) -
TSC_G7_IO3, EVENTOUT
TRACED2, TIM3_CH4,
B9 4 - - PE5 I/O FT (1) -
TSC_G7_IO4, EVENTOUT
E7 5 - - PE6 I/O FT (1) TRACED3, EVENTOUT WKUP3, RTC_TAMP3
D8 6 1 1 VBAT S - - Backup power supply
WKUP2, RTC_TAMP1,
C9 7 2 2 PC13(2) I/O TC - TIM1_CH1N
RTC_TS, RTC_OUT
PC14(2)
C10 8 3 3 OSC32_IN I/O TC - - OSC32_IN
(PC14)
PC15(2)
OSC32_
D9 9 4 4 I/O TC - - OSC32_OUT
OUT
(PC15)
TIM15_CH1, SPI2_SCK,
D10 10 - - PF9 I/O FT (1) -
EVENTOUT
TIM15_CH2, SPI2_SCK,
E10 11 - - PF10 I/O FT (1) -
EVENTOUT
PF0-
F10 12 5 5 OSC_IN I/O FTf - TIM1_CH3N, I2C2_SDA, OSC_IN
(PF0)
PF1-
F9 13 6 6 OSC_OUT I/O FTf - I2C2_SCL OSC_OUT
(PF1)
RS
E9 14 7 7 NRST I/O Device reset input / internal reset output (active low)
T
G10 15 8 - PC0 I/O TTa (1) EVENTOUT ADC12_IN6
(1)
G9 16 9 - PC1 I/O TTa EVENTOUT ADC12_IN7
(1)
G8 17 10 - PC2 I/O TTa EVENTOUT ADC12_IN8
H10 18 11 - PC3 I/O TTa (1) TIM1_BKIN2, EVENTOUT ADC12_IN9
E8 19 - - PF2 I/O TTa (1) EVENTOUT ADC12_IN10
I/O structure
Pin name
Pin type
WLCSP100
Notes
(function
LQFP100
LQFP64
LQFP48
after Alternate functions Additional functions
reset)
VSSA/
H8 20 12 8 S - - Analog ground/Negative reference voltage
VREF-
J8 21 - - VREF+(3) S - - Positive reference voltage
J10 22 - - VDDA S - - Analog power supply
VDDA/
- - 13 9 S - - Analog power supply/Positive reference voltage
VREF+
USART2_CTS,
TIM2_CH1_ETR, ADC1_IN1, COMP1_INM,
H9 23 14 10 PA0 I/O TTa -
TSC_G1_IO1, COMP1_OUT, RTC_ TAMP2, WKUP1
EVENTOUT
USART2_RTS_DE,
TIM2_CH2, TSC_G1_IO2, ADC1_IN2, COMP1_INP,
J9 24 15 11 PA1 I/O TTa -
TIM15_CH1N, RTC_REFIN, OPAMP1_VINP
EVENTOUT
USART2_TX, TIM2_CH3,
ADC1_IN3, COMP2_INM,
F7 25 16 12 PA2 I/O TTa (4) TIM15_CH1, TSC_G1_IO3,
OPAMP1_VOUT
COMP2_OUT, EVENTOUT
USART2_RX, TIM2_CH4, ADC1_IN4, OPAMP1_VINP,
G7 26 17 13 PA3 I/O TTa - TIM15_CH2, TSC_G1_IO4, COMP2_INP,
EVENTOUT OPAMP1_VINM
- 27 18 - PF4 I/O TTa (1) COMP1_OUT, EVENTOUT ADC1_IN5
K8 28 19 - VDD S - - - -
SPI1_NSS,
ADC2_IN1, DAC1_OUT1,
(4) SPI3_NSS,I2S3_WS,
J7 29 20 14 PA4 I/O TTa COMP1_INM, COMP2_INM,
USART2_CK, TSC_G2_IO1,
COMP4_INM, COMP6_INM
TIM3_CH2, EVENTOUT
ADC2_IN2
OPAMP1_VINP,
SPI1_SCK, TIM2_CH1_ETR,
H7 30 21 15 PA5 I/O TTa (4) OPAMP2_VINM
TSC_G2_IO2, EVENTOUT
COMP1_INM, COMP2_INM,
COMP4_INM, COMP6_INM
SPI1_MISO, TIM3_CH1,
(4) TIM1_BKIN, TIM16_CH1,
H6 31 22 16 PA6 I/O TTa ADC2_IN3, OPAMP2_VOUT
COMP1_OUT, TSC_G2_IO3,
EVENTOUT
SPI1_MOSI, TIM3_CH2,
ADC2_IN4, COMP2_INP,
TIM17_CH1, TIM1_CH1N, ,
K7 32 23 17 PA7 I/O TTa - OPAMP2_VINP,
TSC_G2_IO4, COMP2_OUT,
OPAMP1_VINP
EVENTOUT
I/O structure
Pin name
Pin type
WLCSP100
Notes
(function
LQFP100
LQFP64
LQFP48
after Alternate functions Additional functions
reset)
I/O structure
Pin name
Pin type
WLCSP100
Notes
(function
LQFP100
LQFP64
LQFP48
after Alternate functions Additional functions
reset)
SPI2_MISO,I2S2ext_SD,
USART3_RTS_DE,
J2 53 35 27 PB14 I/O TTa - OPAMP2_VINP
TIM1_CH2N, TIM15_CH1,
TSC_G6_IO4, EVENTOUT
SPI2_MOSI, I2S2_SD,
TIM1_CH3N, RTC_REFIN,
H4 54 36 28 PB15 I/O TTa - COMP6_INM
TIM15_CH1N, TIM15_CH2,
EVENTOUT
- 55 - - PD8 I/O TTa (1) USART3_TX, EVENTOUT
G4 56 - - PD9 I/O TTa (1) USART3_RX, EVENTOUT
H3 57 - - PD10 I/O TTa (1) USART3_CK, EVENTOUT COMP6_INM
(1)
H2 58 - - PD11 I/O TTa USART3_CTS, EVENTOUT COMP6_INP
USART3_RTS_DE,
H1 59 - - PD12 I/O TTa (1) TIM4_CH1, TSC_G8_IO1,
EVENTOUT
TIM4_CH2, TSC_G8_IO2,
G3 60 - - PD13 I/O TTa (1)
EVENTOUT
TIM4_CH3, TSC_G8_IO3,
G2 61 - - PD14 I/O TTa (1) OPAMP2_VINP
EVENTOUT
SPI2_NSS, TIM4_CH4,
G1 62 - - PD15 I/O TTa (1)
TSC_G8_IO4, EVENTOUT
I2S2_MCK, COMP6_OUT
F4 63 37 - PC6 I/O FT (1) -
TIM3_CH1, EVENTOUT
I2S3_MCK, TIM3_CH2,
F2 64 38 - PC7 I/O FT (1) -
EVENTOUT
F1 65 39 - PC8 I/O FT (1) TIM3_CH3, EVENTOUT -
TIM3_CH4, I2S_CKIN,
F3 66 40 - PC9 I/O FT (1) -
EVENTOUT
I2C2_SMBA, I2S2_MCK,
USART1_CK, TIM1_CH1,
F5 67 41 29 PA8 I/O FT - -
TIM4_ETR, MCO,
EVENTOUT
I2C2_SCL, I2S3_MCK,
USART1_TX, TIM1_CH2,
E5 68 42 30 PA9 I/O FTf - -
TIM2_CH3, TIM15_BKIN,
TSC_G4_IO1, EVENTOUT
I/O structure
Pin name
Pin type
WLCSP100
Notes
(function
LQFP100
LQFP64
LQFP48
after Alternate functions Additional functions
reset)
I2C2_SDA, USART1_RX,
TIM1_CH3, TIM2_CH4,
E1 69 43 31 PA10 I/O FTf - -
TIM17_BKIN, TSC_G4_IO2,
COMP6_OUT, EVENTOUT
USART1_CTS, USB_DM,
CAN_RX, TIM1_CH1N,
E2 70 44 32 PA11 I/O FT - TIM1_CH4, TIM1_BKIN2, -
TIM4_CH1, COMP1_OUT,
EVENTOUT
USART1_RTS_DE, USB_DP,
CAN_TX, TIM1_CH2N,
D1 71 45 33 PA12 I/O FT - TIM1_ETR, TIM4_CH2, -
TIM16_CH1, COMP2_OUT,
EVENTOUT
USART3_CTS, TIM4_CH3,
TIM16_CH1N, TSC_G4_IO3,
E3 72 46 34 PA13 I/O FT - -
IR_OUT, SWDIO-JTMS,
EVENTOUT
I2C2_SCL,
C1 73 - - PF6 I/O FTf (1) USART3_RTS_DE, -
TIM4_CH4, EVENTOUT
A1,
A2, 74 47 35 VSS S - - Ground
B1
D2 75 48 36 VDD S - - Digital power supply
I2C1_SDA,
USART2_TXTIM1_BKIN,
C2 76 49 37 PA14 I/O FTf - -
TSC_G4_IO4, SWCLK-JTCK,
EVENTOUT
I2C1_SCL, SPI1_NSS,
SPI3_NSS, I2S3_WS, JTDI,
B2 77 50 38 PA15 I/O FTf - USART2_RX, TIM1_BKIN, -
TIM2_CH1_ETR,
EVENTOUT
SPI3_SCK, I2S3_CK,
E4 78 51 - PC10 I/O FT (1) USART3_TX, UART4_TX, -
EVENTOUT
SPI3_MISO, I2S3ext_SD,
D3 79 52 - PC11 I/O FT (1) USART3_RX, UART4_RX, -
EVENTOUT
I/O structure
Pin name
Pin type
WLCSP100
Notes
(function
LQFP100
LQFP64
LQFP48
after Alternate functions Additional functions
reset)
SPI3_MOSI, I2S3_SD,
A3 80 53 - PC12 I/O FT (1) USART3_CK, UART5_TX, -
EVENTOUT
B3 81 - - PD0 I/O FT (1) CAN_RX, EVENTOUT -
C3 82 - - PD1 I/O FT (1) CAN_TX, EVENTOUT -
UART5_RX, TIM3_ETR,
A4 83 54 - PD2 I/O FT (1) -
EVENTOUT
USART2_CTS,
B4 84 - - PD3 I/O FT (1) TIM2_CH1_ETR, -
EVENTOUT
USART2_RTS_DE,
C4 85 - - PD4 I/O FT (1) -
TIM2_CH2, EVENTOUT
- 86 - - PD5 I/O FT (1) USART2_TX, EVENTOUT -
USART2_RX, TIM2_CH4,
- 87 - - PD6 I/O FT (1) -
EVENTOUT
USART2_CK, TIM2_CH3,
D4 88 - - PD7 I/O FT (1) -
EVENTOUT
SPI3_SCK, I2S3_CK,
SPI1_SCK, USART2_TX,
TIM2_CH2, TIM3_ETR,
A5 89 55 39 PB3 I/O FT - -
TIM4_ETR, TSC_G5_IO1,
JTDO-TRACESWO,
EVENTOUT
SPI3_MISO, I2S3ext_SD,
SPI1_MISO, USART2_RX,
B5 90 56 40 PB4 I/O FT - TIM3_CH1, TIM16_CH1, -
TIM17_BKIN, TSC_G5_IO2,
NJTRST, EVENTOUT
SPI3_MOSI, SPI1_MOSI,
I2S3_SD, I2C1_SMBA,
A6 91 57 41 PB5 I/O FT - USART2_CK, TIM16_BKIN, -
TIM3_CH2, TIM17_CH1,
EVENTOUT
I2C1_SCL, USART1_TX,
B6 92 58 42 PB6 I/O FTf - TIM16_CH1N, TIM4_CH1, -
TSC_G5_IO3EVENTOUT
I/O structure
Pin name
Pin type
WLCSP100
Notes
(function
LQFP100
LQFP64
LQFP48
after Alternate functions Additional functions
reset)
I2C1_SDA, USART1_RX,
TIM3_CH4, TIM4_CH2,
C5 93 59 43 PB7 I/O FTf - -
TIM17_CH1N, TSC_G5_IO4,
EVENTOUT
A7 94 60 44 BOOT0 I B - Boot memory selection
I2C1_SCL, CAN_RX,
TIM16_CH1, TIM4_CH3
D5 95 61 45 PB8 I/O FTf - -
TIM1_BKIN, TSC_SYNC,
COMP1_OUT, EVENTOUT
I2C1_SDA, CAN_TX,
TIM17_CH1, TIM4_CH4,
C6 96 62 46 PB9 I/O FTf - -
IR_OUT, COMP2_OUT,
EVENTOUT
USART1_TX, TIM4_ETR,
B7 97 - - PE0 I/O FT (1) -
TIM16_CH1, EVENTOUT
USART1_RX, TIM17_CH1,
A8 98 - - PE1 I/O FT (1) -
EVENTOUT
C7 99 63 47 VSS S - - Ground
A10,
100 64 48 VDD S - - Digital power supply
B10
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 RM0365 reference manual.
3. The VREF+ functionality is available only on the 100 pin package. On the 64-pin and 48-pin packages, the VREF+ is
internally connected to VDDA.
4. These GPIOs offer a reduced touch sensing sensitivity. It is thus recommended to use them as sampling capacitor I/O.
TIM2_
TSC_ USART2_ COMP1 EVENT
PA0 - CH1_ - - - - - - -
G1_IO1 CTS _OUT OUT
ETR
RTC_ TIM2_ TSC_ USART2_ TIM15_ EVENT
PA1 - - - - - - - -
REFIN CH2 G1_IO2 RTS_DE 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
DocID025186 Rev 6
STM32F302xB STM32F302xC
STM32F302xB STM32F302xC
Table 15. Alternate functions for port B
Port
&
AF0 AF1 AF2 AF3 AF4 AF5 AF6 AF7 AF8 AF9 AF10 AF12 AF15
Pin
Name
STM32F302xB STM32F302xC
STM32F302xB STM32F302xC
Table 16. Alternate functions for port C
Port &
Pin AF1 AF2 AF3 AF4 AF5 AF6 AF7
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 - - I2S2_MCK COMP6_OUT
PC7 EVENTOUT TIM3_CH2 - - I2S3_MCK
DocID025186 Rev 6
STM32F302xB STM32F302xC
STM32F302xB STM32F302xC
Table 18. Alternate functions for port E
Port &
AF0 AF1 AF2 AF3 AF4 AF6 AF7
Pin Name
STM32F302xB STM32F302xC
STM32F302xB STM32F302xC Memory mapping
5 Memory mapping
[))
$+%
[)))))))) [
&RUWH[0
5HVHUYHG
ZLWK)38
,QWHUQDO [
3HULSKHUDOV $+%
[( [
5HVHUYHG
[))
$+%
[&
[
5HVHUYHG
[&
$3%
[$
[
5HVHUYHG
[$
$3%
[ [
[)))))))
2SWLRQE\WHV
[ [))))
6\VWHPPHPRU\
[)))'
[
[ 65$0 )ODVKPHPRU\
[
&2'( 5HVHUYHG
[
[ )ODVKV\VWHP
PHPRU\RU65$0
GHSHQGLQJRQ%227
5HVHUYHG FRQILJXUDWLRQ
[
06Y9
6 Electrical characteristics
0&8SLQ 0&8SLQ
069 069
9%$7
%DFNXSFLUFXLWU\
3RZHU
±9 /6(57&
VZLWFK
:DNHXSORJLF
%DFNXSUHJLVWHUV
287
/HYHOVKLIWHU
*3,2V ,2ORJLF
,1 .HUQHOORJLF
&38
GLJLWDO
9'' PHPRULHV
[9''
5HJXODWRU
[Q)
[) [966
9''$
9''$
95() $QDORJ5&V
Q)
$'&'$& 3//FRPSDUDWRUV23$03
)
95()
966$
069
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.
,''
9''
,''$
9''$
069
2. VREF+ must be always lower or equal than VDDA (VREF+ ≤VDDA). If unused then it must be connected to VDDA.
3. VIN maximum must always be respected. Refer to Table 22: Current characteristics for the maximum allowed injected
current values.
4. Include VREF- pin.
ΣIVDD Total current into sum of all VDD power lines (source) 160
ΣIVSS Total current out of sum of all VSS ground lines (sink) − 160
IVDD Maximum current into each VDD power line (source)(1) 100
IVSS Maximum current out of each VSS 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
Total output current sunk by sum of all IOs and control pins(2) 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
(4)
IINJ(PIN) Injected current on TC and RST pin ±5
Injected current on TTa pins(5) ±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 21: 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 21: Voltage characteristics for the maximum allowed input voltage values. Negative injection
disturbs the analog performance of the device. See note (2) below Table 70.
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).
The parameters given in Table 30 to Table 34 are derived from tests performed under
ambient temperature and supply voltage conditions summarized in Table 24.
Table 30. Typical and maximum current consumption from VDD supply at VDD = 3.6V
All peripherals enabled All peripherals disabled
Table 30. Typical and maximum current consumption from VDD supply at VDD = 3.6V (continued)
All peripherals enabled All peripherals disabled
Table 31. 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
Table 32. 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 33. 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.05 1.08 1.10 1.15 1.22 1.29 - - -
OFF
Supply LSI ON and IWDG ON 1.44 1.52 1.60 1.71 1.84 1.98 - - -
current in
Standby LSI OFF and IWDG
0.93 0.95 0.98 1.02 1.08 1.15 - - -
mode OFF
Table 34. 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 35. 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 36. 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.
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
WWDG 6.4
SPI2 40.4
SPI3 40.0
USART2 41.9
USART3 40.2
UART4 36.5
UART5 30.8 µA/MHz
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. Guaranteed by characterization results.
WZ+6(+
9+6(+
9+6(/
WU+6( W
WI+6( WZ+6(/
7+6(
069
WZ/6(+
9/6(+
9/6(/
WU/6( W
WI/6( WZ/6(/
7/6(
069
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.
5HVRQDWRUZLWKLQWHJUDWHG
FDSDFLWRUV
&/
26&B,1 I+6(
%LDV
0+] FRQWUROOHG
UHVRQDWRU 5) JDLQ
5(;7 26&B287
&/
069
LSEDRV[1:0]=00
- 0.5 0.9
lower driving capability
LSEDRV[1:0]=10
- - 1
medium low driving capability
IDD LSE current consumption µA
LSEDRV[1:0]=01
- - 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]=10
8 - -
Oscillator medium low driving capability
gm µA/V
transconductance LSEDRV[1:0]=01
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.
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.
26&B,1 I/6(
N+] 'ULYH
UHVRQDWRU SURJUDPPDEOH
DPSOLILHU
26&B287
&/
069
Note: An external resistor is not required between OSC32_IN and OSC32_OUT and it is forbidden
to add one.
Figure 18. HSI oscillator accuracy characterization results for soldered parts
."9
.*/
5<$>
"
069
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.6 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 -
Electrostatic
TA = +25 °C, conforming
VESD(HBM) discharge voltage 2 2000
to JESD22-A114
(human body model)
TA = +25 °C, conforming WLCSP100
3 250 V
Electrostatic to ANSI/ESD STM5.3.1 package
VESD(CDM) discharge voltage Packages
(charge device model) except 4 500
WLCSP100
1. Guaranteed by characterization results.
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.
&026VWDQGDUGUHTXLUHPHQWV9,/PD[ 9''
9,/PD[ Q
GXFWLR
7HVWHGLQSUR
9''9
069
9,/9,+9
QV
R
9 '' LPXODWL
77/VWDQGDUGUHTXLUHPHQWV9,+PLQ 9 QV
9,+PLQ 9 ,+PLQ RQGHVLJ
G
%DVH
V
'
XODWLRQ
9 ' VLJQVLP
9 ,/ P D [
G H
GRQ
$UHDQRWGHWHUPLQHG %DVH
9,/PD[
77/VWDQGDUGUHTXLUHPHQWV9,/PD[ 9
9''9
069
Figure 21. Five volt tolerant (FT and FTf) I/O input characteristics - CMOS port
9,/9,+9
9''
9,+PLQ XODWLRQV
LUHPHQWV '
QGDUGUHTX 9 'VLJQVLP
&026VWD 9 ,+PLQ H
RQG
URGXFWLRQ % DVHG
7HVWHGLQS
ODWLRQV
9
'' X
$UHDQRWGHWHUPLQHG LJQVLP
9 ,/PD[ RQGHV
V H G
%D
&026VWDQGDUGUHTXLUHPHQWV9,/PD[ 9''
GXFWLRQ
7HVWHGLQSUR
9''9
069
Figure 22. Five volt tolerant (FT and FTf) I/O input characteristics - TTL port
9,/9,+9
QV
' ODWLR
77/VWDQGDUGUHTXLUHPHQWV9,+PLQ 9 9 ' QVLPX
9 ,+PLQ QGHVLJ
GR
%DVH
$UHDQRWGHWHUPLQHG XODWLRQV
9 ''
LJQVLP
9 ,/PLQ GRQGHV
%DVH
77/VWDQGDUGUHTXLUHPHQWV9,/PD[ 9
9''9
069
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 = +8 mA
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 22 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 22 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 56, respectively.
Unless otherwise specified, the parameters given are derived from tests performed under
ambient temperature and VDD supply voltage conditions summarized in Table 24.
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Ω
VF(NRST)(1) NRST Input filtered pulse - - - 100(1) ns
VNF(NRST)(1) NRST Input not filtered pulse - 500 (1)
- - ns
1. Guaranteed by design.
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).
9''
([WHUQDO
UHVHWFLUFXLWU\
538
,QWHUQDOUHVHW
1567
)LOWHU
)
069
- 1 - tTIMxCLK
1. TIMx is used as a general term to refer to the TIM1, TIM2, TIM3, TIM4, TIM15, TIM16 and TIM17 timers.
2. Guaranteed by design.
/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.
1 0 0.05687 3.6409
2 1 0.1137 7.2817
4 2 0.2275 14.564
8 3 0.4551 29.127
1. Guaranteed by design.
Table 61. I2C timings specification (see I2C specification, rev.03, June 2007)(1)
Standard mode Fast mode Fast Mode Plus
Symbol Parameter Unit
Min Max Min Max Min Max
1. The I2C characteristics are the requirements from I2C bus specification rev03. They are guaranteed by design when
I2Cx_TIMING register is correctly programmed (Refer to the RM0365 reference manual).
2. The maximum tHD;DAT could be 3.45 µs, 0.9 µs and 0.45 µs for standard mode, fast mode and fast mode plus, but must
be less than the maximum of tVD;DAT or tVD;ACK by a transition time.
3. The minimum width of the spikes filtered by the analog filter is above tSP(max).
9''B,& 9''B,&
5S 5S 0&8
5V
6'$
,&EXV 5V
6&/
UG US U 46%"5
4%" DPOUJOVFE
UG U )%%"5 US U )*() U 7%%"5
4%"
4$-
4S 1 4
UIDMPDL
069
1. Rs: Series protection resistors, Rp: Pull-up resistors, VDD_I2C: I2C bus supply.
SPI/I2S characteristics
Unless otherwise specified, the parameters given in Table 63 for SPI or in Table 64 for I2S
are derived from tests performed under ambient temperature, fPCLKx frequency and VDD
supply voltage conditions summarized in Table 24.
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).
166LQSXW
W68166 WF6&. WK166
&3+$
6&.,QSXW
&32/
WZ6&.+
&3+$ WZ6&./
&32/
W962 WK62 WU6&. WGLV62
WD62 WI6&.
WK6,
DLF
Figure 27. SPI timing diagram - slave mode and CPHA = 1(1)
166LQSXW
W68166 WF6&. WK166
&3+$
6&.,QSXW
&32/
WZ6&.+
&3+$ WZ6&./
&32/
WY62 WK62 WU6&. WGLV62
WD62 WI6&.
0,62
287 3 87 06 % 2 87 %, 7 287 /6% 287
WVX6, WK6,
026,
0 6% ,1 % , 7 ,1 /6% ,1
, 1387
DL
+LJK
166LQSXW
WF6&.
6&.2XWSXW
&3+$
&32/
&3+$
&32/
6&.2XWSXW
&3+$
&32/
&3+$
&32/
WZ6&.+ WU6&.
WVX0, WZ6&./ WI6&.
0,62
,13 87 06%,1 %,7,1 /6%,1
WK0,
026,
06%287 % , 7287 /6%287
287387
WY02 WK02
DLF
WF&.
&32/
&.,QSXW
&32/
WZ&.+ WZ&./ WK:6
:6LQSXW
DLE
1. Measurement points are done at 0.5VDD and with external CL=30 pF.
2. LSB transmit/receive of the previously transmitted byte. No LSB transmit/receive is sent before the first
byte.
TF#+ TR#+
TC#+
#+ OUTPUT
#0/,
TW#+(
#0/,
TV73 TW#+, TH73
73 OUTPUT
TV3$?-4 TH3$?-4