main
Ray Set visibility: public 5cd1182 1d ago
{
  "schema_version": 1,
  "type": "component",
  "slug": "stm8l151k6t3",
  "title": "STM8L151K6T3",
  "brief": "STMicroelectronics Microcontrollers (MCU/MPU/SOC), LQFP-32(7x7). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
  "version": "0.1.0",
  "license": "CC-BY-SA-4.0",
  "tags": [
    "component",
    "embedded processors & controllers",
    "stm8l151k6t3",
    "factory-2.0.0",
    "extractor-text"
  ],
  "component": {
    "mpn": "STM8L151K6T3",
    "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/8588922459260772352",
    "parts": {
      "symbol": "stm8l151k6t3.kicad_sym",
      "footprint": "stm8l151k6t3.kicad_mod",
      "model_3d": "stm8l151k6t3-hero.glb",
      "model_3d_plain": "stm8l151k6t3.glb",
      "model_3d_step": "stm8l151k6t3-etched.step",
      "model_3d_step_plain": "stm8l151k6t3.step",
      "lbr": "stm8l151k6t3.lbr"
    },
    "distributor_links": {
      "lcsc": "C1340431",
      "digikey": "497-19224-ND",
      "mouser": "511-STM8L151K6T3"
    },
    "distributor_check": {
      "checked_at": "2026-10-08T11:48:55Z",
      "source": "Component Ocean /api/assign-pns",
      "digikey": {
        "pn": "497-19224-ND",
        "status": "found",
        "lifecycle": "Active"
      },
      "mouser": {
        "pn": "511-STM8L151K6T3",
        "status": "found"
      }
    },
    "pins": [
      {
        "number": "1",
        "name": "NRST/PA1",
        "type": "bidirectional",
        "description": "Active-low reset input with pull-up at power-up (RPU 30 to 60 kΩ); as 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 with HSE oscillator input (OSC_IN); 3.6 V tolerant I/O with high sink/source (20 mA) capability; USART1_TX and SPI1_MISO are remap options."
      },
      {
        "number": "3",
        "name": "PA3",
        "type": "bidirectional",
        "description": "Port A3 with HSE oscillator output (OSC_OUT); 3.6 V tolerant I/O with high sink/source (20 mA) capability; USART1_RX and SPI1_MOSI are remap options."
      },
      {
        "number": "4",
        "name": "PA4",
        "type": "bidirectional",
        "description": "Port A4 with Timer 2 break input (TIM2_BKIN), ADC1 input 2 (ADC1_IN2) and comparator 1 positive input (COMP1_INP); 3.6 V tolerant I/O with high sink/source (20 mA) capability."
      },
      {
        "number": "5",
        "name": "PA5",
        "type": "bidirectional",
        "description": "Port A5 with Timer 3 break input (TIM3_BKIN), ADC1 input 1 (ADC1_IN1) and comparator 1 positive input (COMP1_INP); 3.6 V tolerant I/O with high sink/source (20 mA) capability."
      },
      {
        "number": "6",
        "name": "PA6",
        "type": "bidirectional",
        "description": "Port A6 with ADC1 input 0 (ADC1_IN0) and comparator 1 positive input (COMP1_INP); ADC1 trigger is available as a remap option; 3.6 V tolerant I/O with high sink/source (20 mA) capability."
      },
      {
        "number": "7",
        "name": "VSS1/VSSA/VREF-",
        "type": "power_in",
        "description": "I/O ground, analog ground and ADC1 negative voltage reference."
      },
      {
        "number": "8",
        "name": "VDD1/VDDA/VREF+",
        "type": "power_in",
        "description": "Digital power supply, analog supply 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 with Timer 3 channel 2 (TIM3_CH2), ADC1 input 22 (ADC1_IN22) and comparator 1 and 2 positive inputs; 3.6 V tolerant I/O, and this pin function is available on STM8L151xx devices only."
      },
      {
        "number": "10",
        "name": "PD1",
        "type": "bidirectional",
        "description": "Port D1 with Timer 1 inverted channel 3 (TIM1_CH3N), ADC1 input 21 (ADC1_IN21) and comparator 1 and 2 positive inputs; 3.6 V tolerant I/O with high sink/source (20 mA) capability."
      },
      {
        "number": "11",
        "name": "PD2",
        "type": "bidirectional",
        "description": "Port D2 with Timer 1 channel 1 (TIM1_CH1), ADC1 input 20 (ADC1_IN20) and comparator 1 positive input (COMP1_INP); 3.6 V tolerant I/O with high sink/source (20 mA) capability."
      },
      {
        "number": "12",
        "name": "PD3",
        "type": "bidirectional",
        "description": "Port D3 with Timer 1 external trigger (TIM1_ETR), ADC1 input 19 (ADC1_IN19) and comparator 1 positive input (COMP1_INP); 3.6 V tolerant I/O with high sink/source (20 mA) capability."
      },
      {
        "number": "13",
        "name": "PB0",
        "type": "bidirectional",
        "description": "Port B0 with Timer 2 channel 1 (TIM2_CH1), ADC1 input 18 (ADC1_IN18) and comparator 1 positive input (COMP1_INP); a pull-up is applied during reset and the pin is floating input after reset release, 3.6 V tolerant with high sink/source (20 mA) capability."
      },
      {
        "number": "14",
        "name": "PB1",
        "type": "bidirectional",
        "description": "Port B1 with Timer 3 channel 1 (TIM3_CH1), ADC1 input 17 (ADC1_IN17) and comparator 1 positive input (COMP1_INP); 3.6 V tolerant I/O with high sink/source (20 mA) capability."
      },
      {
        "number": "15",
        "name": "PB2",
        "type": "bidirectional",
        "description": "Port B2 with Timer 2 channel 2 (TIM2_CH2), ADC1 input 16 (ADC1_IN16) and comparator 1 positive input (COMP1_INP); 3.6 V tolerant I/O with high sink/source (20 mA) capability."
      },
      {
        "number": "16",
        "name": "PB3",
        "type": "bidirectional",
        "description": "Port B3 with Timer 2 external trigger (TIM2_ETR, remap), Timer 1 inverted channel 2 (TIM1_CH2N), ADC1 input 15 (ADC1_IN15) and comparator 1 positive input (COMP1_INP); 3.6 V tolerant I/O with high sink/source (20 mA) capability."
      },
      {
        "number": "17",
        "name": "PB4",
        "type": "bidirectional",
        "description": "Port B4 with SPI1 master/slave select (SPI1_NSS, remap), ADC1 input 14 (ADC1_IN14), DAC output (DAC_OUT) and comparator 1 positive input (COMP1_INP); 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 with SPI1 clock (SPI1_SCK, remap), ADC1 input 13 (ADC1_IN13), DAC output (DAC_OUT) and comparator 1 positive input (COMP1_INP); 3.6 V tolerant I/O with high sink/source (20 mA) capability."
      },
      {
        "number": "19",
        "name": "PB6",
        "type": "bidirectional",
        "description": "Port B6 with SPI1 master out/slave in (SPI1_MOSI, remap), ADC1 input 12 (ADC1_IN12), DAC output (DAC_OUT) and comparator 1 positive input (COMP1_INP); 3.6 V tolerant I/O with high sink/source (20 mA) capability."
      },
      {
        "number": "20",
        "name": "PB7",
        "type": "bidirectional",
        "description": "Port B7 with SPI1 master in/slave out (SPI1_MISO, remap), ADC1 input 11 (ADC1_IN11) and comparator 1 positive input (COMP1_INP); 3.6 V tolerant I/O with high sink/source (20 mA) capability."
      },
      {
        "number": "21",
        "name": "PD4",
        "type": "bidirectional",
        "description": "Port D4 with Timer 1 channel 2 (TIM1_CH2), ADC1 input 10 (ADC1_IN10) and comparator 1 positive input (COMP1_INP); 3.6 V tolerant I/O with high sink/source (20 mA) capability."
      },
      {
        "number": "22",
        "name": "PD5",
        "type": "bidirectional",
        "description": "Port D5 with Timer 1 channel 3 (TIM1_CH3), ADC1 input 9 (ADC1_IN9) and comparator 1 positive input (COMP1_INP); 3.6 V tolerant I/O with high sink/source (20 mA) capability."
      },
      {
        "number": "23",
        "name": "PD6",
        "type": "bidirectional",
        "description": "Port D6 with Timer 1 break input (TIM1_BKIN), ADC1 input 8 (ADC1_IN8), RTC calibration (RTC_CALIB), internal voltage reference output (VREFINT) and comparator 1 positive input (COMP1_INP); 3.6 V tolerant I/O with high sink/source (20 mA) capability."
      },
      {
        "number": "24",
        "name": "PD7",
        "type": "bidirectional",
        "description": "Port D7 with Timer 1 inverted channel 1 (TIM1_CH1N), ADC1 input 7 (ADC1_IN7), RTC alarm (RTC_ALARM), internal voltage reference output (VREFINT) and comparator 1 positive input (COMP1_INP); 3.6 V tolerant I/O with high sink/source (20 mA) capability."
      },
      {
        "number": "25",
        "name": "PC0",
        "type": "bidirectional",
        "description": "Port C0 with I2C1 data (I2C1_SDA); 5 V tolerant I/O configured as true open-drain (no protection diode to VDD)."
      },
      {
        "number": "26",
        "name": "PC1",
        "type": "bidirectional",
        "description": "Port C1 with I2C1 clock (I2C1_SCL); 5 V tolerant I/O configured as true open-drain (no protection diode to VDD)."
      },
      {
        "number": "27",
        "name": "PC2",
        "type": "bidirectional",
        "description": "Port C2 with USART1 receive (USART1_RX), ADC1 input 6 (ADC1_IN6), comparator 1 positive input (COMP1_INP) and internal voltage reference output (VREFINT); 3.6 V tolerant I/O with high sink/source (20 mA) capability."
      },
      {
        "number": "28",
        "name": "PC3",
        "type": "bidirectional",
        "description": "Port C3 with USART1 transmit (USART1_TX), ADC1 input 5 (ADC1_IN5), comparator 1 positive input (COMP1_INP) and comparator 2 negative input (COMP2_INM); 3.6 V tolerant I/O with high sink/source (20 mA) capability."
      },
      {
        "number": "29",
        "name": "PC4",
        "type": "bidirectional",
        "description": "Port C4 with USART1 synchronous clock (USART1_CK), I2C1_SMB, configurable clock output (CCO), ADC1 input 4 (ADC1_IN4), comparator 2 negative input (COMP2_INM) and comparator 1 positive input (COMP1_INP); 3.6 V tolerant I/O with high sink/source (20 mA) capability."
      },
      {
        "number": "30",
        "name": "PC5",
        "type": "bidirectional",
        "description": "Port C5 with LSE oscillator input (OSC32_IN), SPI1 master/slave select (SPI1_NSS, remap) and USART1 transmit (USART1_TX, remap); 3.6 V tolerant I/O with high sink/source (20 mA) capability."
      },
      {
        "number": "31",
        "name": "PC6",
        "type": "bidirectional",
        "description": "Port C6 with LSE oscillator output (OSC32_OUT), SPI1 clock (SPI1_SCK, remap) and USART1 receive (USART1_RX, remap); 3.6 V tolerant I/O with high sink/source (20 mA) capability."
      },
      {
        "number": "32",
        "name": "PA0",
        "type": "bidirectional",
        "description": "Port A0 with USART1 synchronous clock (USART1_CK, remap), SWIM input and output, beep output (BEEP) and infrared timer output (IR_TIM); high sink LED driver capability, and the pin is in input pull-up during reset and after reset release."
      }
    ],
    "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 mapping: MPN STM8L151K6T3 decodes as 32-pin (K), 32 KB Flash (6), LQFP (T), -40 to 125 °C (3; Pin 9 is PD0 on STM8L151xx devices per Table 5 (footnote 8). On STM8L152xx the same pin is VLCD (LCD; LCD segment/common functions (LCD_SEG, LCD_COM, VLCD) are listed in Table 5 but are available only o"
        ],
        "pages_sent": 56,
        "cost_usd": 0.2571,
        "at": "2026-10-08T11:48:37"
      },
      "datasheet": {
        "url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8588922459260772352",
        "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": "stm8l151k6t3.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": "stm8l151k6t3-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": "d65f4d8c03e33541905a62bc6aafc3988e29b12c84d8f4063710815e31e1274e",
        "checked": "2026-10-08",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      }
    ]
  },
  "metadata": {
    "specs": {
      "Manufacturer": "STMicroelectronics",
      "Package": "LQFP-32(7x7)",
      "Category": "Embedded Processors & Controllers",
      "Pins": "32"
    }
  },
  "variants": [],
  "sections": [
    "hero",
    "viewers",
    "readme",
    "breadcrumbs",
    "info"
  ],
  "discovery_triggers": [
    "stm8l151k6t3"
  ],
  "discovery_pitch": "STM8L151K6T3 (STMicroelectronics) component page: datasheet pinout, KiCad symbol, footprint and 3D.",
  "author": {
    "name": "Ray",
    "email": "[email protected]"
  },
  "dependencies": {},
  "hero": {
    "type": "image",
    "path": "docs/hero.png"
  },
  "files": [
    "page.json",
    "README.md",
    "stm8l151k6t3.kicad_sym",
    "stm8l151k6t3.kicad_mod",
    "stm8l151k6t3.glb",
    "stm8l151k6t3.step",
    "stm8l151k6t3.lbr",
    "docs/hero.png",
    "docs/stm8l151k6t3-datasheet.pdf",
    "viewers/symbol.html",
    "viewers/footprint.html",
    "stm8l151k6t3-hero.glb",
    "stm8l151k6t3-hero.overlay.json"
  ],
  "visibility": {
    "public": true
  }
}