STM32L151QC
Microcontroller (MCU)The STM32L151QC is a microcontroller (mcu) from STMicroelectronics. View the full STM32L151QC datasheet below including key specifications, electrical characteristics, absolute maximum ratings.
Official STM32L151QC datasheet (PDF) — the source this page was extracted from.
Manufacturer
STMicroelectronicsCategory
Microcontrollers (MCU)STM32L151QC Key Specifications
| Parameter | Value |
|---|---|
| Maximum CPU clock frequency | 32 MHz (1.25 DMIPS/MHz) |
| Standby mode current | 305 nA (3 wakeup pins) |
| Standby mode + RTC current | 1.15 μA |
| Stop mode current | 0.475 μA (16 wakeup lines) |
| Stop mode + RTC current | 1.35 μA |
| Low-power run mode current | 11 μA |
| Dynamic run mode current | 230 μA/MHz |
| Wakeup time from low-power mode | 8 μs |
| ADC performance | 12-bit ADC, up to 1 Msps and 40 channels |
STM32L151QC Overview
Part: STM32L151xC/C-A, STM32L152xC/C-A
Type: 32-bit ARM Cortex-M3 Ultra-Low-Power Microcontroller
Description: Ultra-low-power 32-bit ARM Cortex-M3 MCU operating up to 32 MHz with 256 KB Flash, 32 KB SRAM, 8 KB EEPROM, USB, LCD driver, and advanced analog peripherals.
Operating Conditions:
- Supply voltage: 1.65 to 3.6 V (BOR disabled), 1.8 to 3.6 V (BOR enabled)
- Operating temperature: -40 to 85 °C (suffix 6) / -40 to 105 °C (suffix 7)
- Maximum CPU frequency: 32 MHz
Absolute Maximum Ratings:
- Max supply voltage: 4.0 V (VDD - VSS)
- Max continuous current: 100 mA (total current into sum of all VDD_x lines)
- Max junction/storage temperature: -65 to +150 °C (storage), 150 °C (junction)
Key Specs:
- Maximum CPU clock frequency: 32 MHz (1.25 DMIPS/MHz)
- Standby mode current: 305 nA (3 wakeup pins)
- Standby mode + RTC current: 1.15 μA
- Stop mode current: 0.475 μA (16 wakeup lines)
- Stop mode + RTC current: 1.35 μA
- Low-power run mode current: 11 μA
- Dynamic run mode current: 230 μA/MHz
- Wakeup time from low-power mode: 8 μs
- ADC performance: 12-bit ADC, up to 1 Msps and 40 channels
Features:
- Ultra-low-power ARM Cortex-M3 CPU core with MPU
- 256 KB Flash with ECC, 32 KB RAM, and 8 KB true EEPROM with ECC
- LCD driver up to 8x40 segments with step-up converter (STM32L152x)
- Rich analog: 12-bit ADC 1 Msps, 2x 12-bit DACs, 2x operational amplifiers, 2x comparators
- Communication interfaces: USB 2.0 full-speed, 3x USARTs, up to 8x SPIs (2x I2S), 2x I2C (SMBus/PMBus)
- 11x timers including 1x 32-bit timer, 6x 16-bit timers, basic timers, and 2x watchdogs
- Up to 116 fast I/Os (102 five-volt tolerant), up to 23 capacitive sensing channels
- Reset and supply management: ultrasafe BOR with 5 selectable thresholds, POR/PDR, PVD
Applications:
- Medical and handheld equipment
- Application control and user interface
- PC peripherals, gaming, GPS and sport equipment
- Alarm systems, wired and wireless sensors, video intercom
- Utility metering
Package:
- LQFP64 (10 × 10 mm)
- WLCSP64 (0.4 mm pitch)
- LQFP100 (14 × 14 mm)
- UFBGA132 (7 × 7 mm)
- LQFP144 (20 × 20 mm)
STM32L151QC Features
- Ultra-low-power platform
- -1.65 V to 3.6 V power supply
- --40°C to 105°C temperature range
- -305 nA standby mode (3 wakeup pins)
- -1.15 μA standby mode + RTC
- -0.475 μA stop mode (16 wakeup lines)
- -1.35 μA stop mode + RTC
- -11 μA Low-power run mode
- -230 μA/MHz run mode
- -10 nA ultra-low I/O leakage
- -8 μs wakeup time
- Core: Arm ® Cortex ® -M3 32-bit CPU
- -From 32 kHz up to 32 MHz max
- -1.25 DMIPS/MHz (Dhrystone 2.1)
- -Memory protection unit
- Up to 23 capacitive sensing channels
- CRC calculation unit, 96-bit unique ID
- Reset and supply management
- -Low-power, ultrasafe BOR (brownout reset) with 5 selectable thresholds
- -Ultra-low-power POR/PDR
- -Programmable voltage detector (PVD)
- Clock sources
- -1 to 24 MHz crystal oscillator
- -32 kHz oscillator for RTC with calibration
- -High Speed Internal 16 MHz factorytrimmed RC (+/- 1%)
- -Internal low-power 37 kHz RC
- -Internal multispeed low-power 65 kHz to 4.2 MHz
- -PLL for CPU clock and USB (48 MHz)
- Pre-programmed bootloader
- -USB and USART supported
- Serial wire debug, JTAG and trace
Table 1. Device summary
| Reference | Part numbers |
|---|---|
| STM32L151QC STM32L151RC-A STM32L151VC-A STM32L151ZC STM32L152QC STM32L152RC-A STM32L152VC-A STM32L152ZC | STM32L151QCH6 STM32L151RCT6A, STM32L151RCY6 STM32L151VCT6A STM32L151ZCT6 STM32L152QCH6 STM32L152RCT6A STM32L152VCT6A STM32L152ZCT6 |
Table 1. Device summary
STM32L151QC Pin Configuration
Figure 3. STM32L15xRC-A LQFP64 pinout
Figure 4. STM32L15xRC WLCSP64 ballout
- This figure shows the package top view.
54
Figure 5. STM32L15xVC-A LQFP100 pinout
Figure 6. STM32L15xQC UFBGA132 ballout
- This figure shows the package top view.
54
Figure 7. STM32L15xZC LQFP144 pinout
Table 7. Legend/abbreviations used in the pinout table
| Name | Name | Abbreviation | Definition |
|---|---|---|---|
| Pin name | Pin name | Unless otherwise specified in brackets below the pin name, the pin function during and after reset is the same as the actual pin name | Unless otherwise specified in brackets below the pin name, the pin function during and after reset is the same as the actual pin name |
| S | Supply pin | ||
| Pin I/O structure | type | I I/O FT TC B RST | Input only pin Input / output pin 5 V tolerant I/O Standard 3.3 V I/O Dedicated BOOT0 pin |
| Notes | Notes | Unless otherwise specified and after reset | Bidirectional reset pin with embedded weak pull-up resistor by a note, all I/Os are set as floating inputs during |
| Pin functions | Alternate functions Functions selected through Additional | Functions directly selected/enabled through peripheral registers | Functions directly selected/enabled through peripheral registers |
Table 8. STM32L151xC/C-A and STM32L152xC/C-A pin definitions
| Pins - LQFP144 | Pins - UFBGA132 | Pins - LQFP100 | Pins - LQFP64 | Pins - WLCSP64 | Pin name | Pin Type (1) | I / O structure | Main function (2) (after reset) | Pin functions - Alternate functions | Pin functions - Additional functions |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | B2 | 1 | - | - | PE2 | I/O | FT | PE2 | TIM3_ETR/LCD_SEG38/ TRACECLK | - |
| 2 | A1 | 2 | - | - | PE3 | I/O | FT | PE3 | TIM3_CH1/LCD_SEG39/ TRACED0 | - |
| 3 | B1 | 3 | - | - | PE4 | I/O | FT | PE4 | TIM3_CH2/TRACED1 | - |
| 4 | C2 | 4 | - | - | PE5 | I/O | FT | PE5 | TIM9_CH1/TRACED2 | - |
| 5 | D2 | 5 | - | - | PE6- WKUP3 | I/O | FT | PE6 | TIM9_CH2/TRACED3 | WKUP3/ RTC_TAMP3 |
| 6 | E2 | 6 | 1 | C6 | V LCD (3) | S | - | V LCD | - | - |
Table 8. STM32L151xC/C-A and STM32L152xC/C-A pin definitions
54
| Pins - LQFP144 | Pins - UFBGA132 | Pins - LQFP100 | Pins - LQFP64 | Pins - WLCSP64 | Pin name | Pin Type (1) | I / O structure | Main function (2) (after reset) | Pin functions - Alternate functions | Pin functions - Additional functions |
|---|---|---|---|---|---|---|---|---|---|---|
| 7 | C1 | 7 | 2 | C8 | PC13- WKUP2 | I/O | FT | PC13 | - | WKUP2/ RTC_TAMP1/ RTC_TS/ RTC_OUT |
| 8 | D1 | 8 | 3 | B8 | PC14- OSC32_IN (4) | I/O | TC | PC14 | - | OSC32_IN |
| 9 | E1 | 9 | 4 | B7 | PC15- OSC32_OUT | I/O | TC | PC15 | - | OSC32_OUT |
| 10 | D6 | - | - | - | PF0 | I/O | FT | PF0 | - | - |
| 11 | D5 | - | - | - | PF1 | I/O | FT | PF1 | - | - |
| 12 | D4 | - | - | - | PF2 | I/O | FT | PF2 | - | - |
| 13 | E4 | - | - | - | PF3 | I/O | FT | PF3 | - | - |
| 14 | F3 | - | - | - | PF4 | I/O | FT | PF4 | - | - |
| 15 | F4 | - | - | - | PF5 | I/O | FT | PF5 | - | - |
| 16 | F2 | 10 | - | - | V SS_5 | S | - | V SS_5 | - | - |
| 17 | G2 | 11 | - | - | V DD_5 | S | - | V DD_5 | - | - |
| 18 | G3 | - | - | - | PF6 | I/O | FT | PF6 | TIM5_CH1/TIM5_ETR | ADC_IN27 |
| 19 | G4 | - | - | - | PF7 | I/O | FT | PF7 | TIM5_CH2 | ADC_IN28/ COMP1_INP |
| 20 | H4 | - | - | - | PF8 | I/O | FT | PF8 | TIM5_CH3 | ADC_IN29/ COMP1_INP |
| 21 | J6 | - | - | - | PF9 | I/O | FT | PF9 | TIM5_CH4 | ADC_IN30/ COMP1_INP |
| 22 | - | - | - | - | PF10 | I/O | FT | PF10 | - | ADC_IN31/ COMP1_INP |
| 23 | F1 | 12 | 5 | D8 | PH0- OSC_IN (5) | I/O | TC | PH0 | - | OSC_IN |
| 24 | G1 | 13 | 6 | D7 | PH1- OSC_OUT (5) | I/O | TC | PH1 | - | OSC_OUT |
| 25 | H2 | 14 | 7 | C7 | NRST | I/O | RST | NRST | - | - |
| 26 | H1 | 15 | 8 | E8 | PC0 | I/O | FT | PC0 | LCD_SEG18 | ADC_IN10/ COMP1_INP |
| Pins - LQFP144 | Pins - UFBGA132 | Pins - LQFP100 | Pins - LQFP64 | Pins - WLCSP64 | Pin name | Pin Type (1) | I / O structure | Main function (2) (after reset) | Pin functions - Alternate functions | Pin functions - Additional functions |
| 27 | J2 | 16 | 9 | F8 | PC1 | I/O | FT | PC1 | LCD_SEG19 | ADC_IN11/ COMP1_INP |
| 28 | - | 17 | 10 | D6 | PC2 | I/O | FT | PC2 | LCD_SEG20 | ADC_IN12/ COMP1_INP |
| - | J3 | - | - | - | PC2 | I/O | FT | PC2 | LCD_SEG20 | ADC_IN12/ COMP1_INP |
| - | K1 | - | - | - | I | - | - | - | ||
| 29 | K2 | 18 | 11 | F7 | PC3 | I/O | TC | PC3 | LCD_SEG21 | ADC_IN13/ COMP1_INP/ |
| 30 | J1 | 19 | 12 | E7 | V SSA | S | - | V SSA | - | - |
| 31 | - | 20 | - | - | V REF- | S | - | V REF- | - | - |
| 32 | L1 | 21 | - | - | V REF+ | S | - | V REF+ | - | - |
| 33 | M1 | 22 | 13 | G8 | V DDA | S | - | V DDA | - | - |
| 34 | L2 | 23 | 14 | F6 | PA0-WKUP1 | I/O | FT | PA0 | TIM2_CH1_ETR/ TIM5_CH1/ USART2_CTS | WKUP1/ RTC_TAMP2/ ADC_IN0/ COMP1_INP |
| 35 | M2 | 24 | 15 | E6 | PA1 | I/O | FT | PA1 | TIM2_CH2/TIM5_CH2/ USART2_RTS/ LCD_SEG0 | ADC_IN1/ COMP1_INP/ OPAMP1_VINP |
| 36 | - | 25 | 16 | H8 | PA2 | I/O | FT | PA2 | TIM2_CH3/TIM5_CH3/ TIM9_CH1/ USART2_TX/LCD_SEG1 | ADC_IN2/ COMP1_INP/ OPAMP1_VINM |
| - | K3 | - | - | - | PA2 | I/O | FT | PA2 | TIM2_CH3/TIM5_CH3/ TIM9_CH1/ USART2_TX/LCD_SEG1 | ADC_IN2/ COMP1_INP |
| - | M3 | - | - | - | OPAMP1_VI NM | I | TC | OPAMP1_ VINM | - | - |
| 37 | L3 | 26 | 17 | G7 | PA3 | I/O | TC | PA3 | TIM2_CH4/TIM5_CH4/ TIM9_CH2/ USART2_RX/LCD_SEG2 | ADC_IN3/ COMP1_INP/ OPAMP1_VOUT |
| 38 | - | 27 | 18 | F5 | V SS_4 | S | - | V SS_4 | - | - |
54
| Pins - LQFP144 | Pins - UFBGA132 | Pins - LQFP100 | Pins - LQFP64 | Pins - WLCSP64 | Pin name | Pin Type (1) | I / O structure | Main function (2) (after reset) | Pin functions - Alternate functions | Pin functions - Additional functions |
|---|---|---|---|---|---|---|---|---|---|---|
| 39 | - | 28 | 19 | G6 | V DD_4 | S | - | V DD_4 | - | - |
| 40 | J4 | 29 | 20 | H7 | PA4 | I/O | TC | PA4 | SPI1_NSS/SPI3_NSS/ I2S3_WS/USART2_CK | ADC_IN4/ DAC_OUT1/ COMP1_INP |
| 41 | K4 | 30 | 21 | E5 | PA5 | I/O | TC | PA5 | TIM2_CH1_ETR/ SPI1_SCK | ADC_IN5/ DAC_OUT2/ COMP1_INP |
| 42 | L4 | 31 | 22 | G5 | PA6 | I/O | FT | PA6 | TIM3_CH1/TIM10_CH1/ SPI1_MISO/ LCD_SEG3 | ADC_IN6/ COMP1_INP/ OPAMP2_VINP |
| 43 | - | 32 | 23 | G4 | PA7 | I/O | FT | PA7 | TIM3_CH2/TIM11_CH1/ SPI1_MOSI/ LCD_SEG4 | ADC_IN7/ COMP1_INP/ OPAMP2_VINM |
| - | J5 | - | - | - | PA7 | I/O | FT | PA7 | TIM3_CH2/TIM11_CH1/ SPI1_MOSI/ LCD_SEG4 | ADC_IN7/ COMP1_INP |
| - | M4 | - | - | - | OPAMP2_VI NM | I | TC | OPAMP2_V INM | - | - |
| 44 | K5 | 33 | 24 | H6 | PC4 | I/O | FT | PC4 | LCD_SEG22 | ADC_IN14/ COMP1_INP |
| 45 | L5 | 34 | 25 | H5 | PC5 | I/O | FT | PC5 | LCD_SEG23 | ADC_IN15/ COMP1_INP |
| 46 | M5 | 35 | 26 | H4 | PB0 | I/O | TC | PB0 | TIM3_CH3/LCD_SEG5 | ADC_IN8/ COMP1_INP/ OPAMP2_VOUT/ VREF_OUT |
| 47 | M6 | 36 | 27 | F4 | PB1 | I/O | FT | PB1 | TIM3_CH4/LCD_SEG6 | ADC_IN9/ COMP1_INP/ VREF_OUT |
| 48 | L6 | 37 | 28 | H3 | PB2 | I/O | FT | PB2/ BOOT1 | BOOT1 | ADC_IN0b |
| 49 | K6 | - | - | - | PF11 | I/O | FT | PF11 | - | ADC_IN1b |
| 50 | J7 | - | - | - | PF12 | I/O | FT | PF12 | - | ADC_IN2b |
| 51 | E3 | - | - | - | V SS_6 | S | - | V SS_6 | - | - |
| 52 | H3 | - | - | - | V DD_6 | S | - | V DD_6 | - | - |
| Pins - LQFP144 | Pins - UFBGA132 | Pins - LQFP100 | Pins - LQFP64 | Pins - WLCSP64 | Pin name | Pin Type (1) | I / O structure | Main function (2) (after reset) | Pin functions - Alternate functions | Pin functions - Additional functions |
| 53 | K7 | - | - | - | PF13 | I/O | FT | PF13 | - | ADC_IN3b |
| 54 | J8 | - | - | - | PF14 | I/O | FT | PF14 | - | ADC_IN6b |
| 55 | J9 | - | - | - | PF15 | I/O | FT | PF15 | - | ADC_IN7b |
| 56 | H9 | - | - | - | PG0 | I/O | FT | PG0 | - | ADC_IN8b |
| 57 | G9 | - | - | - | PG1 | I/O | FT | PG1 | - | ADC_IN9b |
| 58 | M7 | 38 | - | - | PE7 | I/O | TC | PE7 | - | ADC_IN22/ COMP1_INP |
| 59 | L7 | 39 | - | - | PE8 | I/O | TC | PE8 | - | ADC_IN23/ COMP1_INP |
| 60 | M8 | 40 | - | - | PE9 | I/O | TC | PE9 | TIM2_CH1_ETR | ADC_IN24/ COMP1_INP |
| 61 | - | - | - | - | V SS_7 | S | - | V SS_7 | - | - |
| 62 | - | - | - | - | V DD_7 | S | - | V DD_7 | - | - |
| 63 | L8 | 41 | - | - | PE10 | I/O | TC | PE10 | TIM2_CH2 | ADC_IN25/ COMP1_INP |
| 64 | M9 | 42 | - | - | PE11 | I/O | FT | PE11 | TIM2_CH3 | - |
| 65 | L9 | 43 | - | - | PE12 | I/O | FT | PE12 | TIM2_CH4/SPI1_NSS | - |
| 66 | M10 | 44 | - | - | PE13 | I/O | FT | PE13 | SPI1_SCK | - |
| 67 | M11 | 45 | - | - | PE14 | I/O | FT | PE14 | SPI1_MISO | - |
| 68 | M12 | 46 | - | - | PE15 | I/O | FT | PE15 | SPI1_MOSI | - |
| 69 | L10 | 47 | 29 | G3 | PB10 | I/O | FT | PB10 | TIM2_CH3/I2C2_SCL/ USART3_TX/ LCD_SEG10 | - |
| 70 | L11 | 48 | 30 | F3 | PB11 | I/O | FT | PB11 | TIM2_CH4/ I2C2_SDA/ USART3_RX/ LCD_SEG11 | - |
| 71 | F12 | 49 | 31 | H2 | V SS_1 | S | - | V SS_1 | - | - |
| 72 | G12 | 50 | 32 | H1 | V DD_1 | S | - | V DD_1 | - | - |
| 73 | L12 | 51 | 33 | G2 | PB12 | I/O | FT | PB12 | TIM10_CH1/I2C2_SMBA/ SPI2_NSS/ I2S2_WS/ USART3_CK/ LCD_SEG12 | ADC_IN18/ COMP1_INP |
54
| Pins - LQFP144 | Pins - UFBGA132 | Pins - LQFP100 | Pins - LQFP64 | Pins - WLCSP64 | Pin name | Pin Type (1) | I / O structure | Main function (2) (after reset) | Pin functions - Alternate functions | Pin functions - Additional functions |
|---|---|---|---|---|---|---|---|---|---|---|
| 74 | K12 | 52 | 34 | G1 | PB13 | I/O | FT | PB13 | TIM9_CH1/SPI2_SCK/ I2S2_CK/ USART3_CTS/ LCD_SEG13 | ADC_IN19/ COMP1_INP |
| 75 | K11 | 53 | 35 | F2 | PB14 | I/O | FT | PB14 | TIM9_CH2/SPI2_MISO/ USART3_RTS/ LCD_SEG14 | ADC_IN20/ COMP1_INP |
| 76 | K10 | 54 | 36 | F1 | PB15 | I/O | FT | PB15 | TIM11_CH1/SPI2_MOSI/ I2S2_SD/ LCD_SEG15 | ADC_IN21/ COMP1_INP/ RTC_REFIN |
| 77 | K9 | 55 | - | - | PD8 | I/O | FT | PD8 | USART3_TX/LCD_SEG28 | - |
| 78 | K8 | 56 | - | - | PD9 | I/O | FT | PD9 | USART3_RX/LCD_SEG29 | - |
| 79 | J12 | 57 | - | - | PD10 | I/O | FT | PD10 | USART3_CK/LCD_SEG30 | - |
| 80 | J11 | 58 | - | - | PD11 | I/O | FT | PD11 | USART3_CTS/LCD_SEG31 | - |
| 81 | J10 | 59 | - | - | PD12 | I/O | FT | PD12 | TIM4_CH1/USART3_RTS/ LCD_SEG32 | - |
| 82 | H12 | 60 | - | - | PD13 | I/O | FT | PD13 | TIM4_CH2/LCD_SEG33 | - |
| 83 | - | - | - | - | V SS_8 | S | - | V SS_8 | - | - |
| 84 | - | - | - | - | V DD_8 | S | - | V DD_8 | - | - |
| 85 | H11 | 61 | - | - | PD14 | I/O | FT | PD14 | TIM4_CH3/LCD_SEG34 | - |
| 86 | H10 | 62 | - | - | PD15 | I/O | FT | PD15 | TIM4_CH4/LCD_SEG35 | - |
| 87 | G10 | - | - | - | PG2 | I/O | FT | PG2 | - | ADC_IN10b |
| 88 | F9 | - | - | - | PG3 | I/O | FT | PG3 | - | ADC_IN11b |
| 89 | F10 | - | - | - | PG4 | I/O | FT | PG4 | - | ADC_IN12b |
| 90 | E9 | - | - | - | PG5 | I/O | FT | PG5 | - | - |
| 91 | - | - | - | - | PG6 | I/O | FT | PG6 | - | - |
| 92 | - | - | - | - | PG7 | I/O | FT | PG7 | - | - |
| 93 | - | - | - | - | PG8 | I/O | FT | PG8 | - | - |
| 94 | F6 | - | - | - | V SS_9 | S | - | V SS_9 | - | - |
| 95 | G6 | - | - | - | V DD_9 | S | - | V DD_9 | - | - |
| Pins - LQFP144 | Pins - UFBGA132 | Pins - LQFP100 | Pins - LQFP64 | Pins - WLCSP64 | Pin name | Pin Type (1) | I / O structure | Main function (2) (after reset) | Pin functions - Alternate functions | Pin functions - Additional functions |
| 96 | E12 | 63 | 37 | E1 | PC6 | I/O | FT | PC6 | TIM3_CH1/I2S2_MCK/ LCD_SEG24 | - |
| 97 | E11 | 64 | 38 | E2 | PC7 | I/O | FT | PC7 | TIM3_CH2/I2S3_MCK/ LCD_SEG25 | - |
| 98 | E10 | 65 | 39 | E3 | PC8 | I/O | FT | PC8 | TIM3_CH3/LCD_SEG26 | - |
| 99 | D12 | 66 | 40 | D1 | PC9 | I/O | FT | PC9 | TIM3_CH4/LCD_SEG27 | - |
| 100 | D11 | 67 | 41 | E4 | PA8 | I/O | FT | PA8 | USART1_CK/MCO/ LCD_COM0 | - |
| 101 | D10 | 68 | 42 | D2 | PA9 | I/O | FT | PA9 | USART1_TX / LCD_COM1 | - |
| 102 | C12 | 69 | 43 | D3 | PA10 | I/O | FT | PA10 | USART1_RX / LCD_COM2 | - |
| 103 | B12 | 70 | 44 | C1 | PA11 | I/O | FT | PA11 | USART1_CTS/ SPI1_MISO | USB_DM |
| 104 | A12 | 71 | 45 | C2 | PA12 | I/O | FT | PA12 | USART1_RTS/ SPI1_MOSI | USB_DP |
| 105 | A11 | 72 | 46 | D4 | PA13 | I/O | FT | JTMS- SWDIO | JTMS-SWDIO | - |
| 106 | C11 | 73 | - | - | PH2 | I/O | FT | PH2 | - | - |
| 107 | F11 | 74 | 47 | B1 | V SS_2 | S | - | V SS_2 | - | - |
| 108 | G11 | 75 | 48 | A1 | V DD_2 | S | - | V DD_2 | - | - |
| 109 | A10 | 76 | 49 | B2 | PA14 | I/O | FT | JTCK- SWCLK | JTCK-SWCLK | - |
| 110 | A9 | 77 | 50 | C3 | PA15 | I/O | FT | JTDI | TIM2_CH1_ETR/ SPI1_NSS/SPI3_NSS/ I2S3_WS/LCD_SEG17/ JTDI | - |
| 111 | B11 | 78 | 51 | A2 | PC10 | I/O | FT | PC10 | SPI3_SCK/I2S3_CK/ USART3_TX/ LCD_SEG28/LCD_SEG40/ LCD_COM4 | - |
| 112 | C10 | 79 | 52 | B3 | PC11 | I/O | FT | PC11 | SPI3_MISO/USART3_RX/ LCD_SEG29/LCD_SEG41/ LCD_COM5 | - |
54
| Pins - LQFP144 | Pins - UFBGA132 | Pins - LQFP100 | Pins - LQFP64 | Pins - WLCSP64 | Pin name | Pin Type (1) | I / O structure | Main function (2) (after reset) | Pin functions - Alternate functions | Pin functions - Additional functions |
|---|---|---|---|---|---|---|---|---|---|---|
| 113 | B10 | 80 | 53 | C4 | PC12 | I/O | FT | PC12 | SPI3_MOSI/I2S3_SD/ USART3_CK/LCD_SEG30/ LCD_SEG42/ LCD_COM6 | - |
| 114 | C9 | 81 | - | - | PD0 | I/O | FT | PD0 | TIM9_CH1/SPI2_NSS/ I2S2_WS | - |
| 115 | B9 | 82 | - | - | PD1 | I/O | FT | PD1 | SPI2_SCK/I2S2_CK | - |
| 116 | C8 | 83 | 54 | A3 | PD2 | I/O | FT | PD2 | TIM3_ETR/LCD_SEG31/ LCD_SEG43/LCD_COM7 | - |
| 117 | B8 | 84 | - | - | PD3 | I/O | FT | PD3 | SPI2_MISO/USART2_CTS | - |
| 118 | B7 | 85 | - | - | PD4 | I/O | FT | PD4 | SPI2_MOSI/I2S2_SD/ USART2_RTS/ | - |
| 119 | A6 | 86 | - | - | PD5 | I/O | FT | PD5 | USART2_TX | - |
| 120 | F7 | - | - | - | V SS_10 | S | - | V SS_10 | - | - |
| 121 | G7 | - | - | - | V DD_10 | S | - | V DD_10 | - | - |
| 122 | B6 | 87 | - | - | PD6 | I/O | FT | PD6 | USART2_RX | - |
| 123 | A5 | 88 | - | - | PD7 | I/O | FT | PD7 | TIM9_CH2/USART2_CK | - |
| 124 | D9 | - | - | - | PG9 | I/O | FT | PG9 | - | - |
| 125 | D8 | - | - | - | PG10 | I/O | FT | PG10 | - | - |
| 126 | - | - | - | - | PG11 | I/O | FT | PG11 | - | - |
| 127 | D7 | - | - | - | PG12 | I/O | FT | PG12 | - | - |
| 128 | C7 | - | - | - | PG13 | I/O | FT | PG13 | - | - |
| 129 | C6 | - | - | - | PG14 | I/O | FT | PG14 | - | - |
| 130 | - | - | - | - | V SS_11 | S | - | V SS_11 | - | - |
| 131 | - | - | - | - | V DD_11 | S | - | V DD_11 | - | - |
| 132 | - | - | - | - | PG15 | I/O | FT | PG15 | - | - |
| 133 | A8 | 89 | 55 | A4 | PB3 | I/O | FT | JTDO | TIM2_CH2/SPI1_SCK/ SPI3_SCK/ I2S3_CK/ LCD_SEG7/JTDO | COMP2_INM |
| Pins - LQFP144 | Pins - UFBGA132 | Pins - LQFP100 | Pins - LQFP64 | Pins - WLCSP64 | Pin name | Pin Type (1) | I / O structure | Main function (2) (after reset) | Pin functions - Alternate functions | Pin functions - Additional functions |
| 134 | A7 | 90 | 56 | B4 | PB4 | I/O | FT | NJTRST | TIM3_CH1/SPI1_MISO/ SPI3_MISO/ LCD_SEG8/NJTRST | COMP2_INP |
| 135 | C5 | 91 | 57 | A5 | PB5 | I/O | FT | PB5 | TIM3_CH2/I2C1_SMBA/ SPI1_MOSI/ SPI3_MOSI/ I2S3_SD/LCD_SEG9 | COMP2_INP |
| 136 | B5 | 92 | 58 | B5 | PB6 | I/O | FT | PB6 | TIM4_CH1/I2C1_SCL/ USART1_TX/ | COMP2_INP |
| 137 | B4 | 93 | 59 | C5 | PB7 | I/O | FT | PB7 | TIM4_CH2/I2C1_SDA/ USART1_RX | COMP2_INP/ PVD_IN |
| 138 | A4 | 94 | 60 | A6 | BOOT0 | I | B | BOOT0 | - | - |
| 139 | A3 | 95 | 61 | D5 | PB8 | I/O | FT | PB8 | TIM4_CH3/TIM10_CH1/ I2C1_SCL/ LCD_SEG16 | - |
| 140 | B3 | 96 | 62 | B6 | PB9 | I/O | FT | PB9 | TIM4_CH4/ TIM11_CH1/I2C1_SDA/ LCD_COM3 | - |
| 141 | C3 | 97 | - | - | PE0 | I/O | FT | PE0 | TIM4_ETR/TIM10_CH1/ LCD_SEG36 | - |
| 142 | A2 | 98 | - | - | PE1 | I/O | FT | PE1 | TIM11_CH1/LCD_SEG37 | - |
| 143 | D3 | 99 | 63 | A7 | V SS_3 | S | - | V SS_3 | - | - |
| 144 | C4 | 100 | 64 | A8 | V DD_3 | S | - | V DD_3 | - | - |
- I = input, O = output, S = supply.
- Function availability depends on the chosen device.
- Applicable to STM32L152xD devices only. In STM32L151xD devices, this pin should be connected to V DD .
- The PC14 and PC15 I/Os are only configured as OSC32_IN/OSC32_OUT when the LSE oscillator is ON (by setting the LSEON bit in the RCC_CSR register). The LSE oscillator pins OSC32_IN/OSC32_OUT can be used as general-purpose PH0/PH1 I/Os, respectively, when the LSE oscillator is off (after reset, the LSE oscillator is off). The LSE has priority over the GPIO function. For more details, refer to Using the OSC32_IN/OSC32_OUT pins as GPIO PC14/PC15 port pins section in the STM32L151xx, STM32L152xx and STM32L162xx reference manual (RM0038).
- The PH0 and PH1 I/Os are only configured as OSC_IN/OSC_OUT when the HSE oscillator is ON (by setting the HSEON bit in the RCC_CR register). The HSE oscillator pins OSC_IN/OSC_OUT can be used as general-purpose PH0/PH1 I/Os, respectively, when the HSE oscillator is off ( after reset, the HSE oscillator is off ). The HSE has priority over the GPIO function.
54
STM32L151QC Electrical Characteristics
The definition and values of input/output AC characteristics are given in Figure 18 and Table 44 , respectively.
Unless otherwise specified, the parameters given in Table 44 are derived from tests performed under the conditions summarized in Table 13 .
Table 44. I/O AC characteristics (1)
| OSPEEDRx [1:0] bit value (1) | Symbol | Parameter | Conditions | Min | Max (2) | Unit |
|---|---|---|---|---|---|---|
| 00 | f max(IO)out | Maximum frequency (3) | C L = 50 pF, V DD = 2.7 V to 3.6 V | - | 400 | kHz |
| 00 | f max(IO)out | Maximum frequency (3) | C L = 50 pF, V DD = 1.65 V to 2.7 V | - | 400 | kHz |
| 00 | t f(IO)out t r(IO)out | Output rise and fall time | C L = 50 pF, V DD = 2.7 V to 3.6 V | - | 625 | ns |
| 00 | t f(IO)out t r(IO)out | Output rise and fall time | C L = 50 pF, V DD = 1.65 V to 2.7 V | - | 625 | ns |
| 01 | f max(IO)out | Maximum frequency (3) | C L = 50 pF, V DD = 2.7 V to 3.6 V | - | 2 | MHz |
| 01 | f max(IO)out | Maximum frequency (3) | C L = 50 pF, V DD = 1.65 V to 2.7 V | - | 1 | MHz |
| 01 | t f(IO)out t r(IO)out | Output rise and fall time | C L = 50 pF, V DD = 2.7 V to 3.6 V | - | 125 | ns |
| 01 | t f(IO)out t r(IO)out | Output rise and fall time | C L = 50 pF, V DD = 1.65 V to 2.7 V | - | 250 | ns |
| 10 | F max(IO)out | Maximum frequency (3) | C L = 50 pF, V DD = 2.7 V to 3.6 V | - | 10 | MHz |
| 10 | F max(IO)out | Maximum frequency (3) | C L = 50 pF, V DD = 1.65 V to 2.7 V | - | 2 | MHz |
| 10 | t f(IO)out t r(IO)out | Output rise and fall time | C L = 50 pF, V DD = 2.7 V to 3.6 V | - | 25 | ns |
| 10 | t f(IO)out t r(IO)out | Output rise and fall time | C L = 50 pF, V DD = 1.65 V to 2.7 V | - | 125 | ns |
| 11 | F max(IO)out | Maximum frequency (3) | C L = 30 pF, V DD = 2.7 V to 3.6 V | - | 50 | MHz |
| 11 | F max(IO)out | Maximum frequency (3) | C L = 50 pF, V DD = 1.65 V to 2.7 V | - | 8 | MHz |
| 11 | t f(IO)out t r(IO)out | Output rise and fall time | C L = 30 pF, V DD = 2.7 V to 3.6 V | - | 5 | ns |
| 11 | t f(IO)out t r(IO)out | Output rise and fall time | C L = 50 pF, V DD = 1.65 V to 2.7 V | - | 30 | ns |
| - | t EXTIpw | Pulse width of external signals detected by the EXTI controller | - | 8 | - | ns |
113
Figure 18. I/O AC characteristics definition
STM32L151QC Absolute Maximum Ratings
Stresses above the absolute maximum ratings listed in Table 10: Voltage characteristics , Table 11: Current characteristics , and Table 12: Thermal characteristics may cause permanent damage to the device. These are stress ratings only and functional operation of the device at these conditions is not implied. Exposure to maximum rating conditions for extended periods may affect device reliability.
Table 10. Voltage characteristics
| Symbol | Ratings | Min | Max | Unit |
|---|---|---|---|---|
| V DD -V SS | External main supply voltage (including V DDA and V DD ) (1) | -0.3 | 4.0 | V |
| V IN (2) | Input voltage on five-volt tolerant pin | V SS - 0.3 | V DD +4.0 | V |
| V IN (2) | Input voltage on any other pin | V SS - 0.3 | 4.0 | V |
| | ∆ V DDx | | Variations between different V DD power pins | - | 50 | mV |
| |V SSX - V SS | | Variations between all different ground pins (3) | - | 50 | mV |
| V REF+ -V DDA | Allowed voltage difference for V REF+ > V DDA | - | 0.4 | V |
| V ESD(HBM) | Electrostatic discharge voltage (human body model) | see Section 6.3.11 | see Section 6.3.11 | - |
Table 11. Current characteristics
| Symbol | Ratings | Max. | Unit |
|---|---|---|---|
| I VDD( Σ ) | Total current into sum of all V DD_x power lines (source) (1) | 100 | mA |
| I VSS( Σ ) (2) | Total current out of sum of all V SS_x ground lines (sink) (1) | 100 | mA |
| I VDD(PIN) | Maximum current into each V DD_x power pin (source) (1) | 70 | mA |
| I VSS(PIN) | Maximum current out of each VSS_x ground pin (sink) (1) | -70 | mA |
| I IO | Output current sunk by any I/O and control pin | 25 | mA |
| I IO | Output current sourced by any I/O and control pin | - 25 | mA |
| Σ I IO(PIN) | Total output current sunk by sum of all IOs and control pins (2) | 60 | mA |
| Σ I IO(PIN) | Total output current sourced by sum of all IOs and control pins (2) | -60 | mA |
| I INJ(PIN) (3) | Injected current on five-volt tolerant I/O (4) , RST and B pins | -5/+0 | mA |
| I INJ(PIN) (3) | Injected current on any other pin (5) | ± 5 | mA |
| Σ I INJ(PIN) | Total injected current (sum of all I/O and control pins) (6) | ± 25 | mA |
- Positive current injection is not possible on these I/Os. A negative injection is induced by V IN <VSS . I INJ(PIN) must never be exceeded. Refer to Table 10 for maximum allowed input voltage values.
- A positive injection is induced by V IN > V DD while a negative injection is induced by V IN < V SS . I INJ(PIN) must never be exceeded. Refer to Table 10: Voltage characteristics for the maximum allowed input voltage values.
- When several inputs are submitted to a current injection, the maximum Σ I INJ(PIN) is the absolute sum of the positive and negative injected currents (instantaneous values).
Table 12. Thermal characteristics
| Symbol | Ratings | Value | Unit |
|---|---|---|---|
| T STG | Storage temperature range | -65 to +150 | °C |
| T J | Maximum junction temperature | 150 | °C |
STM32L151QC Thermal Information
The maximum chip-junction temperature, T J max, in degrees Celsius, may be calculated using the following equation:
T J max = T A max + (P D max × Θ JA )
STM32L151QC Package Information
In order to meet environmental requirements, ST offers these devices in different grades of ECOPACK packages, depending on their level of environmental compliance. ECOPACK specifications, grade definitions and product status are available at: www.st.com . ECOPACK is an ST trademark.
Variants on the same datasheet
These parts have exact links to the same datasheet. They are candidates to compare, not verified drop-in replacements; check package, pinout and electrical limits.
| Part Number | Manufacturer | Package |
|---|---|---|
| STM32L151RC-A | STMicroelectronics | — |
| STM32L151VC-A | STMicroelectronics | — |
| STM32L151ZC | STMicroelectronics | — |
| STM32L152QC | STMicroelectronics | — |
Other Microcontrollers (MCU)
- STM32F407VET6 – STMicroelectronics, ARM Cortex-M4 MCU
- STM32H563ZIT6 – STMicroelectronics, Arm Cortex-M33 32-bit MCU
- RP2040 – Raspberry Pi, Microcontroller
- NRF52840-QIAA-R7 – Nordic Semiconductor, Wireless Microcontroller
- STM32H743VIT6 – STMicroelectronics, Microcontroller Unit (MCU)
- STM32U575RIT6 – STMicroelectronics, Ultra-low-power Arm Cortex-M33 32-bit MCU
- STM32L011F4U6 – STMicroelectronics, Ultra-low-power Arm Cortex-M0+ MCU
- GD32F103C8T6 – GigaDevice, Arm Cortex-M3 32-bit MCU
All Microcontrollers (MCU) datasheetsAll STMicroelectronics datasheets (808)
Ask your AI agent about the STM32L151QC
Connect SheetsData to Claude, Cursor, Codex or any MCP client and your agent reads this datasheet for you: pinout, limits, register maps and design checks, with the numbers taken from the PDF.
claude mcp add --transport http sheetsdata https://mcp.sheetsdata.com/mcp
Then ask: "Can the STM32L151QC run from my 12 V rail? Check it against the datasheet limits."
Create a free account $2 of usage every month, no card needed.