main
Ray Publish 0.1.1 6bc0ae0
{
  "slug": "stm8l152c8t6",
  "version": "0.1.1",
  "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",
    "stm8l152c8t6",
    "factory-2.0.0",
    "extractor-text"
  ],
  "dependencies": {},
  "hero": {
    "type": "image",
    "path": "docs/hero.png"
  },
  "files": [
    "page.json",
    "README.md",
    "stm8l152c8t6.kicad_sym",
    "stm8l152c8t6.kicad_mod",
    "stm8l152c8t6.glb",
    "stm8l152c8t6.step",
    "stm8l152c8t6.lbr",
    "docs/hero.png",
    "docs/stm8l152c8t6-datasheet.pdf",
    "viewers/symbol.html",
    "viewers/footprint.html",
    "stm8l152c8t6-etched.step",
    "stm8l152c8t6-hero.glb",
    "stm8l152c8t6-hero.overlay.json"
  ],
  "component": {
    "mpn": "STM8L152C8T6",
    "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/8586181561666035712",
    "parts": {
      "symbol": "stm8l152c8t6.kicad_sym",
      "footprint": "stm8l152c8t6.kicad_mod",
      "model_3d": "stm8l152c8t6-hero.glb",
      "model_3d_plain": "stm8l152c8t6.glb",
      "model_3d_step": "stm8l152c8t6-etched.step",
      "model_3d_step_plain": "stm8l152c8t6.step",
      "lbr": "stm8l152c8t6.lbr"
    },
    "distributor_links": {
      "lcsc": "C91684",
      "digikey": "497-11570-ND",
      "mouser": "511-STM8L152C8T6"
    },
    "distributor_check": {
      "checked_at": "2026-10-01T02:30:04Z",
      "source": "Component Ocean /api/assign-pns",
      "digikey": {
        "pn": "497-11570-ND",
        "status": "found",
        "lifecycle": "Active"
      },
      "mouser": {
        "pn": "511-STM8L152C8T6",
        "status": "found"
      }
    },
    "pins": [
      {
        "number": "1",
        "name": "PA0",
        "type": "bidirectional",
        "description": "Port A0 GPIO with weak pull-up; selectable SWIM debug interface, beeper output, or infrared timer output with 20 mA high-sink drive capability"
      },
      {
        "number": "2",
        "name": "NRST/PA1",
        "type": "input",
        "description": "Reset input with 45 kΩ pull-up and 10% VDD hysteresis; can be configured as PA1 push-pull output only"
      },
      {
        "number": "3",
        "name": "PA2",
        "type": "bidirectional",
        "description": "Port A2 GPIO; five-volt tolerant selectable HSE oscillator input, USART1 transmit, or SPI1 MISO"
      },
      {
        "number": "4",
        "name": "PA3",
        "type": "bidirectional",
        "description": "Port A3 GPIO; five-volt tolerant selectable HSE oscillator output, USART1 receive, or SPI1 MOSI"
      },
      {
        "number": "5",
        "name": "PA4",
        "type": "bidirectional",
        "description": "Port A4 GPIO; five-volt tolerant selectable Timer2 break/trigger, LCD_COM0, ADC1_IN2, or Comparator1 positive input"
      },
      {
        "number": "6",
        "name": "PA5",
        "type": "bidirectional",
        "description": "Port A5 GPIO; five-volt tolerant selectable Timer3 break/trigger, LCD_COM1, ADC1_IN1, or Comparator1 positive input"
      },
      {
        "number": "7",
        "name": "PA6",
        "type": "bidirectional",
        "description": "Port A6 GPIO; five-volt tolerant selectable ADC1 trigger, LCD_COM2, ADC1_IN0, or Comparator1 positive input"
      },
      {
        "number": "8",
        "name": "PA7",
        "type": "bidirectional",
        "description": "Port A7 GPIO; five-volt tolerant selectable LCD_SEG0 or Timer5 channel 1"
      },
      {
        "number": "9",
        "name": "VSS/VSSA/VREF-",
        "type": "power_in",
        "description": "I/O ground, analog ground voltage, and ADC1 negative reference; connect to 0 V reference plane"
      },
      {
        "number": "10",
        "name": "VDD1",
        "type": "power_out",
        "description": "Digital power supply 1.8 to 3.6 V for I/Os and internal regulator; requires 4.7 µF bypass capacitor"
      },
      {
        "number": "11",
        "name": "VDDA",
        "type": "power_out",
        "description": "Analog power supply 1.8 to 3.6 V (minimum 1.8 V when ADC used); requires 1 µF bypass and 10 µF bulk capacitors"
      },
      {
        "number": "12",
        "name": "VREF+",
        "type": "power_out",
        "description": "ADC1 and DAC1/2 positive reference voltage 1.8 to 3.6 V; can be connected to VDDA; requires 1 µF bypass capacitor"
      },
      {
        "number": "13",
        "name": "VLCD",
        "type": "power_out",
        "description": "LCD step-up converter external capacitor connection for LCD bias voltage (STM8L152x6/8 only)"
      },
      {
        "number": "14",
        "name": "PE0",
        "type": "bidirectional",
        "description": "Port E0 GPIO; five-volt tolerant selectable LCD_SEG1 or Timer5 channel 2"
      },
      {
        "number": "15",
        "name": "PE1",
        "type": "bidirectional",
        "description": "Port E1 GPIO; five-volt tolerant selectable Timer1 inverted channel 2 or LCD_SEG2"
      },
      {
        "number": "16",
        "name": "PE2",
        "type": "bidirectional",
        "description": "Port E2 GPIO; five-volt tolerant selectable Timer1 inverted channel 3, LCD_SEG3, or configurable clock output"
      },
      {
        "number": "17",
        "name": "PE3",
        "type": "bidirectional",
        "description": "Port E3 GPIO; five-volt tolerant selectable LCD_SEG4 or USART2 receive"
      },
      {
        "number": "18",
        "name": "PE4",
        "type": "bidirectional",
        "description": "Port E4 GPIO; five-volt tolerant selectable LCD_SEG5, DAC2 trigger, or USART2 transmit"
      },
      {
        "number": "19",
        "name": "PE5",
        "type": "bidirectional",
        "description": "Port E5 GPIO; five-volt tolerant selectable LCD_SEG6, ADC1_IN23, Comparator1/2 positive input, or USART2 clock"
      },
      {
        "number": "20",
        "name": "PD0",
        "type": "bidirectional",
        "description": "Port D0 GPIO; five-volt tolerant selectable Timer3 channel 2, ADC trigger, LCD_SEG7, ADC1_IN22, or Comparator2 positive input"
      },
      {
        "number": "21",
        "name": "PD1",
        "type": "bidirectional",
        "description": "Port D1 GPIO; five-volt tolerant selectable Timer3 trigger, LCD_COM3, ADC1_IN21, or Comparator1/2 positive input"
      },
      {
        "number": "22",
        "name": "PD2",
        "type": "bidirectional",
        "description": "Port D2 GPIO; five-volt tolerant selectable Timer1 channel 1, LCD_SEG8, ADC1_IN20, or Comparator1 positive input"
      },
      {
        "number": "23",
        "name": "PD3",
        "type": "bidirectional",
        "description": "Port D3 GPIO; five-volt tolerant selectable Timer1 trigger, LCD_SEG9, ADC1_IN19, or Comparator1 positive input"
      },
      {
        "number": "24",
        "name": "PB0",
        "type": "bidirectional",
        "description": "Port B0 GPIO; five-volt tolerant selectable Timer2 channel 1, LCD_SEG10, ADC1_IN18, or Comparator1 positive input; pull-up during reset"
      },
      {
        "number": "25",
        "name": "PB1",
        "type": "bidirectional",
        "description": "Port B1 GPIO; five-volt tolerant selectable Timer3 channel 1, LCD_SEG11, ADC1_IN17, or Comparator1 positive input"
      },
      {
        "number": "26",
        "name": "PB2",
        "type": "bidirectional",
        "description": "Port B2 GPIO; five-volt tolerant selectable Timer2 channel 2, LCD_SEG12, ADC1_IN16, or Comparator1 positive input"
      },
      {
        "number": "27",
        "name": "PB3",
        "type": "bidirectional",
        "description": "Port B3 GPIO; five-volt tolerant selectable Timer2 trigger, LCD_SEG13, ADC1_IN15, or Comparator1 positive input"
      },
      {
        "number": "28",
        "name": "PB4",
        "type": "bidirectional",
        "description": "Port B4 GPIO; five-volt tolerant selectable SPI1 chip select, LCD_SEG14, ADC1_IN14, DAC2 output, or Comparator1 positive input; pull-up during reset"
      },
      {
        "number": "29",
        "name": "PB5",
        "type": "bidirectional",
        "description": "Port B5 GPIO; five-volt tolerant selectable SPI1 clock, LCD_SEG15, ADC1_IN13, DAC2 output, or Comparator1 positive input"
      },
      {
        "number": "30",
        "name": "PB6",
        "type": "bidirectional",
        "description": "Port B6 GPIO; five-volt tolerant selectable SPI1 MOSI, LCD_SEG16, ADC1_IN12, DAC2 output, or Comparator1 positive input"
      },
      {
        "number": "31",
        "name": "PB7",
        "type": "bidirectional",
        "description": "Port B7 GPIO; five-volt tolerant selectable SPI1 MISO, LCD_SEG17, ADC1_IN11, or Comparator1 positive input"
      },
      {
        "number": "32",
        "name": "PF0",
        "type": "bidirectional",
        "description": "Port F0 GPIO (not five-volt tolerant); selectable ADC1_IN24 or DAC1 output"
      },
      {
        "number": "33",
        "name": "PD4",
        "type": "bidirectional",
        "description": "Port D4 GPIO; five-volt tolerant selectable Timer1 channel 2, LCD_SEG18, ADC1_IN10, SPI2 MISO, or Comparator1 positive input"
      },
      {
        "number": "34",
        "name": "PD5",
        "type": "bidirectional",
        "description": "Port D5 GPIO; five-volt tolerant selectable Timer1 channel 3, LCD_SEG19, ADC1_IN9, SPI2 MOSI, or Comparator1 positive input"
      },
      {
        "number": "35",
        "name": "PD6",
        "type": "bidirectional",
        "description": "Port D6 GPIO; five-volt tolerant selectable Timer1 break input, LCD_SEG20, ADC1_IN8, RTC calibration output, SPI2 clock, Comparator1 positive input, or VREFINT output"
      },
      {
        "number": "36",
        "name": "PD7",
        "type": "bidirectional",
        "description": "Port D7 GPIO; five-volt tolerant selectable Timer1 inverted channel 1, LCD_SEG21, ADC1_IN7, RTC alarm output, SPI2 chip select, Comparator1 positive input, or VREFINT output"
      },
      {
        "number": "37",
        "name": "PC0",
        "type": "tri_state",
        "description": "Port C0 GPIO with true open-drain output (no pull-up or protection diode); five-volt tolerant selectable I2C1 SDA; requires external pull-up"
      },
      {
        "number": "38",
        "name": "PC1",
        "type": "tri_state",
        "description": "Port C1 GPIO with true open-drain output (no pull-up or protection diode); five-volt tolerant selectable I2C1 SCL; requires external pull-up"
      },
      {
        "number": "39",
        "name": "VDD2",
        "type": "power_out",
        "description": "I/O power supply 1.8 to 3.6 V for ports B, C, D, E, F; requires 4.7 µF bypass capacitor"
      },
      {
        "number": "40",
        "name": "VSS2",
        "type": "power_in",
        "description": "I/O ground for ports B, C, D, E, F; connect to 0 V reference plane"
      },
      {
        "number": "41",
        "name": "PC2",
        "type": "bidirectional",
        "description": "Port C2 GPIO; five-volt tolerant selectable USART1 receive, LCD_SEG22, ADC1_IN6, Comparator1 positive input, or VREFINT output"
      },
      {
        "number": "42",
        "name": "PC3",
        "type": "bidirectional",
        "description": "Port C3 GPIO; five-volt tolerant selectable USART1 transmit, LCD_SEG23, or ADC1_IN5"
      },
      {
        "number": "43",
        "name": "PC4",
        "type": "bidirectional",
        "description": "Port C4 GPIO; five-volt tolerant selectable USART1 clock, I2C1 SMBus, configurable clock output, LCD_SEG24, ADC1_IN4, Comparator2 negative input, or LCD_COM4"
      },
      {
        "number": "44",
        "name": "PC5",
        "type": "bidirectional",
        "description": "Port C5 GPIO; five-volt tolerant selectable LSE oscillator input, SPI1 chip select, or USART1 transmit"
      },
      {
        "number": "45",
        "name": "PC6",
        "type": "bidirectional",
        "description": "Port C6 GPIO; five-volt tolerant selectable LSE oscillator output, SPI1 clock, or USART1 receive"
      },
      {
        "number": "46",
        "name": "PC7",
        "type": "bidirectional",
        "description": "Port C7 GPIO; five-volt tolerant selectable LCD_SEG25, ADC1_IN3, USART3 clock, Comparator2 negative input, or LCD_COM5"
      },
      {
        "number": "47",
        "name": "PE6",
        "type": "bidirectional",
        "description": "Port E6 GPIO; five-volt tolerant selectable LCD_SEG26, programmable voltage detector input, Timer5 break input, USART3 transmit, or LCD_COM6"
      },
      {
        "number": "48",
        "name": "PE7",
        "type": "bidirectional",
        "description": "Port E7 GPIO; five-volt tolerant selectable LCD_SEG27, Timer5 trigger, USART3 receive, or LCD_COM7"
      }
    ],
    "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": [
          "1/48 pins cited to the wrong page (name found elsewhere): ['1:PA0@p29']"
        ],
        "pages_sent": 55,
        "cost_usd": 0.4528,
        "at": "2026-10-01T02:29:42"
      },
      "datasheet": {
        "url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8586181561666035712",
        "pages": 146,
        "sha256": "af8735a15a80225f",
        "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"
    },
    "models_3d": [
      {
        "file": "stm8l152c8t6.step",
        "role": "plain",
        "up": "Z",
        "units": "mm",
        "origin": "footprint origin = pad-pattern centre",
        "seat": "z = 0",
        "extents_mm": [
          9.0,
          9.0,
          1.5
        ],
        "zmin_mm": -0.0,
        "centre_offset_mm": 0.0,
        "footprint_binding": "identity",
        "sha256": "9dea352d93177c2904afd7d7b68ea8855ce1ab691f69f8b3e13655600514b6bf",
        "checked": "2026-10-07",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      },
      {
        "file": "stm8l152c8t6-etched.step",
        "role": "eda",
        "up": "Z",
        "units": "mm",
        "origin": "footprint origin = pad-pattern centre",
        "seat": "z = 0",
        "extents_mm": [
          9.0,
          9.0,
          1.5
        ],
        "zmin_mm": -0.0,
        "centre_offset_mm": 0.0,
        "footprint_binding": "identity",
        "sha256": "4653e7768a2299712e7c4bd332a3be6919d6a55e8b7e69540b3fed472a626cf1",
        "checked": "2026-11-18",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      }
    ]
  },
  "title": "STM8L152C8T6",
  "brief": "STMicroelectronics Microcontrollers (MCU/MPU/SOC), LQFP-48(7x7). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
  "metadata": {
    "specs": {
      "Manufacturer": "STMicroelectronics",
      "Package": "LQFP-48(7x7)",
      "Category": "Embedded Processors & Controllers",
      "Pins": "48"
    }
  },
  "discovery_triggers": [
    "stm8l152c8t6"
  ],
  "discovery_pitch": "STM8L152C8T6 (STMicroelectronics) component page: datasheet pinout, KiCad symbol, footprint and 3D.",
  "visibility": "public"
}