main
Ray Set visibility: public db707f3 18h ago
{
  "schema_version": 1,
  "type": "component",
  "slug": "stm8l152c8u6",
  "title": "STM8L152C8U6",
  "brief": "STMicroelectronics Microcontrollers (MCU/MPU/SOC), UFQFPN-48(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",
    "stm8l152c8u6",
    "factory-2.0.0",
    "extractor-text"
  ],
  "component": {
    "mpn": "STM8L152C8U6",
    "manufacturer": "STMicroelectronics",
    "package": "UFQFPN-48(7x7)",
    "pin_count": 49,
    "category": "Embedded Processors & Controllers",
    "subcategory": "Microcontrollers (MCU/MPU/SOC)",
    "datasheet": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8588923480922869760",
    "parts": {
      "symbol": "stm8l152c8u6.kicad_sym",
      "footprint": "stm8l152c8u6.kicad_mod",
      "model_3d": "stm8l152c8u6-hero.glb",
      "model_3d_plain": "stm8l152c8u6.glb",
      "model_3d_step": "stm8l152c8u6-etched.step",
      "model_3d_step_plain": "stm8l152c8u6.step",
      "lbr": "stm8l152c8u6.lbr"
    },
    "distributor_links": {
      "lcsc": 1348679,
      "digikey": "497-11478-ND",
      "mouser": "511-STM8L152C8U6"
    },
    "distributor_check": {
      "checked_at": "2026-10-05T19:26:36Z",
      "source": "Component Ocean /api/assign-pns",
      "digikey": {
        "pn": "497-11478-ND",
        "status": "found",
        "lifecycle": "Active"
      },
      "mouser": {
        "pn": "511-STM8L152C8U6",
        "status": "found"
      }
    },
    "pins": [
      {
        "number": "1",
        "name": "PA0",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant with high-sink LED driver capability; alternate functions: USART1 synchronous clock, SWIM interface, beeper output, infrared timer output."
      },
      {
        "number": "2",
        "name": "NRST/PA1",
        "type": "input",
        "description": "Reset input with internal pull-up (30-60 kΩ); can be configured as output PA1 (push-pull only) after reset."
      },
      {
        "number": "3",
        "name": "PA2",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant; alternate functions: HSE oscillator input, USART1 transmit, SPI1 MISO."
      },
      {
        "number": "4",
        "name": "PA3",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant; alternate functions: HSE oscillator output, USART1 receive, SPI1 MOSI."
      },
      {
        "number": "5",
        "name": "PA4",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant; alternate functions: Timer 2 break/trigger, LCD COM 0, ADC1 input 2, Comparator 1 positive input."
      },
      {
        "number": "6",
        "name": "PA5",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant; alternate functions: Timer 3 break/trigger, LCD COM 1, ADC1 input 1, Comparator 1 positive input."
      },
      {
        "number": "7",
        "name": "PA6",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant; alternate functions: ADC1 trigger, LCD COM 2, ADC1 input 0, Comparator 1 positive input."
      },
      {
        "number": "8",
        "name": "PA7",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant; alternate functions: LCD segment 0, Timer 5 channel 1 output."
      },
      {
        "number": "9",
        "name": "VSS/VSSA/VREF-",
        "type": "power_in",
        "description": "I/O ground, analog ground, and ADC1 negative voltage reference."
      },
      {
        "number": "10",
        "name": "VDD1",
        "type": "power_in",
        "description": "Digital power supply for I/Os, operating range 1.65 to 3.6 V."
      },
      {
        "number": "11",
        "name": "VDDA",
        "type": "power_in",
        "description": "Analog power supply for ADC1 and comparators, operating range 1.65 to 3.6 V (minimum 1.8 V when ADC1 is used)."
      },
      {
        "number": "12",
        "name": "VREF+",
        "type": "power_in",
        "description": "ADC1 and DAC1/2 positive voltage reference, operating range 1.65 to 3.6 V."
      },
      {
        "number": "13",
        "name": "VLCD",
        "type": "power_in",
        "description": "External capacitor connection for LCD step-up converter (STM8L152 devices only)."
      },
      {
        "number": "14",
        "name": "PE0",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant; alternate functions: LCD segment 1, Timer 5 channel 2 output."
      },
      {
        "number": "15",
        "name": "PE1",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant; alternate functions: Timer 1 inverted channel 2, LCD segment 2."
      },
      {
        "number": "16",
        "name": "PE2",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant; alternate functions: Timer 1 inverted channel 3, LCD segment 3, configurable clock output."
      },
      {
        "number": "17",
        "name": "PE3",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant; alternate functions: LCD segment 4, USART2 receive."
      },
      {
        "number": "18",
        "name": "PE4",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant; alternate functions: LCD segment 5, DAC 2 trigger, USART2 transmit."
      },
      {
        "number": "19",
        "name": "PE5",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant; alternate functions: LCD segment 6, ADC1 input 23, Comparators 1/2 positive inputs, USART2 synchronous clock."
      },
      {
        "number": "20",
        "name": "PD0",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant; alternate functions: Timer 3 channel 2, ADC1 trigger, LCD segment 7, ADC1 input 22, Comparator 2 positive input."
      },
      {
        "number": "21",
        "name": "PD1",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant; alternate functions: Timer 3 trigger, LCD COM 3, ADC1 input 21, Comparators 1/2 positive inputs."
      },
      {
        "number": "22",
        "name": "PD2",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant; alternate functions: Timer 1 channel 1, LCD segment 8, ADC1 input 20, Comparator 1 positive input."
      },
      {
        "number": "23",
        "name": "PD3",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant; alternate functions: Timer 1 trigger, LCD segment 9, ADC1 input 19, Comparator 1 positive input."
      },
      {
        "number": "24",
        "name": "PB0",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant with pull-up during reset; alternate functions: Timer 2 channel 1, LCD segment 10, ADC1 input 18, Comparator 1 positive input."
      },
      {
        "number": "25",
        "name": "PB1",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant; alternate functions: Timer 3 channel 1, LCD segment 11, ADC1 input 17, Comparator 1 positive input."
      },
      {
        "number": "26",
        "name": "PB2",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant; alternate functions: Timer 2 channel 2, LCD segment 12, ADC1 input 16, Comparator 1 positive input."
      },
      {
        "number": "27",
        "name": "PB3",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant; alternate functions: Timer 2 trigger, LCD segment 13, ADC1 input 15, Comparator 1 positive input."
      },
      {
        "number": "28",
        "name": "PB4",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant with pull-up during reset; alternate functions: SPI1 master/slave select, LCD segment 14, ADC1 input 14, DAC 2 output, Comparator 1 positive input."
      },
      {
        "number": "29",
        "name": "PB5",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant; alternate functions: SPI1 clock, LCD segment 15, ADC1 input 13, DAC 2 output, Comparator 1 positive input."
      },
      {
        "number": "30",
        "name": "PB6",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant; alternate functions: SPI1 master-out/slave-in, LCD segment 16, ADC1 input 12, DAC 2 output, Comparator 1 positive input."
      },
      {
        "number": "31",
        "name": "PB7",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant; alternate functions: SPI1 master-in/slave-out, LCD segment 17, ADC1 input 11, Comparator 1 positive input."
      },
      {
        "number": "32",
        "name": "PF0",
        "type": "bidirectional",
        "description": "General purpose I/O (not five-volt tolerant); alternate functions: ADC1 input 24, DAC 1 output."
      },
      {
        "number": "33",
        "name": "PD4",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant; alternate functions: Timer 1 channel 2, LCD segment 18, ADC1 input 10, SPI2 MISO, Comparator 1 positive input."
      },
      {
        "number": "34",
        "name": "PD5",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant; alternate functions: Timer 1 channel 3, LCD segment 19, ADC1 input 9, SPI2 MOSI, Comparator 1 positive input."
      },
      {
        "number": "35",
        "name": "PD6",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant; alternate functions: Timer 1 break input, LCD segment 20, ADC1 input 8, RTC calibration, SPI2 clock, Comparator 1 positive input, internal reference voltage output."
      },
      {
        "number": "36",
        "name": "PD7",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant; alternate functions: Timer 1 inverted channel 1, LCD segment 21, ADC1 input 7, RTC alarm output, SPI2 master/slave select, Comparator 1 positive input, internal reference voltage output."
      },
      {
        "number": "37",
        "name": "PC0",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant, true open-drain output; primary function: I2C1 data line (SDA)."
      },
      {
        "number": "38",
        "name": "PC1",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant, true open-drain output; primary function: I2C1 clock line (SCL)."
      },
      {
        "number": "39",
        "name": "VDD2",
        "type": "power_in",
        "description": "I/O power supply, operating range 1.65 to 3.6 V."
      },
      {
        "number": "40",
        "name": "VSS2",
        "type": "power_in",
        "description": "I/O ground."
      },
      {
        "number": "41",
        "name": "PC2",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant; alternate functions: USART1 receive, LCD segment 22, ADC1 input 6, Comparator 1 positive input, internal reference voltage output."
      },
      {
        "number": "42",
        "name": "PC3",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant; alternate functions: USART1 transmit, LCD segment 23, ADC1 input 5."
      },
      {
        "number": "43",
        "name": "PC4",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant; alternate functions: USART1 synchronous clock, I2C1 SMBus, configurable clock output, LCD segment 24/COM 4, ADC1 input 4, Comparators 1/2 inputs."
      },
      {
        "number": "44",
        "name": "PC5",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant; alternate functions: LSE oscillator input, SPI1 master/slave select, USART1 transmit."
      },
      {
        "number": "45",
        "name": "PC6",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant; alternate functions: LSE oscillator output, SPI1 clock, USART1 receive."
      },
      {
        "number": "46",
        "name": "PC7",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant; alternate functions: LCD segment 25/COM 5, ADC1 input 3, USART3 synchronous clock, Comparators 1/2 inputs."
      },
      {
        "number": "47",
        "name": "PE6",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant; alternate functions: LCD segment 26/COM 6, PVD input, Timer 5 break input, USART3 transmit."
      },
      {
        "number": "48",
        "name": "PE7",
        "type": "bidirectional",
        "description": "General purpose I/O, five-volt tolerant; alternate functions: LCD segment 27/COM 7, Timer 5 trigger, USART3 receive."
      },
      {
        "number": "49",
        "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-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 documented as available only on STM8L152xx devices with LCD; the STM8L152C8U6 varia; PC0 and PC1 are specified as true open-drain outputs for I2C1 interface; they do not have protection",
          "exposed pad 49 added from the footprint"
        ],
        "pages_sent": 56,
        "cost_usd": 0.463,
        "at": "2026-10-05T19:26:20"
      },
      "datasheet": {
        "url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8588923480922869760",
        "pages": 147,
        "sha256": "193f2133f3d81d2b",
        "source_tier": "lcsc"
      },
      "cad": "KiCad official (CC-BY-SA 4.0)",
      "pins": {
        "total": 49,
        "described": 49,
        "cites_pages": true,
        "refuses_to_fabricate": true
      }
    },
    "viewers": {
      "symbol": "viewers/symbol.html",
      "footprint": "viewers/footprint.html"
    }
  },
  "metadata": {
    "specs": {
      "Manufacturer": "STMicroelectronics",
      "Package": "UFQFPN-48(7x7)",
      "Category": "Embedded Processors & Controllers",
      "Pins": "49"
    }
  },
  "variants": [],
  "sections": [
    "hero",
    "viewers",
    "readme",
    "breadcrumbs",
    "info"
  ],
  "discovery_triggers": [
    "stm8l152c8u6"
  ],
  "discovery_pitch": "STM8L152C8U6 (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",
    "stm8l152c8u6.kicad_sym",
    "stm8l152c8u6.kicad_mod",
    "stm8l152c8u6.glb",
    "stm8l152c8u6.step",
    "stm8l152c8u6.lbr",
    "docs/hero.png",
    "docs/stm8l152c8u6-datasheet.pdf",
    "viewers/symbol.html",
    "viewers/footprint.html",
    "stm8l152c8u6-hero.glb",
    "stm8l152c8u6-hero.overlay.json"
  ],
  "visibility": {
    "public": true
  }
}