← Commit history
README.mdadded+124@@ -0,0 +1,124 @@+# STM8L151C6T3++**STMicroelectronics** · Microcontrollers (MCU/MPU/SOC) · LQFP-48(7x7)++STM8L151C6T3 from STMicroelectronics, in a LQFP-48(7x7). 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 | GPIO port A0. Muxed with SWIM debug/programming I/O (default after reset), remappable USART1 synchronous clock, beeper output and IR timer output. High-sink LED driver capable; input pull-up applied during and after reset. |+| 2 | NRST/PA1 | bidirectional | Chip reset input (active-low, internal pull-up) with alternate function as GPIO port A1. As PA1 it can be configured only as open-drain or push-pull output, not as input (see RM0031). |+| 3 | PA2/OSC_IN/[USART1_TX]/[SPI1_MISO] | bidirectional | GPIO port A2 (5V-tolerant). Alternate functions: HSE crystal oscillator input, remappable USART1 TX, remappable SPI1 MISO. |+| 4 | PA3/OSC_OUT/[USART1_RX]/[SPI1_MOSI] | bidirectional | GPIO port A3 (5V-tolerant). Alternate functions: HSE crystal oscillator output, remappable USART1 RX, remappable SPI1 MOSI. |+| 5 | PA4/TIM2_BKIN/ADC1_IN2/COMP1_INP | bidirectional | GPIO port A4 (3.6V-tolerant TT I/O). Alternate functions: TIM2 break input, ADC1 input channel 2, Comparator 1 positive input. |+| 6 | PA5/TIM3_BKIN/ADC1_IN1/COMP1_INP | bidirectional | GPIO port A5 (3.6V-tolerant TT I/O). Alternate functions: TIM3 break input, ADC1 input channel 1, Comparator 1 positive input. |+| 7 | PA6/[ADC1_TRIG]/ADC1_IN0/COMP1_INP | bidirectional | GPIO port A6 (3.6V-tolerant TT I/O). Alternate functions: remappable ADC1 external trigger, ADC1 input channel 0, Comparator 1 positive input. |+| 8 | PA7 | bidirectional | GPIO port A7 (5V-tolerant FT I/O). Standard high-sink push-pull / open-drain output; input floating / weak pull-up / external interrupt capable. |+| 9 | VSS1/VSSA/VREF- | power_in | Common digital I/O ground, analog ground and ADC1 negative voltage reference. Connect to system 0V. |+| 10 | VDD1 | power_in | Digital power supply. 1.8 V to 3.6 V (down to 1.65 V at power-down). |+| 11 | VDDA | power_in | Analog supply voltage for the ADC, DAC, comparators and analog reference. Tie to VDD via ferrite/RC per typical application. |+| 12 | VREF+ | power_in | ADC1 and DAC positive voltage reference input. Must satisfy VREF+ ≤ VDDA. |+| 13 | Reserved | unconnected | Reserved on STM8L151xx devices. Must be tied to VDD. |+| 14 | PE0 | bidirectional | GPIO port E0 (5V-tolerant FT I/O). Standard high-sink push-pull / open-drain output; input floating / weak pull-up / external interrupt capable. |+| 15 | PE1/TIM1_CH2N | bidirectional | GPIO port E1 (3.6V-tolerant TT I/O). Alternate function: TIM1 inverted channel 2. |+| 16 | PE2/TIM1_CH3N | bidirectional | GPIO port E2 (3.6V-tolerant TT I/O). Alternate function: TIM1 inverted channel 3. |+| 17 | PE3 | bidirectional | GPIO port E3 (3.6V-tolerant TT I/O). Standard high-sink push-pull / open-drain output; input floating / weak pull-up / external interrupt capable. |+| 18 | PE4 | bidirectional | GPIO port E4 (3.6V-tolerant TT I/O). Standard high-sink push-pull / open-drain output; input floating / weak pull-up / external interrupt capable. |+| 19 | PE5/ADC1_IN23/COMP2_INP/COMP1_INP | bidirectional | GPIO port E5 (3.6V-tolerant TT I/O). Alternate functions: ADC1 input channel 23, Comparator 2 positive input, Comparator 1 positive input. |+| 20 | PD0/TIM3_CH2/[ADC1_TRIG]/ADC1_IN22/COMP2_INP/COMP1_INP | bidirectional | GPIO port D0 (3.6V-tolerant TT I/O). Alternate functions: TIM3 channel 2, remappable ADC1 trigger, ADC1 input channel 22, Comparator 2/1 positive input. |+| 21 | PD1/TIM3_ETR/ADC1_IN21/COMP2_INP/COMP1_INP | bidirectional | GPIO port D1 (3.6V-tolerant TT I/O). Alternate functions: TIM3 external trigger, ADC1 input channel 21, Comparator 2/1 positive input. |+| 22 | PD2/TIM1_CH1/ADC1_IN20/COMP1_INP | bidirectional | GPIO port D2 (3.6V-tolerant TT I/O). Alternate functions: TIM1 channel 1, ADC1 input channel 20, Comparator 1 positive input. |+| 23 | PD3/TIM1_ETR/ADC1_IN19/COMP1_INP | bidirectional | GPIO port D3 (3.6V-tolerant TT I/O). Alternate functions: TIM1 external trigger, ADC1 input channel 19, Comparator 1 positive input. |+| 24 | PB0/TIM2_CH1/ADC1_IN18/COMP1_INP | bidirectional | GPIO port B0 (3.6V-tolerant TT I/O). Alternate functions: TIM2 channel 1, ADC1 input channel 18, Comparator 1 positive input. |+| 25 | PB1/TIM3_CH1/ADC1_IN17/COMP1_INP | bidirectional | GPIO port B1 (3.6V-tolerant TT I/O). Alternate functions: TIM3 channel 1, ADC1 input channel 17, Comparator 1 positive input. |+| 26 | PB2/TIM2_CH2/ADC1_IN16/COMP1_INP | bidirectional | GPIO port B2 (3.6V-tolerant TT I/O). Alternate functions: TIM2 channel 2, ADC1 input channel 16, Comparator 1 positive input. |+| 27 | PB3/TIM2_ETR/ADC1_IN15/COMP1_INP | bidirectional | GPIO port B3 (3.6V-tolerant TT I/O). Alternate functions: TIM2 external trigger, ADC1 input channel 15, Comparator 1 positive input. |+| 28 | PB4/[SPI1_NSS]/ADC1_IN14/COMP1_INP | bidirectional | GPIO port B4 (3.6V-tolerant TT I/O). Alternate functions: remappable SPI1 slave-select, ADC1 input channel 14, Comparator 1 positive input. |+| 29 | PB5/[SPI1_SCK]/ADC1_IN13/COMP1_INP | bidirectional | GPIO port B5 (3.6V-tolerant TT I/O). Alternate functions: remappable SPI1 clock, ADC1 input channel 13, Comparator 1 positive input. |+| 30 | PB6/[SPI1_MOSI]/ADC1_IN12/COMP1_INP | bidirectional | GPIO port B6 (3.6V-tolerant TT I/O). Alternate functions: remappable SPI1 MOSI, ADC1 input channel 12, Comparator 1 positive input. |+| 31 | PB7/[SPI1_MISO]/ADC1_IN11/COMP1_INP | bidirectional | GPIO port B7 (3.6V-tolerant TT I/O). Alternate functions: remappable SPI1 MISO, ADC1 input channel 11, Comparator 1 positive input. |+| 32 | PF0/ADC1_IN24/DAC_OUT | bidirectional | GPIO port F0 (3.6V-tolerant TT I/O). Alternate functions: ADC1 input channel 24, 12-bit DAC output. |+| 33 | PD4/TIM1_CH2/ADC1_IN10/COMP1_INP | bidirectional | GPIO port D4 (3.6V-tolerant TT I/O). Alternate functions: TIM1 channel 2, ADC1 input channel 10, Comparator 1 positive input. |+| 34 | PD5/TIM1_CH3/ADC1_IN9/COMP1_INP | bidirectional | GPIO port D5 (3.6V-tolerant TT I/O). Alternate functions: TIM1 channel 3, ADC1 input channel 9, Comparator 1 positive input. |+| 35 | PD6/TIM1_BKIN/ADC1_IN8/RTC_CALIB/VREFINT/COMP1_INP | bidirectional | GPIO port D6 (3.6V-tolerant TT I/O). Alternate functions: TIM1 break input, ADC1 input channel 8, RTC calibration output, internal reference voltage output, Comparator 1 positive input. |+| 36 | PD7/TIM1_CH1N/ADC1_IN7/RTC_ALARM/VREFINT/COMP1_INP | bidirectional | GPIO port D7 (3.6V-tolerant TT I/O). Alternate functions: TIM1 inverted channel 1, ADC1 input channel 7, RTC alarm output, internal reference voltage output, Comparator 1 positive input. |+| 37 | PC0/I2C1_SDA | bidirectional | GPIO port C0 (5V-tolerant FT I/O, true open-drain). Alternate function: I2C1 data line (SDA), supports Fast-mode 400 kHz, SMBus and PMBus. External pull-up required for I2C operation. |+| 38 | PC1/I2C1_SCL | bidirectional | GPIO port C1 (5V-tolerant FT I/O, true open-drain). Alternate function: I2C1 clock line (SCL), supports Fast-mode 400 kHz, SMBus and PMBus. External pull-up required for I2C operation. |+| 39 | VDD2 | power_in | I/O power supply for the second supply domain (1.8 V to 3.6 V). Tie to same rail as VDD1 in most applications. |+| 40 | VSS2 | power_in | I/O ground for the second supply domain. Tie to system 0V. |+| 41 | PC2/USART1_RX/ADC1_IN6/COMP1_INP/VREFINT | bidirectional | GPIO port C2 (3.6V-tolerant TT I/O). Alternate functions: USART1 receive, ADC1 input channel 6, Comparator 1 positive input, internal voltage reference output. |+| 42 | PC3/USART1_TX/ADC1_IN5/COMP1_INP/COMP2_INM | bidirectional | GPIO port C3 (3.6V-tolerant TT I/O). Alternate functions: USART1 transmit, ADC1 input channel 5, Comparator 1 positive input, Comparator 2 negative input. |+| 43 | PC4/USART1_CK/I2C1_SMB/CCO/ADC1_IN4/COMP2_INM/COMP1_INP | bidirectional | GPIO port C4 (3.6V-tolerant TT I/O). Alternate functions: USART1 synchronous clock, I2C1 SMBus alert, configurable clock output (CCO), ADC1 input channel 4, Comparator 1/2 inputs. |+| 44 | PC5/OSC32_IN/[SPI1_NSS]/[USART1_TX] | bidirectional | GPIO port C5. Alternate functions: LSE 32.768 kHz crystal input, remappable SPI1 slave-select, remappable USART1 transmit. |+| 45 | PC6/OSC32_OUT/[SPI1_SCK]/[USART1_RX] | bidirectional | GPIO port C6. Alternate functions: LSE 32.768 kHz crystal output, remappable SPI1 clock, remappable USART1 receive. |+| 46 | PC7/ADC1_IN3/COMP2_INM/COMP1_INP | bidirectional | GPIO port C7 (3.6V-tolerant TT I/O). Alternate functions: ADC1 input channel 3, Comparator 2 negative input, Comparator 1 positive input. |+| 47 | PE6/PVD_IN | bidirectional | GPIO port E6 (3.6V-tolerant TT I/O). Alternate function: Programmable Voltage Detector (PVD) external input. |+| 48 | PE7 | bidirectional | GPIO port E7 (3.6V-tolerant TT I/O). Standard high-sink push-pull / open-drain output; input floating / weak pull-up / external interrupt capable. |++## Key specifications++| Parameter | Value |+|---|---|+| Manufacturer | STMicroelectronics |+| Package | LQFP-48(7x7) |+| Category | Embedded Processors & Controllers |+| Pins | 48 |++## Ordering variants++Same part, different packaging or reel option.++- `STM8L151C6T3C4T3`+- `STM8L151C6T3C4T6`+- `STM8L151C6T3C4T7`+- `STM8L151C6T3`+- `STM8L151C6T3C6T6`+- `STM8L151C6T3C6T7`+- `STM8L151C6T3C4U3`+- `STM8L151C6T3C4U6`+- `STM8L151C6T3C4U7`+- `STM8L151C6T3C6U3`+- `STM8L151C6T3C6U6`+- `STM8L151C6T3C6U7`+- `STM8L151C6T3K4T3`+- `STM8L151C6T3K4T6`+- `STM8L151C6T3K4T7`+- `STM8L151C6T3K6T3`+- `STM8L151C6T3K6T6`+- `STM8L151C6T3K6T7`+- `STM8L151C6T3K4U3`+- `STM8L151C6T3K4U6`+- `STM8L151C6T3K4U7`+- `STM8L151C6T3K6U3`+- `STM8L151C6T3K6U6`+- `STM8L151C6T3K6U7`+- `STM8L151C6T3G4U3`+- `STM8L151C6T3G4U6`+- `STM8L151C6T3G4U7`+- `STM8L151C6T3G6U3`+- `STM8L151C6T3G6U6`+- `STM8L151C6T3G6U7`+- `STM8L151C6T3G4Y3`+- `STM8L151C6T3G4Y6`+- `STM8L151C6T3G4Y7`+- `STM8L151C6T3G6Y3`+- `STM8L151C6T3G6Y6`+- `STM8L151C6T3G6Y7`++## CAD (KiCad official)++- Symbol: `STM8L151C6T3`+- Footprint: `Package_QFP:LQFP-48_7x7mm_P0.5mm`+- 3D model: LQFP-48(7x7) (KiCad packages3D, STEP)++## Provenance++Data extracted from the manufacturer datasheet, not a distributor listing:++- **Datasheet:** [STMicroelectronics datasheet](https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8588923988408487936) (None pp, sha256 `76f669f0972e887a`, retrieved 2026-08-17, tier: lcsc)+- **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/stm8l151c6t3-datasheet.pdf)
page.jsonadded+34@@ -0,0 +1,34 @@+{+ "slug": "stm8l151c6t3",+ "version": "0.1.0",+ "type": "component",+ "description": "STMicroelectronics Microcontrollers (MCU/MPU/SOC), LQFP-48(7x7). Datasheet-verified pinout, KiCad symbol/footprint/3D.",+ "tags": [+ "component",+ "embedded processors & controllers",+ "stm8l151c6t3"+ ],+ "dependencies": {},+ "hero": {+ "type": "image",+ "path": "docs/hero.png"+ },+ "files": [+ "page.json",+ "README.md",+ "stm8l151c6t3.kicad_sym",+ "stm8l151c6t3.kicad_mod",+ "stm8l151c6t3.glb",+ "stm8l151c6t3.step",+ "stm8l151c6t3.lbr",+ "docs/hero.png",+ "docs/stm8l151c6t3-datasheet.pdf",+ "viewers/symbol.html",+ "viewers/footprint.html"+ ],+ "visibility": "public",+ "author": {+ "name": "Ray",+ "email": "[email protected]"+ }+}