component
STM8L152C4T3
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.
← Commit history
README.mdadded+84@@ -0,0 +1,84 @@+# STM8L152C4T3++**STMicroelectronics** · Microcontrollers (MCU/MPU/SOC) · LQFP-48(7x7)++STM8L152C4T3 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 general purpose I/O with SWIM interface, beeper output, and infrared timer output functions; high sink LED driver capable. |+| 2 | NRST/PA1 | bidirectional | Reset input pin (NRST) with internal pull-up; configurable as general purpose output (PA1) in open-drain or push-pull mode. |+| 3 | PA2 | bidirectional | Port A2 general purpose I/O with HSE oscillator input function and optional USART1 transmit or SPI1 MISO alternate functions. |+| 4 | PA3 | bidirectional | Port A3 general purpose I/O with HSE oscillator output function and optional USART1 receive or SPI1 MOSI alternate functions. |+| 5 | PA4 | bidirectional | Port A4 general purpose I/O with Timer 2 break input, LCD COM0 segment, ADC1 input channel 2, and Comparator 1 positive input functions. |+| 6 | PA5 | bidirectional | Port A5 general purpose I/O with Timer 3 break input, LCD COM1 segment, ADC1 input channel 1, and Comparator 1 positive input functions. |+| 7 | PA6 | bidirectional | Port A6 general purpose I/O with optional ADC1 trigger, LCD COM2 segment, ADC1 input channel 0, and Comparator 1 positive input functions. |+| 8 | PA7 | bidirectional | Port A7 general purpose I/O five-volt tolerant with LCD segment 0 function. |+| 9 | VSS1/VSSA/VREF- | power_in | Ground pins for I/O (VSS1), analog circuits (VSSA), and ADC1 negative voltage reference (VREF-); must be connected to external power supply. |+| 10 | VDD1/VDDA/VREF+ | power_in | Power supply pins for digital I/O (VDD1), analog circuits (VDDA), and ADC1/DAC positive reference (VREF+) from 1.65 V to 3.6 V. |+| 11 | VDDA | power_in | Analog supply voltage from 1.65 V to 3.6 V (minimum 1.8 V when ADC1 or DAC is used); must be connected to VDD1. |+| 12 | VREF+ | power_in | External positive voltage reference for ADC1 and DAC from 1.8 V to VDDA; must be provided externally. |+| 13 | VLCD | power_in | LCD booster external capacitor supply voltage from 2.5 V to 3.6 V for LCD controller (STM8L152 only). |+| 14 | PE0 | bidirectional | Port E0 general purpose I/O five-volt tolerant with LCD segment 1 function. |+| 15 | PE1 | bidirectional | Port E1 general purpose I/O with Timer 1 inverted channel 2 output and LCD segment 2 functions. |+| 16 | PE2 | bidirectional | Port E2 general purpose I/O with Timer 1 inverted channel 3 output and LCD segment 3 functions. |+| 17 | PE3 | bidirectional | Port E3 general purpose I/O with LCD segment 4 function. |+| 18 | PE4 | bidirectional | Port E4 general purpose I/O with LCD segment 5 function. |+| 19 | PE5 | bidirectional | Port E5 general purpose I/O with LCD segment 6, ADC1 input channel 23, and Comparator 2 positive input functions. |+| 20 | PD0 | bidirectional | Port D0 general purpose I/O with Timer 3 channel 2 output, ADC1 trigger, LCD segment 7, ADC1 input 22, and Comparator 2/1 positive input functions. |+| 21 | PD1 | bidirectional | Port D1 general purpose I/O with Timer 3 external trigger, LCD COM3, ADC1 input 21, and Comparator 2/1 positive input functions. |+| 22 | PD2 | bidirectional | Port D2 general purpose I/O with Timer 1 channel 1 output, LCD segment 8, ADC1 input 20, and Comparator 1 positive input functions. |+| 23 | PD3 | bidirectional | Port D3 general purpose I/O with Timer 1 external trigger, LCD segment 9, ADC1 input 19, and Comparator 1 positive input functions. |+| 24 | PB0 | bidirectional | Port B0 general purpose I/O with internal pull-up during reset, Timer 2 channel 1, LCD segment 10, ADC1 input 18, and Comparator 1 positive input functions. |+| 25 | PB1 | bidirectional | Port B1 general purpose I/O with Timer 3 channel 1, LCD segment 11, ADC1 input 17, and Comparator 1 positive input functions. |+| 26 | PB2 | bidirectional | Port B2 general purpose I/O with Timer 2 channel 2, LCD segment 12, ADC1 input 16, and Comparator 1 positive input functions. |+| 27 | PB3 | bidirectional | Port B3 general purpose I/O with Timer 2 external trigger, LCD segment 13, ADC1 input 15, and Comparator 1 positive input functions. |+| 28 | PB4 | bidirectional | Port B4 general purpose I/O with internal pull-up during reset, optional SPI1 master/slave select, LCD segment 14, ADC1 input 14, and Comparator 1 positive input functions. |+| 29 | PB5 | bidirectional | Port B5 general purpose I/O with optional SPI1 clock, LCD segment 15, ADC1 input 13, and Comparator 1 positive input functions. |+| 30 | PB6 | bidirectional | Port B6 general purpose I/O with optional SPI1 master out/slave in, LCD segment 16, ADC1 input 12, and Comparator 1 positive input functions. |+| 31 | PB7 | bidirectional | Port B7 general purpose I/O with optional SPI1 master in slave out, LCD segment 17, ADC1 input 11, and Comparator 1 positive input functions. |+| 32 | PF0 | bidirectional | Port F0 general purpose I/O with ADC1 input channel 24 and DAC output functions. |+| 33 | PD4 | bidirectional | Port D4 general purpose I/O with Timer 1 channel 2 output, LCD segment 18, ADC1 input 10, and Comparator 1 positive input functions. |+| 34 | PD5 | bidirectional | Port D5 general purpose I/O with Timer 1 channel 3 output, LCD segment 19, ADC1 input 9, and Comparator 1 positive input functions. |+| 35 | PD6 | bidirectional | Port D6 general purpose I/O with Timer 1 break input, LCD segment 20, ADC1 input 8, RTC calibration output, internal voltage reference output, and Comparator 1 positive input functions. |+| 36 | PD7 | bidirectional | Port D7 general purpose I/O with Timer 1 inverted channel 1, LCD segment 21, ADC1 input 7, RTC alarm output, internal voltage reference output, and Comparator 1 positive input functions. |+| 37 | PC0 | bidirectional | Port C0 general purpose I/O five-volt tolerant with true open-drain output and I2C1 data (SDA) function. |+| 38 | PC1 | bidirectional | Port C1 general purpose I/O five-volt tolerant with true open-drain output and I2C1 clock (SCL) function. |+| 39 | VDD2 | power_in | I/O supply voltage from 1.65 V to 3.6 V; must be connected to VDD1 externally. |+| 40 | VSS2 | power_in | I/O ground voltage pin; must be connected to VSS1 externally. |+| 41 | PC2 | bidirectional | Port C2 general purpose I/O with USART1 receive, LCD segment 22, ADC1 input 6, Comparator 1 positive input, and internal voltage reference output functions. |+| 42 | PC3 | bidirectional | Port C3 general purpose I/O with USART1 transmit, LCD segment 23, ADC1 input 5, Comparator 1 positive input, and Comparator 2 negative input functions. |+| 43 | PC4 | bidirectional | Port C4 general purpose I/O with USART1 synchronous clock, I2C1 SMB, configurable clock output, LCD segment 24, ADC1 input 4, and Comparator 2/1 negative/positive input functions. |+| 44 | PC5 | bidirectional | Port C5 general purpose I/O with LSE oscillator input function and optional SPI1 master/slave select or USART1 transmit. |+| 45 | PC6 | bidirectional | Port C6 general purpose I/O with LSE oscillator output function and optional SPI1 clock or USART1 receive. |+| 46 | PC7 | bidirectional | Port C7 general purpose I/O with LCD segment 25, ADC1 input 3, Comparator 2 negative input, and Comparator 1 positive input functions. |+| 47 | PE6 | bidirectional | Port E6 general purpose I/O with LCD segment 26 and programmable voltage detector (PVD) input functions. |+| 48 | PE7 | bidirectional | Port E7 general purpose I/O with LCD segment 27 function. |++## Key specifications++| Parameter | Value |+|---|---|+| Manufacturer | STMicroelectronics |+| Package | LQFP-48(7x7) |+| Category | Embedded Processors & Controllers |+| Pins | 48 |++## CAD (KiCad official)++- Symbol: `STM8L152C4T3`+- Footprint: `Package_QFP:LQFP-48_7x7mm_P0.5mm`+- 3D model: LQFP-48(7x7) (KiCad packages3D, STEP)+- 3D model files: `stm8l152c4t3-etched.step` / `stm8l152c4t3-etched.glb` carry the MPN laser-etched on the die in a toggleable `Adom.LaserEtch` group (Fusion-ready); `stm8l152c4t3.step` / `stm8l152c4t3.glb` are the bare package body.++## Provenance++Data extracted from the manufacturer datasheet, not a distributor listing:++- **Datasheet:** [STMicroelectronics datasheet](https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8588923718324670464) (141 pp, sha256 `76f669f0972e887a`, retrieved 2026-09-27, tier: lcsc)+- **Extractor:** parts-factory `2.0.0` / `extract_pins 0.2`, primary `claude-haiku-4-5-20251001` (text), consensus `claude-sonnet-4-6` (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).++[Datasheet PDF](docs/stm8l152c4t3-datasheet.pdf)
page.jsonadded+398@@ -0,0 +1,398 @@+{+ "slug": "stm8l152c4t3",+ "version": "0.1.0",+ "type": "component",+ "description": "STMicroelectronics Microcontrollers (MCU/MPU/SOC), LQFP-48(7x7). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",+ "tags": [+ "component",+ "embedded processors & controllers",+ "stm8l152c4t3",+ "factory-2.0.0",+ "extractor-text"+ ],+ "dependencies": {},+ "hero": {+ "type": "image",+ "path": "docs/hero.png"+ },+ "files": [+ "page.json",+ "README.md",+ "stm8l152c4t3.kicad_sym",+ "stm8l152c4t3.kicad_mod",+ "stm8l152c4t3.glb",+ "stm8l152c4t3.step",+ "stm8l152c4t3.lbr",+ "docs/hero.png",+ "docs/stm8l152c4t3-datasheet.pdf",+ "viewers/symbol.html",+ "viewers/footprint.html"+ ],+ "component": {+ "mpn": "STM8L152C4T3",+ "manufacturer": "STMicroelectronics",+ "package": "LQFP-48(7x7)",+ "pin_count": 48,+ "category": "Embedded Processors & Controllers",+ "subcategory": "Microcontrollers (MCU/MPU/SOC)",+ "datasheet": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8588923718324670464",+ "parts": {+ "symbol": "stm8l152c4t3.kicad_sym",+ "footprint": "stm8l152c4t3.kicad_mod",+ "model_3d": "stm8l152c4t3-etched.glb",+ "model_3d_plain": "stm8l152c4t3.glb",+ "model_3d_step": "stm8l152c4t3-etched.step",+ "model_3d_step_plain": "stm8l152c4t3.step",+ "lbr": "stm8l152c4t3.lbr"+ },+ "distributor_links": {+ "lcsc": "C1340801",+ "digikey": "STM8L152C4T3-ND",+ "mouser": "511-STM8L152C4T3"+ },+ "distributor_check": {+ "checked_at": "2026-09-27T00:00:13Z",+ "source": "Component Ocean /api/assign-pns",+ "digikey": {+ "pn": "STM8L152C4T3-ND",+ "status": "found",+ "lifecycle": "Active"+ },+ "mouser": {+ "pn": "511-STM8L152C4T3",+ "status": "found"+ }+ },+ "pins": [+ {+ "number": "1",+ "name": "PA0",+ "type": "bidirectional",+ "description": "Port A0 general purpose I/O with SWIM interface, beeper output, and infrared timer output functions; high sink LED driver capable."+ },+ {+ "number": "2",+ "name": "NRST/PA1",+ "type": "bidirectional",+ "description": "Reset input pin (NRST) with internal pull-up; configurable as general purpose output (PA1) in open-drain or push-pull mode."+ },+ {+ "number": "3",+ "name": "PA2",+ "type": "bidirectional",+ "description": "Port A2 general purpose I/O with HSE oscillator input function and optional USART1 transmit or SPI1 MISO alternate functions."+ },+ {+ "number": "4",+ "name": "PA3",+ "type": "bidirectional",+ "description": "Port A3 general purpose I/O with HSE oscillator output function and optional USART1 receive or SPI1 MOSI alternate functions."+ },+ {+ "number": "5",+ "name": "PA4",+ "type": "bidirectional",+ "description": "Port A4 general purpose I/O with Timer 2 break input, LCD COM0 segment, ADC1 input channel 2, and Comparator 1 positive input functions."+ },+ {+ "number": "6",+ "name": "PA5",+ "type": "bidirectional",+ "description": "Port A5 general purpose I/O with Timer 3 break input, LCD COM1 segment, ADC1 input channel 1, and Comparator 1 positive input functions."+ },+ {+ "number": "7",+ "name": "PA6",+ "type": "bidirectional",+ "description": "Port A6 general purpose I/O with optional ADC1 trigger, LCD COM2 segment, ADC1 input channel 0, and Comparator 1 positive input functions."+ },+ {+ "number": "8",+ "name": "PA7",+ "type": "bidirectional",+ "description": "Port A7 general purpose I/O five-volt tolerant with LCD segment 0 function."+ },+ {+ "number": "9",+ "name": "VSS1/VSSA/VREF-",+ "type": "power_in",+ "description": "Ground pins for I/O (VSS1), analog circuits (VSSA), and ADC1 negative voltage reference (VREF-); must be connected to external power supply."+ },+ {+ "number": "10",+ "name": "VDD1/VDDA/VREF+",+ "type": "power_in",+ "description": "Power supply pins for digital I/O (VDD1), analog circuits (VDDA), and ADC1/DAC positive reference (VREF+) from 1.65 V to 3.6 V."+ },+ {+ "number": "11",+ "name": "VDDA",+ "type": "power_in",+ "description": "Analog supply voltage from 1.65 V to 3.6 V (minimum 1.8 V when ADC1 or DAC is used); must be connected to VDD1."+ },+ {+ "number": "12",+ "name": "VREF+",+ "type": "power_in",+ "description": "External positive voltage reference for ADC1 and DAC from 1.8 V to VDDA; must be provided externally."+ },+ {+ "number": "13",+ "name": "VLCD",+ "type": "power_in",+ "description": "LCD booster external capacitor supply voltage from 2.5 V to 3.6 V for LCD controller (STM8L152 only)."+ },+ {+ "number": "14",+ "name": "PE0",+ "type": "bidirectional",+ "description": "Port E0 general purpose I/O five-volt tolerant with LCD segment 1 function."+ },+ {+ "number": "15",+ "name": "PE1",+ "type": "bidirectional",+ "description": "Port E1 general purpose I/O with Timer 1 inverted channel 2 output and LCD segment 2 functions."+ },+ {+ "number": "16",+ "name": "PE2",+ "type": "bidirectional",+ "description": "Port E2 general purpose I/O with Timer 1 inverted channel 3 output and LCD segment 3 functions."+ },+ {+ "number": "17",+ "name": "PE3",+ "type": "bidirectional",+ "description": "Port E3 general purpose I/O with LCD segment 4 function."+ },+ {+ "number": "18",+ "name": "PE4",+ "type": "bidirectional",+ "description": "Port E4 general purpose I/O with LCD segment 5 function."+ },+ {+ "number": "19",+ "name": "PE5",+ "type": "bidirectional",+ "description": "Port E5 general purpose I/O with LCD segment 6, ADC1 input channel 23, and Comparator 2 positive input functions."+ },+ {+ "number": "20",+ "name": "PD0",+ "type": "bidirectional",+ "description": "Port D0 general purpose I/O with Timer 3 channel 2 output, ADC1 trigger, LCD segment 7, ADC1 input 22, and Comparator 2/1 positive input functions."+ },+ {+ "number": "21",+ "name": "PD1",+ "type": "bidirectional",+ "description": "Port D1 general purpose I/O with Timer 3 external trigger, LCD COM3, ADC1 input 21, and Comparator 2/1 positive input functions."+ },+ {+ "number": "22",+ "name": "PD2",+ "type": "bidirectional",+ "description": "Port D2 general purpose I/O with Timer 1 channel 1 output, LCD segment 8, ADC1 input 20, and Comparator 1 positive input functions."+ },+ {+ "number": "23",+ "name": "PD3",+ "type": "bidirectional",+ "description": "Port D3 general purpose I/O with Timer 1 external trigger, LCD segment 9, ADC1 input 19, and Comparator 1 positive input functions."+ },+ {+ "number": "24",+ "name": "PB0",+ "type": "bidirectional",+ "description": "Port B0 general purpose I/O with internal pull-up during reset, Timer 2 channel 1, LCD segment 10, ADC1 input 18, and Comparator 1 positive input functions."+ },+ {+ "number": "25",+ "name": "PB1",+ "type": "bidirectional",+ "description": "Port B1 general purpose I/O with Timer 3 channel 1, LCD segment 11, ADC1 input 17, and Comparator 1 positive input functions."+ },+ {+ "number": "26",+ "name": "PB2",+ "type": "bidirectional",+ "description": "Port B2 general purpose I/O with Timer 2 channel 2, LCD segment 12, ADC1 input 16, and Comparator 1 positive input functions."+ },+ {+ "number": "27",+ "name": "PB3",+ "type": "bidirectional",+ "description": "Port B3 general purpose I/O with Timer 2 external trigger, LCD segment 13, ADC1 input 15, and Comparator 1 positive input functions."+ },+ {+ "number": "28",+ "name": "PB4",+ "type": "bidirectional",+ "description": "Port B4 general purpose I/O with internal pull-up during reset, optional SPI1 master/slave select, LCD segment 14, ADC1 input 14, and Comparator 1 positive input functions."+ },+ {+ "number": "29",+ "name": "PB5",+ "type": "bidirectional",+ "description": "Port B5 general purpose I/O with optional SPI1 clock, LCD segment 15, ADC1 input 13, and Comparator 1 positive input functions."+ },+ {+ "number": "30",+ "name": "PB6",+ "type": "bidirectional",+ "description": "Port B6 general purpose I/O with optional SPI1 master out/slave in, LCD segment 16, ADC1 input 12, and Comparator 1 positive input functions."+ },+ {+ "number": "31",+ "name": "PB7",+ "type": "bidirectional",+ "description": "Port B7 general purpose I/O with optional SPI1 master in slave out, LCD segment 17, ADC1 input 11, and Comparator 1 positive input functions."+ },+ {+ "number": "32",+ "name": "PF0",+ "type": "bidirectional",+ "description": "Port F0 general purpose I/O with ADC1 input channel 24 and DAC output functions."+ },+ {+ "number": "33",+ "name": "PD4",+ "type": "bidirectional",+ "description": "Port D4 general purpose I/O with Timer 1 channel 2 output, LCD segment 18, ADC1 input 10, and Comparator 1 positive input functions."+ },+ {+ "number": "34",+ "name": "PD5",+ "type": "bidirectional",+ "description": "Port D5 general purpose I/O with Timer 1 channel 3 output, LCD segment 19, ADC1 input 9, and Comparator 1 positive input functions."+ },+ {+ "number": "35",+ "name": "PD6",+ "type": "bidirectional",+ "description": "Port D6 general purpose I/O with Timer 1 break input, LCD segment 20, ADC1 input 8, RTC calibration output, internal voltage reference output, and Comparator 1 positive input functions."+ },+ {+ "number": "36",+ "name": "PD7",+ "type": "bidirectional",+ "description": "Port D7 general purpose I/O with Timer 1 inverted channel 1, LCD segment 21, ADC1 input 7, RTC alarm output, internal voltage reference output, and Comparator 1 positive input functions."+ },+ {+ "number": "37",+ "name": "PC0",+ "type": "bidirectional",+ "description": "Port C0 general purpose I/O five-volt tolerant with true open-drain output and I2C1 data (SDA) function."+ },+ {+ "number": "38",+ "name": "PC1",+ "type": "bidirectional",+ "description": "Port C1 general purpose I/O five-volt tolerant with true open-drain output and I2C1 clock (SCL) function."+ },+ {+ "number": "39",+ "name": "VDD2",+ "type": "power_in",+ "description": "I/O supply voltage from 1.65 V to 3.6 V; must be connected to VDD1 externally."+ },+ {+ "number": "40",+ "name": "VSS2",+ "type": "power_in",+ "description": "I/O ground voltage pin; must be connected to VSS1 externally."+ },+ {+ "number": "41",+ "name": "PC2",+ "type": "bidirectional",+ "description": "Port C2 general purpose I/O with USART1 receive, LCD segment 22, ADC1 input 6, Comparator 1 positive input, and internal voltage reference output functions."+ },+ {+ "number": "42",+ "name": "PC3",+ "type": "bidirectional",+ "description": "Port C3 general purpose I/O with USART1 transmit, LCD segment 23, ADC1 input 5, Comparator 1 positive input, and Comparator 2 negative input functions."+ },+ {+ "number": "43",+ "name": "PC4",+ "type": "bidirectional",+ "description": "Port C4 general purpose I/O with USART1 synchronous clock, I2C1 SMB, configurable clock output, LCD segment 24, ADC1 input 4, and Comparator 2/1 negative/positive input functions."+ },+ {+ "number": "44",+ "name": "PC5",+ "type": "bidirectional",+ "description": "Port C5 general purpose I/O with LSE oscillator input function and optional SPI1 master/slave select or USART1 transmit."+ },+ {+ "number": "45",+ "name": "PC6",+ "type": "bidirectional",+ "description": "Port C6 general purpose I/O with LSE oscillator output function and optional SPI1 clock or USART1 receive."+ },+ {+ "number": "46",+ "name": "PC7",+ "type": "bidirectional",+ "description": "Port C7 general purpose I/O with LCD segment 25, ADC1 input 3, Comparator 2 negative input, and Comparator 1 positive input functions."+ },+ {+ "number": "47",+ "name": "PE6",+ "type": "bidirectional",+ "description": "Port E6 general purpose I/O with LCD segment 26 and programmable voltage detector (PVD) input functions."+ },+ {+ "number": "48",+ "name": "PE7",+ "type": "bidirectional",+ "description": "Port E7 general purpose I/O with LCD segment 27 function."+ }+ ],+ "provenance": {+ "extractor": "extract_pins 0.2",+ "factory_chain": {+ "factory": "2.0.0",+ "extractor": "extract_pins 0.2",+ "primary_model": "claude-haiku-4-5-20251001",+ "primary_mode": "text",+ "consensus_model": "claude-sonnet-4-6",+ "consensus": "agreed",+ "guards": "pin_guards 0.1: passed",+ "guard_notes": [+ "extractor flagged: STM8L152C4T3 includes LCD controller features (VLCD pin, LCD segment outputs); all LCD-specific func; Pin 1 (PA0) has special high-sink LED driver capability rated at 80 mA per Table 41, different from "+ ],+ "pages_sent": 141,+ "cost_usd": 1.6412,+ "at": "2026-09-26T23:59:49"+ },+ "datasheet": {+ "url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8588923718324670464",+ "pages": 141,+ "sha256": "76f669f0972e887a",+ "source_tier": "lcsc"+ },+ "cad": "KiCad official (CC-BY-SA 4.0)",+ "pins": {+ "total": 48,+ "described": 48,+ "cites_pages": true,+ "refuses_to_fabricate": true+ }+ },+ "viewers": {+ "symbol": "viewers/symbol.html",+ "footprint": "viewers/footprint.html"+ }+ },+ "visibility": "public",+ "org": "adom",+ "author": {+ "name": "Ray",+ "email": "[email protected]"+ }+}