main
Ray Publish 0.1.0 08dafee 5h ago
{
  "slug": "stm8l151r6t6",
  "version": "0.1.0",
  "type": "component",
  "description": "STMicroelectronics Microcontrollers (MCU/MPU/SOC), LQFP-64(10x10). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
  "tags": [
    "component",
    "embedded processors & controllers",
    "stm8l151r6t6",
    "factory-2.0.0",
    "extractor-text"
  ],
  "dependencies": {},
  "hero": {
    "type": "image",
    "path": "docs/hero.png"
  },
  "files": [
    "page.json",
    "README.md",
    "stm8l151r6t6.kicad_sym",
    "stm8l151r6t6.kicad_mod",
    "stm8l151r6t6.glb",
    "stm8l151r6t6.step",
    "stm8l151r6t6.lbr",
    "docs/hero.png",
    "docs/stm8l151r6t6-datasheet.pdf",
    "viewers/symbol.html",
    "viewers/footprint.html",
    "stm8l151r6t6-hero.glb",
    "stm8l151r6t6-hero.overlay.json",
    "stm8l151r6t6-etched.glb"
  ],
  "component": {
    "mpn": "STM8L151R6T6",
    "manufacturer": "STMicroelectronics",
    "package": "LQFP-64(10x10)",
    "pin_count": 64,
    "category": "Embedded Processors & Controllers",
    "subcategory": "Microcontrollers (MCU/MPU/SOC)",
    "datasheet": "https://www.st.com/resource/en/datasheet/stm8l151r6t6.pdf",
    "parts": {
      "symbol": "stm8l151r6t6.kicad_sym",
      "footprint": "stm8l151r6t6.kicad_mod",
      "model_3d": "stm8l151r6t6-hero.glb",
      "model_3d_plain": "stm8l151r6t6-etched.glb",
      "model_3d_step": "stm8l151r6t6-etched.step",
      "model_3d_step_plain": "stm8l151r6t6.step",
      "lbr": "stm8l151r6t6.lbr"
    },
    "distributor_links": {
      "lcsc": "C501017",
      "digikey": "497-11568-ND",
      "mouser": "511-STM8L151R6T6"
    },
    "distributor_check": {
      "checked_at": "2026-11-06T00:15:53Z",
      "source": "Component Ocean /api/assign-pns",
      "digikey": {
        "pn": "497-11568-ND",
        "status": "found"
      },
      "mouser": {
        "pn": "511-STM8L151R6T6",
        "status": "found"
      }
    },
    "pins": [
      {
        "number": "1",
        "name": "PA0",
        "type": "bidirectional",
        "description": "Port A0 with SWIM input/output, BEEP and IR timer output; input pull-up during reset and after reset release, high sink LED driver capability."
      },
      {
        "number": "2",
        "name": "NRST/PA1",
        "type": "bidirectional",
        "description": "Reset input with pull-up at power-up; as general purpose pin it can be configured only as output push-pull (PA1)."
      },
      {
        "number": "3",
        "name": "PA2",
        "type": "bidirectional",
        "description": "Port A2 with HSE oscillator input, USART1 transmit and SPI1 MISO alternate functions; high sink/source capability (20 mA)."
      },
      {
        "number": "4",
        "name": "PA3",
        "type": "bidirectional",
        "description": "Port A3 with HSE oscillator output, USART1 receive and SPI1 MOSI alternate functions; high sink/source capability (20 mA)."
      },
      {
        "number": "5",
        "name": "PA4",
        "type": "bidirectional",
        "description": "Port A4 with TIM2 break input, ADC1 input 2 and comparator 1 positive input; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "6",
        "name": "PA5",
        "type": "bidirectional",
        "description": "Port A5 with TIM3 break input, ADC1 input 1 and comparator 1 positive input; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "7",
        "name": "PA6",
        "type": "bidirectional",
        "description": "Port A6 with ADC1 trigger, ADC1 input 0 and comparator 1 positive input; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "8",
        "name": "PA7",
        "type": "bidirectional",
        "description": "Port A7 with TIM5 channel 1 alternate function; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "9",
        "name": "VSSA/VREF-",
        "type": "power_in",
        "description": "Analog ground voltage and ADC1 negative voltage reference."
      },
      {
        "number": "10",
        "name": "VSS1",
        "type": "power_in",
        "description": "I/O ground; must not be left unconnected."
      },
      {
        "number": "11",
        "name": "VDD1",
        "type": "power_in",
        "description": "Digital power supply 1.65 to 3.6 V for I/Os and internal regulator; 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; must be connected to VDD."
      },
      {
        "number": "13",
        "name": "VREF+",
        "type": "power_in",
        "description": "ADC1 and DAC1/2 positive voltage reference, provided externally."
      },
      {
        "number": "14",
        "name": "PG0",
        "type": "bidirectional",
        "description": "Port G0 with USART3 receive and TIM2 break input alternate functions; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "15",
        "name": "PG1",
        "type": "bidirectional",
        "description": "Port G1 with USART3 transmit and TIM3 break input alternate functions; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "16",
        "name": "PG2",
        "type": "bidirectional",
        "description": "Port G2 with USART3 synchronous clock alternate function; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "17",
        "name": "PG3",
        "type": "bidirectional",
        "description": "Port G3 with TIM3 trigger alternate function; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "18",
        "name": "Res.",
        "type": "passive",
        "description": "Reserved on STM8L151 devices and must be tied to VDD."
      },
      {
        "number": "19",
        "name": "PE0",
        "type": "bidirectional",
        "description": "Port E0 with TIM5 channel 2 alternate function; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "20",
        "name": "PE1",
        "type": "bidirectional",
        "description": "Port E1 with TIM1 inverted channel 2 alternate function; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "21",
        "name": "PE2",
        "type": "bidirectional",
        "description": "Port E2 with TIM1 inverted channel 3 and configurable clock output alternate functions; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "22",
        "name": "PE3",
        "type": "bidirectional",
        "description": "Port E3 with USART2 receive alternate function; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "23",
        "name": "PE4",
        "type": "bidirectional",
        "description": "Port E4 with DAC trigger 2 and USART2 transmit alternate functions; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "24",
        "name": "PE5",
        "type": "bidirectional",
        "description": "Port E5 with ADC1 input 23, comparator positive inputs and USART2 synchronous clock alternate functions; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "25",
        "name": "PD0",
        "type": "bidirectional",
        "description": "Port D0 with TIM3 channel 2, ADC1 input 22 and comparator 2 positive input alternate functions; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "26",
        "name": "PD1",
        "type": "bidirectional",
        "description": "Port D1 with TIM3 trigger, ADC1 input 21 and comparator positive input alternate functions; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "27",
        "name": "PD2",
        "type": "bidirectional",
        "description": "Port D2 with TIM1 channel 1, ADC1 input 20 and comparator 1 positive input alternate functions; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "28",
        "name": "PD3",
        "type": "bidirectional",
        "description": "Port D3 with TIM1 trigger, ADC1 input 19 and comparator 1 positive input alternate functions; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "29",
        "name": "VDD3",
        "type": "power_in",
        "description": "I/O supply voltage; must not be left unconnected."
      },
      {
        "number": "30",
        "name": "VSS3",
        "type": "power_in",
        "description": "I/O ground voltage; must not be left unconnected."
      },
      {
        "number": "31",
        "name": "PB0",
        "type": "bidirectional",
        "description": "Port B0 with TIM2 channel 1, ADC1 input 18 and comparator 1 positive input alternate functions; pull-up applied during reset phase."
      },
      {
        "number": "32",
        "name": "PB1",
        "type": "bidirectional",
        "description": "Port B1 with TIM3 channel 1, ADC1 input 17 and comparator 1 positive input alternate functions; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "33",
        "name": "PB2",
        "type": "bidirectional",
        "description": "Port B2 with TIM2 channel 2, ADC1 input 16 and comparator 1 positive input alternate functions; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "34",
        "name": "PB3",
        "type": "bidirectional",
        "description": "Port B3 with TIM2 trigger, ADC1 input 15 and comparator 1 positive input alternate functions; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "35",
        "name": "PB4",
        "type": "bidirectional",
        "description": "Port B4 with SPI1 NSS, ADC1 input 14, DAC channel 2 output and comparator 1 positive input alternate functions; pull-up applied during reset phase."
      },
      {
        "number": "36",
        "name": "PB5",
        "type": "bidirectional",
        "description": "Port B5 with SPI1 clock, ADC1 input 13, DAC channel 2 output and comparator 1 positive input alternate functions; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "37",
        "name": "PB6",
        "type": "bidirectional",
        "description": "Port B6 with SPI1 MOSI, ADC1 input 12, DAC channel 2 output and comparator 1 positive input alternate functions; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "38",
        "name": "PB7",
        "type": "bidirectional",
        "description": "Port B7 with SPI1 MISO, ADC1 input 11 and comparator 1 positive input alternate functions; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "39",
        "name": "PF0",
        "type": "bidirectional",
        "description": "Port F0 with ADC1 input 24, DAC 1 output and USART3 transmit alternate functions; high sink/source capability (20 mA)."
      },
      {
        "number": "40",
        "name": "PF1",
        "type": "bidirectional",
        "description": "Port F1 with ADC1 input 25, DAC channel 2 output and USART3 receive alternate functions; high sink/source capability (20 mA)."
      },
      {
        "number": "41",
        "name": "PF4",
        "type": "bidirectional",
        "description": "Port F4 with LCD segment 36 and LCD_COM4 alternate functions as listed for the 64-pin package; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "42",
        "name": "PF5",
        "type": "bidirectional",
        "description": "Port F5 with LCD segment 37 and LCD_COM5 alternate functions as listed for the 64-pin package; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "43",
        "name": "PF6",
        "type": "bidirectional",
        "description": "Port F6 with LCD segment 38 and LCD_COM6 alternate functions as listed for the 64-pin package; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "44",
        "name": "PF7",
        "type": "bidirectional",
        "description": "Port F7 with LCD segment 39 and LCD_COM7 alternate functions as listed for the 64-pin package; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "45",
        "name": "PD4",
        "type": "bidirectional",
        "description": "Port D4 with TIM1 channel 2, ADC1 input 10, SPI2 MISO and comparator 1 positive input alternate functions; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "46",
        "name": "PD5",
        "type": "bidirectional",
        "description": "Port D5 with TIM1 channel 3, ADC1 input 9, SPI2 MOSI and comparator 1 positive input alternate functions; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "47",
        "name": "PD6",
        "type": "bidirectional",
        "description": "Port D6 with TIM1 break input, ADC1 input 8, RTC calibration, SPI2 clock and internal reference voltage output alternate functions; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "48",
        "name": "PD7",
        "type": "bidirectional",
        "description": "Port D7 with TIM1 inverted channel 1, ADC1 input 7, RTC alarm, SPI2 NSS and internal reference voltage output alternate functions; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "49",
        "name": "PG4",
        "type": "bidirectional",
        "description": "Port G4 with SPI2 NSS alternate function; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "50",
        "name": "PG5",
        "type": "bidirectional",
        "description": "Port G5 with SPI2 clock alternate function; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "51",
        "name": "PG6",
        "type": "bidirectional",
        "description": "Port G6 with SPI2 MOSI alternate function; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "52",
        "name": "PG7",
        "type": "bidirectional",
        "description": "Port G7 with SPI2 MISO alternate function; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "53",
        "name": "PC0",
        "type": "bidirectional",
        "description": "Port C0 with I2C1 SDA alternate function; true open-drain I/O."
      },
      {
        "number": "54",
        "name": "PC1",
        "type": "bidirectional",
        "description": "Port C1 with I2C1 SCL alternate function; true open-drain I/O."
      },
      {
        "number": "55",
        "name": "VDD2",
        "type": "power_in",
        "description": "I/O supply voltage; must not be left unconnected."
      },
      {
        "number": "56",
        "name": "VSS2",
        "type": "power_in",
        "description": "I/O ground voltage; must not be left unconnected."
      },
      {
        "number": "57",
        "name": "PC2",
        "type": "bidirectional",
        "description": "Port C2 with USART1 receive, ADC1 input 6, comparator 1 positive input and internal reference voltage output alternate functions; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "58",
        "name": "PC3",
        "type": "bidirectional",
        "description": "Port C3 with USART1 transmit, ADC1 input 5, comparator 2 negative input and comparator 1 positive input alternate functions; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "59",
        "name": "PC4",
        "type": "bidirectional",
        "description": "Port C4 with USART1 synchronous clock, I2C1 SMBus, configurable clock output, ADC1 input 4 and comparator alternate functions; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "60",
        "name": "PC5",
        "type": "bidirectional",
        "description": "Port C5 with LSE oscillator input, SPI1 NSS and USART1 transmit alternate functions; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "61",
        "name": "PC6",
        "type": "bidirectional",
        "description": "Port C6 with LSE oscillator output, SPI1 clock and USART1 receive alternate functions; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "62",
        "name": "PC7",
        "type": "bidirectional",
        "description": "Port C7 with ADC1 input 3, USART3 synchronous clock, comparator 2 negative input and comparator 1 positive input alternate functions; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "63",
        "name": "PE6",
        "type": "bidirectional",
        "description": "Port E6 with PVD input, TIM5 break input and USART3 transmit alternate functions; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      },
      {
        "number": "64",
        "name": "PE7",
        "type": "bidirectional",
        "description": "Port E7 with TIM5 trigger, USART3 receive alternate function; FT (five-volt tolerant) I/O, high sink/source capability (20 mA)."
      }
    ],
    "provenance": {
      "extractor": "extract_pins 0.3",
      "factory_chain": {
        "factory": "2.0.0",
        "extractor": "extract_pins 0.3",
        "primary_model": "claude-haiku-5-5",
        "primary_mode": "text",
        "consensus_model": "claude-sonnet-5-5",
        "consensus": "agreed",
        "guards": "pin_guards 0.1: passed",
        "guard_notes": [
          "extractor flagged: Pin 18 is reserved on STM8L151 devices and must be tied to VDD. Table 5 gives VLCD for this pin only; Pin 1 (PA0) is the only pin on the STM8L151R6T6 LQFP64 variant whose SWIM and BEEP functions are mul",
          "1/64 pin names appear NOWHERE in the datasheet text: ['13:VREF+@p39']"
        ],
        "pages_sent": 56,
        "cost_usd": 0.0927,
        "at": "2026-11-06T00:15:40"
      },
      "datasheet": {
        "url": "https://www.st.com/resource/en/datasheet/stm8l151r6t6.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": "stm8l151r6t6.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-11-06",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      },
      {
        "file": "stm8l151r6t6-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": "2bd7ada7b5f4ee91c677653b45302adb6fee3a164e360f74fa33ee8a094b8573",
        "checked": "2026-11-06",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      }
    ]
  }
}