main
Ray Publish 0.1.0 2f7dc78 13d ago
{
  "slug": "stm8l052r8t6",
  "version": "0.1.0",
  "type": "component",
  "description": "STMicroelectronics Microcontrollers (MCU/MPU/SOC), LQFP-64(10x10). Datasheet-verified pinout, KiCad symbol/footprint/3D.",
  "tags": [
    "component",
    "embedded processors & controllers",
    "stm8l052r8t6",
    "factory-2.0.0",
    "extractor-text"
  ],
  "dependencies": {},
  "hero": {
    "type": "image",
    "path": "docs/hero.png"
  },
  "files": [
    "page.json",
    "README.md",
    "stm8l052r8t6.kicad_sym",
    "stm8l052r8t6.kicad_mod",
    "stm8l052r8t6.glb",
    "stm8l052r8t6.step",
    "stm8l052r8t6.lbr",
    "docs/hero.png",
    "docs/stm8l052r8t6-datasheet.pdf",
    "viewers/symbol.html",
    "viewers/footprint.html"
  ],
  "component": {
    "mpn": "STM8L052R8T6",
    "manufacturer": "STMicroelectronics",
    "package": "LQFP-64(10x10)",
    "pin_count": 64,
    "category": "Embedded Processors & Controllers",
    "subcategory": "Microcontrollers (MCU/MPU/SOC)",
    "datasheet": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8586175707394924544",
    "parts": {
      "symbol": "stm8l052r8t6.kicad_sym",
      "footprint": "stm8l052r8t6.kicad_mod",
      "model_3d": "stm8l052r8t6-etched.glb",
      "model_3d_plain": "stm8l052r8t6.glb",
      "model_3d_step": "stm8l052r8t6-etched.step",
      "model_3d_step_plain": "stm8l052r8t6.step",
      "lbr": "stm8l052r8t6.lbr"
    },
    "distributor_links": {
      "lcsc": "C34222"
    },
    "pins": [
      {
        "number": "1",
        "name": "PA0",
        "type": "bidirectional",
        "description": "Port A0 configurable as general purpose I/O, SWIM debug interface, beep output, or infrared timer output; high sink LED driver capability."
      },
      {
        "number": "2",
        "name": "NRST/PA1",
        "type": "bidirectional",
        "description": "Power-on reset input or configurable as Port A1 general purpose output only with push-pull or open-drain configuration; external interrupt source."
      },
      {
        "number": "3",
        "name": "PA2",
        "type": "bidirectional",
        "description": "Port A2 configurable as general purpose I/O, HSE oscillator input, alternate USART1 transmit, or alternate SPI1 MISO; 5V tolerant."
      },
      {
        "number": "4",
        "name": "PA3",
        "type": "bidirectional",
        "description": "Port A3 configurable as general purpose I/O, HSE oscillator output, alternate USART1 receive, or alternate SPI1 MOSI; 5V tolerant."
      },
      {
        "number": "5",
        "name": "PA4",
        "type": "bidirectional",
        "description": "Port A4 configurable as general purpose I/O, Timer 2 break input, alternate Timer 2 trigger, LCD common 0, or ADC1 input channel 2; 5V tolerant."
      },
      {
        "number": "6",
        "name": "PA5",
        "type": "bidirectional",
        "description": "Port A5 configurable as general purpose I/O, Timer 3 break input, alternate Timer 3 trigger, LCD common 1, or ADC1 input channel 1; 5V tolerant."
      },
      {
        "number": "7",
        "name": "PA6",
        "type": "bidirectional",
        "description": "Port A6 configurable as general purpose I/O, alternate ADC1 trigger, LCD common 2, or ADC1 input channel 0; 5V tolerant."
      },
      {
        "number": "8",
        "name": "PA7",
        "type": "bidirectional",
        "description": "Port A7 configurable as general purpose I/O, LCD segment 0, or Timer 5 channel 1; 5V tolerant."
      },
      {
        "number": "9",
        "name": "VSSA/VREF-",
        "type": "power_in",
        "description": "Analog ground voltage and ADC1 negative voltage reference; must be connected to VSS; supply range 1.8 to 3.6 V."
      },
      {
        "number": "10",
        "name": "VSS1",
        "type": "power_in",
        "description": "I/O and digital power supply ground return; must not be left unconnected; supply range 1.8 to 3.6 V."
      },
      {
        "number": "11",
        "name": "VDD1",
        "type": "power_in",
        "description": "Digital power supply voltage for I/Os and internal regulator; must not be left unconnected; supply range 1.8 to 3.6 V."
      },
      {
        "number": "12",
        "name": "VDDA",
        "type": "power_in",
        "description": "Analog supply voltage for ADC peripherals; must be connected to VDD; supply range 1.8 to 3.6 V."
      },
      {
        "number": "13",
        "name": "VREF+",
        "type": "power_in",
        "description": "ADC1 positive voltage reference; must be provided externally; supply range 1.8 to 3.6 V."
      },
      {
        "number": "14",
        "name": "PG0",
        "type": "bidirectional",
        "description": "Port G0 configurable as general purpose I/O, USART3 receive, or alternate Timer 2 break input; 5V tolerant."
      },
      {
        "number": "15",
        "name": "PG1",
        "type": "bidirectional",
        "description": "Port G1 configurable as general purpose I/O, USART3 transmit, or alternate Timer 3 break input; 5V tolerant."
      },
      {
        "number": "16",
        "name": "PG2",
        "type": "bidirectional",
        "description": "Port G2 configurable as general purpose I/O or USART3 synchronous clock; 5V tolerant."
      },
      {
        "number": "17",
        "name": "PG3",
        "type": "bidirectional",
        "description": "Port G3 configurable as general purpose I/O or alternate Timer 3 external trigger; 5V tolerant."
      },
      {
        "number": "18",
        "name": "VLCD",
        "type": "power_in",
        "description": "LCD booster external capacitor connection for internal step-up converter to guarantee contrast control; supply range 1.8 to 3.6 V."
      },
      {
        "number": "19",
        "name": "PE0",
        "type": "bidirectional",
        "description": "Port E0 configurable as general purpose I/O, LCD segment 1, Timer 5 channel 2, or RTC tamper 1 detection input; 5V tolerant."
      },
      {
        "number": "20",
        "name": "PE1",
        "type": "bidirectional",
        "description": "Port E1 configurable as general purpose I/O, Timer 1 inverted channel 2, LCD segment 2, or RTC tamper 2 detection input; 5V tolerant."
      },
      {
        "number": "21",
        "name": "PE2",
        "type": "bidirectional",
        "description": "Port E2 configurable as general purpose I/O, Timer 1 inverted channel 3, LCD segment 3, or RTC tamper 3 detection input; 5V tolerant."
      },
      {
        "number": "22",
        "name": "PE3",
        "type": "bidirectional",
        "description": "Port E3 configurable as general purpose I/O, LCD segment 4, or USART2 receive; 5V tolerant."
      },
      {
        "number": "23",
        "name": "PE4",
        "type": "bidirectional",
        "description": "Port E4 configurable as general purpose I/O, LCD segment 5, or USART2 transmit; 5V tolerant."
      },
      {
        "number": "24",
        "name": "PE5",
        "type": "bidirectional",
        "description": "Port E5 configurable as general purpose I/O, LCD segment 6, ADC1 input channel 23, or USART2 synchronous clock; 5V tolerant."
      },
      {
        "number": "25",
        "name": "PD0",
        "type": "bidirectional",
        "description": "Port D0 configurable as general purpose I/O, Timer 3 channel 2, alternate ADC1 trigger, LCD segment 7, or ADC1 input channel 22; 5V tolerant."
      },
      {
        "number": "26",
        "name": "PD1",
        "type": "bidirectional",
        "description": "Port D1 configurable as general purpose I/O, Timer 3 external trigger, LCD common 3, or ADC1 input channel 21; 5V tolerant."
      },
      {
        "number": "27",
        "name": "PD2",
        "type": "bidirectional",
        "description": "Port D2 configurable as general purpose I/O, Timer 1 channel 1, LCD segment 8, or ADC1 input channel 20; 5V tolerant."
      },
      {
        "number": "28",
        "name": "PD3",
        "type": "bidirectional",
        "description": "Port D3 configurable as general purpose I/O, Timer 1 external trigger, LCD segment 9, or ADC1 input channel 19; 5V tolerant."
      },
      {
        "number": "29",
        "name": "VDD3",
        "type": "power_in",
        "description": "I/O supply voltage; must not be left unconnected; supply range 1.8 to 3.6 V."
      },
      {
        "number": "30",
        "name": "VSS3",
        "type": "power_in",
        "description": "I/O ground return; must not be left unconnected; supply range 1.8 to 3.6 V."
      },
      {
        "number": "31",
        "name": "PB0",
        "type": "bidirectional",
        "description": "Port B0 configurable as general purpose I/O, Timer 2 channel 1, LCD segment 10, or ADC1 input channel 18; 5V tolerant; pull-up applied during reset, input floating after reset release."
      },
      {
        "number": "32",
        "name": "PB1",
        "type": "bidirectional",
        "description": "Port B1 configurable as general purpose I/O, Timer 3 channel 1, LCD segment 11, or ADC1 input channel 17; 5V tolerant."
      },
      {
        "number": "33",
        "name": "PB2",
        "type": "bidirectional",
        "description": "Port B2 configurable as general purpose I/O, Timer 2 channel 2, LCD segment 12, or ADC1 input channel 16; 5V tolerant."
      },
      {
        "number": "34",
        "name": "PB3",
        "type": "bidirectional",
        "description": "Port B3 configurable as general purpose I/O, Timer 2 external trigger, LCD segment 13, or ADC1 input channel 15; 5V tolerant."
      },
      {
        "number": "35",
        "name": "PB4",
        "type": "bidirectional",
        "description": "Port B4 configurable as general purpose I/O, alternate SPI1 master/slave select, LCD segment 14, or ADC1 input channel 14; 5V tolerant; pull-up applied during reset."
      },
      {
        "number": "36",
        "name": "PB5",
        "type": "bidirectional",
        "description": "Port B5 configurable as general purpose I/O, alternate SPI1 clock, LCD segment 15, or ADC1 input channel 13; 5V tolerant."
      },
      {
        "number": "37",
        "name": "PB6",
        "type": "bidirectional",
        "description": "Port B6 configurable as general purpose I/O, alternate SPI1 master out/slave in, LCD segment 16, or ADC1 input channel 12; 5V tolerant."
      },
      {
        "number": "38",
        "name": "PB7",
        "type": "bidirectional",
        "description": "Port B7 configurable as general purpose I/O, alternate SPI1 master in/slave out, LCD segment 17, or ADC1 input channel 11; 5V tolerant."
      },
      {
        "number": "39",
        "name": "PF0",
        "type": "bidirectional",
        "description": "Port F0 configurable as general purpose I/O, ADC1 input channel 24, or alternate USART3 transmit."
      },
      {
        "number": "40",
        "name": "PF1",
        "type": "bidirectional",
        "description": "Port F1 configurable as general purpose I/O, ADC1 input channel 25, or alternate USART3 receive."
      },
      {
        "number": "41",
        "name": "PF4",
        "type": "bidirectional",
        "description": "Port F4 configurable as general purpose I/O, LCD segment 36, or LCD common 4 with SEG/COM multiplexing available; 5V tolerant."
      },
      {
        "number": "42",
        "name": "PF5",
        "type": "bidirectional",
        "description": "Port F5 configurable as general purpose I/O, LCD segment 37, or LCD common 5 with SEG/COM multiplexing available; 5V tolerant."
      },
      {
        "number": "43",
        "name": "PF6",
        "type": "bidirectional",
        "description": "Port F6 configurable as general purpose I/O, LCD segment 38, or LCD common 6 with SEG/COM multiplexing available; 5V tolerant."
      },
      {
        "number": "44",
        "name": "PF7",
        "type": "bidirectional",
        "description": "Port F7 configurable as general purpose I/O, LCD segment 39, or LCD common 7 with SEG/COM multiplexing available; 5V tolerant."
      },
      {
        "number": "45",
        "name": "PD4",
        "type": "bidirectional",
        "description": "Port D4 configurable as general purpose I/O, Timer 1 channel 2, LCD segment 18, or ADC1 input channel 10; 5V tolerant."
      },
      {
        "number": "46",
        "name": "PD5",
        "type": "bidirectional",
        "description": "Port D5 configurable as general purpose I/O, Timer 1 channel 3, LCD segment 19, or ADC1 input channel 9; 5V tolerant."
      },
      {
        "number": "47",
        "name": "PD6",
        "type": "bidirectional",
        "description": "Port D6 configurable as general purpose I/O, Timer 1 break input, LCD segment 20, ADC1 input channel 8, RTC calibration input, or internal voltage reference output; 5V tolerant."
      },
      {
        "number": "48",
        "name": "PD7",
        "type": "bidirectional",
        "description": "Port D7 configurable as general purpose I/O, Timer 1 inverted channel 1, LCD segment 21, ADC1 input channel 7, RTC alarm output, or internal voltage reference output; 5V tolerant."
      },
      {
        "number": "49",
        "name": "PG4",
        "type": "bidirectional",
        "description": "Port G4 configurable as general purpose I/O or SPI2 master/slave select; 5V tolerant."
      },
      {
        "number": "50",
        "name": "PG5",
        "type": "bidirectional",
        "description": "Port G5 configurable as general purpose I/O or SPI2 clock; 5V tolerant."
      },
      {
        "number": "51",
        "name": "PG6",
        "type": "bidirectional",
        "description": "Port G6 configurable as general purpose I/O or SPI2 master out/slave in; 5V tolerant."
      },
      {
        "number": "52",
        "name": "PG7",
        "type": "bidirectional",
        "description": "Port G7 configurable as general purpose I/O or SPI2 master in/slave out; 5V tolerant."
      },
      {
        "number": "53",
        "name": "PC0",
        "type": "bidirectional",
        "description": "Port C0 configurable as general purpose I/O or I2C1 serial data with true open-drain output; 5V tolerant without protection diode to VDD."
      },
      {
        "number": "54",
        "name": "PC1",
        "type": "bidirectional",
        "description": "Port C1 configurable as general purpose I/O or I2C1 serial clock with true open-drain output; 5V tolerant without protection diode to VDD."
      },
      {
        "number": "55",
        "name": "VDD2",
        "type": "power_in",
        "description": "I/O supply voltage; must not be left unconnected; supply range 1.8 to 3.6 V."
      },
      {
        "number": "56",
        "name": "VSS2",
        "type": "power_in",
        "description": "I/O ground return; must not be left unconnected; supply range 1.8 to 3.6 V."
      },
      {
        "number": "57",
        "name": "PC2",
        "type": "bidirectional",
        "description": "Port C2 configurable as general purpose I/O, USART1 receive, LCD segment 22, ADC1 input channel 6, or internal voltage reference output; 5V tolerant."
      },
      {
        "number": "58",
        "name": "PC3",
        "type": "bidirectional",
        "description": "Port C3 configurable as general purpose I/O, USART1 transmit, LCD segment 23, or ADC1 input channel 5; 5V tolerant."
      },
      {
        "number": "59",
        "name": "PC4",
        "type": "bidirectional",
        "description": "Port C4 configurable as general purpose I/O, USART1 synchronous clock, I2C1 SMBus interface, configurable clock output, or ADC1 input channel 4; 5V tolerant."
      },
      {
        "number": "60",
        "name": "PC5",
        "type": "bidirectional",
        "description": "Port C5 configurable as general purpose I/O, LSE oscillator input, alternate SPI1 master/slave select, or alternate USART1 transmit; 5V tolerant."
      },
      {
        "number": "61",
        "name": "PC6",
        "type": "bidirectional",
        "description": "Port C6 configurable as general purpose I/O, LSE oscillator output, alternate SPI1 clock, or alternate USART1 receive; 5V tolerant."
      },
      {
        "number": "62",
        "name": "PC7",
        "type": "bidirectional",
        "description": "Port C7 configurable as general purpose I/O or ADC1 input channel 3; 5V tolerant."
      },
      {
        "number": "63",
        "name": "PE6",
        "type": "bidirectional",
        "description": "Port E6 configurable as general purpose I/O, programmable voltage detector input, or Timer 5 break input; 5V tolerant."
      },
      {
        "number": "64",
        "name": "PE7",
        "type": "bidirectional",
        "description": "Port E7 configurable as general purpose I/O or Timer 5 external trigger; 5V tolerant."
      }
    ],
    "provenance": {
      "extractor": "extract_pins 0.2",
      "factory_chain": {
        "factory": "2.0.0",
        "extractor": "extract_pins 0.2",
        "primary_model": "claude-haiku-4-5-20251001",
        "primary_mode": "text",
        "consensus_model": "claude-sonnet-5",
        "consensus": "agreed",
        "guards": "pin_guards 0.1: passed",
        "guard_notes": [
          "extractor flagged: Some pins have protection diode characteristics that differ from typical GPIO: PC0 and PC1 are speci; PA0 pin has special LED driver capability notation and SWIM function which requires careful electric; NRST/PA1 has dual function (reset input and GPIO output only) which may require special handling in ",
          "2/64 pins cited to the wrong page (name found elsewhere): ['55:VDD2@p23', '56:VSS2@p23']"
        ],
        "pages_sent": 55,
        "cost_usd": 0.6938,
        "at": "2026-09-22T18:30:38"
      },
      "datasheet": {
        "url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8586175707394924544",
        "pages": 55,
        "sha256": "c6e456a46f9e5c98",
        "source_tier": "lcsc"
      },
      "cad": "KiCad official (CC-BY-SA 4.0)",
      "pins": {
        "total": 64,
        "described": 64,
        "cites_pages": true,
        "refuses_to_fabricate": true
      }
    },
    "viewers": {
      "symbol": "viewers/symbol.html",
      "footprint": "viewers/footprint.html"
    }
  }
}