3D Model
Open in new tab ↗
Loads when you scroll to it. Unloads after 5 minutes in the background.
Symbol & Footprint
Schematic Symbol
Open full view ↗Loads when you scroll to it. Unloads after 5 minutes in the background.
PCB Footprint
Open full view ↗Loads when you scroll to it. Unloads after 5 minutes in the background.
Datasheet
Open in new tab ↗Loads when you scroll to it. Unloads after 5 minutes in the background.
README
markdownSTM8L151R8T6
STMicroelectronics · ST Microelectronics · LQFP-64(10x10)
STM8L151R8T6 from STMicroelectronics, in a LQFP-64(10x10). 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 high-sink I/O (LED driver capable, input pull-up during and after reset) with alternate functions [USART1_CK], SWIM input/output, BEEP output and IR_TIM output. |
| 2 | NRST/PA1 | bidirectional | Reset input with pull-up at power-up; can be used only as push-pull output PA1 (general purpose), not as input or open-drain. |
| 3 | PA2 | bidirectional | Port A2 high-sink I/O with HSE oscillator input OSC_IN and remap options [USART1_TX]/[SPI1_MISO]. |
| 4 | PA3 | bidirectional | Port A3 high-sink I/O with HSE oscillator output OSC_OUT and remap options [USART1_RX]/[SPI1_MOSI]. |
| 5 | PA4 | bidirectional | Five-volt tolerant port A4 I/O with TIM2_BKIN/[TIM2_ETR], ADC1_IN2 and [COMP1_INP]. |
| 6 | PA5 | bidirectional | Five-volt tolerant port A5 I/O with TIM3_BKIN/[TIM3_ETR], ADC1_IN1 and [COMP1_INP]. |
| 7 | PA6 | bidirectional | Five-volt tolerant port A6 I/O with ADC1_TRIG, ADC1_IN0 and [COMP1_INP]. |
| 8 | PA7 | bidirectional | Five-volt tolerant port A7 I/O with TIM5_CH1. |
| 9 | VSSA/VREF- | power_in | Analog ground voltage and ADC1 negative voltage reference. |
| 10 | VSS1 | power_in | I/O ground; VSS1 must not be left unconnected. |
| 11 | VDD1 | power_in | Digital power supply, 1.65 to 3.6 V; must not be left unconnected. |
| 12 | 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. |
| 13 | VREF+ | power_in | ADC1 and DAC1/2 positive voltage reference, provided externally. |
| 14 | PG0 | bidirectional | Five-volt tolerant port G0 I/O with USART3_RX and [TIM2_BKIN]. |
| 15 | PG1 | bidirectional | Five-volt tolerant port G1 I/O with USART3_TX and [TIM3_BKIN]. |
| 16 | PG2 | bidirectional | Five-volt tolerant port G2 I/O with USART3_CK. |
| 17 | PG3 | bidirectional | Five-volt tolerant port G3 I/O with [TIM3_ETR]. |
| 18 | VLCD | power_in | LCD booster external capacitor pin on STM8L152 devices; on STM8L151 devices it is reserved and must be tied to VDD. |
| 19 | PE0 | bidirectional | Five-volt tolerant port E0 I/O with TIM5_CH2. |
| 20 | PE1 | bidirectional | Five-volt tolerant port E1 I/O with TIM1_CH2N. |
| 21 | PE2 | bidirectional | Five-volt tolerant port E2 I/O with TIM1_CH3N and [CCO] configurable clock output. |
| 22 | PE3 | bidirectional | Five-volt tolerant port E3 I/O with USART2_RX. |
| 23 | PE4 | bidirectional | Five-volt tolerant port E4 I/O with DAC_TRIG2 and USART2_TX. |
| 24 | PE5 | bidirectional | Five-volt tolerant port E5 I/O with ADC1_IN23, [COMP1_INP], [COMP2_INP] and USART2_CK. |
| 25 | PD0 | bidirectional | Five-volt tolerant port D0 I/O with TIM3_CH2, [ADC1_TRIG], ADC1_IN22 and [COMP2_INP]. |
| 26 | PD1 | bidirectional | Five-volt tolerant port D1 I/O with TIM3_ETR, ADC1_IN21, [COMP1_INP] and [COMP2_INP]. |
| 27 | PD2 | bidirectional | Five-volt tolerant port D2 I/O with TIM1_CH1, ADC1_IN20 and [COMP1_INP]. |
| 28 | PD3 | bidirectional | Five-volt tolerant port D3 I/O with TIM1_ETR, ADC1_IN19 and [COMP1_INP]. |
| 29 | VDD3 | power_in | I/O supply voltage; must not be left unconnected. |
| 30 | VSS3 | power_in | I/O ground voltage; must not be left unconnected. |
| 31 | PB0 | bidirectional | Five-volt tolerant port B0 I/O (pull-up during reset) with TIM2_CH1, ADC1_IN18 and [COMP1_INP]. |
| 32 | PB1 | bidirectional | Five-volt tolerant port B1 I/O with TIM3_CH1, ADC1_IN17 and [COMP1_INP]. |
| 33 | PB2 | bidirectional | Five-volt tolerant port B2 I/O with TIM2_CH2, ADC1_IN16 and [COMP1_INP]. |
| 34 | PB3 | bidirectional | Five-volt tolerant port B3 I/O with TIM2_ETR, ADC1_IN15 and [COMP1_INP]. |
| 35 | PB4 | bidirectional | Five-volt tolerant port B4 I/O (pull-up during reset) with SPI1_NSS, ADC1_IN14 and [COMP1_INP]. |
| 36 | PB5 | bidirectional | Five-volt tolerant port B5 I/O with SPI1_SCK, ADC1_IN13 and [COMP1_INP]. |
| 37 | PB6 | bidirectional | Five-volt tolerant port B6 I/O with SPI1_MOSI, ADC1_IN12 and [COMP1_INP]. |
| 38 | PB7 | bidirectional | Five-volt tolerant port B7 I/O with SPI1_MISO, ADC1_IN11 and [COMP1_INP]. |
| 39 | PF0 | bidirectional | Port F0 I/O with ADC1_IN24, DAC_OUT1 and [USART3_TX]. |
| 40 | PF1 | bidirectional | Port F1 I/O with ADC1_IN25, DAC channel 2 output and [USART3_RX]. |
| 41 | PF4 | bidirectional | Five-volt tolerant port F4 I/O (LCD segment/COM function on STM8L152 only). |
| 42 | PF5 | bidirectional | Five-volt tolerant port F5 I/O (LCD segment/COM function on STM8L152 only). |
| 43 | PF6 | bidirectional | Five-volt tolerant port F6 I/O (LCD segment/COM function on STM8L152 only). |
| 44 | PF7 | bidirectional | Five-volt tolerant port F7 I/O (LCD segment/COM function on STM8L152 only). |
| 45 | PD4 | bidirectional | Five-volt tolerant port D4 I/O with TIM1_CH2, ADC1_IN10 and [COMP1_INP]. |
| 46 | PD5 | bidirectional | Five-volt tolerant port D5 I/O with TIM1_CH3, ADC1_IN9 and [COMP1_INP]. |
| 47 | PD6 | bidirectional | Five-volt tolerant port D6 I/O with TIM1_BKIN, ADC1_IN8, RTC_CALIB, [COMP1_INP] and VREFINT output. |
| 48 | PD7 | bidirectional | Five-volt tolerant port D7 I/O with TIM1_CH1N, ADC1_IN7, RTC_ALARM, [COMP1_INP] and VREFINT output. |
| 49 | PG4 | bidirectional | Five-volt tolerant port G4 I/O with SPI2_NSS. |
| 50 | PG5 | bidirectional | Five-volt tolerant port G5 I/O with SPI2_SCK. |
| 51 | PG6 | bidirectional | Five-volt tolerant port G6 I/O with SPI2_MOSI. |
| 52 | PG7 | bidirectional | Five-volt tolerant port G7 I/O with SPI2_MISO. |
| 53 | PC0 | bidirectional | Five-volt tolerant true open-drain port C0 I/O used as I2C1_SDA. |
| 54 | PC1 | bidirectional | Five-volt tolerant true open-drain port C1 I/O used as I2C1_SCL. |
| 55 | VDD2 | power_in | I/O supply voltage; must not be left unconnected. |
| 56 | VSS2 | power_in | I/O ground voltage; must not be left unconnected. |
| 57 | PC2 | bidirectional | Five-volt tolerant port C2 I/O with USART1_RX, ADC1_IN6, [COMP1_INP] and VREFINT output. |
| 58 | PC3 | bidirectional | Five-volt tolerant port C3 I/O with USART1_TX, ADC1_IN5, [COMP2_INM] and [COMP1_INP]. |
| 59 | PC4 | bidirectional | Five-volt tolerant port C4 I/O with USART1_CK, I2C1_SMB, [CCO], ADC1_IN4, [COMP2_INM] and [COMP1_INP]. |
| 60 | PC5 | bidirectional | Five-volt tolerant port C5 I/O with LSE oscillator input OSC32_IN and remap options [SPI1_NSS]/[USART1_TX]. |
| 61 | PC6 | bidirectional | Five-volt tolerant port C6 I/O with LSE oscillator output OSC32_OUT and remap options [SPI1_SCK]/[USART1_RX]. |
| 62 | PC7 | bidirectional | Five-volt tolerant port C7 I/O with ADC1_IN3, [COMP2_INM] and [COMP1_INP]. |
| 63 | PE6 | bidirectional | Five-volt tolerant port E6 I/O with PVD_IN and TIM5_BKIN. |
| 64 | PE7 | bidirectional | Five-volt tolerant port E7 I/O with TIM5_ETR. |
Key specifications
| Parameter | Value |
|---|---|
| Manufacturer | STMicroelectronics |
| Package | LQFP-64(10x10) |
| Category | Embedded Processors & Controllers |
| Pins | 64 |
Electrical characteristics
Limits as printed in the datasheet (page.json metadata.characteristics carries them as data).
| Parameter | Symbol | Min | Typ | Max | Unit | Conditions | Page |
|---|---|---|---|---|---|---|---|
| External supply voltage (including VDDA) | VDD- VSS | -0.3 | 4 | V | 69 | ||
| Input voltage on any other pin | VIN | 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 IR_TIM pin (with high sink LED driver capability) | IIO | 80 | mA | IR_TIM pin | 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 | sourced | 70 | ||
| Injected current on true open-drain pins (PC0 and PC1) | IINJ(PIN) | -5 | 0 | 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 | |||
| System clock frequency | fSYSCLK | 0 | 16 | MHz | 1.65 V ≤VDD < 3.6 V | 71 | |
| Standard operating voltage | VDD | 1.8 | 3.6 | V | BOR detector enabled | 71 | |
| Analog operating voltage | VDDA | 1.65 | 3.6 | V | ADC and DAC not used | 71 | |
| Analog operating voltage | VDDA | 1.8 | 3.6 | V | ADC or DAC used | 71 | |
| Power dissipation at TA = 85 °C for suffix 6 devices, LQFP64 | PD | 416 | mW | TA = 85 °C, suffix 6, LQFP64 | 71 | ||
| Temperature range | TA | -40 | 85 | °C | 1.65 V ≤VDD < 3.6 V (6 suffix version) | 71 | |
| Junction temperature range | TJ | -40 | 105 | °C | -40 °C ≤ TA < 85 °C (6 suffix version) | 71 | |
| 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 (falling edge) | VBOR0 | 1.67 | 1.7 | 1.74 | V | Falling edge, BOR_TH[2:0]=000 | 72 |
| Brown-out reset threshold 0 (rising edge) | VBOR0 | 1.69 | 1.75 | 1.8 | V | Rising edge, BOR_TH[2:0]=000 | 72 |
| Brown-out reset threshold 1 (falling edge) | VBOR1 | 1.87 | 1.93 | 1.97 | V | Falling edge, BOR_TH[2:0]=001 | 72 |
| Brown-out reset threshold 1 (rising edge) | VBOR1 | 1.96 | 2.04 | 2.07 | V | Rising edge, BOR_TH[2:0]=001 | 72 |
| Brown-out reset threshold 2 (falling edge) | VBOR2 | 2.22 | 2.3 | 2.35 | V | Falling edge, BOR_TH[2:0]=010 | 72 |
| Brown-out reset threshold 2 (rising edge) | VBOR2 | 2.31 | 2.41 | 2.44 | V | Rising edge, BOR_TH[2:0]=010 | 72 |
| Brown-out reset threshold 3 (falling edge) | VBOR3 | 2.45 | 2.55 | 2.6 | V | Falling edge, BOR_TH[2:0]=011 | 72 |
| Brown-out reset threshold 3 (rising edge) | VBOR3 | 2.54 | 2.66 | 2.7 | V | Rising edge, BOR_TH[2:0]=011 | 72 |
| Brown-out reset threshold 4 (falling edge) | VBOR4 | 2.68 | 2.8 | 2.85 | V | Falling edge, BOR_TH[2:0]=100 | 72 |
| Brown-out reset threshold 4 (rising edge) | VBOR4 | 2.78 | 2.9 | 2.95 | V | Rising edge, BOR_TH[2:0]=100 | 72 |
| Supply current in run mode, code executed from RAM, HSI RC osc. | IDD(RUN) | 1.62 | 1.79 | mA | fCPU = 16 MHz, 85 °C (suffix 6), all peripherals OFF | 75 | |
| Supply current in run mode, code executed from Flash, HSI RC osc. | IDD(RUN) | 3.54 | 3.67 | mA | fCPU = 16 MHz, 85 °C (suffix 6), all peripherals OFF | 76 | |
| External clock source frequency | fHSE_ext | 1 | 16 | MHz | 90 | ||
| HSI oscillator accuracy (factory calibrated) | ACCHSI | -1 | 1 | % | VDD = 3.0 V, TA = 25 °C | 93 | |
| HSI oscillator accuracy (factory calibrated) | ACCHSI | -1.5 | 1.5 | % | VDD = 3.0 V, 0 °C ≤TA ≤ 55 °C | 93 | |
| HSI oscillator accuracy (factory calibrated) | ACCHSI | -2 | 2 | % | VDD = 3.0 V, -10 °C ≤TA ≤ 70 °C | 93 | |
| HSI oscillator accuracy (factory calibrated) | ACCHSI | -2.5 | 2 | % | VDD = 3.0 V, -10 °C ≤TA ≤ 85 °C | 93 | |
| HSI oscillator accuracy (factory calibrated) | ACCHSI | -4.5 | 2 | % | VDD = 3.0 V, -10 °C ≤TA ≤ 125 °C | 93 | |
| HSI oscillator accuracy (factory calibrated) | ACCHSI | -4.5 | 3 | % | 1.65 V ≤ VDD ≤ 3.6 V, -40 °C ≤TA ≤ 125 °C | 93 | |
| HSI oscillator setup time (wakeup time) | tsu(HSI) | 3.7 | 6 | µs | 93 | ||
| HSI oscillator power consumption | IDD(HSI) | 100 | 140 | µA | 93 | ||
| Low speed internal RC oscillator frequency | fLSI | 26 | 38 | 56 | kHz | VDD = 1.65 V to 3.6 V, TA = -40 to 125 °C | 94 |
| LSI oscillator frequency drift | D(LSI) | -12 | 11 | % | 0 °C ≤TA ≤ 85 °C | 94 | |
| Supply operating voltage (all modes, read/write/erase) | VDD | 1.65 | 3.6 | V | fSYSCLK = 16 MHz | 96 | |
| Programming time for 1 or 128 bytes (block) erase/write cycles (on programmed byte) | tprog | 6 | ms | 96 | |||
| Data retention (program memory) after 10000 erase/write cycles at TA=-40 to +85 °C (6 suffix) | tRET | 30 | years | TRET=+85 °C | 96 | ||
| Data retention (data memory) after 300000 erase/write cycles at TA=-40 to +85 °C (6 suffix) | tRET | 30 | years | TRET=+85 °C | 96 | ||
| Erase/write cycles (program memory) | NRW | 10 | kcycles | TA=-40 to +85 °C (6 suffix) | 96 | ||
| Erase/write cycles (data memory) | NRW | 300 | kcycles | 96 | |||
| Minimum supply voltage without losing data in RAM or hardware registers | VRM | 1.65 | V | Halt mode (or Reset) | 95 | ||
| 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 | ||
| Weak pull-up equivalent resistor | RPU | 30 | 45 | 60 | kΩ | VIN=VSS | 98 |
| Input leakage current, standard I/Os | Ilkg | 50 | nA | VSS≤VIN≤ VDD | 98 | ||
| I/O pin capacitance | CIO | 5 | pF | 98 | |||
| NRST input low level voltage | VIL(NRST) | 0.8 | V | 103 | |||
| NRST output low level voltage | VOL(NRST) | 0.4 | V | IOL = 2 mA, 2.7 V ≤ VDD ≤ 3.6 V | 103 |
CAD (KiCad official)
- Symbol:
STM8L151R8T6 - Footprint:
Package_QFP:LQFP-64_10x10mm_P0.5mm - 3D model: LQFP-64(10x10) (KiCad packages3D, STEP)
- 3D model files:
stm8l151r8t6-etched.step/stm8l151r8t6-etched.glbcarry the MPN laser-etched on the die in a toggleableAdom.LaserEtchgroup (Fusion-ready);stm8l151r8t6.step/stm8l151r8t6.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-07, 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).