← Commit history

Initial commit: component/stm8l151k4t6tr

Ray ·b39af28cd3 ·1d ago
2 files changed +412
README.mdadded+68
@@ -0,0 +1,68 @@+# STM8L151K4T6TR++**STMicroelectronics** · Microcontrollers (MCU/MPU/SOC) · LQFP-32(7x7)++STM8L151K4T6TR from STMicroelectronics, in a LQFP-32(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 | NRST/PA1 | bidirectional | Reset input with pull-up at power-up; as general-purpose PA1 it can only be configured as open-drain or push-pull output, not as a general-purpose input. |+| 2 | PA2/OSC_IN | bidirectional | Port A2 I/O (high sink/source 20 mA) that doubles as the HSE oscillator input, with USART1_TX and SPI1_MISO as remappable alternate functions. |+| 3 | PA3/OSC_OUT | bidirectional | Port A3 I/O (high sink/source 20 mA) that doubles as the HSE oscillator output, with USART1_RX and SPI1_MOSI as remappable alternate functions. |+| 4 | PA4 | bidirectional | Port A4 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing TIM2 break input, ADC1 input 2 and comparator 1 positive input. |+| 5 | PA5 | bidirectional | Port A5 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing TIM3 break input, ADC1 input 1 and comparator 1 positive input. |+| 6 | PA6 | bidirectional | Port A6 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing ADC1 input 0 and comparator 1 positive input, with [ADC1_TRIG] as a remappable alternate function. |+| 7 | VSS1/VSSA/VREF- | power_in | I/O ground, analog ground voltage and ADC1 negative voltage reference. |+| 8 | VDD1/VDDA/VREF+ | power_in | Digital power supply, analog supply voltage and ADC1 positive voltage reference. |+| 9 | PD0 | bidirectional | Port D0 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing TIM3 channel 2, ADC1 input 22 and comparator 1 and 2 positive inputs. |+| 10 | PD1 | bidirectional | Port D1 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing TIM1 inverted channel 3 (TIM1_CH3N), ADC1 input 21 and comparator 1 and 2 positive inputs. |+| 11 | PD2 | bidirectional | Port D2 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing TIM1 channel 1, ADC1 input 20 and comparator 1 positive input. |+| 12 | PD3 | bidirectional | Port D3 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing TIM1 external trigger, ADC1 input 19 and comparator 1 positive input. |+| 13 | PB0 | bidirectional | Port B0 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing TIM2 channel 1, ADC1 input 18 and comparator 1 positive input; a pull-up is applied during reset and the pin is input floating after reset release. |+| 14 | PB1 | bidirectional | Port B1 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing TIM3 channel 1, ADC1 input 17 and comparator 1 positive input. |+| 15 | PB2 | bidirectional | Port B2 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing TIM2 channel 2, ADC1 input 16 and comparator 1 positive input. |+| 16 | PB3 | bidirectional | Port B3 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing TIM1 inverted channel 2 (TIM1_CH2N), ADC1 input 15 and comparator 1 positive input, with [TIM2_ETR] as a remappable alternate function. |+| 17 | PB4 | bidirectional | Port B4 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing ADC1 input 14, DAC output and comparator 1 positive input, with [SPI1_NSS] as a remappable alternate function; a pull-up is applied during reset and the pin is input floating after reset release. |+| 18 | PB5 | bidirectional | Port B5 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing ADC1 input 13, DAC output and comparator 1 positive input, with [SPI1_SCK] as a remappable alternate function. |+| 19 | PB6 | bidirectional | Port B6 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing ADC1 input 12, DAC output and comparator 1 positive input, with [SPI1_MOSI] as a remappable alternate function. |+| 20 | PB7 | bidirectional | Port B7 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing ADC1 input 11 and comparator 1 positive input, with [SPI1_MISO] as a remappable alternate function. |+| 21 | PD4 | bidirectional | Port D4 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing TIM1 channel 2, ADC1 input 10 and comparator 1 positive input. |+| 22 | PD5 | bidirectional | Port D5 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing TIM1 channel 3, ADC1 input 9 and comparator 1 positive input. |+| 23 | PD6 | bidirectional | Port D6 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing TIM1 break input, ADC1 input 8, RTC calibration output, internal voltage reference output and comparator 1 positive input. |+| 24 | PD7 | bidirectional | Port D7 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing TIM1 inverted channel 1 (TIM1_CH1N), ADC1 input 7, RTC alarm, internal voltage reference output and comparator 1 positive input. |+| 25 | PC0 | bidirectional | Port C0 I/O, 5 V tolerant (FT) with true open-drain output and no protection diode to VDD, providing I2C1 data (SDA). |+| 26 | PC1 | bidirectional | Port C1 I/O, 5 V tolerant (FT) with true open-drain output and no protection diode to VDD, providing I2C1 clock (SCL). |+| 27 | PC2 | bidirectional | Port C2 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing USART1 receive, ADC1 input 6, comparator 1 positive input and internal voltage reference output (VREFINT). |+| 28 | PC3 | bidirectional | Port C3 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing USART1 transmit, ADC1 input 5, comparator 1 positive input and comparator 2 negative input. |+| 29 | PC4 | bidirectional | Port C4 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing USART1 synchronous clock (USART1_CK), I2C1_SMB, configurable clock output (CCO), ADC1 input 4, comparator 2 negative input and comparator 1 positive input. |+| 30 | PC5/OSC32_IN | bidirectional | Port C5 I/O that doubles as the LSE oscillator input (OSC32_IN), with [SPI1_NSS] and [USART1_TX] as remappable alternate functions. |+| 31 | PC6/OSC32_OUT | bidirectional | Port C6 I/O that doubles as the LSE oscillator output (OSC32_OUT), with [SPI1_SCK] and [USART1_RX] as remappable alternate functions. |+| 32 | PA0 | bidirectional | Port A0 I/O with high sink LED driver capability (20 mA), input pull-up during reset and after reset release, providing [USART1_CK], SWIM input/output, BEEP output and infrared timer output. |++## Key specifications++| Parameter | Value |+|---|---|+| Manufacturer | STMicroelectronics |+| Package | LQFP-32(7x7) |+| Category | Embedded Processors & Controllers |+| Pins | 32 |++## CAD (KiCad official)++- Symbol: `STM8L151K4T6TR`+- Footprint: `Package_QFP:LQFP-32_7x7mm_P0.8mm`+- 3D model: LQFP-32(7x7) (KiCad packages3D, STEP)+- 3D model files: `stm8l151k4t6tr-etched.step` / `stm8l151k4t6tr-etched.glb` carry the MPN laser-etched on the die in a toggleable `Adom.LaserEtch` group (Fusion-ready); `stm8l151k4t6tr.step` / `stm8l151k4t6tr.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/8588943117998804992) (141 pp, sha256 `76f669f0972e887a`, retrieved 2026-10-08, tier: lcsc)+- **Extractor:** parts-factory `2.0.0` / `extract_pins 0.3`, primary `claude-haiku-5-5` (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/stm8l151k4t6tr-datasheet.pdf)
page.jsonadded+344
@@ -0,0 +1,344 @@+{+  "slug": "stm8l151k4t6tr",+  "version": "0.1.0",+  "type": "component",+  "description": "STMicroelectronics Microcontrollers (MCU/MPU/SOC), LQFP-32(7x7). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",+  "tags": [+    "component",+    "embedded processors & controllers",+    "stm8l151k4t6tr",+    "factory-2.0.0",+    "extractor-text"+  ],+  "dependencies": {},+  "hero": {+    "type": "image",+    "path": "docs/hero.png"+  },+  "files": [+    "page.json",+    "README.md",+    "stm8l151k4t6tr.kicad_sym",+    "stm8l151k4t6tr.kicad_mod",+    "stm8l151k4t6tr.glb",+    "stm8l151k4t6tr.step",+    "stm8l151k4t6tr.lbr",+    "docs/hero.png",+    "docs/stm8l151k4t6tr-datasheet.pdf",+    "viewers/symbol.html",+    "viewers/footprint.html",+    "stm8l151k4t6tr-hero.glb",+    "stm8l151k4t6tr-hero.overlay.json"+  ],+  "component": {+    "mpn": "STM8L151K4T6TR",+    "manufacturer": "STMicroelectronics",+    "package": "LQFP-32(7x7)",+    "pin_count": 32,+    "category": "Embedded Processors & Controllers",+    "subcategory": "Microcontrollers (MCU/MPU/SOC)",+    "datasheet": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8588943117998804992",+    "parts": {+      "symbol": "stm8l151k4t6tr.kicad_sym",+      "footprint": "stm8l151k4t6tr.kicad_mod",+      "model_3d": "stm8l151k4t6tr-hero.glb",+      "model_3d_plain": "stm8l151k4t6tr.glb",+      "model_3d_step": "stm8l151k4t6tr-etched.step",+      "model_3d_step_plain": "stm8l151k4t6tr.step",+      "lbr": "stm8l151k4t6tr.lbr"+    },+    "distributor_links": {+      "lcsc": "C2053770",+      "digikey": "497-19389-2-ND",+      "mouser": "511-STM8L151K4T6TR"+    },+    "distributor_check": {+      "checked_at": "2026-10-08T17:52:03Z",+      "source": "Component Ocean /api/assign-pns",+      "digikey": {+        "pn": "497-19389-2-ND",+        "status": "found",+        "lifecycle": "Active"+      },+      "mouser": {+        "pn": "511-STM8L151K4T6TR",+        "status": "found"+      }+    },+    "pins": [+      {+        "number": "1",+        "name": "NRST/PA1",+        "type": "bidirectional",+        "description": "Reset input with pull-up at power-up; as general-purpose PA1 it can only be configured as open-drain or push-pull output, not as a general-purpose input."+      },+      {+        "number": "2",+        "name": "PA2/OSC_IN",+        "type": "bidirectional",+        "description": "Port A2 I/O (high sink/source 20 mA) that doubles as the HSE oscillator input, with USART1_TX and SPI1_MISO as remappable alternate functions."+      },+      {+        "number": "3",+        "name": "PA3/OSC_OUT",+        "type": "bidirectional",+        "description": "Port A3 I/O (high sink/source 20 mA) that doubles as the HSE oscillator output, with USART1_RX and SPI1_MOSI as remappable alternate functions."+      },+      {+        "number": "4",+        "name": "PA4",+        "type": "bidirectional",+        "description": "Port A4 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing TIM2 break input, ADC1 input 2 and comparator 1 positive input."+      },+      {+        "number": "5",+        "name": "PA5",+        "type": "bidirectional",+        "description": "Port A5 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing TIM3 break input, ADC1 input 1 and comparator 1 positive input."+      },+      {+        "number": "6",+        "name": "PA6",+        "type": "bidirectional",+        "description": "Port A6 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing ADC1 input 0 and comparator 1 positive input, with [ADC1_TRIG] as a remappable alternate function."+      },+      {+        "number": "7",+        "name": "VSS1/VSSA/VREF-",+        "type": "power_in",+        "description": "I/O ground, analog ground voltage and ADC1 negative voltage reference."+      },+      {+        "number": "8",+        "name": "VDD1/VDDA/VREF+",+        "type": "power_in",+        "description": "Digital power supply, analog supply voltage and ADC1 positive voltage reference."+      },+      {+        "number": "9",+        "name": "PD0",+        "type": "bidirectional",+        "description": "Port D0 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing TIM3 channel 2, ADC1 input 22 and comparator 1 and 2 positive inputs."+      },+      {+        "number": "10",+        "name": "PD1",+        "type": "bidirectional",+        "description": "Port D1 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing TIM1 inverted channel 3 (TIM1_CH3N), ADC1 input 21 and comparator 1 and 2 positive inputs."+      },+      {+        "number": "11",+        "name": "PD2",+        "type": "bidirectional",+        "description": "Port D2 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing TIM1 channel 1, ADC1 input 20 and comparator 1 positive input."+      },+      {+        "number": "12",+        "name": "PD3",+        "type": "bidirectional",+        "description": "Port D3 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing TIM1 external trigger, ADC1 input 19 and comparator 1 positive input."+      },+      {+        "number": "13",+        "name": "PB0",+        "type": "bidirectional",+        "description": "Port B0 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing TIM2 channel 1, ADC1 input 18 and comparator 1 positive input; a pull-up is applied during reset and the pin is input floating after reset release."+      },+      {+        "number": "14",+        "name": "PB1",+        "type": "bidirectional",+        "description": "Port B1 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing TIM3 channel 1, ADC1 input 17 and comparator 1 positive input."+      },+      {+        "number": "15",+        "name": "PB2",+        "type": "bidirectional",+        "description": "Port B2 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing TIM2 channel 2, ADC1 input 16 and comparator 1 positive input."+      },+      {+        "number": "16",+        "name": "PB3",+        "type": "bidirectional",+        "description": "Port B3 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing TIM1 inverted channel 2 (TIM1_CH2N), ADC1 input 15 and comparator 1 positive input, with [TIM2_ETR] as a remappable alternate function."+      },+      {+        "number": "17",+        "name": "PB4",+        "type": "bidirectional",+        "description": "Port B4 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing ADC1 input 14, DAC output and comparator 1 positive input, with [SPI1_NSS] as a remappable alternate function; a pull-up is applied during reset and the pin is input floating after reset release."+      },+      {+        "number": "18",+        "name": "PB5",+        "type": "bidirectional",+        "description": "Port B5 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing ADC1 input 13, DAC output and comparator 1 positive input, with [SPI1_SCK] as a remappable alternate function."+      },+      {+        "number": "19",+        "name": "PB6",+        "type": "bidirectional",+        "description": "Port B6 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing ADC1 input 12, DAC output and comparator 1 positive input, with [SPI1_MOSI] as a remappable alternate function."+      },+      {+        "number": "20",+        "name": "PB7",+        "type": "bidirectional",+        "description": "Port B7 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing ADC1 input 11 and comparator 1 positive input, with [SPI1_MISO] as a remappable alternate function."+      },+      {+        "number": "21",+        "name": "PD4",+        "type": "bidirectional",+        "description": "Port D4 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing TIM1 channel 2, ADC1 input 10 and comparator 1 positive input."+      },+      {+        "number": "22",+        "name": "PD5",+        "type": "bidirectional",+        "description": "Port D5 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing TIM1 channel 3, ADC1 input 9 and comparator 1 positive input."+      },+      {+        "number": "23",+        "name": "PD6",+        "type": "bidirectional",+        "description": "Port D6 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing TIM1 break input, ADC1 input 8, RTC calibration output, internal voltage reference output and comparator 1 positive input."+      },+      {+        "number": "24",+        "name": "PD7",+        "type": "bidirectional",+        "description": "Port D7 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing TIM1 inverted channel 1 (TIM1_CH1N), ADC1 input 7, RTC alarm, internal voltage reference output and comparator 1 positive input."+      },+      {+        "number": "25",+        "name": "PC0",+        "type": "bidirectional",+        "description": "Port C0 I/O, 5 V tolerant (FT) with true open-drain output and no protection diode to VDD, providing I2C1 data (SDA)."+      },+      {+        "number": "26",+        "name": "PC1",+        "type": "bidirectional",+        "description": "Port C1 I/O, 5 V tolerant (FT) with true open-drain output and no protection diode to VDD, providing I2C1 clock (SCL)."+      },+      {+        "number": "27",+        "name": "PC2",+        "type": "bidirectional",+        "description": "Port C2 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing USART1 receive, ADC1 input 6, comparator 1 positive input and internal voltage reference output (VREFINT)."+      },+      {+        "number": "28",+        "name": "PC3",+        "type": "bidirectional",+        "description": "Port C3 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing USART1 transmit, ADC1 input 5, comparator 1 positive input and comparator 2 negative input."+      },+      {+        "number": "29",+        "name": "PC4",+        "type": "bidirectional",+        "description": "Port C4 I/O, 3.6 V tolerant (TT) with no protection diode to VDD, providing USART1 synchronous clock (USART1_CK), I2C1_SMB, configurable clock output (CCO), ADC1 input 4, comparator 2 negative input and comparator 1 positive input."+      },+      {+        "number": "30",+        "name": "PC5/OSC32_IN",+        "type": "bidirectional",+        "description": "Port C5 I/O that doubles as the LSE oscillator input (OSC32_IN), with [SPI1_NSS] and [USART1_TX] as remappable alternate functions."+      },+      {+        "number": "31",+        "name": "PC6/OSC32_OUT",+        "type": "bidirectional",+        "description": "Port C6 I/O that doubles as the LSE oscillator output (OSC32_OUT), with [SPI1_SCK] and [USART1_RX] as remappable alternate functions."+      },+      {+        "number": "32",+        "name": "PA0",+        "type": "bidirectional",+        "description": "Port A0 I/O with high sink LED driver capability (20 mA), input pull-up during reset and after reset release, providing [USART1_CK], SWIM input/output, BEEP output and infrared timer output."+      }+    ],+    "provenance": {+      "extractor": "extract_pins 0.3",+      "factory_chain": {+        "factory": "2.0.0",+        "extractor": "extract_pins 0.3",+        "primary_model": "claude-haiku-5-5",+        "primary_mode": "text",+        "consensus_model": "claude-sonnet-5-5",+        "consensus": "agreed",+        "guards": "pin_guards 0.1: passed",+        "guard_notes": [+          "extractor flagged: Package selection: MPN STM8L151K4T6TR is a 32-pin (K), LQFP (T), 16 KB Flash, -40 to 85 °C part with; STM8L151 (no LCD) variant: Table 5 lists LCD_COM/LCD_SEG/VLCD functions, which apply only to STM8L15; Pin 1 (NRST/PA1) is typed bidirectional because it is both the reset input and a GPIO (PA1). Datashe"+        ],+        "pages_sent": 56,+        "cost_usd": 0.2545,+        "at": "2026-10-08T17:51:45"+      },+      "datasheet": {+        "url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8588943117998804992",+        "pages": 141,+        "sha256": "76f669f0972e887a",+        "source_tier": "lcsc"+      },+      "cad": "KiCad official (CC-BY-SA 4.0)",+      "pins": {+        "total": 32,+        "described": 32,+        "cites_pages": true,+        "refuses_to_fabricate": true+      }+    },+    "viewers": {+      "symbol": "viewers/symbol.html",+      "footprint": "viewers/footprint.html"+    },+    "models_3d": [+      {+        "file": "stm8l151k4t6tr.step",+        "role": "plain",+        "up": "Z",+        "units": "mm",+        "origin": "footprint origin = pad-pattern centre",+        "seat": "z = 0",+        "extents_mm": [+          9,+          9,+          1.5+        ],+        "zmin_mm": 0,+        "centre_offset_mm": 0,+        "footprint_binding": "identity",+        "sha256": "be0e412f1c66fee70039b0e109e0cc7c823161dda97593718afa97569bc61ce3",+        "checked": "2026-10-08",+        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"+      },+      {+        "file": "stm8l151k4t6tr-etched.step",+        "role": "eda",+        "up": "Z",+        "units": "mm",+        "origin": "footprint origin = pad-pattern centre",+        "seat": "z = 0",+        "extents_mm": [+          9,+          9,+          1.5+        ],+        "zmin_mm": 0,+        "centre_offset_mm": 0,+        "footprint_binding": "identity",+        "sha256": "cc65aa8f8ac77c76bcdc6b9719bc6bc6d0e7ed030f4d2dd1a9592fc40486eb4b",+        "checked": "2026-10-08",+        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"+      }+    ]+  },+  "visibility": "public",+  "org": "adom",+  "author": {+    "name": "Ray",+    "email": "[email protected]"+  }+}\ No newline at end of file