main
Ray Publish 0.1.1 2d5bf0a
{
  "schema_version": 1,
  "type": "component",
  "slug": "stm8l152c6t6",
  "title": "STM8L152C6T6",
  "brief": "STMicroelectronics Microcontrollers (MCU/MPU/SOC), LQFP-48(7x7). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
  "version": "0.1.1",
  "license": "CC-BY-SA-4.0",
  "tags": [
    "component",
    "embedded processors & controllers",
    "stm8l152c6t6",
    "factory-2.0.0",
    "extractor-text"
  ],
  "component": {
    "mpn": "STM8L152C6T6",
    "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/8586181407898521600",
    "parts": {
      "symbol": "stm8l152c6t6.kicad_sym",
      "footprint": "stm8l152c6t6.kicad_mod",
      "model_3d": "stm8l152c6t6-hero.glb",
      "model_3d_plain": "stm8l152c6t6.glb",
      "model_3d_step": "stm8l152c6t6-etched.step",
      "model_3d_step_plain": "stm8l152c6t6.step",
      "lbr": "stm8l152c6t6.lbr"
    },
    "distributor_links": {
      "lcsc": "C8252",
      "digikey": "497-10512-ND",
      "mouser": "511-STM8L152C6T6"
    },
    "distributor_check": {
      "checked_at": "2026-09-29T22:57:59Z",
      "source": "Component Ocean /api/assign-pns",
      "digikey": {
        "pn": "497-10512-ND",
        "status": "found",
        "lifecycle": "Active"
      },
      "mouser": {
        "pn": "511-STM8L152C6T6",
        "status": "found"
      }
    },
    "pins": [
      {
        "number": "1",
        "name": "PA0/SWIM/BEEP/IR_TIM",
        "type": "bidirectional",
        "description": "Port A0 (input pull-up in and after reset) with alternate functions [USART1_CK], SWIM input/output, Beep output and Infrared Timer 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 (PA1) when configured as such."
      },
      {
        "number": "3",
        "name": "PA2/OSC_IN",
        "type": "bidirectional",
        "description": "Port A2 with HSE oscillator input and remappable [USART1_TX]/[SPI1_MISO]; high sink/source."
      },
      {
        "number": "4",
        "name": "PA3/OSC_OUT",
        "type": "bidirectional",
        "description": "Port A3 with HSE oscillator output and remappable [USART1_RX]/[SPI1_MOSI]; high sink/source."
      },
      {
        "number": "5",
        "name": "PA4/TIM2_BKIN/LCD_COM0/ADC1_IN2/COMP1_INP",
        "type": "bidirectional",
        "description": "Port A4 (3.6 V tolerant) with Timer 2 break input, LCD COM0, ADC1 input 2 and Comparator 1 positive input."
      },
      {
        "number": "6",
        "name": "PA5/TIM3_BKIN/LCD_COM1/ADC1_IN1/COMP1_INP",
        "type": "bidirectional",
        "description": "Port A5 (3.6 V tolerant) with Timer 3 break input, LCD COM1, ADC1 input 1 and Comparator 1 positive input."
      },
      {
        "number": "7",
        "name": "PA6/[ADC1_TRIG]/LCD_COM2/ADC1_IN0/COMP1_INP",
        "type": "bidirectional",
        "description": "Port A6 (3.6 V tolerant) with [ADC1 trigger], LCD COM2, ADC1 input 0 and Comparator 1 positive input."
      },
      {
        "number": "8",
        "name": "PA7/LCD_SEG0",
        "type": "bidirectional",
        "description": "Port A7 (5 V tolerant) with LCD segment 0."
      },
      {
        "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": "VLCD",
        "type": "passive",
        "description": "LCD booster external capacitor connection (STM8L152xx)."
      },
      {
        "number": "14",
        "name": "PE0/LCD_SEG1",
        "type": "bidirectional",
        "description": "Port E0 (5 V tolerant) with LCD segment 1."
      },
      {
        "number": "15",
        "name": "PE1/TIM1_CH2N/LCD_SEG2",
        "type": "bidirectional",
        "description": "Port E1 with Timer 1 inverted channel 2 and LCD segment 2."
      },
      {
        "number": "16",
        "name": "PE2/TIM1_CH3N/LCD_SEG3",
        "type": "bidirectional",
        "description": "Port E2 with Timer 1 inverted channel 3 and LCD segment 3."
      },
      {
        "number": "17",
        "name": "PE3/LCD_SEG4",
        "type": "bidirectional",
        "description": "Port E3 with LCD segment 4."
      },
      {
        "number": "18",
        "name": "PE4/LCD_SEG5",
        "type": "bidirectional",
        "description": "Port E4 with LCD segment 5."
      },
      {
        "number": "19",
        "name": "PE5/LCD_SEG6/ADC1_IN23/COMP2_INP/COMP1_INP",
        "type": "bidirectional",
        "description": "Port E5 with LCD segment 6, ADC1 input 23 and Comparator 2/1 positive inputs."
      },
      {
        "number": "20",
        "name": "PD0/TIM3_CH2/[ADC1_TRIG]/LCD_SEG7/ADC1_IN22/COMP2_INP/COMP1_INP",
        "type": "bidirectional",
        "description": "Port D0 with Timer 3 channel 2, [ADC1 trigger], LCD segment 7, ADC1 input 22 and Comparator 2/1 positive inputs."
      },
      {
        "number": "21",
        "name": "PD1/TIM3_ETR/LCD_COM3/ADC1_IN21/COMP2_INP/COMP1_INP",
        "type": "bidirectional",
        "description": "Port D1 with Timer 3 external trigger, LCD COM3, ADC1 input 21 and Comparator 2/1 positive inputs."
      },
      {
        "number": "22",
        "name": "PD2/TIM1_CH1/LCD_SEG8/ADC1_IN20/COMP1_INP",
        "type": "bidirectional",
        "description": "Port D2 with Timer 1 channel 1, LCD segment 8, ADC1 input 20 and Comparator 1 positive input."
      },
      {
        "number": "23",
        "name": "PD3/TIM1_ETR/LCD_SEG9/ADC1_IN19/COMP1_INP",
        "type": "bidirectional",
        "description": "Port D3 with Timer 1 external trigger, LCD segment 9, ADC1 input 19 and Comparator 1 positive input."
      },
      {
        "number": "24",
        "name": "PB0/TIM2_CH1/LCD_SEG10/ADC1_IN18/COMP1_INP",
        "type": "bidirectional",
        "description": "Port B0 with pull-up during reset then input floating, Timer 2 channel 1, LCD segment 10, ADC1_IN18 and Comparator 1 positive input."
      },
      {
        "number": "25",
        "name": "PB1/TIM3_CH1/LCD_SEG11/ADC1_IN17/COMP1_INP",
        "type": "bidirectional",
        "description": "Port B1 with Timer 3 channel 1, LCD segment 11, ADC1_IN17 and Comparator 1 positive input."
      },
      {
        "number": "26",
        "name": "PB2/TIM2_CH2/LCD_SEG12/ADC1_IN16/COMP1_INP",
        "type": "bidirectional",
        "description": "Port B2 with Timer 2 channel 2, LCD segment 12, ADC1_IN16 and Comparator 1 positive input."
      },
      {
        "number": "27",
        "name": "PB3/TIM2_ETR/LCD_SEG13/ADC1_IN15/COMP1_INP",
        "type": "bidirectional",
        "description": "Port B3 with Timer 2 external trigger, LCD segment 13, ADC1_IN15 and Comparator 1 positive input."
      },
      {
        "number": "28",
        "name": "PB4/[SPI1_NSS]/LCD_SEG14/ADC1_IN14/COMP1_INP",
        "type": "bidirectional",
        "description": "Port B4 with pull-up during reset then input floating, [SPI1 master/slave select], LCD segment 14, ADC1_IN14 and Comparator 1 positive input."
      },
      {
        "number": "29",
        "name": "PB5/[SPI1_SCK]/LCD_SEG15/ADC1_IN13/COMP1_INP",
        "type": "bidirectional",
        "description": "Port B5 with [SPI1 clock], LCD segment 15, ADC1_IN13 and Comparator 1 positive input."
      },
      {
        "number": "30",
        "name": "PB6/[SPI1_MOSI]/LCD_SEG16/ADC1_IN12/COMP1_INP",
        "type": "bidirectional",
        "description": "Port B6 with [SPI1 master out/slave in], LCD segment 16, ADC1_IN12 and Comparator 1 positive input."
      },
      {
        "number": "31",
        "name": "PB7/[SPI1_MISO]/LCD_SEG17/ADC1_IN11/COMP1_INP",
        "type": "bidirectional",
        "description": "Port B7 with [SPI1 master in/slave out], LCD segment 17, ADC1_IN11 and Comparator 1 positive input."
      },
      {
        "number": "32",
        "name": "PF0/ADC1_IN24/DAC_OUT",
        "type": "bidirectional",
        "description": "Port F0 with ADC1_IN24 and DAC_OUT."
      },
      {
        "number": "33",
        "name": "PD4/TIM1_CH2/LCD_SEG18/ADC1_IN10/COMP1_INP",
        "type": "bidirectional",
        "description": "Port D4 with Timer 1 channel 2, LCD segment 18, ADC1_IN10 and Comparator 1 positive input."
      },
      {
        "number": "34",
        "name": "PD5/TIM1_CH3/LCD_SEG19/ADC1_IN9/COMP1_INP",
        "type": "bidirectional",
        "description": "Port D5 with Timer 1 channel 3, LCD segment 19, ADC1_IN9 and Comparator 1 positive input."
      },
      {
        "number": "35",
        "name": "PD6/TIM1_BKIN/LCD_SEG20/ADC1_IN8/RTC_CALIB/VREFINT/COMP1_INP",
        "type": "bidirectional",
        "description": "Port D6 with Timer 1 break input, LCD segment 20, ADC1_IN8, RTC calibration, internal voltage reference output and Comparator 1 positive input."
      },
      {
        "number": "36",
        "name": "PD7/TIM1_CH1N/LCD_SEG21/ADC1_IN7/RTC_ALARM/VREFINT/COMP1_INP",
        "type": "bidirectional",
        "description": "Port D7 with Timer 1 inverted channel 1, LCD segment 21, ADC1_IN7, RTC alarm, internal voltage reference output and Comparator 1 positive input."
      },
      {
        "number": "37",
        "name": "PC0/I2C1_SDA",
        "type": "bidirectional",
        "description": "Port C0 (5 V tolerant, true open drain) with I2C1 data."
      },
      {
        "number": "38",
        "name": "PC1/I2C1_SCL",
        "type": "bidirectional",
        "description": "Port C1 (5 V tolerant, true open drain) with I2C1 clock."
      },
      {
        "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/USART1_RX/LCD_SEG22/ADC1_IN6/COMP1_INP/VREFINT",
        "type": "bidirectional",
        "description": "Port C2 with USART1 receive, LCD segment 22, ADC1_IN6, Comparator 1 positive input and internal voltage reference output."
      },
      {
        "number": "42",
        "name": "PC3/USART1_TX/LCD_SEG23/ADC1_IN5/COMP1_INP/COMP2_INM",
        "type": "bidirectional",
        "description": "Port C3 with USART1 transmit, LCD segment 23, ADC1_IN5, Comparator 1 positive input and Comparator 2 negative input."
      },
      {
        "number": "43",
        "name": "PC4/USART1_CK/I2C1_SMB/CCO/LCD_SEG24/ADC1_IN4/COMP2_INM/COMP1_INP",
        "type": "bidirectional",
        "description": "Port C4 with USART1 clock, I2C1_SMB, configurable clock output, LCD segment 24, ADC1_IN4 and Comparator 2 negative/Comparator 1 positive inputs."
      },
      {
        "number": "44",
        "name": "PC5/OSC32_IN/[SPI1_NSS]/[USART1_TX]",
        "type": "bidirectional",
        "description": "Port C5 with LSE oscillator input and remappable [SPI1 master/slave select]/[USART1 transmit]."
      },
      {
        "number": "45",
        "name": "PC6/OSC32_OUT/[SPI1_SCK]/[USART1_RX]",
        "type": "bidirectional",
        "description": "Port C6 with LSE oscillator output and remappable [SPI1 clock]/[USART1 receive]."
      },
      {
        "number": "46",
        "name": "PC7/LCD_SEG25/ADC1_IN3/COMP2_INM/COMP1_INP",
        "type": "bidirectional",
        "description": "Port C7 with LCD segment 25, ADC1_IN3, Comparator 2 negative input and Comparator 1 positive input."
      },
      {
        "number": "47",
        "name": "PE6/LCD_SEG26/PVD_IN",
        "type": "bidirectional",
        "description": "Port E6 with LCD segment 26 and PVD_IN."
      },
      {
        "number": "48",
        "name": "PE7/LCD_SEG27",
        "type": "bidirectional",
        "description": "Port E7 with LCD segment 27."
      }
    ],
    "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: VLCD pin (13) is only available on STM8L152xx variants with LCD; alternative configuration exists fo; NRST/PA1 pin (2) has special reset behavior and reset-phase pull-up; only configurable as output, no; PC0 and PC1 pins (37, 38) are true open-drain I/Os without internal pull-ups or protection diodes to"
        ],
        "pages_sent": 36,
        "cost_usd": 0.4111,
        "at": "2026-09-29T22:57:37"
      },
      "datasheet": {
        "url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8586181407898521600",
        "pages": 129,
        "sha256": "bdb8147fe7e55153",
        "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": "stm8l152c6t6.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": "9dea352d93177c2904afd7d7b68ea8855ce1ab691f69f8b3e13655600514b6bf",
        "checked": "2026-10-07",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      },
      {
        "file": "stm8l152c6t6-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": "b7d2ba5f96f95b3c275a45041ccb4b2a26783826b430c64353deac32e38d49b0",
        "checked": "2026-11-18",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      }
    ]
  },
  "metadata": {
    "specs": {
      "Manufacturer": "STMicroelectronics",
      "Package": "LQFP-48(7x7)",
      "Category": "Embedded Processors & Controllers",
      "Pins": "48"
    }
  },
  "variants": [],
  "sections": [
    "hero",
    "viewers",
    "readme",
    "breadcrumbs",
    "info"
  ],
  "discovery_triggers": [
    "stm8l152c6t6"
  ],
  "discovery_pitch": "STM8L152C6T6 (STMicroelectronics) component page: datasheet pinout, KiCad symbol, footprint and 3D.",
  "author": {
    "name": "Ray"
  },
  "dependencies": {},
  "hero": {
    "type": "image",
    "path": "docs/hero.png"
  },
  "files": [
    "page.json",
    "README.md",
    "stm8l152c6t6.kicad_sym",
    "stm8l152c6t6.kicad_mod",
    "stm8l152c6t6.glb",
    "stm8l152c6t6.step",
    "stm8l152c6t6.lbr",
    "docs/hero.png",
    "docs/stm8l152c6t6-datasheet.pdf",
    "viewers/symbol.html",
    "viewers/footprint.html",
    "stm8l152c6t6-etched.step",
    "stm8l152c6t6-hero.glb",
    "stm8l152c6t6-hero.overlay.json"
  ],
  "visibility": "public",
  "description": "STMicroelectronics Microcontrollers (MCU/MPU/SOC), LQFP-48(7x7). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
  "org": "adom"
}