Skip to the content
1234567891011121314151617181920

STM32L031F6P6

STMicroelectronicsExtended

-40℃~+85℃ 1.8V~3.6V 12bit 15 1KB 32 Bit 32KB 32MHz 8KB ARM Cortex-M0+ Built-in FLASH TSSOP-20 Microcontrollers (MCU/MPU/SOC) ROHS

Part id
st/STM32L031F6P6
Category
Microcontrollers (MCU, MPU, SOC)
Package
TSSOP-20
Pins
20
In stock
2,634 at JLCPCB (C115208)
Used on
3 open-source boards

Overview

The STM32L031F6P6 is a microcontroller made by STMicroelectronics in a TSSOP-20 package with 20 pins. -40℃~+85℃ 1.8V~3.6V 12bit 15 1KB 32 Bit 32KB 32MHz 8KB ARM Cortex-M0+ Built-in FLASH TSSOP-20 Microcontrollers (MCU/MPU/SOC) ROHS.

PCBKit's library has its KiCad symbol (MCU_ST_STM32L0:STM32L031F6Px, from KiCad's library) and its footprint (Package_SO:TSSOP-20_4.4x6.5mm_P0.65mm, from KiCad's library), ready for a KiCad board. 2,634 are in stock at JLCPCB (part C115208). 3 open-source boards in 2 repositories on GitHub use it.

Symbol

1BOOT02PC143PC154NRST5VDDA6PA07PA18PA29PA310PA411PA512PA613PA714PB115VSS16VDD17PA918PA1019PA1320PA14
MCU_ST_STM32L0:STM32L031F6PxFrom KiCad's library

Footprint

1234567891011121314151617181920
Package_SO:TSSOP-20_4.4x6.5mm_P0.65mmFrom KiCad's library

From the datasheet

15
Supply, least
1.8 V · VDD, min recommended operating, BOR enabled · p. 114
Supply, most
3.6 V · VDD, max recommended operating, BOR enabled · p. 114
Supply, least
1.65 V · VDDA, min recommended operating; must equal VDD · p. 51
Supply, absolute maximum
4 V · VDD and VDDA, absolute max · p. 49
Works from
-40 °C · TA, min industrial temperature range 6 · p. 114
Works up to
85 °C · TA, max industrial temperature range 6 · p. 114
Junction, hottest
150 °C · TJ, absolute max · p. 50
Takes working
5.1 mA · IDD, typical Run from Flash, HSI, 32 MHz, Range 1, peripherals disabled · p. 56
Takes at most
5.7 mA · IDD, max Run from Flash, HSI, 32 MHz, Range 1, peripherals disabled · p. 56
Takes asleep
255 nA · IDD, typical Standby, watchdog and LSI off, TA = -40 to 25 °C · p. 63
A pin gives at most
16 mA · IIO, absolute max sink, I/O and control pins except FTf · p. 50
A pin gives at most
22 mA · IIO, absolute max sink, FTf pins · p. 50
Junction to air (TSSOP20 - 169 mils)
60 K/W · junction to ambient thermal resistance · p. 112
Takes asleep
230 nA · Standby mode, headline current · p. 1
A pin gives at most
15 mA · GPIO source or sink max with non-standard VOL/VOH · p. 80

What it is and has

13
Core
ARM 32-bit Cortex-M0+ · p. 1
CPU clock
32 kHz to 32 MHz · p. 1
Flash memory
32 Kbytes · p. 114
RAM
8 KB · p. 1
Data EEPROM
1 KB with ECC · p. 1
Backup register
20 bytes · p. 1
USART and low-power UART
1 USART, 1 low-power UART · p. 1
I2C
1, SMBus/PMBus · p. 1
CRC and unique ID
CRC calculation unit, 96-bit unique ID · p. 1
Debug
Serial wire debug · p. 1
Package
TSSOP, 20 pins · p. 114
SRAM
8KB · p. 1
EEPROM
1KB · p. 1

Around it

1
crystal 32.768 kHz
between OSC32_IN and OSC32_OUT; LSE crystal/ceramic resonator; place resonator and load capacitors as close as possible to oscillator pins. · p. 70

Specifications

246
ParameterConditionsAs printedPage
External main supply voltage (including VDDA, VDD) VDD–VSSAbsolute maximummin -0.3 · max 4 V49
Input voltage on TC pins VINAbsolute maximum; minimum VSS − 0.3 Vmax 4 V49
Input voltage on any other pin VINAbsolute maximum; minimum VSS − 0.3 Vmax 4 V49
Variations between different VDDx power pins |VDD|max 50 mV49
Variations between any VDDx and VDDA power pins |VDDA-VDDx|max 300 mV49
Variations between all different ground pins |VSS|max 50 mV49
Total current into sum of all VDD power lines (source) ΣIVDDAbsolute maximummax 105 mA50
Total current out of sum of all VSS ground lines (sink) ΣIVSSAbsolute maximummax 105 mA50
Maximum current into each VDD power pin (source) IVDD(PIN)Absolute maximummax 100 mA50
Maximum current out of each VSS ground pin (sink) IVSS(PIN)Absolute maximummax 100 mA50
Output current sunk by any I/O and control pin except FTf pins IIOAbsolute maximummax 16 mA50
Output current sunk by FTf pins IIOAbsolute maximummax 22 mA50
Output current sourced by any I/O and control pin IIOAbsolute maximummax -16 mA50
Total output current sunk by sum of all IOs and control pins ΣIIO(PIN)All part numbers except STM32L031GxUxSmax 90 mA50
Total output current sourced by sum of all IOs and control pins ΣIIO(PIN)All part numbers except STM32L031GxUxSmax -90 mA50
Injected current on FT, FFf, RST and B pins IINJ(PIN)Absolute maximum; printed limit -5/+0min -5 · max 0 mA50
Injected current on TC pin IINJ(PIN)Absolute maximum; ±5min -5 · max 5 mA50
Total injected current (sum of all I/O and control pins) ΣIINJ(PIN)Absolute maximum; ±25; absolute sum of positive and negative injected currentsmin -25 · max 25 mA50
Storage temperature range TSTGAbsolute maximummin -65 · max 150 °C50
Maximum junction temperature TJAbsolute maximummax 150 °C50
Internal AHB clock frequency fHCLKmin 0 · max 32 MHz51
Internal APB1 clock frequency fPCLK1min 0 · max 32 MHz51
Internal APB2 clock frequency fPCLK2min 0 · max 32 MHz51
Standard operating voltage VDDBOR detector disabledmin 1.65 · max 3.6 V51
Standard operating voltage VDDBOR detector enabled, at power onmin 1.8 · max 3.6 V51
Standard operating voltage VDDBOR detector disabled, after power onmin 1.65 · max 3.6 V51
Analog operating voltage (all features) VDDAMust be the same voltage as VDDmin 1.65 · max 3.6 V51
Input voltage on FT, FTf and RST pins VIN2.0 V ≤ VDD ≤ 3.6 Vmin -0.3 · max 5.5 V51
Input voltage on FT, FTf and RST pins VIN1.65 V ≤ VDD ≤ 2.0 Vmin -0.3 · max 5.2 V51
Input voltage on BOOT0 pin VINmin 0 · max 5.5 V51
Input voltage on TC pin VINMaximum VDD+0.3 Vmin -0.3 V51
Power dissipation at TA = 85 °C (range 6) or TA =105 °C (rage 7) PDTSSOP20 package; range 6max 333 mW51
Temperature range TAMaximum power dissipation (range 6)min -40 · max 85 °C52
Junction temperature range (range 6) TJ-40 °C ≤ TA ≤ 85 °Cmin -40 · max 105 °C52
VDD rise time rate tVDDBOR detector enabled; maximum ∞min 0 us/V52
VDD rise time rate tVDDBOR detector disabledmin 0 · max 1000 us/V52
VDD fall time rate tVDDBOR detector enabled; maximum ∞min 20 us/V52
VDD fall time rate tVDDBOR detector disabledmin 0 · max 1000 us/V52
Reset temporization TRSTTEMPOVDD rising, BOR enabledtyp 2 · max 3.3 ms52
Reset temporization TRSTTEMPOVDD rising, BOR disabled; device option Dmin 0.4 · typ 0.7 · max 1.6 ms52
Power on/power down reset threshold VPOR/PDRFalling edgemin 1 · typ 1.5 · max 1.65 V52
Power on/power down reset threshold VPOR/PDRRising edgemin 1.3 · typ 1.5 · max 1.65 V52
Brown-out reset threshold 0 VBOR0Falling edgemin 1.67 · typ 1.7 · max 1.74 V52
Brown-out reset threshold 0 VBOR0Rising edgemin 1.69 · typ 1.76 · max 1.8 V52
Brown-out reset threshold 1 VBOR1Falling edgemin 1.87 · typ 1.93 · max 1.97 V52
Brown-out reset threshold 1 VBOR1Rising edgemin 1.96 · typ 2.03 · max 2.07 V52
Brown-out reset threshold 2 VBOR2Falling edgemin 2.22 · typ 2.3 · max 2.35 V52
Brown-out reset threshold 2 VBOR2Rising edgemin 2.31 · typ 2.41 · max 2.44 V52
Brown-out reset threshold 3 VBOR3Falling edgemin 2.45 · typ 2.55 · max 2.6 V53
Brown-out reset threshold 3 VBOR3Rising edgemin 2.54 · typ 2.66 · max 2.7 V53
Brown-out reset threshold 4 VBOR4Falling edgemin 2.68 · typ 2.8 · max 2.85 V53
Brown-out reset threshold 4 VBOR4Rising edgemin 2.78 · typ 2.9 · max 2.95 V53
Programmable voltage detector threshold 0 VPVD0Falling edgemin 1.8 · typ 1.85 · max 1.88 V53
Programmable voltage detector threshold 0 VPVD0Rising edgemin 1.88 · typ 1.94 · max 1.99 V53
PVD threshold 1 VPVD1Falling edgemin 1.98 · typ 2.04 · max 2.09 V53
PVD threshold 1 VPVD1Rising edgemin 2.08 · typ 2.14 · max 2.18 V53
PVD threshold 2 VPVD2Falling edgemin 2.2 · typ 2.24 · max 2.28 V53
PVD threshold 2 VPVD2Rising edgemin 2.28 · typ 2.34 · max 2.38 V53
PVD threshold 3 VPVD3Falling edgemin 2.39 · typ 2.44 · max 2.48 V53
PVD threshold 3 VPVD3Rising edgemin 2.47 · typ 2.54 · max 2.58 V53
PVD threshold 4 VPVD4Falling edgemin 2.57 · typ 2.64 · max 2.69 V53
PVD threshold 4 VPVD4Rising edgemin 2.68 · typ 2.74 · max 2.79 V53
PVD threshold 5 VPVD5Falling edgemin 2.77 · typ 2.83 · max 2.88 V53
PVD threshold 5 VPVD5Rising edgemin 2.87 · typ 2.94 · max 2.99 V53
PVD threshold 6 VPVD6Falling edgemin 2.97 · typ 3.05 · max 3.09 V53
PVD threshold 6 VPVD6Rising edgemin 3.08 · typ 3.15 · max 3.2 V53
Hysteresis voltage VhystBOR0 thresholdtyp 40 mV53
Hysteresis voltage VhystAll BOR and PVD thresholds excepting BOR0typ 100 mV53
Internal reference voltage VREFINT out−40 °C < TJ < +125 °Cmin 1.202 · typ 1.224 · max 1.242 V54
Internal reference startup time TVREFINTtyp 2 · max 3 ms54
VDDA voltage during VREFINT factory measure VVREF_MEASmin 2.99 · typ 3 · max 3.01 V54
Accuracy of factory-measured VREFINT value AVREF_MEASIncluding uncertainties due to ADC and VDDA values; maximum ±5 mVmax 5 mV54
Temperature coefficient TCoeff−40 °C < TJ < +125 °Ctyp 25 · max 100 ppm/°C54
Long-term stability ACoeff1000 hours, T=25 °Cmax 1000 ppm54
Voltage coefficient VDDCoeff3.0 V < VDDA < 3.6 Vmax 2000 ppm/V54
ADC sampling time when reading the internal reference voltage TS_vrefintmin 5 · typ 10 us54
Startup time of reference voltage buffer for ADC TADC_BUFmax 10 us54
Consumption of reference voltage buffer for ADC IBUF_ADCtyp 13.5 · max 25 uA54
VREF_OUT output current IVREF_OUTTo guarantee less than 1% VREF_OUT deviationmax 1 uA54
VREF_OUT output load CVREF_OUTmax 50 pF54
Consumption of reference voltage buffer for VREF_OUT and COMP ILPBUFtyp 730 · max 1200 nA54
1/4 reference voltage VREFINT_DIV1min 24 · typ 25 · max 26 % VREFINT54
1/2 reference voltage VREFINT_DIV2min 49 · typ 50 · max 51 % VREFINT54
3/4 reference voltage VREFINT_DIV3min 74 · typ 75 · max 76 % VREFINT54
Supply current in Run mode, code executed from Flash IDD (Run from Flash)HSE bypass, fHSE=fHCLK up to 16 MHz, fHSE=fHCLK/2 above 16 MHz with PLL; Range 3, VCORE=1.2 V, VOS[1:0]=11; fHCLK=1 MHztyp 140 · max 200 uA56
Supply current in Run mode, code executed from Flash IDD (Run from Flash)HSE bypass; Range 3, VCORE=1.2 V, VOS[1:0]=11; fHCLK=2 MHztyp 245 · max 310 uA56
Supply current in Run mode, code executed from Flash IDD (Run from Flash)HSE bypass; Range 3, VCORE=1.2 V, VOS[1:0]=11; fHCLK=4 MHztyp 460 · max 540 uA56
Supply current in Run mode, code executed from Flash IDD (Run from Flash)HSE bypass; Range 2, VCORE=1.5 V, VOS[1:0]=10; fHCLK=4 MHztyp 0.56 · max 0.63 mA56
Supply current in Run mode, code executed from Flash IDD (Run from Flash)HSE bypass; Range 2, VCORE=1.5 V, VOS[1:0]=10; fHCLK=8 MHztyp 1.1 · max 1.2 mA56
Supply current in Run mode, code executed from Flash IDD (Run from Flash)HSE bypass; Range 2, VCORE=1.5 V, VOS[1:0]=10; fHCLK=16 MHztyp 2.1 · max 2.3 mA56
Supply current in Run mode, code executed from Flash IDD (Run from Flash)HSE bypass; Range 1, VCORE=1.8 V, VOS[1:0]=01; fHCLK=8 MHztyp 1.25 · max 1.4 mA56
Supply current in Run mode, code executed from Flash IDD (Run from Flash)HSE bypass; Range 1, VCORE=1.8 V, VOS[1:0]=01; fHCLK=16 MHztyp 2.5 · max 2.7 mA56
Supply current in Run mode, code executed from Flash IDD (Run from Flash)HSI clock; Range 2, VCORE=1.5 V, VOS[1:0]=10; fHCLK=16 MHztyp 2.1 · max 2.4 mA56
Supply current in Run mode, code executed from Flash IDD (Run from Flash)HSI clock with PLL; Range 1, VCORE=1.8 V, VOS[1:0]=01; fHCLK=32 MHztyp 5.1 · max 5.7 mA56
Supply current in Run mode, code executed from Flash IDD (Run from Flash)MSI clock; Range 3, VCORE=1.2 V, VOS[1:0]=11; fHCLK=65 kHztyp 34.5 · max 110 uA56
Supply current in Run mode, code executed from Flash IDD (Run from Flash)MSI clock; Range 3, VCORE=1.2 V, VOS[1:0]=11; fHCLK=524 kHztyp 86 · max 150 uA56
Supply current in Run mode, code executed from Flash IDD (Run from Flash)MSI clock; Range 3, VCORE=1.2 V, VOS[1:0]=11; fHCLK=4.2 MHztyp 505 · max 570 uA56
Supply current in Run mode, code executed from Flash memory IDD (Run from Flash)HSE bypass; Range 3, VCORE=1.2 V, VOS[1:0]=11; 4 MHz; Dhrystonetyp 460 uA56
Supply current in Run mode, code executed from Flash memory IDD (Run from Flash)HSE bypass; Range 3, VCORE=1.2 V, VOS[1:0]=11; 4 MHz; CoreMarktyp 455 uA56
Supply current in Run mode, code executed from Flash memory IDD (Run from Flash)HSE bypass; Range 3, VCORE=1.2 V, VOS[1:0]=11; 4 MHz; Fibonaccityp 330 uA56
Supply current in Run mode, code executed from Flash memory IDD (Run from Flash)HSE bypass; Range 3, VCORE=1.2 V, VOS[1:0]=11; 4 MHz; while(1)typ 305 uA56
Supply current in Run mode, code executed from Flash memory IDD (Run from Flash)HSE bypass; Range 3, VCORE=1.2 V, VOS[1:0]=11; 4 MHz; while(1), prefetch OFFtyp 320 uA56
Supply current in Run mode, code executed from Flash memory IDD (Run from Flash)HSE bypass, fHSE=fHCLK/2, PLL on; Range 1, VCORE=1.8 V, VOS[1:0]=01; 32 MHz; CoreMarktyp 5.15 mA56
Supply current in Run mode, code executed from Flash memory IDD (Run from Flash)HSE bypass, fHSE=fHCLK/2, PLL on; Range 1, VCORE=1.8 V, VOS[1:0]=01; 32 MHz; Fibonaccityp 5 mA56
Supply current in Run mode, code executed from Flash memory IDD (Run from Flash)HSE bypass, fHSE=fHCLK/2, PLL on; Range 1, VCORE=1.8 V, VOS[1:0]=01; 32 MHz; while(1)typ 4.35 mA56
Supply current in Run mode, code executed from Flash memory IDD (Run from Flash)HSE bypass, fHSE=fHCLK/2, PLL on; Range 1, VCORE=1.8 V, VOS[1:0]=01; 32 MHz; while(1), prefetch OFFtyp 3.85 mA56
Supply current in Stop mode IDD (Stop)TA = -40°C to 25°Ctyp 0.38 · max 0.99 uA62
Supply current in Stop mode IDD (Stop)TA = 55°Ctyp 0.54 · max 1.9 uA62
Supply current in Stop mode IDD (Stop)TA = 85°Ctyp 1.35 · max 4.2 uA62
Supply current in Stop mode IDD (Stop)TA = 105°Ctyp 3.1 · max 9 uA62
Supply current in Stop mode IDD (Stop)TA = 125°Ctyp 7.55 · max 19 uA62
Supply current in Standby mode IDD (Standby)Independent watchdog and LSI enabled; TA = -40 °C to 25 °Ctyp 0.8 · max 1.6 uA63
Supply current in Standby mode IDD (Standby)Independent watchdog and LSI enabled; TA = 55 °Ctyp 0.9 · max 1.8 uA63
Supply current in Standby mode IDD (Standby)Independent watchdog and LSI enabled; TA = 85 °Ctyp 1 · max 2 uA63
Supply current in Standby mode IDD (Standby)Independent watchdog and LSI enabled; TA = 105 °Ctyp 1.3 · max 3 uA63
Supply current in Standby mode IDD (Standby)Independent watchdog and LSI enabled; TA = 125 °Ctyp 2.15 · max 7 uA63
Supply current in Standby mode IDD (Standby)Independent watchdog and LSI off; TA = -40 °C to 25 °Ctyp 0.255 · max 0.6 uA63
Supply current in Standby mode IDD (Standby)Independent watchdog and LSI off; TA = 55 °Ctyp 0.28 · max 0.7 uA63
Supply current in Standby mode IDD (Standby)Independent watchdog and LSI off; TA = 85 °Ctyp 0.405 · max 1 uA63
Supply current in Standby mode IDD (Standby)Independent watchdog and LSI off; TA = 105 °Ctyp 0.7 · max 1.7 uA63
Supply current in Standby mode IDD (Standby)Independent watchdog and LSI off; TA = 125 °Ctyp 1.55 · max 5 uA63
Supply current during wakeup from Stop mode IDD (WU from Stop)HSI; average currenttyp 1 mA63
Supply current during wakeup from Stop mode IDD (WU from Stop)HSI/4; average currenttyp 0.7 mA63
Supply current during wakeup from Stop mode IDD (WU from Stop)MSI 4,2 MHz; average currenttyp 0.7 mA63
Supply current during wakeup from Stop mode IDD (WU from Stop)MSI 1,05 MHz; average currenttyp 0.4 mA63
Supply current during wakeup from Stop mode IDD (WU from Stop)MSI 65 KHz; average currenttyp 0.1 mA63
Reset pin pulled down IDD (Reset)Average currenttyp 0.21 mA63
BOR on IDD (Power Up)Average currenttyp 0.23 mA63
With Fast wakeup set IDD (WU from StandBy)MSI 2,1 MHz; average currenttyp 0.5 mA63
With Fast wakeup disabled IDD (WU from StandBy)MSI 2,1 MHz; average currenttyp 0.12 mA63
Electrostatic discharge voltage (human body model) VESD(HBM)TA = +25 °C; ANSI/JEDEC JS-001; class 2max 2000 V77
Electrostatic discharge voltage (charge device model) VESD(CDM)TA = +25 °C; ANSI/ESD STM5.3.1.; class C4max 500 V77
Thermal resistance junction-ambient JATSSOP20 - 169 mils; table valuetyp 60 °C/W112
LSE oscillator frequency fLSEtyp 32.768 kHz70
Maximum critical crystal transconductance GmLSEDRV[1:0]=00, lower driving capabilitymax 0.5 uA/V70
Maximum critical crystal transconductance GmLSEDRV[1:0]= 01, medium low driving capabilitymax 0.75 uA/V70
Maximum critical crystal transconductance GmLSEDRV[1:0] = 10, medium high driving capabilitymax 1.7 uA/V70
Maximum critical crystal transconductance GmLSEDRV[1:0]=11, higher driving capabilitymax 2.7 uA/V70
Startup time tSU(LSE)VDD is stabilizedtyp 2 s70
LSI frequency fLSImin 26 · typ 38 · max 56 kHz72
LSI oscillator frequency drift DLSI0°C ≤ TA ≤ 85°C; deviation for an individual part after measuring initial frequencymin -10 · max 4 %72
LSI oscillator startup time tsu(LSI)max 200 us72
LSI oscillator power consumption IDD(LSI)typ 400 · max 510 nA72
Frequency after factory calibration, done at VDD= 3.3 V and TA = 25 °C fMSIMSI range 0typ 65.5 kHz72
Frequency after factory calibration, done at VDD= 3.3 V and TA = 25 °C fMSIMSI range 1typ 131 kHz72
Frequency after factory calibration, done at VDD= 3.3 V and TA = 25 °C fMSIMSI range 2typ 262 kHz72
Frequency after factory calibration, done at VDD= 3.3 V and TA = 25 °C fMSIMSI range 3typ 524 kHz72
Frequency after factory calibration, done at VDD= 3.3 V and TA = 25 °C fMSIMSI range 4typ 1.05 MHz72
Frequency after factory calibration, done at VDD= 3.3 V and TA = 25 °C fMSIMSI range 5typ 2.1 MHz72
Frequency after factory calibration, done at VDD= 3.3 V and TA = 25 °C fMSIMSI range 6typ 4.2 MHz72
MSI oscillator frequency drift DVOLT(MSI)1.65 V ≤ VDD ≤ 3.6 V, TA = 25 °Cmax 2.5 %/V72
MSI oscillator power consumption IDD(MSI)MSI range 0typ 0.75 uA72
MSI oscillator power consumption IDD(MSI)MSI range 1typ 1 uA72
MSI oscillator power consumption IDD(MSI)MSI range 2typ 1.5 uA72
MSI oscillator power consumption IDD(MSI)MSI range 3typ 2.5 uA72
MSI oscillator power consumption IDD(MSI)MSI range 4typ 4.5 uA72
MSI oscillator power consumption IDD(MSI)MSI range 5typ 8 uA72
MSI oscillator power consumption IDD(MSI)MSI range 6typ 15 uA72
PLL output clock fPLL_OUTmin 2 · max 32 MHz74
Current consumption on VDDA IDDA(PLL)typ 220 · max 450 uA74
Current consumption on VDD IDD(PLL)typ 120 · max 150 uA74
Data retention mode VRMSTOP mode (or RESET)min 1.65 V74
Operating voltage Read / Write / Erase VDDmin 1.65 · max 3.6 V74
Programming time for word or half-page tprogErasingtyp 3.28 · max 3.94 ms74
Average current during the whole programming / erase operation IDDTA = 25 °C, VDD = 3.6 Vtyp 500 · max 700 uA74
Maximum current (peak) during the whole programming / erase operation IDDTA = 25 °C, VDD = 3.6 Vtyp 1.5 · max 2.5 mA74
Electrostatic discharge voltage (human body model) VESD(HBM)TA = +25 °C, conforming to ANSI/JEDEC JS-001; Class 2max 2000 V77
Electrostatic discharge voltage (charge device model) VESD(CDM)TA = +25 °C, conforming to ANSI/ESD STM5.3.1.; Class C4max 500 V77
Output low level voltage for an I/O pin VOLCMOS port, IIO = +8 mA, 2.7 V ≤ VDD ≤ 3.6 Vmax 0.4 V81
Output low level voltage for an I/O pin VOLTTL port, IIO =+ 8 mA, 2.7 V ≤ VDD ≤ 3.6 Vmax 0.4 V81
Output high level voltage for an I/O pin VOHTTL port, IIO = -6 mA, 2.7 V ≤ VDD ≤ 3.6 Vmin 2.4 V81
Output low level voltage for an I/O pin VOLIIO = +15 mA, 2.7 V ≤ VDD ≤ 3.6 Vmax 1.3 V81
Output low level voltage for an I/O pin VOLIIO = +4 mA, 1.65 V ≤ VDD < 3.6 Vmax 0.45 V81
Output low level voltage for an FTf I/O pin in Fm+ mode VOLFM+IIO = 20 mA, 2.7 V ≤ VDD ≤ 3.6 Vmax 0.4 V81
Output low level voltage for an FTf I/O pin in Fm+ mode VOLFM+IIO = 10 mA, 1.65 V ≤ VDD ≤ 3.6 Vmax 0.4 V81
Maximum frequency fmax(IO)outOSPEEDRx[1:0] = 00; CL = 50 pF, VDD = 2.7 V to 3.6 Vmax 400 kHz82
Maximum frequency fmax(IO)outOSPEEDRx[1:0] = 00; CL = 50 pF, VDD = 1.65 V to 2.7 Vmax 100 kHz82
Output rise and fall time tf(IO)out, tr(IO)outOSPEEDRx[1:0] = 00; CL = 50 pF, VDD = 2.7 V to 3.6 Vmax 125 ns82
Output rise and fall time tf(IO)out, tr(IO)outOSPEEDRx[1:0] = 00; CL = 50 pF, VDD = 1.65 V to 2.7 Vmax 320 ns82
Maximum frequency fmax(IO)outOSPEEDRx[1:0] = 01; CL = 50 pF, VDD = 2.7 V to 3.6 Vmax 2 MHz82
Maximum frequency fmax(IO)outOSPEEDRx[1:0] = 01; CL = 50 pF, VDD = 1.65 V to 2.7 Vmax 0.6 MHz82
Output rise and fall time tf(IO)out, tr(IO)outOSPEEDRx[1:0] = 01; CL = 50 pF, VDD = 2.7 V to 3.6 Vmax 30 ns82
Output rise and fall time tf(IO)out, tr(IO)outOSPEEDRx[1:0] = 01; CL = 50 pF, VDD = 1.65 V to 2.7 Vmax 65 ns82
Maximum frequency Fmax(IO)outOSPEEDRx[1:0] = 10; CL = 50 pF, VDD = 2.7 V to 3.6 Vmax 10 MHz82
Maximum frequency Fmax(IO)outOSPEEDRx[1:0] = 10; CL = 50 pF, VDD = 1.65 V to 2.7 Vmax 2 MHz82
Output rise and fall time tf(IO)out, tr(IO)outOSPEEDRx[1:0] = 10; CL = 50 pF, VDD = 2.7 V to 3.6 Vmax 13 ns82
Output rise and fall time tf(IO)out, tr(IO)outOSPEEDRx[1:0] = 10; CL = 50 pF, VDD = 1.65 V to 2.7 Vmax 28 ns82
Maximum frequency Fmax(IO)outOSPEEDRx[1:0] = 11; CL = 30 pF, VDD = 2.7 V to 3.6 Vmax 35 MHz82
Maximum frequency Fmax(IO)outOSPEEDRx[1:0] = 11; CL = 50 pF, VDD = 1.65 V to 2.7 Vmax 10 MHz82
Output rise and fall time tf(IO)out, tr(IO)outOSPEEDRx[1:0] = 11; CL = 30 pF, VDD = 2.7 V to 3.6 Vmax 6 ns82
Output rise and fall time tf(IO)out, tr(IO)outOSPEEDRx[1:0] = 11; CL = 50 pF, VDD = 1.65 V to 2.7 Vmax 17 ns82
Maximum frequency fmax(IO)outFm+ configuration; CL = 50 pF, VDD = 2.5 V to 3.6 Vmax 1 MHz82
Output fall time tf(IO)outFm+ configuration; CL = 50 pF, VDD = 2.5 V to 3.6 Vmax 10 ns82
Output rise time tr(IO)outFm+ configuration; CL = 50 pF, VDD = 2.5 V to 3.6 Vmax 30 ns82
Maximum frequency fmax(IO)outFm+ configuration; CL = 50 pF, VDD = 1.65 V to 3.6 Vmax 350 KHz82
Output fall time tf(IO)outFm+ configuration; CL = 50 pF, VDD = 1.65 V to 3.6 Vmax 15 ns82
Output rise time tr(IO)outFm+ configuration; CL = 50 pF, VDD = 1.65 V to 3.6 Vmax 60 ns82
Pulse width of external signals detected by the EXTI controller tEXTIpwmin 8 ns82
Analog supply voltage for ADC on VDDAFast channelmin 1.65 · max 3.6 V84
Analog supply voltage for ADC on VDDAStandard channel; minimum can be decreased in specific temperature conditions, see Table 58min 1.75 · max 3.6 V84
Current consumption of the ADC on VDDA IDDA (ADC)1.14 Mspstyp 200 uA84
Current consumption of the ADC on VDDA IDDA (ADC)10 kspstyp 40 uA84
Current consumption of the ADC on VDD IDDA (ADC)1.14 Msps; add current proportional to APB clock frequency, see Table 34typ 70 uA84
Current consumption of the ADC on VDD IDDA (ADC)10 ksps; add current proportional to APB clock frequency, see Table 34typ 1 uA84
ADC clock frequency fADCVoltage scaling Range 1min 0.14 · max 16 MHz84
ADC clock frequency fADCVoltage scaling Range 2min 0.14 · max 8 MHz84
ADC clock frequency fADCVoltage scaling Range 3min 0.14 · max 4 MHz84
Sampling rate fSmin 0.05 · max 1.14 MHz84
External trigger frequency fTRIGfADC = 16 MHzmax 941 kHz84
External trigger frequency fTRIGmax 17 1/fADC84
Conversion voltage range VAINmin 0 V84
External input impedance RAINSee Equation 1 and Table 58 for detailsmax 50 k84
Sampling switch resistance RADCStandard channels have an extra protection resistance depending on supply voltage, see Table 58max 1 k84
Internal sample and hold capacitor CADCmax 8 pF84
Calibration time tCALfADC = 16 MHztyp 5.2 us85
Calibration time tCALtyp 83 1/fADC85
ADC_DR register write latency WLATENCYADC clock = PCLK/2typ 4.5 fPCLK cycle85
ADC_DR register write latency WLATENCYADC clock = PCLK/4typ 8.5 fPCLK cycle85
Trigger conversion latency tlatrfADC = fPCLK/2 = 16 MHztyp 0.266 us85
Trigger conversion latency tlatrfADC = fPCLK/2typ 8.5 1/fPCLK85
Trigger conversion latency tlatrfADC = fPCLK/4 = 8 MHztyp 0.516 us85
Trigger conversion latency tlatrfADC = fPCLK/4typ 16.5 1/fPCLK85
ADC jitter on trigger conversion JitterADCfADC = fHSI16 = 16 MHzmin 0.252 · max 0.26 us85
ADC jitter on trigger conversion JitterADCfADC = fHSI16typ 1 1/fHSI1685
Sampling time tSfADC = 16 MHzmin 0.093 · max 10.03 us85
Sampling time tSmin 1.5 · max 239.5 1/fADC85
Power-up time tSTABmin 0 · typ 0 · max 1 us85
Total conversion time (including sampling time) tConVfADC = 16 MHzmin 0.875 · max 10.81 us85
Total conversion time (including sampling time) tConVtS for sampling +12.5 for successive approximationmin 14 · max 173 1/fADC85
Average slope Avg_Slopemin 1.48 · typ 1.61 · max 1.75 mV/°C88
Voltage at 130°C ±5°C V130VDD = 3 V ±10 mV; conversion result stored in TS_CAL2 bytemin 640 · typ 670 · max 700 mV88
Current consumption IDDA(TEMP)typ 3.4 · max 6 uA88
Startup time tSTARTmax 10 us88
ADC sampling time when reading the temperature TS_tempmin 10 us88
Analog supply voltage VDDAmin 1.65 · max 3.6 V88
R400K value R400Ktyp 400 k88
R10K value R10Ktyp 10 k88
Comparator 1 input voltage range VINmin 0.6 V88
Comparator startup time tSTARTtyp 7 · max 10 us88
Propagation delay td100 mV input step with 10 mV overdrive on inverting input; non-inverting input set to referencetyp 3 · max 10 us88
Comparator offset variation in worst voltage stress conditions dVoffset/dtVDDA = 3.6 V; VIN+ = 0 V; VIN- = VREFINT; TA = 25 °Cmin 0 · typ 1.5 · max 10 mV/1000 h88
Current consumption ICOMP1Comparator consumption only; internal reference voltage not includedtyp 160 · max 260 nA88
Wakeup time needed to calculate the maximum USART/LPUART baudrate allowing to wake up from Stop mode tWUUSARTStop mode with main regulator in Run mode, Range 2 or 3max 8.7 us91
Wakeup time needed to calculate the maximum USART/LPUART baudrate allowing to wake up from Stop mode tWUUSARTStop mode with main regulator in Run mode, Range 1max 8.1 us91
Wakeup time needed to calculate the maximum USART/LPUART baudrate allowing to wake up from Stop mode tWUUSARTStop mode with main regulator in low-power mode, Range 2 or 3max 12 us91
Wakeup time needed to calculate the maximum USART/LPUART baudrate allowing to wake up from Stop mode tWUUSARTStop mode with main regulator in low-power mode, Range 1max 11.4 us91

Pins, by the datasheet

16
4 NRST
Reset pin. · p. 38
5 VDDA
Analog supply; must be the same voltage as VDD. · p. 38
6 PA0-CK_IN
GPIO, clock input, LPTIM1_IN1, TIM2_CH1/ETR, USART2_CTS, COMP1_OUT/INM6, ADC_IN0 or RTC_TAMP2/WKUP1. · p. 38
7 PA1
GPIO, EVENTOUT, LPTIM1_IN2, TIM2_CH2, I2C1_SMBA, USART2_RTS, TIM21_ETR, COMP1_INP or ADC_IN1. · p. 39
8 PA2
GPIO, TIM21_CH1, TIM2_CH3, USART2_TX, LPUART1_TX, COMP2_OUT/INM6, ADC_IN2 or RTC_TAMP3/RTC_TS/RTC_OUT/WKUP3. · p. 39
9 PA3
GPIO, TIM21_CH2, TIM2_CH4, USART2_RX, LPUART1_RX, COMP2_INP or ADC_IN3. · p. 39
10 PA4
GPIO, SPI1_NSS, LPTIM1_IN1, USART2_CK, TIM22_ETR, COMP1_INM4, COMP2_INM4 or ADC_IN4. · p. 39
11 PA5
GPIO, SPI1_SCK, LPTIM1_IN2, TIM2_ETR/CH1, COMP1_INM5, COMP2_INM5 or ADC_IN5. · p. 39
12 PA6
GPIO, SPI1_MISO, LPTIM1_ETR, LPUART1_CTS, TIM22_CH1, EVENTOUT, COMP1_OUT or ADC_IN6. · p. 39
13 PA7
GPIO, SPI1_MOSI, LPTIM1_OUT, USART2_CTS, TIM22_CH2, EVENTOUT, COMP2_OUT or ADC_IN7. · p. 40
14 PB1
GPIO, USART2_CK, SPI1_MOSI, LPUART1_RTS, TIM2_CH4, ADC_IN9 or VREF_OUT. · p. 40
15 VSS
Ground. · p. 40
16 VDD
Main supply. · p. 40
17 PA9
GPIO, MCO, I2C1_SCL, USART2_TX or TIM22_CH1. · p. 41
18 PA10
GPIO, I2C1_SDA, USART2_RX or TIM22_CH2. · p. 41
19 PA13
GPIO, SWDIO, LPTIM1_ETR or LPUART1_RX. · p. 41

Open-source boards using it

3
  • 2 layers100.5 × 79.9 mmArcane panelized, the printed circuit board in 3D

    Arcane panelized

    cloudglides/ara

    An easy-to-replicate watch built around the STM32.

    90 parts1
  • 2 layers86 × 54 mmBusiness card rev1, the printed circuit board in 3D

    Business card rev1

    ihsan-sa/Business-Card

    Electronic business card.

    37 parts
  • 2 layers110.3 × 33.1 mmArcane, the printed circuit board in 3D

    Arcane

    cloudglides/ara

    An easy-to-replicate watch built around the STM32.

    42 parts1

Parts like it

8

Questions

Is there a KiCad symbol and footprint for the STM32L031F6P6?

Yes. The symbol is MCU_ST_STM32L0:STM32L031F6Px and the footprint Package_SO:TSSOP-20_4.4x6.5mm_P0.65mm, both drawn on this page. PCBKit places them on a board for you when you design with it.

What package is the STM32L031F6P6?

TSSOP-20, with 20 pins. Its footprint is drawn on this page.

Where is the STM32L031F6P6 datasheet?

STMicroelectronics publishes it: the Datasheet link on this page opens it.

Where can I order the STM32L031F6P6?

JLCPCB lists it as part C115208, with 2,634 in stock; the sellers' links on this page open their listings.

What can replace the STM32L031F6P6?

Parts like it in the library: the STC8H1K08-36I-TSSOP20 by STC Micro, the STM32F030F4P6 by STMicroelectronics, the PY32F003F18P6TR by PUYA and the CH32V003F4P6 by WCH (Nanjing Qinheng Microelectronics). Check their datasheets: a part that fits the footprint may still differ in its ratings.

Which open-source boards use the STM32L031F6P6?

3 boards in 2 repositories on GitHub; the most starred are listed on this page, with their KiCad files.