component
STM8L152C8T6
Public Made by Adomby adom
STMicroelectronics Microcontrollers (MCU/MPU/SOC), LQFP-48(7x7). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.
3D Model
Open in new tab ↗
Loads on click. Unloads only if this page sits in the background.
Symbol & Footprint
Schematic Symbol
Open full view ↗Loads on click. Unloads only if this page sits in the background.
PCB Footprint
Open full view ↗Loads on click. Unloads only if this page sits in the background.
Datasheet
Open in new tab ↗Loads on click. Unloads only if this page sits in the background.
README
markdownSTM8L152C8T6
STMicroelectronics · Microcontrollers (MCU/MPU/SOC) · LQFP-48(7x7)
STM8L152C8T6 from STMicroelectronics, in a LQFP-48(7x7). 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 | PA0 | bidirectional | Port A0 GPIO with weak pull-up; selectable SWIM debug interface, beeper output, or infrared timer output with 20 mA high-sink drive capability |
| 2 | NRST/PA1 | input | Reset input with 45 kΩ pull-up and 10% VDD hysteresis; can be configured as PA1 push-pull output only |
| 3 | PA2 | bidirectional | Port A2 GPIO; five-volt tolerant selectable HSE oscillator input, USART1 transmit, or SPI1 MISO |
| 4 | PA3 | bidirectional | Port A3 GPIO; five-volt tolerant selectable HSE oscillator output, USART1 receive, or SPI1 MOSI |
| 5 | PA4 | bidirectional | Port A4 GPIO; five-volt tolerant selectable Timer2 break/trigger, LCD_COM0, ADC1_IN2, or Comparator1 positive input |
| 6 | PA5 | bidirectional | Port A5 GPIO; five-volt tolerant selectable Timer3 break/trigger, LCD_COM1, ADC1_IN1, or Comparator1 positive input |
| 7 | PA6 | bidirectional | Port A6 GPIO; five-volt tolerant selectable ADC1 trigger, LCD_COM2, ADC1_IN0, or Comparator1 positive input |
| 8 | PA7 | bidirectional | Port A7 GPIO; five-volt tolerant selectable LCD_SEG0 or Timer5 channel 1 |
| 9 | VSS/VSSA/VREF- | power_in | I/O ground, analog ground voltage, and ADC1 negative reference; connect to 0 V reference plane |
| 10 | VDD1 | power_out | Digital power supply 1.8 to 3.6 V for I/Os and internal regulator; requires 4.7 µF bypass capacitor |
| 11 | VDDA | power_out | Analog power supply 1.8 to 3.6 V (minimum 1.8 V when ADC used); requires 1 µF bypass and 10 µF bulk capacitors |
| 12 | VREF+ | power_out | ADC1 and DAC1/2 positive reference voltage 1.8 to 3.6 V; can be connected to VDDA; requires 1 µF bypass capacitor |
| 13 | VLCD | power_out | LCD step-up converter external capacitor connection for LCD bias voltage (STM8L152x6/8 only) |
| 14 | PE0 | bidirectional | Port E0 GPIO; five-volt tolerant selectable LCD_SEG1 or Timer5 channel 2 |
| 15 | PE1 | bidirectional | Port E1 GPIO; five-volt tolerant selectable Timer1 inverted channel 2 or LCD_SEG2 |
| 16 | PE2 | bidirectional | Port E2 GPIO; five-volt tolerant selectable Timer1 inverted channel 3, LCD_SEG3, or configurable clock output |
| 17 | PE3 | bidirectional | Port E3 GPIO; five-volt tolerant selectable LCD_SEG4 or USART2 receive |
| 18 | PE4 | bidirectional | Port E4 GPIO; five-volt tolerant selectable LCD_SEG5, DAC2 trigger, or USART2 transmit |
| 19 | PE5 | bidirectional | Port E5 GPIO; five-volt tolerant selectable LCD_SEG6, ADC1_IN23, Comparator1/2 positive input, or USART2 clock |
| 20 | PD0 | bidirectional | Port D0 GPIO; five-volt tolerant selectable Timer3 channel 2, ADC trigger, LCD_SEG7, ADC1_IN22, or Comparator2 positive input |
| 21 | PD1 | bidirectional | Port D1 GPIO; five-volt tolerant selectable Timer3 trigger, LCD_COM3, ADC1_IN21, or Comparator1/2 positive input |
| 22 | PD2 | bidirectional | Port D2 GPIO; five-volt tolerant selectable Timer1 channel 1, LCD_SEG8, ADC1_IN20, or Comparator1 positive input |
| 23 | PD3 | bidirectional | Port D3 GPIO; five-volt tolerant selectable Timer1 trigger, LCD_SEG9, ADC1_IN19, or Comparator1 positive input |
| 24 | PB0 | bidirectional | Port B0 GPIO; five-volt tolerant selectable Timer2 channel 1, LCD_SEG10, ADC1_IN18, or Comparator1 positive input; pull-up during reset |
| 25 | PB1 | bidirectional | Port B1 GPIO; five-volt tolerant selectable Timer3 channel 1, LCD_SEG11, ADC1_IN17, or Comparator1 positive input |
| 26 | PB2 | bidirectional | Port B2 GPIO; five-volt tolerant selectable Timer2 channel 2, LCD_SEG12, ADC1_IN16, or Comparator1 positive input |
| 27 | PB3 | bidirectional | Port B3 GPIO; five-volt tolerant selectable Timer2 trigger, LCD_SEG13, ADC1_IN15, or Comparator1 positive input |
| 28 | PB4 | bidirectional | Port B4 GPIO; five-volt tolerant selectable SPI1 chip select, LCD_SEG14, ADC1_IN14, DAC2 output, or Comparator1 positive input; pull-up during reset |
| 29 | PB5 | bidirectional | Port B5 GPIO; five-volt tolerant selectable SPI1 clock, LCD_SEG15, ADC1_IN13, DAC2 output, or Comparator1 positive input |
| 30 | PB6 | bidirectional | Port B6 GPIO; five-volt tolerant selectable SPI1 MOSI, LCD_SEG16, ADC1_IN12, DAC2 output, or Comparator1 positive input |
| 31 | PB7 | bidirectional | Port B7 GPIO; five-volt tolerant selectable SPI1 MISO, LCD_SEG17, ADC1_IN11, or Comparator1 positive input |
| 32 | PF0 | bidirectional | Port F0 GPIO (not five-volt tolerant); selectable ADC1_IN24 or DAC1 output |
| 33 | PD4 | bidirectional | Port D4 GPIO; five-volt tolerant selectable Timer1 channel 2, LCD_SEG18, ADC1_IN10, SPI2 MISO, or Comparator1 positive input |
| 34 | PD5 | bidirectional | Port D5 GPIO; five-volt tolerant selectable Timer1 channel 3, LCD_SEG19, ADC1_IN9, SPI2 MOSI, or Comparator1 positive input |
| 35 | PD6 | bidirectional | Port D6 GPIO; five-volt tolerant selectable Timer1 break input, LCD_SEG20, ADC1_IN8, RTC calibration output, SPI2 clock, Comparator1 positive input, or VREFINT output |
| 36 | PD7 | bidirectional | Port D7 GPIO; five-volt tolerant selectable Timer1 inverted channel 1, LCD_SEG21, ADC1_IN7, RTC alarm output, SPI2 chip select, Comparator1 positive input, or VREFINT output |
| 37 | PC0 | tri_state | Port C0 GPIO with true open-drain output (no pull-up or protection diode); five-volt tolerant selectable I2C1 SDA; requires external pull-up |
| 38 | PC1 | tri_state | Port C1 GPIO with true open-drain output (no pull-up or protection diode); five-volt tolerant selectable I2C1 SCL; requires external pull-up |
| 39 | VDD2 | power_out | I/O power supply 1.8 to 3.6 V for ports B, C, D, E, F; requires 4.7 µF bypass capacitor |
| 40 | VSS2 | power_in | I/O ground for ports B, C, D, E, F; connect to 0 V reference plane |
| 41 | PC2 | bidirectional | Port C2 GPIO; five-volt tolerant selectable USART1 receive, LCD_SEG22, ADC1_IN6, Comparator1 positive input, or VREFINT output |
| 42 | PC3 | bidirectional | Port C3 GPIO; five-volt tolerant selectable USART1 transmit, LCD_SEG23, or ADC1_IN5 |
| 43 | PC4 | bidirectional | Port C4 GPIO; five-volt tolerant selectable USART1 clock, I2C1 SMBus, configurable clock output, LCD_SEG24, ADC1_IN4, Comparator2 negative input, or LCD_COM4 |
| 44 | PC5 | bidirectional | Port C5 GPIO; five-volt tolerant selectable LSE oscillator input, SPI1 chip select, or USART1 transmit |
| 45 | PC6 | bidirectional | Port C6 GPIO; five-volt tolerant selectable LSE oscillator output, SPI1 clock, or USART1 receive |
| 46 | PC7 | bidirectional | Port C7 GPIO; five-volt tolerant selectable LCD_SEG25, ADC1_IN3, USART3 clock, Comparator2 negative input, or LCD_COM5 |
| 47 | PE6 | bidirectional | Port E6 GPIO; five-volt tolerant selectable LCD_SEG26, programmable voltage detector input, Timer5 break input, USART3 transmit, or LCD_COM6 |
| 48 | PE7 | bidirectional | Port E7 GPIO; five-volt tolerant selectable LCD_SEG27, Timer5 trigger, USART3 receive, or LCD_COM7 |
Key specifications
| Parameter | Value |
|---|---|
| Manufacturer | STMicroelectronics |
| Package | LQFP-48(7x7) |
| Category | Embedded Processors & Controllers |
| Pins | 48 |
CAD (KiCad official)
- Symbol:
STM8L152C8T6 - Footprint:
Package_QFP:LQFP-48_7x7mm_P0.5mm - 3D model: LQFP-48(7x7) (KiCad packages3D, STEP)
- 3D model files:
stm8l152c8t6-etched.step/stm8l152c8t6-etched.glbcarry the MPN laser-etched on the die in a toggleableAdom.LaserEtchgroup (Fusion-ready);stm8l152c8t6.step/stm8l152c8t6.glbare the bare package body.
Provenance
Data extracted from the manufacturer datasheet, not a distributor listing:
- Datasheet: STMicroelectronics datasheet (146 pp, sha256
af8735a15a80225f, retrieved 2026-10-01, tier: lcsc) - Extractor: parts-factory
2.0.0/extract_pins 0.3, primaryclaude-haiku-4-5-20251001(text), consensusclaude-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).