main
Ray Publish 0.1.0 251b89f 16d ago
{
  "slug": "stm8l151k4u6tr",
  "version": "0.1.0",
  "type": "component",
  "description": "STMicroelectronics ST Microelectronics, UFQFPN-32(5x5). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
  "tags": [
    "component",
    "embedded processors & controllers",
    "stm8l151k4u6tr",
    "factory-2.0.0",
    "extractor-text"
  ],
  "dependencies": {},
  "hero": {
    "type": "image",
    "path": "docs/hero.png"
  },
  "files": [
    "page.json",
    "README.md",
    "stm8l151k4u6tr.kicad_sym",
    "stm8l151k4u6tr.kicad_mod",
    "stm8l151k4u6tr.glb",
    "stm8l151k4u6tr.step",
    "stm8l151k4u6tr.lbr",
    "docs/hero.png",
    "docs/stm8l151k4u6tr-datasheet.pdf",
    "viewers/symbol.html",
    "viewers/footprint.html",
    "stm8l151k4u6tr-hero.glb",
    "stm8l151k4u6tr-hero.overlay.json"
  ],
  "component": {
    "mpn": "STM8L151K4U6TR",
    "manufacturer": "STMicroelectronics",
    "package": "UFQFPN-32(5x5)",
    "pin_count": 33,
    "category": "Embedded Processors & Controllers",
    "subcategory": "ST Microelectronics",
    "datasheet": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8588883595939762177",
    "parts": {
      "symbol": "stm8l151k4u6tr.kicad_sym",
      "footprint": "stm8l151k4u6tr.kicad_mod",
      "model_3d": "stm8l151k4u6tr-hero.glb",
      "model_3d_plain": "stm8l151k4u6tr.glb",
      "model_3d_step": "stm8l151k4u6tr-etched.step",
      "model_3d_step_plain": "stm8l151k4u6tr.step",
      "lbr": "stm8l151k4u6tr.lbr"
    },
    "distributor_links": {
      "lcsc": "C160718",
      "digikey": "STM8L151K4U6TR-ND",
      "mouser": "511-STM8L151K4U6TR"
    },
    "distributor_check": {
      "checked_at": "2026-10-11T23:07:30Z",
      "source": "Component Ocean /api/assign-pns",
      "digikey": {
        "pn": "STM8L151K4U6TR-ND",
        "status": "found",
        "lifecycle": "Active"
      },
      "mouser": {
        "pn": "511-STM8L151K4U6TR",
        "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",
        "type": "bidirectional",
        "description": "Port A2 (high sink/source 20 mA) with HSE oscillator input, USART1 transmit and SPI1 master-in/slave-out alternate functions."
      },
      {
        "number": "3",
        "name": "PA3",
        "type": "bidirectional",
        "description": "Port A3 (high sink/source 20 mA) with HSE oscillator output, USART1 receive and SPI1 master-out/slave-in alternate functions."
      },
      {
        "number": "4",
        "name": "PA4",
        "type": "bidirectional",
        "description": "Port A4 (3.6 V tolerant, high sink/source 20 mA) with TIM2 break input, optional TIM2 external trigger, ADC1 input 2 and comparator 1 positive input."
      },
      {
        "number": "5",
        "name": "PA5",
        "type": "bidirectional",
        "description": "Port A5 (3.6 V tolerant, high sink/source 20 mA) with TIM3 break input, optional TIM3 external trigger, ADC1 input 1 and comparator 1 positive input."
      },
      {
        "number": "6",
        "name": "PA6",
        "type": "bidirectional",
        "description": "Port A6 (3.6 V tolerant, high sink/source 20 mA) with optional ADC1 trigger, ADC1 input 0 and comparator 1 positive input."
      },
      {
        "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; the device operates from 1.8 V to 3.6 V (down to 1.65 V at power down)."
      },
      {
        "number": "9",
        "name": "PD0",
        "type": "bidirectional",
        "description": "Port D0 (3.6 V tolerant, high sink/source 20 mA) with TIM3 channel 2, optional ADC1 trigger, ADC1 input 22 and comparator 1/2 positive inputs."
      },
      {
        "number": "10",
        "name": "PD1",
        "type": "bidirectional",
        "description": "Port D1 (3.6 V tolerant, high sink/source 20 mA) with TIM1 inverted channel 3, optional TIM3 external trigger, ADC1 input 21 and comparator 1/2 positive inputs."
      },
      {
        "number": "11",
        "name": "PD2",
        "type": "bidirectional",
        "description": "Port D2 (3.6 V tolerant, high sink/source 20 mA) with TIM1 channel 1, ADC1 input 20 and comparator 1 positive input."
      },
      {
        "number": "12",
        "name": "PD3",
        "type": "bidirectional",
        "description": "Port D3 (3.6 V tolerant, high sink/source 20 mA) with TIM1 external trigger, ADC1 input 19 and comparator 1 positive input."
      },
      {
        "number": "13",
        "name": "PB0",
        "type": "bidirectional",
        "description": "Port B0 (3.6 V tolerant, high sink/source 20 mA) with TIM2 channel 1, ADC1 input 18 and comparator 1 positive input; a pull-up is applied during reset and the pin is floating input after reset release."
      },
      {
        "number": "14",
        "name": "PB1",
        "type": "bidirectional",
        "description": "Port B1 (3.6 V tolerant, high sink/source 20 mA) with TIM3 channel 1, ADC1 input 17 and comparator 1 positive input."
      },
      {
        "number": "15",
        "name": "PB2",
        "type": "bidirectional",
        "description": "Port B2 (3.6 V tolerant, high sink/source 20 mA) with TIM2 channel 2, ADC1 input 16 and comparator 1 positive input."
      },
      {
        "number": "16",
        "name": "PB3",
        "type": "bidirectional",
        "description": "Port B3 (3.6 V tolerant, high sink/source 20 mA) with optional TIM2 external trigger, TIM1 inverted channel 2, ADC1 input 15 and comparator 1 positive input."
      },
      {
        "number": "17",
        "name": "PB4",
        "type": "bidirectional",
        "description": "Port B4 (3.6 V tolerant, high sink/source 20 mA) with optional SPI1 master/slave select, ADC1 input 14, DAC output and comparator 1 positive input; a pull-up is applied during reset and the pin is floating input after reset release."
      },
      {
        "number": "18",
        "name": "PB5",
        "type": "bidirectional",
        "description": "Port B5 (3.6 V tolerant, high sink/source 20 mA) with optional SPI1 clock, ADC1 input 13, DAC output and comparator 1 positive input."
      },
      {
        "number": "19",
        "name": "PB6",
        "type": "bidirectional",
        "description": "Port B6 (3.6 V tolerant, high sink/source 20 mA) with optional SPI1 master out/slave in, ADC1 input 12, DAC output and comparator 1 positive input."
      },
      {
        "number": "20",
        "name": "PB7",
        "type": "bidirectional",
        "description": "Port B7 (3.6 V tolerant, high sink/source 20 mA) with optional SPI1 master in/slave out, ADC1 input 11 and comparator 1 positive input."
      },
      {
        "number": "21",
        "name": "PD4",
        "type": "bidirectional",
        "description": "Port D4 (3.6 V tolerant, high sink/source 20 mA) with TIM1 channel 2, ADC1 input 10 and comparator 1 positive input."
      },
      {
        "number": "22",
        "name": "PD5",
        "type": "bidirectional",
        "description": "Port D5 (3.6 V tolerant, high sink/source 20 mA) with TIM1 channel 3, ADC1 input 9 and comparator 1 positive input."
      },
      {
        "number": "23",
        "name": "PD6",
        "type": "bidirectional",
        "description": "Port D6 (3.6 V tolerant, high sink/source 20 mA) with TIM1 break input, ADC1 input 8, RTC calibration, internal voltage reference output and comparator 1 positive input."
      },
      {
        "number": "24",
        "name": "PD7",
        "type": "bidirectional",
        "description": "Port D7 (3.6 V tolerant, high sink/source 20 mA) with TIM1 inverted channel 1, ADC1 input 7, RTC alarm, internal voltage reference output and comparator 1 positive input."
      },
      {
        "number": "25",
        "name": "PC0",
        "type": "bidirectional",
        "description": "Port C0 (5 V tolerant true open-drain I/O, no protection diode to VDD) carrying the I2C1 SDA function."
      },
      {
        "number": "26",
        "name": "PC1",
        "type": "bidirectional",
        "description": "Port C1 (5 V tolerant true open-drain I/O, no protection diode to VDD) carrying the I2C1 SCL function."
      },
      {
        "number": "27",
        "name": "PC2",
        "type": "bidirectional",
        "description": "Port C2 (3.6 V tolerant, high sink/source 20 mA) with USART1 receive, ADC1 input 6, comparator 1 positive input and internal voltage reference output."
      },
      {
        "number": "28",
        "name": "PC3",
        "type": "bidirectional",
        "description": "Port C3 (3.6 V tolerant, high sink/source 20 mA) with USART1 transmit, ADC1 input 5, comparator 1 positive input and comparator 2 negative input."
      },
      {
        "number": "29",
        "name": "PC4",
        "type": "bidirectional",
        "description": "Port C4 (3.6 V tolerant, high sink/source 20 mA) with USART1 synchronous clock, I2C1 SMBus, configurable clock output, ADC1 input 4, comparator 2 negative input and comparator 1 positive input."
      },
      {
        "number": "30",
        "name": "PC5",
        "type": "bidirectional",
        "description": "Port C5 (high sink/source 20 mA) with LSE oscillator input and optional SPI1 master/slave select and USART1 transmit."
      },
      {
        "number": "31",
        "name": "PC6",
        "type": "bidirectional",
        "description": "Port C6 (high sink/source 20 mA) with LSE oscillator output and optional SPI1 clock and USART1 receive."
      },
      {
        "number": "32",
        "name": "PA0",
        "type": "bidirectional",
        "description": "Port A0 (high sink/source 20 mA, high sink LED driver capability) with USART1 synchronous clock, SWIM input/output, beep output and infrared timer output; input pull-up during reset and after reset release."
      },
      {
        "number": "33",
        "name": "EP",
        "type": "passive",
        "description": "Exposed pad (from the footprint; not named in the datasheet pin table)."
      }
    ],
    "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: Pinout is taken from Table 5 (LQFP32/UFQFPN32 column). The Figure 4 pin drawing is not readable in t; Order code STM8L151K4U6TR decodes as K = 32 pins, U = UFQFPN, 4 = 16 KB Flash, 6 = -40 to 85 C, whic; LCD-only functions (LCD_SEG/LCD_COM, VLCD) and LCD-only pin rows are omitted because the STM8L151 ha",
          "exposed pad 33 added from the footprint"
        ],
        "pages_sent": 57,
        "cost_usd": 0.2408,
        "at": "2026-10-11T23:07:11"
      },
      "datasheet": {
        "url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8588883595939762177",
        "pages": 142,
        "sha256": "6c51d6b741c9d74e",
        "source_tier": "lcsc"
      },
      "cad": "KiCad official (CC-BY-SA 4.0)",
      "pins": {
        "total": 33,
        "described": 33,
        "cites_pages": true,
        "refuses_to_fabricate": true
      }
    },
    "viewers": {
      "symbol": "viewers/symbol.html",
      "footprint": "viewers/footprint.html"
    },
    "models_3d": [
      {
        "file": "stm8l151k4u6tr.step",
        "role": "plain",
        "up": "Z",
        "units": "mm",
        "origin": "footprint origin = pad-pattern centre",
        "seat": "z = 0",
        "extents_mm": [
          5.0,
          5.0,
          1.1
        ],
        "zmin_mm": 0.0,
        "centre_offset_mm": 0.0,
        "footprint_binding": "identity",
        "sha256": "90af021df1253eae35bee4f4a4f9ba63bcf4a308f6e9f12d58f6e00181c23140",
        "checked": "2026-10-11",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      },
      {
        "file": "stm8l151k4u6tr-etched.step",
        "role": "eda",
        "up": "Z",
        "units": "mm",
        "origin": "footprint origin = pad-pattern centre",
        "seat": "z = 0",
        "extents_mm": [
          5.0,
          5.0,
          1.1
        ],
        "zmin_mm": 0.0,
        "centre_offset_mm": 0.0,
        "footprint_binding": "identity",
        "sha256": "c3d9fcb1ef787c10e6c7ebd921a60abbe4c9af7dc75ad5e7f6eb9ab3ed618d19",
        "checked": "2026-10-11",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      }
    ]
  }
}