
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
Footprint
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| Parameter | Conditions | As printed | Page |
|---|---|---|---|
| External main supply voltage (including VDDA, VDD) VDD–VSS | Absolute maximum | min -0.3 · max 4 V | 49 |
| Input voltage on TC pins VIN | Absolute maximum; minimum VSS − 0.3 V | max 4 V | 49 |
| Input voltage on any other pin VIN | Absolute maximum; minimum VSS − 0.3 V | max 4 V | 49 |
| Variations between different VDDx power pins |VDD| | max 50 mV | 49 | |
| Variations between any VDDx and VDDA power pins |VDDA-VDDx| | max 300 mV | 49 | |
| Variations between all different ground pins |VSS| | max 50 mV | 49 | |
| Total current into sum of all VDD power lines (source) ΣIVDD | Absolute maximum | max 105 mA | 50 |
| Total current out of sum of all VSS ground lines (sink) ΣIVSS | Absolute maximum | max 105 mA | 50 |
| Maximum current into each VDD power pin (source) IVDD(PIN) | Absolute maximum | max 100 mA | 50 |
| Maximum current out of each VSS ground pin (sink) IVSS(PIN) | Absolute maximum | max 100 mA | 50 |
| Output current sunk by any I/O and control pin except FTf pins IIO | Absolute maximum | max 16 mA | 50 |
| Output current sunk by FTf pins IIO | Absolute maximum | max 22 mA | 50 |
| Output current sourced by any I/O and control pin IIO | Absolute maximum | max -16 mA | 50 |
| Total output current sunk by sum of all IOs and control pins ΣIIO(PIN) | All part numbers except STM32L031GxUxS | max 90 mA | 50 |
| Total output current sourced by sum of all IOs and control pins ΣIIO(PIN) | All part numbers except STM32L031GxUxS | max -90 mA | 50 |
| Injected current on FT, FFf, RST and B pins IINJ(PIN) | Absolute maximum; printed limit -5/+0 | min -5 · max 0 mA | 50 |
| Injected current on TC pin IINJ(PIN) | Absolute maximum; ±5 | min -5 · max 5 mA | 50 |
| Total injected current (sum of all I/O and control pins) ΣIINJ(PIN) | Absolute maximum; ±25; absolute sum of positive and negative injected currents | min -25 · max 25 mA | 50 |
| Storage temperature range TSTG | Absolute maximum | min -65 · max 150 °C | 50 |
| Maximum junction temperature TJ | Absolute maximum | max 150 °C | 50 |
| Internal AHB clock frequency fHCLK | min 0 · max 32 MHz | 51 | |
| Internal APB1 clock frequency fPCLK1 | min 0 · max 32 MHz | 51 | |
| Internal APB2 clock frequency fPCLK2 | min 0 · max 32 MHz | 51 | |
| Standard operating voltage VDD | BOR detector disabled | min 1.65 · max 3.6 V | 51 |
| Standard operating voltage VDD | BOR detector enabled, at power on | min 1.8 · max 3.6 V | 51 |
| Standard operating voltage VDD | BOR detector disabled, after power on | min 1.65 · max 3.6 V | 51 |
| Analog operating voltage (all features) VDDA | Must be the same voltage as VDD | min 1.65 · max 3.6 V | 51 |
| Input voltage on FT, FTf and RST pins VIN | 2.0 V ≤ VDD ≤ 3.6 V | min -0.3 · max 5.5 V | 51 |
| Input voltage on FT, FTf and RST pins VIN | 1.65 V ≤ VDD ≤ 2.0 V | min -0.3 · max 5.2 V | 51 |
| Input voltage on BOOT0 pin VIN | min 0 · max 5.5 V | 51 | |
| Input voltage on TC pin VIN | Maximum VDD+0.3 V | min -0.3 V | 51 |
| Power dissipation at TA = 85 °C (range 6) or TA =105 °C (rage 7) PD | TSSOP20 package; range 6 | max 333 mW | 51 |
| Temperature range TA | Maximum power dissipation (range 6) | min -40 · max 85 °C | 52 |
| Junction temperature range (range 6) TJ | -40 °C ≤ TA ≤ 85 °C | min -40 · max 105 °C | 52 |
| VDD rise time rate tVDD | BOR detector enabled; maximum ∞ | min 0 us/V | 52 |
| VDD rise time rate tVDD | BOR detector disabled | min 0 · max 1000 us/V | 52 |
| VDD fall time rate tVDD | BOR detector enabled; maximum ∞ | min 20 us/V | 52 |
| VDD fall time rate tVDD | BOR detector disabled | min 0 · max 1000 us/V | 52 |
| Reset temporization TRSTTEMPO | VDD rising, BOR enabled | typ 2 · max 3.3 ms | 52 |
| Reset temporization TRSTTEMPO | VDD rising, BOR disabled; device option D | min 0.4 · typ 0.7 · max 1.6 ms | 52 |
| Power on/power down reset threshold VPOR/PDR | Falling edge | min 1 · typ 1.5 · max 1.65 V | 52 |
| Power on/power down reset threshold VPOR/PDR | Rising edge | min 1.3 · typ 1.5 · max 1.65 V | 52 |
| Brown-out reset threshold 0 VBOR0 | Falling edge | min 1.67 · typ 1.7 · max 1.74 V | 52 |
| Brown-out reset threshold 0 VBOR0 | Rising edge | min 1.69 · typ 1.76 · max 1.8 V | 52 |
| Brown-out reset threshold 1 VBOR1 | Falling edge | min 1.87 · typ 1.93 · max 1.97 V | 52 |
| Brown-out reset threshold 1 VBOR1 | Rising edge | min 1.96 · typ 2.03 · max 2.07 V | 52 |
| Brown-out reset threshold 2 VBOR2 | Falling edge | min 2.22 · typ 2.3 · max 2.35 V | 52 |
| Brown-out reset threshold 2 VBOR2 | Rising edge | min 2.31 · typ 2.41 · max 2.44 V | 52 |
| Brown-out reset threshold 3 VBOR3 | Falling edge | min 2.45 · typ 2.55 · max 2.6 V | 53 |
| Brown-out reset threshold 3 VBOR3 | Rising edge | min 2.54 · typ 2.66 · max 2.7 V | 53 |
| Brown-out reset threshold 4 VBOR4 | Falling edge | min 2.68 · typ 2.8 · max 2.85 V | 53 |
| Brown-out reset threshold 4 VBOR4 | Rising edge | min 2.78 · typ 2.9 · max 2.95 V | 53 |
| Programmable voltage detector threshold 0 VPVD0 | Falling edge | min 1.8 · typ 1.85 · max 1.88 V | 53 |
| Programmable voltage detector threshold 0 VPVD0 | Rising edge | min 1.88 · typ 1.94 · max 1.99 V | 53 |
| PVD threshold 1 VPVD1 | Falling edge | min 1.98 · typ 2.04 · max 2.09 V | 53 |
| PVD threshold 1 VPVD1 | Rising edge | min 2.08 · typ 2.14 · max 2.18 V | 53 |
| PVD threshold 2 VPVD2 | Falling edge | min 2.2 · typ 2.24 · max 2.28 V | 53 |
| PVD threshold 2 VPVD2 | Rising edge | min 2.28 · typ 2.34 · max 2.38 V | 53 |
| PVD threshold 3 VPVD3 | Falling edge | min 2.39 · typ 2.44 · max 2.48 V | 53 |
| PVD threshold 3 VPVD3 | Rising edge | min 2.47 · typ 2.54 · max 2.58 V | 53 |
| PVD threshold 4 VPVD4 | Falling edge | min 2.57 · typ 2.64 · max 2.69 V | 53 |
| PVD threshold 4 VPVD4 | Rising edge | min 2.68 · typ 2.74 · max 2.79 V | 53 |
| PVD threshold 5 VPVD5 | Falling edge | min 2.77 · typ 2.83 · max 2.88 V | 53 |
| PVD threshold 5 VPVD5 | Rising edge | min 2.87 · typ 2.94 · max 2.99 V | 53 |
| PVD threshold 6 VPVD6 | Falling edge | min 2.97 · typ 3.05 · max 3.09 V | 53 |
| PVD threshold 6 VPVD6 | Rising edge | min 3.08 · typ 3.15 · max 3.2 V | 53 |
| Hysteresis voltage Vhyst | BOR0 threshold | typ 40 mV | 53 |
| Hysteresis voltage Vhyst | All BOR and PVD thresholds excepting BOR0 | typ 100 mV | 53 |
| Internal reference voltage VREFINT out | −40 °C < TJ < +125 °C | min 1.202 · typ 1.224 · max 1.242 V | 54 |
| Internal reference startup time TVREFINT | typ 2 · max 3 ms | 54 | |
| VDDA voltage during VREFINT factory measure VVREF_MEAS | min 2.99 · typ 3 · max 3.01 V | 54 | |
| Accuracy of factory-measured VREFINT value AVREF_MEAS | Including uncertainties due to ADC and VDDA values; maximum ±5 mV | max 5 mV | 54 |
| Temperature coefficient TCoeff | −40 °C < TJ < +125 °C | typ 25 · max 100 ppm/°C | 54 |
| Long-term stability ACoeff | 1000 hours, T=25 °C | max 1000 ppm | 54 |
| Voltage coefficient VDDCoeff | 3.0 V < VDDA < 3.6 V | max 2000 ppm/V | 54 |
| ADC sampling time when reading the internal reference voltage TS_vrefint | min 5 · typ 10 us | 54 | |
| Startup time of reference voltage buffer for ADC TADC_BUF | max 10 us | 54 | |
| Consumption of reference voltage buffer for ADC IBUF_ADC | typ 13.5 · max 25 uA | 54 | |
| VREF_OUT output current IVREF_OUT | To guarantee less than 1% VREF_OUT deviation | max 1 uA | 54 |
| VREF_OUT output load CVREF_OUT | max 50 pF | 54 | |
| Consumption of reference voltage buffer for VREF_OUT and COMP ILPBUF | typ 730 · max 1200 nA | 54 | |
| 1/4 reference voltage VREFINT_DIV1 | min 24 · typ 25 · max 26 % VREFINT | 54 | |
| 1/2 reference voltage VREFINT_DIV2 | min 49 · typ 50 · max 51 % VREFINT | 54 | |
| 3/4 reference voltage VREFINT_DIV3 | min 74 · typ 75 · max 76 % VREFINT | 54 | |
| 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 MHz | typ 140 · max 200 uA | 56 |
| 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 MHz | typ 245 · max 310 uA | 56 |
| 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 MHz | typ 460 · max 540 uA | 56 |
| 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 MHz | typ 0.56 · max 0.63 mA | 56 |
| 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 MHz | typ 1.1 · max 1.2 mA | 56 |
| 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 MHz | typ 2.1 · max 2.3 mA | 56 |
| 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 MHz | typ 1.25 · max 1.4 mA | 56 |
| 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 MHz | typ 2.5 · max 2.7 mA | 56 |
| 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 MHz | typ 2.1 · max 2.4 mA | 56 |
| 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 MHz | typ 5.1 · max 5.7 mA | 56 |
| 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 kHz | typ 34.5 · max 110 uA | 56 |
| 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 kHz | typ 86 · max 150 uA | 56 |
| 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 MHz | typ 505 · max 570 uA | 56 |
| 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; Dhrystone | typ 460 uA | 56 |
| 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; CoreMark | typ 455 uA | 56 |
| 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; Fibonacci | typ 330 uA | 56 |
| 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 uA | 56 |
| 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 OFF | typ 320 uA | 56 |
| 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; CoreMark | typ 5.15 mA | 56 |
| 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; Fibonacci | typ 5 mA | 56 |
| 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 mA | 56 |
| 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 OFF | typ 3.85 mA | 56 |
| Supply current in Stop mode IDD (Stop) | TA = -40°C to 25°C | typ 0.38 · max 0.99 uA | 62 |
| Supply current in Stop mode IDD (Stop) | TA = 55°C | typ 0.54 · max 1.9 uA | 62 |
| Supply current in Stop mode IDD (Stop) | TA = 85°C | typ 1.35 · max 4.2 uA | 62 |
| Supply current in Stop mode IDD (Stop) | TA = 105°C | typ 3.1 · max 9 uA | 62 |
| Supply current in Stop mode IDD (Stop) | TA = 125°C | typ 7.55 · max 19 uA | 62 |
| Supply current in Standby mode IDD (Standby) | Independent watchdog and LSI enabled; TA = -40 °C to 25 °C | typ 0.8 · max 1.6 uA | 63 |
| Supply current in Standby mode IDD (Standby) | Independent watchdog and LSI enabled; TA = 55 °C | typ 0.9 · max 1.8 uA | 63 |
| Supply current in Standby mode IDD (Standby) | Independent watchdog and LSI enabled; TA = 85 °C | typ 1 · max 2 uA | 63 |
| Supply current in Standby mode IDD (Standby) | Independent watchdog and LSI enabled; TA = 105 °C | typ 1.3 · max 3 uA | 63 |
| Supply current in Standby mode IDD (Standby) | Independent watchdog and LSI enabled; TA = 125 °C | typ 2.15 · max 7 uA | 63 |
| Supply current in Standby mode IDD (Standby) | Independent watchdog and LSI off; TA = -40 °C to 25 °C | typ 0.255 · max 0.6 uA | 63 |
| Supply current in Standby mode IDD (Standby) | Independent watchdog and LSI off; TA = 55 °C | typ 0.28 · max 0.7 uA | 63 |
| Supply current in Standby mode IDD (Standby) | Independent watchdog and LSI off; TA = 85 °C | typ 0.405 · max 1 uA | 63 |
| Supply current in Standby mode IDD (Standby) | Independent watchdog and LSI off; TA = 105 °C | typ 0.7 · max 1.7 uA | 63 |
| Supply current in Standby mode IDD (Standby) | Independent watchdog and LSI off; TA = 125 °C | typ 1.55 · max 5 uA | 63 |
| Supply current during wakeup from Stop mode IDD (WU from Stop) | HSI; average current | typ 1 mA | 63 |
| Supply current during wakeup from Stop mode IDD (WU from Stop) | HSI/4; average current | typ 0.7 mA | 63 |
| Supply current during wakeup from Stop mode IDD (WU from Stop) | MSI 4,2 MHz; average current | typ 0.7 mA | 63 |
| Supply current during wakeup from Stop mode IDD (WU from Stop) | MSI 1,05 MHz; average current | typ 0.4 mA | 63 |
| Supply current during wakeup from Stop mode IDD (WU from Stop) | MSI 65 KHz; average current | typ 0.1 mA | 63 |
| Reset pin pulled down IDD (Reset) | Average current | typ 0.21 mA | 63 |
| BOR on IDD (Power Up) | Average current | typ 0.23 mA | 63 |
| With Fast wakeup set IDD (WU from StandBy) | MSI 2,1 MHz; average current | typ 0.5 mA | 63 |
| With Fast wakeup disabled IDD (WU from StandBy) | MSI 2,1 MHz; average current | typ 0.12 mA | 63 |
| Electrostatic discharge voltage (human body model) VESD(HBM) | TA = +25 °C; ANSI/JEDEC JS-001; class 2 | max 2000 V | 77 |
| Electrostatic discharge voltage (charge device model) VESD(CDM) | TA = +25 °C; ANSI/ESD STM5.3.1.; class C4 | max 500 V | 77 |
| Thermal resistance junction-ambient JA | TSSOP20 - 169 mils; table value | typ 60 °C/W | 112 |
| LSE oscillator frequency fLSE | typ 32.768 kHz | 70 | |
| Maximum critical crystal transconductance Gm | LSEDRV[1:0]=00, lower driving capability | max 0.5 uA/V | 70 |
| Maximum critical crystal transconductance Gm | LSEDRV[1:0]= 01, medium low driving capability | max 0.75 uA/V | 70 |
| Maximum critical crystal transconductance Gm | LSEDRV[1:0] = 10, medium high driving capability | max 1.7 uA/V | 70 |
| Maximum critical crystal transconductance Gm | LSEDRV[1:0]=11, higher driving capability | max 2.7 uA/V | 70 |
| Startup time tSU(LSE) | VDD is stabilized | typ 2 s | 70 |
| LSI frequency fLSI | min 26 · typ 38 · max 56 kHz | 72 | |
| LSI oscillator frequency drift DLSI | 0°C ≤ TA ≤ 85°C; deviation for an individual part after measuring initial frequency | min -10 · max 4 % | 72 |
| LSI oscillator startup time tsu(LSI) | max 200 us | 72 | |
| LSI oscillator power consumption IDD(LSI) | typ 400 · max 510 nA | 72 | |
| Frequency after factory calibration, done at VDD= 3.3 V and TA = 25 °C fMSI | MSI range 0 | typ 65.5 kHz | 72 |
| Frequency after factory calibration, done at VDD= 3.3 V and TA = 25 °C fMSI | MSI range 1 | typ 131 kHz | 72 |
| Frequency after factory calibration, done at VDD= 3.3 V and TA = 25 °C fMSI | MSI range 2 | typ 262 kHz | 72 |
| Frequency after factory calibration, done at VDD= 3.3 V and TA = 25 °C fMSI | MSI range 3 | typ 524 kHz | 72 |
| Frequency after factory calibration, done at VDD= 3.3 V and TA = 25 °C fMSI | MSI range 4 | typ 1.05 MHz | 72 |
| Frequency after factory calibration, done at VDD= 3.3 V and TA = 25 °C fMSI | MSI range 5 | typ 2.1 MHz | 72 |
| Frequency after factory calibration, done at VDD= 3.3 V and TA = 25 °C fMSI | MSI range 6 | typ 4.2 MHz | 72 |
| MSI oscillator frequency drift DVOLT(MSI) | 1.65 V ≤ VDD ≤ 3.6 V, TA = 25 °C | max 2.5 %/V | 72 |
| MSI oscillator power consumption IDD(MSI) | MSI range 0 | typ 0.75 uA | 72 |
| MSI oscillator power consumption IDD(MSI) | MSI range 1 | typ 1 uA | 72 |
| MSI oscillator power consumption IDD(MSI) | MSI range 2 | typ 1.5 uA | 72 |
| MSI oscillator power consumption IDD(MSI) | MSI range 3 | typ 2.5 uA | 72 |
| MSI oscillator power consumption IDD(MSI) | MSI range 4 | typ 4.5 uA | 72 |
| MSI oscillator power consumption IDD(MSI) | MSI range 5 | typ 8 uA | 72 |
| MSI oscillator power consumption IDD(MSI) | MSI range 6 | typ 15 uA | 72 |
| PLL output clock fPLL_OUT | min 2 · max 32 MHz | 74 | |
| Current consumption on VDDA IDDA(PLL) | typ 220 · max 450 uA | 74 | |
| Current consumption on VDD IDD(PLL) | typ 120 · max 150 uA | 74 | |
| Data retention mode VRM | STOP mode (or RESET) | min 1.65 V | 74 |
| Operating voltage Read / Write / Erase VDD | min 1.65 · max 3.6 V | 74 | |
| Programming time for word or half-page tprog | Erasing | typ 3.28 · max 3.94 ms | 74 |
| Average current during the whole programming / erase operation IDD | TA = 25 °C, VDD = 3.6 V | typ 500 · max 700 uA | 74 |
| Maximum current (peak) during the whole programming / erase operation IDD | TA = 25 °C, VDD = 3.6 V | typ 1.5 · max 2.5 mA | 74 |
| Electrostatic discharge voltage (human body model) VESD(HBM) | TA = +25 °C, conforming to ANSI/JEDEC JS-001; Class 2 | max 2000 V | 77 |
| Electrostatic discharge voltage (charge device model) VESD(CDM) | TA = +25 °C, conforming to ANSI/ESD STM5.3.1.; Class C4 | max 500 V | 77 |
| Output low level voltage for an I/O pin VOL | CMOS port, IIO = +8 mA, 2.7 V ≤ VDD ≤ 3.6 V | max 0.4 V | 81 |
| Output low level voltage for an I/O pin VOL | TTL port, IIO =+ 8 mA, 2.7 V ≤ VDD ≤ 3.6 V | max 0.4 V | 81 |
| Output high level voltage for an I/O pin VOH | TTL port, IIO = -6 mA, 2.7 V ≤ VDD ≤ 3.6 V | min 2.4 V | 81 |
| Output low level voltage for an I/O pin VOL | IIO = +15 mA, 2.7 V ≤ VDD ≤ 3.6 V | max 1.3 V | 81 |
| Output low level voltage for an I/O pin VOL | IIO = +4 mA, 1.65 V ≤ VDD < 3.6 V | max 0.45 V | 81 |
| Output low level voltage for an FTf I/O pin in Fm+ mode VOLFM+ | IIO = 20 mA, 2.7 V ≤ VDD ≤ 3.6 V | max 0.4 V | 81 |
| Output low level voltage for an FTf I/O pin in Fm+ mode VOLFM+ | IIO = 10 mA, 1.65 V ≤ VDD ≤ 3.6 V | max 0.4 V | 81 |
| Maximum frequency fmax(IO)out | OSPEEDRx[1:0] = 00; CL = 50 pF, VDD = 2.7 V to 3.6 V | max 400 kHz | 82 |
| Maximum frequency fmax(IO)out | OSPEEDRx[1:0] = 00; CL = 50 pF, VDD = 1.65 V to 2.7 V | max 100 kHz | 82 |
| Output rise and fall time tf(IO)out, tr(IO)out | OSPEEDRx[1:0] = 00; CL = 50 pF, VDD = 2.7 V to 3.6 V | max 125 ns | 82 |
| Output rise and fall time tf(IO)out, tr(IO)out | OSPEEDRx[1:0] = 00; CL = 50 pF, VDD = 1.65 V to 2.7 V | max 320 ns | 82 |
| Maximum frequency fmax(IO)out | OSPEEDRx[1:0] = 01; CL = 50 pF, VDD = 2.7 V to 3.6 V | max 2 MHz | 82 |
| Maximum frequency fmax(IO)out | OSPEEDRx[1:0] = 01; CL = 50 pF, VDD = 1.65 V to 2.7 V | max 0.6 MHz | 82 |
| Output rise and fall time tf(IO)out, tr(IO)out | OSPEEDRx[1:0] = 01; CL = 50 pF, VDD = 2.7 V to 3.6 V | max 30 ns | 82 |
| Output rise and fall time tf(IO)out, tr(IO)out | OSPEEDRx[1:0] = 01; CL = 50 pF, VDD = 1.65 V to 2.7 V | max 65 ns | 82 |
| Maximum frequency Fmax(IO)out | OSPEEDRx[1:0] = 10; CL = 50 pF, VDD = 2.7 V to 3.6 V | max 10 MHz | 82 |
| Maximum frequency Fmax(IO)out | OSPEEDRx[1:0] = 10; CL = 50 pF, VDD = 1.65 V to 2.7 V | max 2 MHz | 82 |
| Output rise and fall time tf(IO)out, tr(IO)out | OSPEEDRx[1:0] = 10; CL = 50 pF, VDD = 2.7 V to 3.6 V | max 13 ns | 82 |
| Output rise and fall time tf(IO)out, tr(IO)out | OSPEEDRx[1:0] = 10; CL = 50 pF, VDD = 1.65 V to 2.7 V | max 28 ns | 82 |
| Maximum frequency Fmax(IO)out | OSPEEDRx[1:0] = 11; CL = 30 pF, VDD = 2.7 V to 3.6 V | max 35 MHz | 82 |
| Maximum frequency Fmax(IO)out | OSPEEDRx[1:0] = 11; CL = 50 pF, VDD = 1.65 V to 2.7 V | max 10 MHz | 82 |
| Output rise and fall time tf(IO)out, tr(IO)out | OSPEEDRx[1:0] = 11; CL = 30 pF, VDD = 2.7 V to 3.6 V | max 6 ns | 82 |
| Output rise and fall time tf(IO)out, tr(IO)out | OSPEEDRx[1:0] = 11; CL = 50 pF, VDD = 1.65 V to 2.7 V | max 17 ns | 82 |
| Maximum frequency fmax(IO)out | Fm+ configuration; CL = 50 pF, VDD = 2.5 V to 3.6 V | max 1 MHz | 82 |
| Output fall time tf(IO)out | Fm+ configuration; CL = 50 pF, VDD = 2.5 V to 3.6 V | max 10 ns | 82 |
| Output rise time tr(IO)out | Fm+ configuration; CL = 50 pF, VDD = 2.5 V to 3.6 V | max 30 ns | 82 |
| Maximum frequency fmax(IO)out | Fm+ configuration; CL = 50 pF, VDD = 1.65 V to 3.6 V | max 350 KHz | 82 |
| Output fall time tf(IO)out | Fm+ configuration; CL = 50 pF, VDD = 1.65 V to 3.6 V | max 15 ns | 82 |
| Output rise time tr(IO)out | Fm+ configuration; CL = 50 pF, VDD = 1.65 V to 3.6 V | max 60 ns | 82 |
| Pulse width of external signals detected by the EXTI controller tEXTIpw | min 8 ns | 82 | |
| Analog supply voltage for ADC on VDDA | Fast channel | min 1.65 · max 3.6 V | 84 |
| Analog supply voltage for ADC on VDDA | Standard channel; minimum can be decreased in specific temperature conditions, see Table 58 | min 1.75 · max 3.6 V | 84 |
| Current consumption of the ADC on VDDA IDDA (ADC) | 1.14 Msps | typ 200 uA | 84 |
| Current consumption of the ADC on VDDA IDDA (ADC) | 10 ksps | typ 40 uA | 84 |
| Current consumption of the ADC on VDD IDDA (ADC) | 1.14 Msps; add current proportional to APB clock frequency, see Table 34 | typ 70 uA | 84 |
| Current consumption of the ADC on VDD IDDA (ADC) | 10 ksps; add current proportional to APB clock frequency, see Table 34 | typ 1 uA | 84 |
| ADC clock frequency fADC | Voltage scaling Range 1 | min 0.14 · max 16 MHz | 84 |
| ADC clock frequency fADC | Voltage scaling Range 2 | min 0.14 · max 8 MHz | 84 |
| ADC clock frequency fADC | Voltage scaling Range 3 | min 0.14 · max 4 MHz | 84 |
| Sampling rate fS | min 0.05 · max 1.14 MHz | 84 | |
| External trigger frequency fTRIG | fADC = 16 MHz | max 941 kHz | 84 |
| External trigger frequency fTRIG | max 17 1/fADC | 84 | |
| Conversion voltage range VAIN | min 0 V | 84 | |
| External input impedance RAIN | See Equation 1 and Table 58 for details | max 50 k | 84 |
| Sampling switch resistance RADC | Standard channels have an extra protection resistance depending on supply voltage, see Table 58 | max 1 k | 84 |
| Internal sample and hold capacitor CADC | max 8 pF | 84 | |
| Calibration time tCAL | fADC = 16 MHz | typ 5.2 us | 85 |
| Calibration time tCAL | typ 83 1/fADC | 85 | |
| ADC_DR register write latency WLATENCY | ADC clock = PCLK/2 | typ 4.5 fPCLK cycle | 85 |
| ADC_DR register write latency WLATENCY | ADC clock = PCLK/4 | typ 8.5 fPCLK cycle | 85 |
| Trigger conversion latency tlatr | fADC = fPCLK/2 = 16 MHz | typ 0.266 us | 85 |
| Trigger conversion latency tlatr | fADC = fPCLK/2 | typ 8.5 1/fPCLK | 85 |
| Trigger conversion latency tlatr | fADC = fPCLK/4 = 8 MHz | typ 0.516 us | 85 |
| Trigger conversion latency tlatr | fADC = fPCLK/4 | typ 16.5 1/fPCLK | 85 |
| ADC jitter on trigger conversion JitterADC | fADC = fHSI16 = 16 MHz | min 0.252 · max 0.26 us | 85 |
| ADC jitter on trigger conversion JitterADC | fADC = fHSI16 | typ 1 1/fHSI16 | 85 |
| Sampling time tS | fADC = 16 MHz | min 0.093 · max 10.03 us | 85 |
| Sampling time tS | min 1.5 · max 239.5 1/fADC | 85 | |
| Power-up time tSTAB | min 0 · typ 0 · max 1 us | 85 | |
| Total conversion time (including sampling time) tConV | fADC = 16 MHz | min 0.875 · max 10.81 us | 85 |
| Total conversion time (including sampling time) tConV | tS for sampling +12.5 for successive approximation | min 14 · max 173 1/fADC | 85 |
| Average slope Avg_Slope | min 1.48 · typ 1.61 · max 1.75 mV/°C | 88 | |
| Voltage at 130°C ±5°C V130 | VDD = 3 V ±10 mV; conversion result stored in TS_CAL2 byte | min 640 · typ 670 · max 700 mV | 88 |
| Current consumption IDDA(TEMP) | typ 3.4 · max 6 uA | 88 | |
| Startup time tSTART | max 10 us | 88 | |
| ADC sampling time when reading the temperature TS_temp | min 10 us | 88 | |
| Analog supply voltage VDDA | min 1.65 · max 3.6 V | 88 | |
| R400K value R400K | typ 400 k | 88 | |
| R10K value R10K | typ 10 k | 88 | |
| Comparator 1 input voltage range VIN | min 0.6 V | 88 | |
| Comparator startup time tSTART | typ 7 · max 10 us | 88 | |
| Propagation delay td | 100 mV input step with 10 mV overdrive on inverting input; non-inverting input set to reference | typ 3 · max 10 us | 88 |
| Comparator offset variation in worst voltage stress conditions dVoffset/dt | VDDA = 3.6 V; VIN+ = 0 V; VIN- = VREFINT; TA = 25 °C | min 0 · typ 1.5 · max 10 mV/1000 h | 88 |
| Current consumption ICOMP1 | Comparator consumption only; internal reference voltage not included | typ 160 · max 260 nA | 88 |
| Wakeup time needed to calculate the maximum USART/LPUART baudrate allowing to wake up from Stop mode tWUUSART | Stop mode with main regulator in Run mode, Range 2 or 3 | max 8.7 us | 91 |
| Wakeup time needed to calculate the maximum USART/LPUART baudrate allowing to wake up from Stop mode tWUUSART | Stop mode with main regulator in Run mode, Range 1 | max 8.1 us | 91 |
| Wakeup time needed to calculate the maximum USART/LPUART baudrate allowing to wake up from Stop mode tWUUSART | Stop mode with main regulator in low-power mode, Range 2 or 3 | max 12 us | 91 |
| Wakeup time needed to calculate the maximum USART/LPUART baudrate allowing to wake up from Stop mode tWUUSART | Stop mode with main regulator in low-power mode, Range 1 | max 11.4 us | 91 |
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 mm

