← Commit history

Initial commit: component/stm8l151c4t6

Ray ·682b11065a ·5d ago
2 files changed +483
README.mdadded+84
@@ -0,0 +1,84 @@+# STM8L151C4T6++**STMicroelectronics** · Microcontrollers (MCU/MPU/SOC) · LQFP-48(7x7)++STM8L151C4T6 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 (input pull-up during and after reset) with alternate functions [USART1_CK], SWIM input/output, BEEP output and IR_TIM output, high sink LED driver capability. |+| 2 | NRST/PA1 | bidirectional | Reset input with pull-up at power-up, usable only as general-purpose output (open-drain or push-pull) PA1, high sink/source. |+| 3 | PA2 | bidirectional | Port A2 with HSE oscillator input, [USART1_TX] and [SPI1_MISO] alternate functions, high sink/source. |+| 4 | PA3 | bidirectional | Port A3 with HSE oscillator output, [USART1_RX] and [SPI1_MOSI] alternate functions, high sink/source. |+| 5 | PA4 | bidirectional | Port A4 (3.6 V tolerant) with TIM2_BKIN, ADC1_IN2 and COMP1_INP alternate functions, high sink/source. |+| 6 | PA5 | bidirectional | Port A5 (3.6 V tolerant) with TIM3_BKIN, ADC1_IN1 and COMP1_INP alternate functions, high sink/source. |+| 7 | PA6 | bidirectional | Port A6 (3.6 V tolerant) with [ADC1_TRIG], ADC1_IN0 and COMP1_INP alternate functions, high sink/source. |+| 8 | PA7 | bidirectional | Port A7 (5 V tolerant, no protection diode to VDD), high sink/source. |+| 9 | VSS1/VSSA/VREF- | power_in | I/O ground, analog ground voltage and ADC1 negative voltage reference. |+| 10 | VDD1 | power_in | Digital power supply. |+| 11 | VDDA | power_in | Analog supply voltage. |+| 12 | VREF+ | power_in | ADC1 and DAC positive voltage reference. |+| 13 | Reserved | passive | Reserved pin on STM8L151xx devices; must be tied to VDD. |+| 14 | PE0 | bidirectional | Port E0 (5 V tolerant, no protection diode to VDD), high sink/source. |+| 15 | PE1 | bidirectional | Port E1 (3.6 V tolerant) with TIM1_CH2N alternate function, high sink/source. |+| 16 | PE2 | bidirectional | Port E2 (3.6 V tolerant) with TIM1_CH3N alternate function, high sink/source. |+| 17 | PE3 | bidirectional | Port E3 (3.6 V tolerant), high sink/source. |+| 18 | PE4 | bidirectional | Port E4 (3.6 V tolerant), high sink/source. |+| 19 | PE5 | bidirectional | Port E5 (3.6 V tolerant) with ADC1_IN23, COMP2_INP and COMP1_INP alternate functions, high sink/source. |+| 20 | PD0 | bidirectional | Port D0 (3.6 V tolerant) with TIM3_CH2, [ADC1_TRIG], ADC1_IN22, COMP2_INP and COMP1_INP alternate functions, high sink/source. |+| 21 | PD1 | bidirectional | Port D1 (3.6 V tolerant) with TIM3_ETR, ADC1_IN21, COMP2_INP and COMP1_INP alternate functions, high sink/source. |+| 22 | PD2 | bidirectional | Port D2 (3.6 V tolerant) with TIM1_CH1, ADC1_IN20 and COMP1_INP alternate functions, high sink/source. |+| 23 | PD3 | bidirectional | Port D3 (3.6 V tolerant) with TIM1_ETR, ADC1_IN19 and COMP1_INP alternate functions, high sink/source. |+| 24 | PB0 | bidirectional | Port B0 (3.6 V tolerant) with TIM2_CH1, ADC1_IN18 and COMP1_INP; pulled up during reset, input floating after reset release. |+| 25 | PB1 | bidirectional | Port B1 (3.6 V tolerant) with TIM3_CH1, ADC1_IN17 and COMP1_INP alternate functions, high sink/source. |+| 26 | PB2 | bidirectional | Port B2 (3.6 V tolerant) with TIM2_CH2, ADC1_IN16 and COMP1_INP alternate functions, high sink/source. |+| 27 | PB3 | bidirectional | Port B3 (3.6 V tolerant) with TIM2_ETR, ADC1_IN15 and COMP1_INP alternate functions, high sink/source. |+| 28 | PB4 | bidirectional | Port B4 (3.6 V tolerant) with [SPI1_NSS], ADC1_IN14 and COMP1_INP; pulled up during reset, input floating after reset release. |+| 29 | PB5 | bidirectional | Port B5 (3.6 V tolerant) with [SPI1_SCK], ADC1_IN13 and COMP1_INP alternate functions, high sink/source. |+| 30 | PB6 | bidirectional | Port B6 (3.6 V tolerant) with [SPI1_MOSI], ADC1_IN12 and COMP1_INP alternate functions, high sink/source. |+| 31 | PB7 | bidirectional | Port B7 (3.6 V tolerant) with [SPI1_MISO], ADC1_IN11 and COMP1_INP alternate functions, high sink/source. |+| 32 | PF0 | bidirectional | Port F0 (3.6 V tolerant) with ADC1_IN24 and DAC_OUT alternate functions, high sink/source. |+| 33 | PD4 | bidirectional | Port D4 (3.6 V tolerant) with TIM1_CH2, ADC1_IN10 and COMP1_INP alternate functions, high sink/source. |+| 34 | PD5 | bidirectional | Port D5 (3.6 V tolerant) with TIM1_CH3, ADC1_IN9 and COMP1_INP alternate functions, high sink/source. |+| 35 | PD6 | bidirectional | Port D6 (3.6 V tolerant) with TIM1_BKIN, ADC1_IN8, RTC_CALIB, VREFINT output and COMP1_INP alternate functions, high sink/source. |+| 36 | PD7 | bidirectional | Port D7 (3.6 V tolerant) with TIM1_CH1N, ADC1_IN7, RTC_ALARM, VREFINT output and COMP1_INP alternate functions, high sink/source. |+| 37 | PC0 | bidirectional | Port C0 (5 V tolerant) true open-drain pin with I2C1_SDA data alternate function. |+| 38 | PC1 | bidirectional | Port C1 (5 V tolerant) true open-drain pin with I2C1_SCL clock alternate function. |+| 39 | VDD2 | power_in | IOs supply voltage. |+| 40 | VSS2 | power_in | IOs ground voltage. |+| 41 | PC2 | bidirectional | Port C2 (3.6 V tolerant) with USART1_RX, ADC1_IN6, COMP1_INP and VREFINT output alternate functions, high sink/source. |+| 42 | PC3 | bidirectional | Port C3 (3.6 V tolerant) with USART1_TX, ADC1_IN5, COMP1_INP and COMP2_INM alternate functions, high sink/source. |+| 43 | PC4 | bidirectional | Port C4 (3.6 V tolerant) with USART1_CK, I2C1_SMB, CCO, ADC1_IN4, COMP2_INM and COMP1_INP alternate functions, high sink/source. |+| 44 | PC5 | bidirectional | Port C5 with LSE oscillator input, [SPI1_NSS] and [USART1_TX] alternate functions, high sink/source. |+| 45 | PC6 | bidirectional | Port C6 with LSE oscillator output, [SPI1_SCK] and [USART1_RX] alternate functions, high sink/source. |+| 46 | PC7 | bidirectional | Port C7 (3.6 V tolerant) with ADC1_IN3, COMP2_INM and COMP1_INP alternate functions, high sink/source. |+| 47 | PE6 | bidirectional | Port E6 (3.6 V tolerant) with PVD_IN alternate function, high sink/source. |+| 48 | PE7 | bidirectional | Port E7 (3.6 V tolerant), high sink/source. |++## Key specifications++| Parameter | Value |+|---|---|+| Manufacturer | STMicroelectronics |+| Package | LQFP-48(7x7) |+| Category | Embedded Processors & Controllers |+| Pins | 48 |++## CAD (KiCad official)++- Symbol: `STM8L151C4T6`+- Footprint: `Package_QFP:LQFP-48_7x7mm_P0.5mm`+- 3D model: LQFP-48(7x7) (KiCad packages3D, STEP)+- 3D model files: `stm8l151c4t6-etched.step` / `stm8l151c4t6-etched.glb` carry the MPN laser-etched on the die in a toggleable `Adom.LaserEtch` group (Fusion-ready); `stm8l151c4t6.step` / `stm8l151c4t6.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/8588922897532932096) (141 pp, sha256 `76f669f0972e887a`, retrieved 2026-10-01, tier: lcsc)+- **Extractor:** parts-factory `2.0.0` / `extract_pins 0.3`, primary `claude-haiku-4-5-20251001` (text), consensus `claude-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).++[Datasheet PDF](docs/stm8l151c4t6-datasheet.pdf)
page.jsonadded+399
@@ -0,0 +1,399 @@+{+  "slug": "stm8l151c4t6",+  "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",+    "stm8l151c4t6",+    "factory-2.0.0",+    "extractor-text"+  ],+  "dependencies": {},+  "hero": {+    "type": "image",+    "path": "docs/hero.png"+  },+  "files": [+    "page.json",+    "README.md",+    "stm8l151c4t6.kicad_sym",+    "stm8l151c4t6.kicad_mod",+    "stm8l151c4t6.glb",+    "stm8l151c4t6.step",+    "stm8l151c4t6.lbr",+    "docs/hero.png",+    "docs/stm8l151c4t6-datasheet.pdf",+    "viewers/symbol.html",+    "viewers/footprint.html"+  ],+  "component": {+    "mpn": "STM8L151C4T6",+    "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/8588922897532932096",+    "parts": {+      "symbol": "stm8l151c4t6.kicad_sym",+      "footprint": "stm8l151c4t6.kicad_mod",+      "model_3d": "stm8l151c4t6-etched.glb",+      "model_3d_plain": "stm8l151c4t6.glb",+      "model_3d_step": "stm8l151c4t6-etched.step",+      "model_3d_step_plain": "stm8l151c4t6.step",+      "lbr": "stm8l151c4t6.lbr"+    },+    "distributor_links": {+      "lcsc": "C1341613",+      "digikey": "497-10517-ND",+      "mouser": "511-STM8L151C4T6"+    },+    "distributor_check": {+      "checked_at": "2026-10-01T07:40:18Z",+      "source": "Component Ocean /api/assign-pns",+      "digikey": {+        "pn": "497-10517-ND",+        "status": "found",+        "lifecycle": "Active"+      },+      "mouser": {+        "pn": "511-STM8L151C4T6",+        "status": "found"+      }+    },+    "pins": [+      {+        "number": "1",+        "name": "PA0",+        "type": "bidirectional",+        "description": "Port A0 (input pull-up during and after reset) with alternate functions [USART1_CK], SWIM input/output, BEEP output and IR_TIM output, high sink LED driver capability."+      },+      {+        "number": "2",+        "name": "NRST/PA1",+        "type": "bidirectional",+        "description": "Reset input with pull-up at power-up, usable only as general-purpose output (open-drain or push-pull) PA1, high sink/source."+      },+      {+        "number": "3",+        "name": "PA2",+        "type": "bidirectional",+        "description": "Port A2 with HSE oscillator input, [USART1_TX] and [SPI1_MISO] alternate functions, high sink/source."+      },+      {+        "number": "4",+        "name": "PA3",+        "type": "bidirectional",+        "description": "Port A3 with HSE oscillator output, [USART1_RX] and [SPI1_MOSI] alternate functions, high sink/source."+      },+      {+        "number": "5",+        "name": "PA4",+        "type": "bidirectional",+        "description": "Port A4 (3.6 V tolerant) with TIM2_BKIN, ADC1_IN2 and COMP1_INP alternate functions, high sink/source."+      },+      {+        "number": "6",+        "name": "PA5",+        "type": "bidirectional",+        "description": "Port A5 (3.6 V tolerant) with TIM3_BKIN, ADC1_IN1 and COMP1_INP alternate functions, high sink/source."+      },+      {+        "number": "7",+        "name": "PA6",+        "type": "bidirectional",+        "description": "Port A6 (3.6 V tolerant) with [ADC1_TRIG], ADC1_IN0 and COMP1_INP alternate functions, high sink/source."+      },+      {+        "number": "8",+        "name": "PA7",+        "type": "bidirectional",+        "description": "Port A7 (5 V tolerant, no protection diode to VDD), high sink/source."+      },+      {+        "number": "9",+        "name": "VSS1/VSSA/VREF-",+        "type": "power_in",+        "description": "I/O ground, analog ground voltage and ADC1 negative voltage reference."+      },+      {+        "number": "10",+        "name": "VDD1",+        "type": "power_in",+        "description": "Digital power supply."+      },+      {+        "number": "11",+        "name": "VDDA",+        "type": "power_in",+        "description": "Analog supply voltage."+      },+      {+        "number": "12",+        "name": "VREF+",+        "type": "power_in",+        "description": "ADC1 and DAC positive voltage reference."+      },+      {+        "number": "13",+        "name": "Reserved",+        "type": "passive",+        "description": "Reserved pin on STM8L151xx devices; must be tied to VDD."+      },+      {+        "number": "14",+        "name": "PE0",+        "type": "bidirectional",+        "description": "Port E0 (5 V tolerant, no protection diode to VDD), high sink/source."+      },+      {+        "number": "15",+        "name": "PE1",+        "type": "bidirectional",+        "description": "Port E1 (3.6 V tolerant) with TIM1_CH2N alternate function, high sink/source."+      },+      {+        "number": "16",+        "name": "PE2",+        "type": "bidirectional",+        "description": "Port E2 (3.6 V tolerant) with TIM1_CH3N alternate function, high sink/source."+      },+      {+        "number": "17",+        "name": "PE3",+        "type": "bidirectional",+        "description": "Port E3 (3.6 V tolerant), high sink/source."+      },+      {+        "number": "18",+        "name": "PE4",+        "type": "bidirectional",+        "description": "Port E4 (3.6 V tolerant), high sink/source."+      },+      {+        "number": "19",+        "name": "PE5",+        "type": "bidirectional",+        "description": "Port E5 (3.6 V tolerant) with ADC1_IN23, COMP2_INP and COMP1_INP alternate functions, high sink/source."+      },+      {+        "number": "20",+        "name": "PD0",+        "type": "bidirectional",+        "description": "Port D0 (3.6 V tolerant) with TIM3_CH2, [ADC1_TRIG], ADC1_IN22, COMP2_INP and COMP1_INP alternate functions, high sink/source."+      },+      {+        "number": "21",+        "name": "PD1",+        "type": "bidirectional",+        "description": "Port D1 (3.6 V tolerant) with TIM3_ETR, ADC1_IN21, COMP2_INP and COMP1_INP alternate functions, high sink/source."+      },+      {+        "number": "22",+        "name": "PD2",+        "type": "bidirectional",+        "description": "Port D2 (3.6 V tolerant) with TIM1_CH1, ADC1_IN20 and COMP1_INP alternate functions, high sink/source."+      },+      {+        "number": "23",+        "name": "PD3",+        "type": "bidirectional",+        "description": "Port D3 (3.6 V tolerant) with TIM1_ETR, ADC1_IN19 and COMP1_INP alternate functions, high sink/source."+      },+      {+        "number": "24",+        "name": "PB0",+        "type": "bidirectional",+        "description": "Port B0 (3.6 V tolerant) with TIM2_CH1, ADC1_IN18 and COMP1_INP; pulled up during reset, input floating after reset release."+      },+      {+        "number": "25",+        "name": "PB1",+        "type": "bidirectional",+        "description": "Port B1 (3.6 V tolerant) with TIM3_CH1, ADC1_IN17 and COMP1_INP alternate functions, high sink/source."+      },+      {+        "number": "26",+        "name": "PB2",+        "type": "bidirectional",+        "description": "Port B2 (3.6 V tolerant) with TIM2_CH2, ADC1_IN16 and COMP1_INP alternate functions, high sink/source."+      },+      {+        "number": "27",+        "name": "PB3",+        "type": "bidirectional",+        "description": "Port B3 (3.6 V tolerant) with TIM2_ETR, ADC1_IN15 and COMP1_INP alternate functions, high sink/source."+      },+      {+        "number": "28",+        "name": "PB4",+        "type": "bidirectional",+        "description": "Port B4 (3.6 V tolerant) with [SPI1_NSS], ADC1_IN14 and COMP1_INP; pulled up during reset, input floating after reset release."+      },+      {+        "number": "29",+        "name": "PB5",+        "type": "bidirectional",+        "description": "Port B5 (3.6 V tolerant) with [SPI1_SCK], ADC1_IN13 and COMP1_INP alternate functions, high sink/source."+      },+      {+        "number": "30",+        "name": "PB6",+        "type": "bidirectional",+        "description": "Port B6 (3.6 V tolerant) with [SPI1_MOSI], ADC1_IN12 and COMP1_INP alternate functions, high sink/source."+      },+      {+        "number": "31",+        "name": "PB7",+        "type": "bidirectional",+        "description": "Port B7 (3.6 V tolerant) with [SPI1_MISO], ADC1_IN11 and COMP1_INP alternate functions, high sink/source."+      },+      {+        "number": "32",+        "name": "PF0",+        "type": "bidirectional",+        "description": "Port F0 (3.6 V tolerant) with ADC1_IN24 and DAC_OUT alternate functions, high sink/source."+      },+      {+        "number": "33",+        "name": "PD4",+        "type": "bidirectional",+        "description": "Port D4 (3.6 V tolerant) with TIM1_CH2, ADC1_IN10 and COMP1_INP alternate functions, high sink/source."+      },+      {+        "number": "34",+        "name": "PD5",+        "type": "bidirectional",+        "description": "Port D5 (3.6 V tolerant) with TIM1_CH3, ADC1_IN9 and COMP1_INP alternate functions, high sink/source."+      },+      {+        "number": "35",+        "name": "PD6",+        "type": "bidirectional",+        "description": "Port D6 (3.6 V tolerant) with TIM1_BKIN, ADC1_IN8, RTC_CALIB, VREFINT output and COMP1_INP alternate functions, high sink/source."+      },+      {+        "number": "36",+        "name": "PD7",+        "type": "bidirectional",+        "description": "Port D7 (3.6 V tolerant) with TIM1_CH1N, ADC1_IN7, RTC_ALARM, VREFINT output and COMP1_INP alternate functions, high sink/source."+      },+      {+        "number": "37",+        "name": "PC0",+        "type": "bidirectional",+        "description": "Port C0 (5 V tolerant) true open-drain pin with I2C1_SDA data alternate function."+      },+      {+        "number": "38",+        "name": "PC1",+        "type": "bidirectional",+        "description": "Port C1 (5 V tolerant) true open-drain pin with I2C1_SCL clock alternate function."+      },+      {+        "number": "39",+        "name": "VDD2",+        "type": "power_in",+        "description": "IOs supply voltage."+      },+      {+        "number": "40",+        "name": "VSS2",+        "type": "power_in",+        "description": "IOs ground voltage."+      },+      {+        "number": "41",+        "name": "PC2",+        "type": "bidirectional",+        "description": "Port C2 (3.6 V tolerant) with USART1_RX, ADC1_IN6, COMP1_INP and VREFINT output alternate functions, high sink/source."+      },+      {+        "number": "42",+        "name": "PC3",+        "type": "bidirectional",+        "description": "Port C3 (3.6 V tolerant) with USART1_TX, ADC1_IN5, COMP1_INP and COMP2_INM alternate functions, high sink/source."+      },+      {+        "number": "43",+        "name": "PC4",+        "type": "bidirectional",+        "description": "Port C4 (3.6 V tolerant) with USART1_CK, I2C1_SMB, CCO, ADC1_IN4, COMP2_INM and COMP1_INP alternate functions, high sink/source."+      },+      {+        "number": "44",+        "name": "PC5",+        "type": "bidirectional",+        "description": "Port C5 with LSE oscillator input, [SPI1_NSS] and [USART1_TX] alternate functions, high sink/source."+      },+      {+        "number": "45",+        "name": "PC6",+        "type": "bidirectional",+        "description": "Port C6 with LSE oscillator output, [SPI1_SCK] and [USART1_RX] alternate functions, high sink/source."+      },+      {+        "number": "46",+        "name": "PC7",+        "type": "bidirectional",+        "description": "Port C7 (3.6 V tolerant) with ADC1_IN3, COMP2_INM and COMP1_INP alternate functions, high sink/source."+      },+      {+        "number": "47",+        "name": "PE6",+        "type": "bidirectional",+        "description": "Port E6 (3.6 V tolerant) with PVD_IN alternate function, high sink/source."+      },+      {+        "number": "48",+        "name": "PE7",+        "type": "bidirectional",+        "description": "Port E7 (3.6 V tolerant), high sink/source."+      }+    ],+    "provenance": {+      "extractor": "extract_pins 0.3",+      "factory_chain": {+        "factory": "2.0.0",+        "extractor": "extract_pins 0.3",+        "primary_model": "claude-haiku-4-5-20251001",+        "primary_mode": "text",+        "consensus_model": "claude-sonnet-5-5",+        "consensus": "agreed",+        "guards": "pin_guards 0.1: passed",+        "guard_notes": [+          "extractor flagged: Pin 13 is Reserved for STM8L151C4T6 (without LCD); VLCD pin is only present on STM8L152xx variants (; LCD-related pins (LCD_SEG*, LCD_COM*) are documented but not functional on STM8L151 devices which la",+          "2/48 pins cited to the wrong page (name found elsewhere): ['19:PE5@p30', '32:PF0@p31']"+        ],+        "pages_sent": 56,+        "cost_usd": 0.4175,+        "at": "2026-10-01T07:39:58"+      },+      "datasheet": {+        "url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8588922897532932096",+        "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]"+  }+}\ No newline at end of file