Generated by kicad-footprint-generator · KiCad file format 20260206
STM8L151C8T6TR
STMicroelectronics · ST Microelectronics · LQFP-48(7x7)
STM8L151C8T6TR from STMicroelectronics, in a LQFP-48(7x7). Pinout and pin descriptions extracted from the manufacturer datasheet (extract_pins, read twice and the reads agreed); symbol, footprint, and 3D from KiCad-official CAD.
Pinout
| Pin | Name | Type | Function |
|---|---|---|---|
| 1 | PA0 | bidirectional | Port A0, input pull-up during and after reset; alternate functions [USART1_CK], SWIM input/output, BEEP output and IR_TIM output, with high-sink LED driver capability. |
| 2 | NRST/PA1 | bidirectional | Reset input with pull-up at power-up (30-60 kΩ), or PA1 usable only as push-pull output; VIL max 0.8 V. |
| 3 | PA2 | bidirectional | Port A2 high-sink I/O with HSE oscillator input OSC_IN and remappable [USART1_TX]/[SPI1_MISO]. |
| 4 | PA3 | bidirectional | Port A3 high-sink I/O with HSE oscillator output OSC_OUT and remappable [USART1_RX]/[SPI1_MOSI]. |
| 5 | PA4 | bidirectional | Five-volt tolerant Port A4 with TIM2_BKIN/[TIM2_ETR], ADC1_IN2 and [COMP1_INP]. |
| 6 | PA5 | bidirectional | Five-volt tolerant Port A5 with TIM3_BKIN/[TIM3_ETR], ADC1_IN1 and [COMP1_INP]. |
| 7 | PA6 | bidirectional | Five-volt tolerant Port A6 with ADC1_TRIG, ADC1_IN0 and [COMP1_INP]. |
| 8 | PA7 | bidirectional | Five-volt tolerant Port A7 with TIM5_CH1. |
| 9 | VSS/VSSA/VREF- | power_in | I/O ground, analog ground and ADC1 negative voltage reference. |
| 10 | VDD1 | power_in | Digital power supply, 1.65 to 3.6 V, must not be left unconnected. |
| 11 | VDDA | power_in | Analog supply voltage, 1.65 to 3.6 V (minimum 1.8 V when ADC1 is used), must be connected to VDD. |
| 12 | VREF+ | power_in | ADC1 and DAC1/2 positive voltage reference, provided externally. |
| 13 | VLCD | power_in | LCD booster external capacitor pin on STM8L152; reserved and must be tied to VDD on STM8L151 devices. |
| 14 | PE0 | bidirectional | Five-volt tolerant Port E0 with TIM5_CH2. |
| 15 | PE1 | bidirectional | Five-volt tolerant Port E1 with TIM1_CH2N. |
| 16 | PE2 | bidirectional | Five-volt tolerant Port E2 with TIM1_CH3N and [CCO] configurable clock output. |
| 17 | PE3 | bidirectional | Five-volt tolerant Port E3 with USART2_RX. |
| 18 | PE4 | bidirectional | Five-volt tolerant Port E4 with DAC_TRIG2 and USART2_TX. |
| 19 | PE5 | bidirectional | Five-volt tolerant Port E5 with ADC1_IN23, [COMP1_INP], [COMP2_INP] and USART2_CK. |
| 20 | PD0 | bidirectional | Five-volt tolerant Port D0 with TIM3_CH2, [ADC1_TRIG], ADC1_IN22 and [COMP2_INP]. |
| 21 | PD1 | bidirectional | Five-volt tolerant Port D1 with TIM3_ETR, ADC1_IN21, [COMP1_INP] and [COMP2_INP]. |
| 22 | PD2 | bidirectional | Five-volt tolerant Port D2 with TIM1_CH1, ADC1_IN20 and [COMP1_INP]. |
| 23 | PD3 | bidirectional | Five-volt tolerant Port D3 with TIM1_ETR, ADC1_IN19 and [COMP1_INP]. |
| 24 | PB0 | bidirectional | Five-volt tolerant Port B0 (pull-up during reset, floating after) with TIM2_CH1, ADC1_IN18 and [COMP1_INP]. |
| 25 | PB1 | bidirectional | Five-volt tolerant Port B1 with TIM3_CH1, ADC1_IN17 and [COMP1_INP]. |
| 26 | PB2 | bidirectional | Five-volt tolerant Port B2 with TIM2_CH2, ADC1_IN16 and [COMP1_INP]. |
| 27 | PB3 | bidirectional | Five-volt tolerant Port B3 with TIM2_ETR, ADC1_IN15 and [COMP1_INP]. |
| 28 | PB4 | bidirectional | Five-volt tolerant Port B4 (pull-up during reset) with SPI1_NSS, ADC1_IN14, DAC_OUT2 and [COMP1_INP]. |
| 29 | PB5 | bidirectional | Five-volt tolerant Port B5 with SPI1_SCK, ADC1_IN13, DAC_OUT2 and [COMP1_INP]. |
| 30 | PB6 | bidirectional | Five-volt tolerant Port B6 with SPI1_MOSI, ADC1_IN12, DAC_OUT2 and [COMP1_INP]. |
| 31 | PB7 | bidirectional | Five-volt tolerant Port B7 with SPI1_MISO, ADC1_IN11 and [COMP1_INP]. |
| 32 | PF0 | bidirectional | Port F0 with ADC1_IN24 and DAC_OUT1 (DAC 1 output). |
| 33 | PD4 | bidirectional | Five-volt tolerant Port D4 with TIM1_CH2, ADC1_IN10, SPI2_MISO and [COMP1_INP]. |
| 34 | PD5 | bidirectional | Five-volt tolerant Port D5 with TIM1_CH3, ADC1_IN9, SPI2_MOSI and [COMP1_INP]. |
| 35 | PD6 | bidirectional | Five-volt tolerant Port D6 with TIM1_BKIN, ADC1_IN8, RTC_CALIB, SPI2_SCK, [COMP1_INP] and VREFINT output. |
| 36 | PD7 | bidirectional | Five-volt tolerant Port D7 with TIM1_CH1N, ADC1_IN7, RTC_ALARM, SPI2_NSS, [COMP1_INP] and VREFINT output. |
| 37 | PC0 | bidirectional | Five-volt tolerant true open-drain Port C0 with I2C1_SDA. |
| 38 | PC1 | bidirectional | Five-volt tolerant true open-drain Port C1 with I2C1_SCL. |
| 39 | VDD2 | power_in | I/O supply voltage, 1.65 to 3.6 V, must not be left unconnected. |
| 40 | VSS2 | power_in | I/O ground, must not be left unconnected. |
| 41 | PC2 | bidirectional | Five-volt tolerant Port C2 with USART1_RX, ADC1_IN6, [COMP1_INP] and VREFINT output. |
| 42 | PC3 | bidirectional | Five-volt tolerant Port C3 with USART1_TX and ADC1_IN5. |
| 43 | PC4 | bidirectional | Five-volt tolerant Port C4 with USART1_CK, I2C1_SMB, [CCO], ADC1_IN4, [COMP2_INM] and [COMP1_INP]. |
| 44 | PC5 | bidirectional | Five-volt tolerant Port C5 with LSE oscillator input OSC32_IN and remappable [SPI1_NSS]/[USART1_TX]. |
| 45 | PC6 | bidirectional | Five-volt tolerant Port C6 with LSE oscillator output OSC32_OUT and remappable [SPI1_SCK]/[USART1_RX]. |
| 46 | PC7 | bidirectional | Five-volt tolerant Port C7 with ADC1_IN3, USART3_CK, [COMP2_INM] and [COMP1_INP]. |
| 47 | PE6 | bidirectional | Five-volt tolerant Port E6 with PVD_IN, TIM5_BKIN and USART3_TX. |
| 48 | PE7 | bidirectional | Five-volt tolerant Port E7 with TIM5_ETR and USART3_RX. |
Key specifications
| Parameter | Value |
|---|---|
| Manufacturer | STMicroelectronics |
| Package | LQFP-48(7x7) |
| Category | Embedded Processors & Controllers |
| Pins | 48 |
Electrical characteristics
Limits as printed in the datasheet (page.json metadata.characteristics carries them as data).
| Parameter | Symbol | Min | Typ | Max | Unit | Conditions | Page |
|---|---|---|---|---|---|---|---|
| Standard operating voltage (BOR detector enabled) | VDD | 1.8 | 3.6 | V | BOR detector enabled | 71 | |
| System clock frequency | fSYSCLK | 0 | 16 | MHz | 1.65 V ≤VDD < 3.6 V | 71 | |
| Analog operating voltage (ADC and DAC not used) | VDDA | 1.65 | 3.6 | V | ADC and DAC not used, must be at the same potential as VDD | 71 | |
| Analog operating voltage (ADC or DAC used) | VDDA | 1.8 | 3.6 | V | ADC or DAC used | 71 | |
| Temperature range (6 suffix) | TA | -40 | 85 | °C | 1.65 V ≤VDD < 3.6 V (6 suffix version) | 71 | |
| Junction temperature range (6 suffix) | TJ | -40 | 105 | °C | -40 °C ≤ TA < 85 °C (6 suffix version) | 71 | |
| Power dissipation LQFP48 | PD | 307 | mW | TA= 85 °C for suffix 6 devices | 71 | ||
| External supply voltage (including VDDA) | VDD-VSS | -0.3 | 4 | V | 69 | ||
| Input voltage on any other pin | VIN | -0.3 | 4 | V | 69 | ||
| Total current into VDD power line (source) | IVDD | 80 | mA | 70 | |||
| Total current out of VSS ground line (sink) | IVSS | 80 | mA | 70 | |||
| Output current sunk by any other I/O and control pin | IIO | 25 | mA | 70 | |||
| Output current sourced by any I/Os and control pin | IIO | -25 | mA | 70 | |||
| Injected current on five-volt tolerant (FT) pins | IINJ(PIN) | -5 | 0 | mA | 70 | ||
| Injected current on any other pin | IINJ(PIN) | -5 | 5 | mA | 70 | ||
| Total injected current (sum of all I/O and control pins) | ΣIINJ(PIN) | -25 | 25 | mA | 70 | ||
| Storage temperature range | TSTG | -65 | 150 | °C | 70 | ||
| Maximum junction temperature | TJ | 150 | °C | 70 | |||
| HSE external clock source frequency | fHSE_ext | 1 | 16 | MHz | External clock source frequency | 90 | |
| Power-on reset threshold | VPOR | 1.3 | 1.5 | 1.65 | V | Rising edge | 72 |
| Power-down reset threshold | VPDR | 1.3 | 1.5 | 1.65 | V | Falling edge | 72 |
| Brown-out reset threshold 0 | VBOR0 | 1.67 | 1.7 | 1.74 | V | BOR_TH[2:0]=000 falling edge | 72 |
| Brown-out reset threshold 0 | VBOR0 | 1.69 | 1.75 | 1.8 | V | BOR_TH[2:0]=000 rising edge | 72 |
| Brown-out reset threshold 1 | VBOR1 | 1.87 | 1.93 | 1.97 | V | BOR_TH[2:0]=001 falling edge | 72 |
| Brown-out reset threshold 1 | VBOR1 | 1.96 | 2.04 | 2.07 | V | BOR_TH[2:0]=001 rising edge | 72 |
| Brown-out reset threshold 2 | VBOR2 | 2.22 | 2.3 | 2.35 | V | BOR_TH[2:0]=010 falling edge | 72 |
| Brown-out reset threshold 2 | VBOR2 | 2.31 | 2.41 | 2.44 | V | BOR_TH[2:0]=010 rising edge | 72 |
| Brown-out reset threshold 3 | VBOR3 | 2.45 | 2.55 | 2.6 | V | BOR_TH[2:0]=011 falling edge | 72 |
| Brown-out reset threshold 3 | VBOR3 | 2.54 | 2.66 | 2.7 | V | BOR_TH[2:0]=011 rising edge | 72 |
| Brown-out reset threshold 4 | VBOR4 | 2.68 | 2.8 | 2.85 | V | BOR_TH[2:0]=100 falling edge | 72 |
| Brown-out reset threshold 4 | VBOR4 | 2.78 | 2.9 | 2.95 | V | BOR_TH[2:0]=100 rising edge | 72 |
| PVD threshold 0 | VPVD0 | 1.8 | 1.84 | 1.88 | V | Falling edge | 73 |
| PVD threshold 0 | VPVD0 | 1.88 | 1.94 | 1.99 | V | Rising edge | 73 |
| PVD threshold 1 | VPVD1 | 1.98 | 2.04 | 2.09 | V | Falling edge | 73 |
| PVD threshold 1 | VPVD1 | 2.08 | 2.14 | 2.18 | V | Rising edge | 73 |
| PVD threshold 2 | VPVD2 | 2.2 | 2.24 | 2.28 | V | Falling edge | 73 |
| PVD threshold 2 | VPVD2 | 2.28 | 2.34 | 2.38 | V | Rising edge | 73 |
| PVD threshold 3 | VPVD3 | 2.39 | 2.44 | 2.48 | V | Falling edge | 73 |
| PVD threshold 3 | VPVD3 | 2.47 | 2.54 | 2.58 | V | Rising edge | 73 |
| PVD threshold 4 | VPVD4 | 2.57 | 2.64 | 2.69 | V | Falling edge | 73 |
| PVD threshold 4 | VPVD4 | 2.68 | 2.74 | 2.79 | V | Rising edge | 73 |
| PVD threshold 5 | VPVD5 | 2.77 | 2.83 | 2.88 | V | Falling edge | 73 |
| PVD threshold 5 | VPVD5 | 2.87 | 2.94 | 2.99 | V | Rising edge | 73 |
| PVD threshold 6 | VPVD6 | 2.97 | 3.05 | 3.09 | V | Falling edge | 73 |
| PVD threshold 6 | VPVD6 | 3.08 | 3.15 | 3.2 | V | Rising edge | 73 |
| Output low level voltage for an I/O pin | VOL | 0.45 | V | IIO = +2 mA, VDD = 3.0 V | 101 | ||
| Output low level voltage for an I/O pin | VOL | 0.7 | V | IIO = +10 mA, VDD = 3.0 V | 101 | ||
| NRST input low level voltage | VIL(NRST) | 0.8 | V | 102 | |||
| NRST input high level voltage | VIH(NRST) | 1.4 | V | 102 | |||
| NRST output low level voltage | VOL(NRST) | 0.4 | V | IOL = 2 mA, 2.7 V ≤ VDD ≤ 3.6 V | 102 | ||
| NRST pull-up equivalent resistor | RPU(NRST) | 30 | 45 | 60 | kΩ | 102 | |
| Input leakage current, standard I/Os | Ilkg | 50 | nA | VSS≤VIN≤ VDD | 98 | ||
| Input leakage current, true open drain I/Os | Ilkg | 200 | nA | VSS≤VIN≤ VDD | 98 | ||
| Weak pull-up equivalent resistor | RPU | 30 | 45 | 60 | kΩ | VIN=VSS | 98 |
| I/O pin capacitance | CIO | 5 | pF | 98 | |||
| Supply current in run mode, code executed from Flash, HSI, fCPU = 16 MHz, 85 °C | IDD(RUN) | 3.54 | 3.67 | mA | All peripherals OFF, code executed from Flash, VDD from 1.65 V to 3.6 V, HSI RC osc., fCPU = 16 MHz, 85 °C | 76 | |
| Supply current in run mode, code executed from RAM, HSI, fCPU = 16 MHz, 85 °C | IDD(RUN) | 1.62 | 1.79 | mA | All peripherals OFF, code executed from RAM, VDD from 1.65 V to 3.6 V, HSI RC osc. (16 MHz), fCPU = 16 MHz, 85 °C | 75 | |
| HSI oscillator accuracy (factory calibrated) | ACCHSI | -2.5 | 2 | % | VDD = 3.0 V, -10 °C ≤TA ≤ 85 °C | 93 | |
| LSI oscillator frequency | fLSI | 26 | 38 | 56 | kHz | VDD = 1.65 V to 3.6 V, TA = -40 to 125 °C | 94 |
CAD (KiCad official)
- Symbol:
STM8L151C8T6TR - Footprint:
Package_QFP:LQFP-48_7x7mm_P0.5mm - 3D model: LQFP-48(7x7) (KiCad packages3D, STEP)
- 3D model files:
stm8l151c8t6tr-etched.step/stm8l151c8t6tr-etched.glbcarry the MPN laser-etched on the die in a toggleableAdom.LaserEtchgroup (Fusion-ready);stm8l151c8t6tr.step/stm8l151c8t6tr.glbare the bare package body.
Provenance
Data extracted from the manufacturer datasheet, not a distributor listing:
- Datasheet: STMicroelectronics datasheet (147 pp, sha256
193f2133f3d81d2b, retrieved 2026-11-08, tier: manufacturer) - Extractor: parts-factory
2.0.0/extract_pins 0.3, primaryclaude-sonnet-5-5(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).