- 2 layers86 × 54 mm

- 2 layers110.3 × 33.1 mm

Parts like it
8STC8H1K08-36I-TSSOP20
TSSOP-201.9V~5.5V 10bit 17 51 Family 8KB FLASH TSSOP-20 Microcontrollers (MCU/MPU/SOC) ROHSSTC MicroMicrocontrollers (MCU/MPU/SOC)STM32F030F4P6
TSSOP-20-40℃~+85℃ 12bit 15 16KB 2.4V~3.6V 32 Bit 48MHz 4KB ARM Cortex-M0 Built-in FLASH TSSOP-20 Microcontrollers (MCU/MPU/SOC) ROHSSTMicroelectronicsMicrocontrollers (MCU/MPU/SOC)PY32F003F18P6TR
TSSOP-20TSSOP-20 Microcontrollers (MCU/MPU/SOC) ROHSPUYAMicrocontrollers (MCU/MPU/SOC)CH32V003F4P6
TSSOP-20-175milTSSOP-20-175mil Microcontrollers (MCU/MPU/SOC) ROHSWCH (Nanjing Qinheng Microelectronics)Microcontrollers (MCU/MPU/SOC)STM32G030F6P6
TSSOP-20-40℃~+85℃ 12bit 17 2V~3.6V 32 Bit 32KB 64MHz 8KB ARM Cortex-M0+ Built-in+External FLASH TSSOP-20 Microcontrollers (MCU/MPU/SOC) ROHSSTMicroelectronicsMicrocontrollers (MCU/MPU/SOC)PY32F003F18P6TU
TSSOP-20TSSOP-20 Microcontrollers (MCU/MPU/SOC) ROHSPUYAMicrocontrollers (MCU/MPU/SOC)STM32F042F4P6
TSSOP-20(4.4x6.4)-40℃~+85℃ 1.65V~3.6V 12bit 16 16KB 32 Bit 48MHz 6KB ARM Cortex-M0 Built-in FLASH TSSOP-20 Microcontrollers (MCU/MPU/SOC) ROHSSTMicroelectronicsMicrocontrollers (MCU/MPU/SOC)STM32L010F4P6
TSSOP-20-169mil-40℃~+85℃ 1.8V~3.6V 128Byte 12bit 16 16KB 2KB 32 Bit 32MHz ARM Cortex-M0+ Built-in FLASH TSSOP-20 Microcontrollers (MCU/MPU/SOC) ROHSSTMicroelectronicsMicrocontrollers (MCU/MPU/SOC)
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.