← Commit history
README.mdadded+107@@ -0,0 +1,107 @@+# STM8L152R8T6++**STMicroelectronics** · Microcontrollers (MCU/MPU/SOC) · LQFP-64(10x10)++STM8L152R8T6 from STMicroelectronics, in a LQFP-64(10x10). Pinout and pin descriptions extracted from the manufacturer datasheet by ds2sf; symbol, footprint, and 3D from KiCad-official CAD.++## Pinout++| Pin | Name | Type | Function |+|---|---|---|---|+| 1 | PA0/[USART1_CK]/SWIM/BEEP/IR_TIM | bidirectional | Port A bit 0. Default = SWIM debug I/O with weak pull-up at reset. Alternate: USART1 synchronous clock, beep output, or infrared timer output. 5 V tolerant, high-sink capable. |+| 2 | NRST/PA1 | bidirectional | Active-low device reset input with internal pull-up at power-up. Can be re-configured via option byte as GPIO PA1 (push-pull output only). High-sink capable. |+| 3 | PA2/OSC_IN/[USART1_TX]/[SPI1_MISO] | bidirectional | Port A bit 2. Alternate functions: HSE crystal oscillator input, USART1 TX, SPI1 MISO. 5 V tolerant, high-sink capable. |+| 4 | PA3/OSC_OUT/[USART1_RX]/[SPI1_MOSI] | bidirectional | Port A bit 3. Alternate functions: HSE crystal oscillator output, USART1 RX, SPI1 MOSI. 5 V tolerant, high-sink capable. |+| 5 | PA4/TIM2_BKIN/[TIM2_ETR]/LCD_COM0/ADC1_IN2/[COMP1_INP] | bidirectional | Port A bit 4. Mux: TIM2 break input / trigger, LCD common 0, ADC1 channel 2, comparator 1 positive input. 5 V tolerant. |+| 6 | PA5/TIM3_BKIN/[TIM3_ETR]/LCD_COM1/ADC1_IN1/[COMP1_INP] | bidirectional | Port A bit 5. Mux: TIM3 break input / trigger, LCD common 1, ADC1 channel 1, comparator 1 positive input. |+| 7 | PA6/ADC1_TRIG/LCD_COM2/ADC1_IN0/[COMP1_INP] | bidirectional | Port A bit 6. Mux: ADC1 external trigger, LCD common 2, ADC1 channel 0, comparator 1 positive input. |+| 8 | PA7/LCD_SEG0/TIM5_CH1 | bidirectional | Port A bit 7. Mux: LCD segment 0, TIM5 channel 1. |+| 9 | VSSA/VREF- | power_in | Analog ground and ADC1 negative reference. Tie to system ground with low-impedance connection. |+| 10 | VSS1 | power_in | Digital I/O ground. Tie to system ground. |+| 11 | VDD1 | power_in | Digital I/O supply, 1.65-3.6 V (1.8-3.6 V with BOR). Decouple with 100 nF close to pin. |+| 12 | VDDA | power_in | Analog supply, 1.65-3.6 V. Should be equal to VDD; decouple with 100 nF + 1 uF. |+| 13 | VREF+ | power_in | ADC1 and DAC1/2 positive voltage reference input. Can be tied to VDDA or driven by external reference. |+| 14 | PG0/LCD_SEG28/USART3_RX/[TIM2_BKIN] | bidirectional | Port G bit 0. Mux: LCD segment 28, USART3 RX, TIM2 break input. |+| 15 | PG1/LCD_SEG29/USART3_TX/[TIM3_BKIN] | bidirectional | Port G bit 1. Mux: LCD segment 29, USART3 TX, TIM3 break input. |+| 16 | PG2/LCD_SEG30/USART3_CK | bidirectional | Port G bit 2. Mux: LCD segment 30, USART3 synchronous clock. |+| 17 | PG3/LCD_SEG31/[TIM3_ETR] | bidirectional | Port G bit 3. Mux: LCD segment 31, TIM3 external trigger. |+| 18 | VLCD | power_in | LCD booster external capacitor pin (STM8L152 with LCD). Connect the LCD booster reservoir capacitor here. |+| 19 | PE0/LCD_SEG1/TIM5_CH2 | bidirectional | Port E bit 0. Mux: LCD segment 1, TIM5 channel 2. |+| 20 | PE1/TIM1_CH2N/LCD_SEG2 | bidirectional | Port E bit 1. Mux: TIM1 inverted channel 2, LCD segment 2. |+| 21 | PE2/TIM1_CH3N/LCD_SEG3/[CCO] | bidirectional | Port E bit 2. Mux: TIM1 inverted channel 3, LCD segment 3, configurable clock output. |+| 22 | PE3/LCD_SEG4/USART2_RX | bidirectional | Port E bit 3. Mux: LCD segment 4, USART2 RX. |+| 23 | PE4/LCD_SEG5/DAC_TRIG2/USART2_TX | bidirectional | Port E bit 4. Mux: LCD segment 5, DAC channel 2 trigger, USART2 TX. |+| 24 | PE5/LCD_SEG6/ADC1_IN23/[COMP1_INP]/[COMP2_INP]/USART2_CK | bidirectional | Port E bit 5. Mux: LCD segment 6, ADC1 channel 23, comparator 1/2 positive input, USART2 synchronous clock. |+| 25 | PD0/TIM3_CH2/[ADC1_TRIG]/LCD_SEG7/ADC1_IN22/[COMP2_INP] | bidirectional | Port D bit 0. Mux: TIM3 channel 2, ADC1 external trigger, LCD segment 7, ADC1 channel 22, comparator 2 positive input. |+| 26 | PD1/TIM3_ETR/LCD_COM3/ADC1_IN21/[COMP1_INP]/[COMP2_INP] | bidirectional | Port D bit 1. Mux: TIM3 trigger, LCD common 3, ADC1 channel 21, comparator 1/2 positive input. |+| 27 | PD2/TIM1_CH1/LCD_SEG8/ADC1_IN20/[COMP1_INP] | bidirectional | Port D bit 2. Mux: TIM1 channel 1, LCD segment 8, ADC1 channel 20, comparator 1 positive input. |+| 28 | PD3/TIM1_ETR/LCD_SEG9/ADC1_IN19/[COMP1_INP] | bidirectional | Port D bit 3. Mux: TIM1 trigger, LCD segment 9, ADC1 channel 19, comparator 1 positive input. |+| 29 | VDD3 | power_in | I/O supply voltage. Tie to VDD; decouple locally. |+| 30 | VSS3 | power_in | I/O ground. Tie to system ground. |+| 31 | PB0/TIM2_CH1/LCD_SEG10/ADC1_IN18/[COMP1_INP] | bidirectional | Port B bit 0. Mux: TIM2 channel 1, LCD segment 10, ADC1 channel 18, comparator 1 positive input. Pull-up applied during reset phase. |+| 32 | PB1/TIM3_CH1/LCD_SEG11/ADC1_IN17/[COMP1_INP] | bidirectional | Port B bit 1. Mux: TIM3 channel 1, LCD segment 11, ADC1 channel 17, comparator 1 positive input. |+| 33 | PB2/TIM2_CH2/LCD_SEG12/ADC1_IN16/[COMP1_INP] | bidirectional | Port B bit 2. Mux: TIM2 channel 2, LCD segment 12, ADC1 channel 16, comparator 1 positive input. |+| 34 | PB3/TIM2_ETR/LCD_SEG13/ADC1_IN15/[COMP1_INP] | bidirectional | Port B bit 3. Mux: TIM2 trigger, LCD segment 13, ADC1 channel 15, comparator 1 positive input. |+| 35 | PB4/SPI1_NSS/LCD_SEG14/ADC1_IN14/[COMP1_INP] | bidirectional | Port B bit 4. Mux: SPI1 master/slave select (NSS), LCD segment 14, ADC1 channel 14, comparator 1 positive input. Pull-up applied during reset phase. |+| 36 | PB5/SPI1_SCK/LCD_SEG15/ADC1_IN13/[COMP1_INP] | bidirectional | Port B bit 5. Mux: SPI1 clock, LCD segment 15, ADC1 channel 13, comparator 1 positive input. |+| 37 | PB6/SPI1_MOSI/LCD_SEG16/ADC1_IN12/[COMP1_INP] | bidirectional | Port B bit 6. Mux: SPI1 MOSI, LCD segment 16, ADC1 channel 12, comparator 1 positive input. |+| 38 | PB7/SPI1_MISO/LCD_SEG17/ADC1_IN11/[COMP1_INP] | bidirectional | Port B bit 7. Mux: SPI1 MISO, LCD segment 17, ADC1 channel 11, comparator 1 positive input. |+| 39 | PF0/ADC1_IN24/DAC_OUT1/[USART3_TX] | bidirectional | Port F bit 0. Mux: ADC1 channel 24, DAC channel 1 output, USART3 TX. |+| 40 | PF1/ADC1_IN25/DAC_OUT2/[USART3_RX] | bidirectional | Port F bit 1. Mux: ADC1 channel 25, DAC channel 2 output, USART3 RX. |+| 41 | PF4/LCD_SEG36/[LCD_COM4] | bidirectional | Port F bit 4. Mux: LCD segment 36 or LCD common 4. |+| 42 | PF5/LCD_SEG37/[LCD_COM5] | bidirectional | Port F bit 5. Mux: LCD segment 37 or LCD common 5. |+| 43 | PF6/LCD_SEG38/[LCD_COM6] | bidirectional | Port F bit 6. Mux: LCD segment 38 or LCD common 6. |+| 44 | PF7/LCD_SEG39/[LCD_COM7] | bidirectional | Port F bit 7. Mux: LCD segment 39 or LCD common 7. |+| 45 | PD4/TIM1_CH2/LCD_SEG18/ADC1_IN10/[COMP1_INP] | bidirectional | Port D bit 4. Mux: TIM1 channel 2, LCD segment 18, ADC1 channel 10, comparator 1 positive input. |+| 46 | PD5/TIM1_CH3/LCD_SEG19/ADC1_IN9/[COMP1_INP] | bidirectional | Port D bit 5. Mux: TIM1 channel 3, LCD segment 19, ADC1 channel 9, comparator 1 positive input. |+| 47 | PD6/TIM1_BKIN/LCD_SEG20/ADC1_IN8/RTC_CALIB/[COMP1_INP]/VREFINT | bidirectional | Port D bit 6. Mux: TIM1 break input, LCD segment 20, ADC1 channel 8, RTC calibration output, comparator 1 positive input, internal reference voltage output. |+| 48 | PD7/TIM1_CH1N/LCD_SEG21/ADC1_IN7/RTC_ALARM/[COMP1_INP]/VREFINT | bidirectional | Port D bit 7. Mux: TIM1 inverted channel 1, LCD segment 21, ADC1 channel 7, RTC alarm output, comparator 1 positive input, internal reference voltage output. |+| 49 | PG4/LCD_SEG32/SPI2_NSS | bidirectional | Port G bit 4. Mux: LCD segment 32, SPI2 master/slave select. |+| 50 | PG5/LCD_SEG33/SPI2_SCK | bidirectional | Port G bit 5. Mux: LCD segment 33, SPI2 clock. |+| 51 | PG6/LCD_SEG34/SPI2_MOSI | bidirectional | Port G bit 6. Mux: LCD segment 34, SPI2 MOSI. |+| 52 | PG7/LCD_SEG35/SPI2_MISO | bidirectional | Port G bit 7. Mux: LCD segment 35, SPI2 MISO. |+| 53 | PC0/I2C1_SDA | bidirectional | Port C bit 0. Mux: I2C1 data (true open-drain, no pull-up or protection diode to VDD). Requires external pull-up. Fast-mode 400 kHz. |+| 54 | PC1/I2C1_SCL | bidirectional | Port C bit 1. Mux: I2C1 clock (true open-drain, no pull-up or protection diode to VDD). Requires external pull-up. |+| 55 | VDD2 | power_in | I/O supply voltage. Tie to VDD; decouple locally. |+| 56 | VSS2 | power_in | I/O ground. Tie to system ground. |+| 57 | PC2/USART1_RX/LCD_SEG22/ADC1_IN6/[COMP1_INP]/VREFINT | bidirectional | Port C bit 2. Mux: USART1 RX, LCD segment 22, ADC1 channel 6, comparator 1 positive input, internal reference voltage output. |+| 58 | PC3/USART1_TX/LCD_SEG23/ADC1_IN5/[COMP2_INM]/[COMP1_INP] | bidirectional | Port C bit 3. Mux: USART1 TX, LCD segment 23, ADC1 channel 5, comparator 2 negative input, comparator 1 positive input. |+| 59 | PC4/USART1_CK/I2C1_SMB/[CCO]/LCD_SEG24/ADC1_IN4/[COMP2_INM]/[COMP1_INP] | bidirectional | Port C bit 4. Mux: USART1 synchronous clock, I2C1 SMBus alert, configurable clock output, LCD segment 24, ADC1 channel 4, comparator 2 negative input, comparator 1 positive input. |+| 60 | PC5/OSC32_IN/[SPI1_NSS]/[USART1_TX] | bidirectional | Port C bit 5. Mux: LSE 32 kHz oscillator input, SPI1 NSS, USART1 TX. |+| 61 | PC6/OSC32_OUT/[SPI1_SCK]/[USART1_RX] | bidirectional | Port C bit 6. Mux: LSE 32 kHz oscillator output, SPI1 clock, USART1 RX. |+| 62 | PC7/LCD_SEG25/ADC1_IN3/[COMP2_INM]/[COMP1_INP] | bidirectional | Port C bit 7. Mux: LCD segment 25, ADC1 channel 3, comparator 2 negative input, comparator 1 positive input. |+| 63 | PE6/LCD_SEG26/PVD_IN/TIM5_BKIN | bidirectional | Port E bit 6. Mux: LCD segment 26, programmable voltage detector input, TIM5 break input. |+| 64 | PE7/LED_SEG27/TIM5_ETR | bidirectional | Port E bit 7. Mux: LCD segment 27, TIM5 external trigger. |++## Key specifications++| Parameter | Value |+|---|---|+| Manufacturer | STMicroelectronics |+| Package | LQFP-64(10x10) |+| Category | MCU |+| Pins | 64 |++## Ordering variants++- `STM8L152R8T6R8T6`+- `STM8L152R8T6R6T6`+- `STM8L152R8T6M8T6`+- `STM8L152R8T6C8T6`+- `STM8L152R8T6C8U6`++## CAD (KiCad official)++- Symbol: `STM8L152R8T6`+- Footprint: `Package_QFP:LQFP-64_10x10mm_P0.5mm`+- 3D model: LQFP-64(10x10) (KiCad packages3D, STEP)++## Provenance++Data extracted from the manufacturer datasheet, not a distributor listing:++- **Datasheet:** [STMicroelectronics datasheet](https://www.st.com/resource/en/datasheet/stm8l152r8t6.pdf) (134 pp, sha256 `6ec62e0638c0bbbb`, retrieved 2026-08-17, tier: manufacturer)+- **Extractor:** `ds2sf` (Claude). Every pin and dimension is cited to a datasheet page; it refuses to fabricate.+- **CAD:** KiCad official libraries (CC-BY-SA 4.0).++[Datasheet PDF](docs/stm8l152r8t6-datasheet.pdf)
page.jsonadded+34@@ -0,0 +1,34 @@+{+ "slug": "stm8l152r8t6",+ "version": "0.1.0",+ "type": "component",+ "description": "STMicroelectronics Microcontrollers (MCU/MPU/SOC), LQFP-64(10x10). Datasheet-verified pinout, KiCad symbol/footprint/3D.",+ "tags": [+ "component",+ "mcu",+ "stm8l152r8t6"+ ],+ "dependencies": {},+ "hero": {+ "type": "image",+ "path": "docs/hero.png"+ },+ "files": [+ "page.json",+ "README.md",+ "stm8l152r8t6.kicad_sym",+ "stm8l152r8t6.kicad_mod",+ "stm8l152r8t6.glb",+ "stm8l152r8t6.step",+ "stm8l152r8t6.lbr",+ "docs/hero.png",+ "docs/stm8l152r8t6-datasheet.pdf",+ "viewers/symbol.html",+ "viewers/footprint.html"+ ],+ "visibility": "public",+ "author": {+ "name": "Ray",+ "email": "[email protected]"+ }+}