main
History Download
Ray Initial commit: component/stm8l152k4u6 e218eac 2d ago

STM8L152K4U6

STMicroelectronics · Microcontrollers (MCU/MPU/SOC) · UFQFPN-32(5x5)

STM8L152K4U6 from STMicroelectronics, in a UFQFPN-32(5x5). Pinout and pin descriptions extracted from the manufacturer datasheet (extract_pins, cross-checked by a second model); symbol, footprint, and 3D from KiCad-official CAD.

Pinout

Pin Name Type Function
1 NRST/PA1 bidirectional Active-low reset input with pull-up at power-up; as general-purpose PA1 it can only be configured as open-drain or push-pull output, not as an input.
2 PA2 bidirectional Port A2 (3.6 V tolerant, high sink/source) also serving as HSE oscillator input, USART1 transmit or SPI1 MISO alternate function.
3 PA3 bidirectional Port A3 (3.6 V tolerant, high sink/source) also serving as HSE oscillator output, USART1 receive or SPI1 MOSI alternate function.
4 PA4 bidirectional Port A4 (3.6 V tolerant) with Timer 2 break input, LCD COM0, ADC1 input 2 and comparator 1 positive input functions.
5 PA5 bidirectional Port A5 (3.6 V tolerant) with Timer 3 break input, LCD COM1, ADC1 input 1 and comparator 1 positive input functions.
6 PA6 bidirectional Port A6 (3.6 V tolerant) with LCD COM2, ADC1 input 0 and comparator 1 positive input functions, plus optional ADC1 trigger remap.
7 VSS1/VSSA/VREF- power_in I/O ground, analog ground and ADC1 negative voltage reference pin.
8 VDD1/VDDA/VREF+ power_in Digital power supply, analog supply and ADC1 positive voltage reference pin, operating over 1.8 V to 3.6 V.
9 VLCD power_in LCD booster external capacitor connection (STM8L152xx LCD variant only).
10 PD1 bidirectional Port D1 (3.6 V tolerant) with TIM1 inverted channel 3, optional TIM3 external trigger, LCD COM3, ADC1 input 21 and comparator 2/1 positive inputs.
11 PD2 bidirectional Port D2 (3.6 V tolerant) with TIM1 channel 1, LCD segment 8, ADC1 input 20 and comparator 1 positive input functions.
12 PD3 bidirectional Port D3 (3.6 V tolerant) with TIM1 external trigger, LCD segment 9, ADC1 input 19 and comparator 1 positive input functions.
13 PB0 bidirectional Port B0 (3.6 V tolerant) with TIM2 channel 1, LCD segment 10, ADC1 input 18 and comparator 1 positive input; a pull-up is applied during the reset phase and the pin is floating input after reset release.
14 PB1 bidirectional Port B1 (3.6 V tolerant) with TIM3 channel 1, LCD segment 11, ADC1 input 17 and comparator 1 positive input functions.
15 PB2 bidirectional Port B2 (3.6 V tolerant) with TIM2 channel 2, LCD segment 12, ADC1 input 16 and comparator 1 positive input functions.
16 PB3 bidirectional Port B3 (3.6 V tolerant) with optional TIM2 external trigger, TIM1 inverted channel 2, LCD segment 13, ADC1 input 15 and comparator 1 positive input functions.
17 PB4 bidirectional Port B4 (3.6 V tolerant) with optional SPI1 NSS, LCD segment 14, ADC1 input 14, DAC output and comparator 1 positive input; a pull-up is applied during reset and the pin is floating input after reset release.
18 PB5 bidirectional Port B5 (3.6 V tolerant) with optional SPI1 clock, LCD segment 15, ADC1 input 13, DAC output and comparator 1 positive input functions.
19 PB6 bidirectional Port B6 (3.6 V tolerant) with optional SPI1 MOSI, LCD segment 16, ADC1 input 12, DAC output and comparator 1 positive input functions.
20 PB7 bidirectional Port B7 (3.6 V tolerant) with optional SPI1 MISO, LCD segment 17, ADC1 input 11 and comparator 1 positive input functions.
21 PD4 bidirectional Port D4 (3.6 V tolerant) with TIM1 channel 2, LCD segment 18, ADC1 input 10 and comparator 1 positive input functions.
22 PD5 bidirectional Port D5 (3.6 V tolerant) with TIM1 channel 3, LCD segment 19, ADC1 input 9 and comparator 1 positive input functions.
23 PD6 bidirectional Port D6 (3.6 V tolerant) with TIM1 break input, LCD segment 20, ADC1 input 8, RTC calibration, internal voltage reference output and comparator 1 positive input functions.
24 PD7 bidirectional Port D7 (3.6 V tolerant) with TIM1 inverted channel 1, LCD segment 21, ADC1 input 7, RTC alarm, internal voltage reference output and comparator 1 positive input functions.
25 PC0 bidirectional Port C0 (5 V tolerant I/O, no protection diode to VDD, true open-drain) carrying the I2C1 SDA signal.
26 PC1 bidirectional Port C1 (5 V tolerant I/O, no protection diode to VDD, true open-drain) carrying the I2C1 SCL signal.
27 PC2 bidirectional Port C2 (3.6 V tolerant) with USART1 receive, LCD segment 22, ADC1 input 6, comparator 1 positive input and internal voltage reference output functions.
28 PC3 bidirectional Port C3 (3.6 V tolerant) with USART1 transmit, LCD segment 23, ADC1 input 5, comparator 1 positive input and comparator 2 negative input functions.
29 PC4 bidirectional Port C4 (3.6 V tolerant) with USART1 synchronous clock, I2C1 SMBus, configurable clock output, LCD segment 24, ADC1 input 4 and comparator inputs.
30 PC5 bidirectional Port C5 (3.6 V tolerant) also serving as LSE 32 kHz oscillator input, with optional SPI1 NSS and USART1 transmit alternate functions.
31 PC6 bidirectional Port C6 (3.6 V tolerant) also serving as LSE 32 kHz oscillator output, with optional SPI1 clock and USART1 receive alternate functions.
32 PA0 bidirectional Port A0 with input pull-up during and after reset, high-sink LED driver capability, and alternate functions USART1 clock, SWIM input/output, beeper output and infrared timer output.
33 EP passive Exposed pad (from the footprint; not named in the datasheet pin table).

Key specifications

Parameter Value
Manufacturer STMicroelectronics
Package UFQFPN-32(5x5)
Category Embedded Processors & Controllers
Pins 33

CAD (KiCad official)

  • Symbol: STM8L152K4U6
  • Footprint: Package_DFN_QFN:UFQFPN-32-1EP_5x5mm_P0.5mm_EP3.5x3.5mm
  • 3D model: UFQFPN-32(5x5) (KiCad packages3D, STEP)
  • 3D model files: stm8l152k4u6-etched.step / stm8l152k4u6-etched.glb carry the MPN laser-etched on the die in a toggleable Adom.LaserEtch group (Fusion-ready); stm8l152k4u6.step / stm8l152k4u6.glb are the bare package body.

Provenance

Data extracted from the manufacturer datasheet, not a distributor listing:

  • Datasheet: STMicroelectronics datasheet (141 pp, sha256 76f669f0972e887a, retrieved 2026-10-08, tier: lcsc)
  • Extractor: parts-factory 2.0.0 / extract_pins 0.3, primary claude-haiku-5-5 (text), consensus claude-sonnet-5-5 (agreed), guards: pin_guards 0.1: passed. Pins are checked against the footprint pad set and their cited datasheet pages before publish.
  • CAD: KiCad official libraries (CC-BY-SA 4.0).

Datasheet PDF