main
Ray Publish 0.1.0 e6c0c9c 4d ago
{
  "slug": "stm8l152r6t6",
  "version": "0.1.0",
  "type": "component",
  "description": "STMicroelectronics ST Microelectronics, LQFP-64(10x10). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
  "tags": [
    "component",
    "embedded processors & controllers",
    "stm8l152r6t6",
    "factory-2.0.0",
    "extractor-text"
  ],
  "dependencies": {},
  "hero": {
    "type": "image",
    "path": "docs/hero.png"
  },
  "files": [
    "page.json",
    "README.md",
    "stm8l152r6t6.kicad_sym",
    "stm8l152r6t6.kicad_mod",
    "stm8l152r6t6.glb",
    "stm8l152r6t6.step",
    "stm8l152r6t6.lbr",
    "docs/hero.png",
    "docs/stm8l152r6t6-datasheet.pdf",
    "viewers/symbol.html",
    "viewers/footprint.html",
    "stm8l152r6t6-hero.glb",
    "stm8l152r6t6-hero.overlay.json",
    "stm8l152r6t6-etched.glb"
  ],
  "component": {
    "mpn": "STM8L152R6T6",
    "manufacturer": "STMicroelectronics",
    "package": "LQFP-64(10x10)",
    "pin_count": 64,
    "category": "Embedded Processors & Controllers",
    "subcategory": "ST Microelectronics",
    "datasheet": "https://www.st.com/resource/en/datasheet/stm8l152r6t6.pdf",
    "parts": {
      "symbol": "stm8l152r6t6.kicad_sym",
      "footprint": "stm8l152r6t6.kicad_mod",
      "model_3d": "stm8l152r6t6-hero.glb",
      "model_3d_plain": "stm8l152r6t6-etched.glb",
      "model_3d_step": "stm8l152r6t6-etched.step",
      "model_3d_step_plain": "stm8l152r6t6.step",
      "lbr": "stm8l152r6t6.lbr"
    },
    "distributor_links": {
      "lcsc": "C122887"
    },
    "distributor_check": {
      "checked_at": "2026-10-22T22:28:50Z",
      "source": "Component Ocean /api/assign-pns",
      "digikey": {
        "pn": null,
        "status": "quota"
      },
      "mouser": {
        "pn": null,
        "status": "quota"
      }
    },
    "pins": [
      {
        "number": "1",
        "name": "PA0",
        "type": "bidirectional",
        "description": "Port A0 high-sink I/O (input pull-up during and after reset) with alternate functions [USART1_CK], SWIM input/output, BEEP output and IR_TIM output; high sink LED driver capability."
      },
      {
        "number": "2",
        "name": "NRST/PA1",
        "type": "bidirectional",
        "description": "Reset input with pull-up at power-up (30-60 kOhm), usable only as push-pull output PA1 when configured as GPIO."
      },
      {
        "number": "3",
        "name": "PA2",
        "type": "bidirectional",
        "description": "Port A2 high-sink I/O with HSE oscillator input OSC_IN and remap options [USART1_TX]/[SPI1_MISO]."
      },
      {
        "number": "4",
        "name": "PA3",
        "type": "bidirectional",
        "description": "Port A3 high-sink I/O with HSE oscillator output OSC_OUT and remap options [USART1_RX]/[SPI1_MOSI]."
      },
      {
        "number": "5",
        "name": "PA4",
        "type": "bidirectional",
        "description": "Port A4 five-volt-tolerant I/O with TIM2_BKIN/[TIM2_ETR], LCD_COM0, ADC1_IN2 and [COMP1_INP]."
      },
      {
        "number": "6",
        "name": "PA5",
        "type": "bidirectional",
        "description": "Port A5 five-volt-tolerant I/O with TIM3_BKIN/[TIM3_ETR], LCD_COM1, ADC1_IN1 and [COMP1_INP]."
      },
      {
        "number": "7",
        "name": "PA6",
        "type": "bidirectional",
        "description": "Port A6 five-volt-tolerant I/O with ADC1_TRIG, LCD_COM2, ADC1_IN0 and [COMP1_INP]."
      },
      {
        "number": "8",
        "name": "PA7",
        "type": "bidirectional",
        "description": "Port A7 five-volt-tolerant I/O with LCD_SEG0 and TIM5_CH1."
      },
      {
        "number": "9",
        "name": "VSSA/VREF-",
        "type": "power_in",
        "description": "Analog ground and ADC1 negative voltage reference."
      },
      {
        "number": "10",
        "name": "VSS1",
        "type": "power_in",
        "description": "I/O ground."
      },
      {
        "number": "11",
        "name": "VDD1",
        "type": "power_in",
        "description": "Digital power supply, 1.65 to 3.6 V, must not be left unconnected."
      },
      {
        "number": "12",
        "name": "VDDA",
        "type": "power_in",
        "description": "Analog supply voltage, 1.65 to 3.6 V (minimum 1.8 V when ADC1 is used), to be connected to VDD."
      },
      {
        "number": "13",
        "name": "VREF+",
        "type": "power_in",
        "description": "Positive voltage reference for ADC1 and DAC1/2 (VREF+_DAC), provided externally."
      },
      {
        "number": "14",
        "name": "PG0",
        "type": "bidirectional",
        "description": "Port G0 five-volt-tolerant I/O with LCD_SEG28, USART3_RX and [TIM2_BKIN]."
      },
      {
        "number": "15",
        "name": "PG1",
        "type": "bidirectional",
        "description": "Port G1 five-volt-tolerant I/O with LCD_SEG29, USART3_TX and [TIM3_BKIN]."
      },
      {
        "number": "16",
        "name": "PG2",
        "type": "bidirectional",
        "description": "Port G2 five-volt-tolerant I/O with LCD_SEG30 and USART3_CK."
      },
      {
        "number": "17",
        "name": "PG3",
        "type": "bidirectional",
        "description": "Port G3 five-volt-tolerant I/O with LCD_SEG31 and [TIM3_ETR]."
      },
      {
        "number": "18",
        "name": "VLCD",
        "type": "passive",
        "description": "LCD booster external capacitor pin (STM8L152 only; reserved and tied to VDD on STM8L151)."
      },
      {
        "number": "19",
        "name": "PE0",
        "type": "bidirectional",
        "description": "Port E0 five-volt-tolerant I/O with LCD_SEG1 and TIM5_CH2."
      },
      {
        "number": "20",
        "name": "PE1",
        "type": "bidirectional",
        "description": "Port E1 five-volt-tolerant I/O with TIM1_CH2N and LCD_SEG2."
      },
      {
        "number": "21",
        "name": "PE2",
        "type": "bidirectional",
        "description": "Port E2 five-volt-tolerant I/O with TIM1_CH3N, LCD_SEG3 and [CCO]."
      },
      {
        "number": "22",
        "name": "PE3",
        "type": "bidirectional",
        "description": "Port E3 five-volt-tolerant I/O with LCD_SEG4 and USART2_RX."
      },
      {
        "number": "23",
        "name": "PE4",
        "type": "bidirectional",
        "description": "Port E4 five-volt-tolerant I/O with LCD_SEG5, DAC_TRIG2 and USART2_TX."
      },
      {
        "number": "24",
        "name": "PE5",
        "type": "bidirectional",
        "description": "Port E5 five-volt-tolerant I/O with LCD_SEG6, ADC1_IN23, [COMP1_INP]/[COMP2_INP] and USART2_CK."
      },
      {
        "number": "25",
        "name": "PD0",
        "type": "bidirectional",
        "description": "Port D0 five-volt-tolerant I/O with TIM3_CH2, [ADC1_TRIG], LCD_SEG7, ADC1_IN22 and [COMP2_INP]."
      },
      {
        "number": "26",
        "name": "PD1",
        "type": "bidirectional",
        "description": "Port D1 five-volt-tolerant I/O with TIM3_ETR, LCD_COM3, ADC1_IN21 and [COMP1_INP]/[COMP2_INP]."
      },
      {
        "number": "27",
        "name": "PD2",
        "type": "bidirectional",
        "description": "Port D2 five-volt-tolerant I/O with TIM1_CH1, LCD_SEG8, ADC1_IN20 and [COMP1_INP]."
      },
      {
        "number": "28",
        "name": "PD3",
        "type": "bidirectional",
        "description": "Port D3 five-volt-tolerant I/O with TIM1_ETR, LCD_SEG9, ADC1_IN19 and [COMP1_INP]."
      },
      {
        "number": "29",
        "name": "VDD3",
        "type": "power_in",
        "description": "I/O supply voltage, 1.65 to 3.6 V, must not be left unconnected."
      },
      {
        "number": "30",
        "name": "VSS3",
        "type": "power_in",
        "description": "I/O ground voltage."
      },
      {
        "number": "31",
        "name": "PB0",
        "type": "bidirectional",
        "description": "Port B0 five-volt-tolerant I/O (pull-up during reset) with TIM2_CH1, LCD_SEG10, ADC1_IN18 and [COMP1_INP]."
      },
      {
        "number": "32",
        "name": "PB1",
        "type": "bidirectional",
        "description": "Port B1 five-volt-tolerant I/O with TIM3_CH1, LCD_SEG11, ADC1_IN17 and [COMP1_INP]."
      },
      {
        "number": "33",
        "name": "PB2",
        "type": "bidirectional",
        "description": "Port B2 five-volt-tolerant I/O with TIM2_CH2, LCD_SEG12, ADC1_IN16 and [COMP1_INP]."
      },
      {
        "number": "34",
        "name": "PB3",
        "type": "bidirectional",
        "description": "Port B3 five-volt-tolerant I/O with TIM2_ETR, LCD_SEG13, ADC1_IN15 and [COMP1_INP]."
      },
      {
        "number": "35",
        "name": "PB4",
        "type": "bidirectional",
        "description": "Port B4 five-volt-tolerant I/O (pull-up during reset) with SPI1_NSS, LCD_SEG14, ADC1_IN14 and [COMP1_INP]."
      },
      {
        "number": "36",
        "name": "PB5",
        "type": "bidirectional",
        "description": "Port B5 five-volt-tolerant I/O with SPI1_SCK, LCD_SEG15, ADC1_IN13 and [COMP1_INP]."
      },
      {
        "number": "37",
        "name": "PB6",
        "type": "bidirectional",
        "description": "Port B6 five-volt-tolerant I/O with SPI1_MOSI, LCD_SEG16, ADC1_IN12 and [COMP1_INP]."
      },
      {
        "number": "38",
        "name": "PB7",
        "type": "bidirectional",
        "description": "Port B7 five-volt-tolerant I/O with SPI1_MISO, LCD_SEG17, ADC1_IN11 and [COMP1_INP]."
      },
      {
        "number": "39",
        "name": "PF0",
        "type": "bidirectional",
        "description": "Port F0 I/O with ADC1_IN24, DAC_OUT1 and [USART3_TX]."
      },
      {
        "number": "40",
        "name": "PF1",
        "type": "bidirectional",
        "description": "Port F1 I/O with ADC1_IN25, DAC channel 2 output and [USART3_RX]."
      },
      {
        "number": "41",
        "name": "PF4",
        "type": "bidirectional",
        "description": "Port F4 five-volt-tolerant I/O with LCD_SEG36 and [LCD_COM4]."
      },
      {
        "number": "42",
        "name": "PF5",
        "type": "bidirectional",
        "description": "Port F5 five-volt-tolerant I/O with LCD_SEG37 and [LCD_COM5]."
      },
      {
        "number": "43",
        "name": "PF6",
        "type": "bidirectional",
        "description": "Port F6 five-volt-tolerant I/O with LCD_SEG38 and [LCD_COM6]."
      },
      {
        "number": "44",
        "name": "PF7",
        "type": "bidirectional",
        "description": "Port F7 five-volt-tolerant I/O with LCD_SEG39 and [LCD_COM7]."
      },
      {
        "number": "45",
        "name": "PD4",
        "type": "bidirectional",
        "description": "Port D4 five-volt-tolerant I/O with TIM1_CH2, LCD_SEG18, ADC1_IN10 and [COMP1_INP]."
      },
      {
        "number": "46",
        "name": "PD5",
        "type": "bidirectional",
        "description": "Port D5 five-volt-tolerant I/O with TIM1_CH3, LCD_SEG19, ADC1_IN9 and [COMP1_INP]."
      },
      {
        "number": "47",
        "name": "PD6",
        "type": "bidirectional",
        "description": "Port D6 five-volt-tolerant I/O with TIM1_BKIN, LCD_SEG20, ADC1_IN8, RTC_CALIB, [COMP1_INP] and VREFINT output."
      },
      {
        "number": "48",
        "name": "PD7",
        "type": "bidirectional",
        "description": "Port D7 five-volt-tolerant I/O with TIM1_CH1N, LCD_SEG21, ADC1_IN7, RTC_ALARM, [COMP1_INP] and VREFINT output."
      },
      {
        "number": "49",
        "name": "PG4",
        "type": "bidirectional",
        "description": "Port G4 five-volt-tolerant I/O with LCD_SEG32 and SPI2_NSS."
      },
      {
        "number": "50",
        "name": "PG5",
        "type": "bidirectional",
        "description": "Port G5 five-volt-tolerant I/O with LCD_SEG33 and SPI2_SCK."
      },
      {
        "number": "51",
        "name": "PG6",
        "type": "bidirectional",
        "description": "Port G6 five-volt-tolerant I/O with LCD_SEG34 and SPI2_MOSI."
      },
      {
        "number": "52",
        "name": "PG7",
        "type": "bidirectional",
        "description": "Port G7 five-volt-tolerant I/O with LCD_SEG35 and SPI2_MISO."
      },
      {
        "number": "53",
        "name": "PC0",
        "type": "bidirectional",
        "description": "Port C0 five-volt-tolerant true open-drain I/O with I2C1_SDA."
      },
      {
        "number": "54",
        "name": "PC1",
        "type": "bidirectional",
        "description": "Port C1 five-volt-tolerant true open-drain I/O with I2C1_SCL."
      },
      {
        "number": "55",
        "name": "VDD2",
        "type": "power_in",
        "description": "I/O supply voltage, 1.65 to 3.6 V, must not be left unconnected."
      },
      {
        "number": "56",
        "name": "VSS2",
        "type": "power_in",
        "description": "I/O ground voltage."
      },
      {
        "number": "57",
        "name": "PC2",
        "type": "bidirectional",
        "description": "Port C2 five-volt-tolerant I/O with USART1_RX, LCD_SEG22, ADC1_IN6, [COMP1_INP] and VREFINT output."
      },
      {
        "number": "58",
        "name": "PC3",
        "type": "bidirectional",
        "description": "Port C3 five-volt-tolerant I/O with USART1_TX, LCD_SEG23, ADC1_IN5, [COMP2_INM] and [COMP1_INP]."
      },
      {
        "number": "59",
        "name": "PC4",
        "type": "bidirectional",
        "description": "Port C4 five-volt-tolerant I/O with USART1_CK, I2C1_SMB, [CCO], LCD_SEG24, ADC1_IN4, [COMP2_INM] and [COMP1_INP]."
      },
      {
        "number": "60",
        "name": "PC5",
        "type": "bidirectional",
        "description": "Port C5 five-volt-tolerant I/O with LSE oscillator input OSC32_IN and remap options [SPI1_NSS]/[USART1_TX]."
      },
      {
        "number": "61",
        "name": "PC6",
        "type": "bidirectional",
        "description": "Port C6 five-volt-tolerant I/O with LSE oscillator output OSC32_OUT and remap options [SPI1_SCK]/[USART1_RX]."
      },
      {
        "number": "62",
        "name": "PC7",
        "type": "bidirectional",
        "description": "Port C7 five-volt-tolerant I/O with LCD_SEG25, ADC1_IN3, [COMP2_INM] and [COMP1_INP]."
      },
      {
        "number": "63",
        "name": "PE6",
        "type": "bidirectional",
        "description": "Port E6 five-volt-tolerant I/O with LCD_SEG26, PVD_IN and TIM5_BKIN."
      },
      {
        "number": "64",
        "name": "PE7",
        "type": "bidirectional",
        "description": "Port E7 five-volt-tolerant I/O with LCD segment 27 (printed LED_SEG27) and TIM5_ETR."
      }
    ],
    "provenance": {
      "extractor": "extract_pins 0.3",
      "factory_chain": {
        "factory": "2.0.0",
        "extractor": "extract_pins 0.3",
        "primary_model": "claude-sonnet-5-5",
        "primary_mode": "text",
        "consensus_model": "claude-sonnet-5-5",
        "consensus": "agreed",
        "guards": "pin_guards 0.1: passed",
        "guard_notes": [
          "extractor flagged: Table 5 prints PE7's function as 'LED_SEG27' instead of LCD_SEG27, apparently a datasheet typo; inte; VLCD is listed as type S (supply) with 'LCD booster external capacitor' function; mapped to passive.; Datasheet covers the STM8L151/152 R6/R8 family; the LQFP64 column was used and LCD functions apply t"
        ],
        "pages_sent": 56,
        "cost_usd": 0.5328,
        "at": "2026-10-22T22:28:22"
      },
      "datasheet": {
        "url": "https://www.st.com/resource/en/datasheet/stm8l152r6t6.pdf",
        "pages": 147,
        "sha256": "193f2133f3d81d2b",
        "source_tier": "mfr"
      },
      "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"
    },
    "models_3d": [
      {
        "file": "stm8l152r6t6.step",
        "role": "plain",
        "up": "Z",
        "units": "mm",
        "origin": "footprint origin = pad-pattern centre",
        "seat": "z = 0",
        "extents_mm": [
          12.0,
          12.0,
          1.5
        ],
        "zmin_mm": 0.0,
        "centre_offset_mm": 0.0,
        "footprint_binding": "identity",
        "sha256": "b0c827bc5c05552175d28affe44a5bd2ab45c9c36efff6ff07a74cc449b13db4",
        "checked": "2026-10-22",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      },
      {
        "file": "stm8l152r6t6-etched.step",
        "role": "eda",
        "up": "Z",
        "units": "mm",
        "origin": "footprint origin = pad-pattern centre",
        "seat": "z = 0",
        "extents_mm": [
          12.0,
          12.0,
          1.5
        ],
        "zmin_mm": 0.0,
        "centre_offset_mm": 0.0,
        "footprint_binding": "identity",
        "sha256": "4643013f8bbf31d0e2faa76c2e50947218dc8cc786599fb1801221162f8cd744",
        "checked": "2026-10-22",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      }
    ]
  }
}