main
Ray stm8l051f3p6: component.models_3d pose record per STEP (Z-up, seated z=0, pad-centre origin, identity binding) 4ad4b63
{
  "slug": "stm8l051f3p6",
  "version": "0.1.0",
  "type": "component",
  "description": "STMicroelectronics Microcontrollers (MCU/MPU/SOC), TSSOP-20. Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
  "tags": [
    "component",
    "embedded processors & controllers",
    "stm8l051f3p6",
    "factory-2.0.0",
    "extractor-text"
  ],
  "dependencies": {},
  "hero": {
    "type": "image",
    "path": "docs/hero.png"
  },
  "files": [
    "page.json",
    "README.md",
    "stm8l051f3p6.kicad_sym",
    "stm8l051f3p6.kicad_mod",
    "stm8l051f3p6.glb",
    "stm8l051f3p6.step",
    "stm8l051f3p6.lbr",
    "docs/hero.png",
    "docs/stm8l051f3p6-datasheet.pdf",
    "viewers/symbol.html",
    "viewers/footprint.html"
  ],
  "component": {
    "mpn": "STM8L051F3P6",
    "manufacturer": "STMicroelectronics",
    "package": "TSSOP-20",
    "pin_count": 20,
    "category": "Embedded Processors & Controllers",
    "subcategory": "Microcontrollers (MCU/MPU/SOC)",
    "datasheet": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8588882519592734720",
    "parts": {
      "symbol": "stm8l051f3p6.kicad_sym",
      "footprint": "stm8l051f3p6.kicad_mod",
      "model_3d": "stm8l051f3p6-etched.glb",
      "model_3d_plain": "stm8l051f3p6.glb",
      "model_3d_step": "stm8l051f3p6-etched.step",
      "model_3d_step_plain": "stm8l051f3p6.step",
      "lbr": "stm8l051f3p6.lbr"
    },
    "distributor_links": {
      "lcsc": "C57363"
    },
    "pins": [
      {
        "number": "1",
        "name": "PC5",
        "type": "bidirectional",
        "description": "Port C5 I/O pin with LSE oscillator input as main function; supports alternate mappings to SPI1 NSS, USART TX, and TIM2 channel 1."
      },
      {
        "number": "2",
        "name": "PC6",
        "type": "bidirectional",
        "description": "Port C6 I/O pin with LSE oscillator output as main function; supports alternate mappings to SPI1 SCK, USART RX, and TIM2 channel 2."
      },
      {
        "number": "3",
        "name": "PA0",
        "type": "bidirectional",
        "description": "Port A0 I/O pin with high-sink LED driver capability (up to 80 mA); functions as SWIM debug interface, beeper output, and infrared timer output."
      },
      {
        "number": "4",
        "name": "NRST/PA1",
        "type": "input",
        "description": "Active-low device reset input with internal pull-up (30-60 kΩ), VIL max 0.8V; can be remapped as Port A1 open-drain or push-pull output only."
      },
      {
        "number": "5",
        "name": "PA2",
        "type": "bidirectional",
        "description": "Port A2 I/O pin with HSE oscillator input as main function; supports alternate mappings to USART TX and SPI MISO."
      },
      {
        "number": "6",
        "name": "PA3",
        "type": "bidirectional",
        "description": "Port A3 I/O pin with HSE oscillator output as main function; supports alternate mappings to USART RX and SPI MOSI."
      },
      {
        "number": "7",
        "name": "VSS/VREF-/VSSA",
        "type": "power_in",
        "description": "Ground connections (VSS, VSSA) and ADC negative reference (VREF-), 0V reference potential; must be connected to external power return."
      },
      {
        "number": "8",
        "name": "VDD/VDDA/VREF+",
        "type": "power_in",
        "description": "Power supply (VDD, VDDA) and ADC positive reference (VREF+) connections, 1.8-3.6V operating range, up to 80 mA total output current."
      },
      {
        "number": "9",
        "name": "PD0",
        "type": "bidirectional",
        "description": "Port D0 I/O pin with functions as Timer 3 channel 2 input/output, ADC1 trigger input, and ADC1 analog input channel 22."
      },
      {
        "number": "10",
        "name": "PB0",
        "type": "bidirectional",
        "description": "Port B0 I/O pin; functions as Timer 2 channel 1 input/output and ADC1 analog input channel 18; pull-up applied during reset phase only."
      },
      {
        "number": "11",
        "name": "PB1",
        "type": "bidirectional",
        "description": "Port B1 I/O pin with Timer 3 channel 1 input/output and ADC1 analog input channel 17 functions."
      },
      {
        "number": "12",
        "name": "PB2",
        "type": "bidirectional",
        "description": "Port B2 I/O pin with Timer 2 channel 2 input/output and ADC1 analog input channel 16 functions."
      },
      {
        "number": "13",
        "name": "PB3",
        "type": "bidirectional",
        "description": "Port B3 I/O pin functioning as Timer 2 external trigger input, RTC alarm output, and ADC1 analog input channel 15."
      },
      {
        "number": "14",
        "name": "PB4",
        "type": "bidirectional",
        "description": "Port B4 I/O pin functioning as SPI1 slave select (NSS) input and ADC1 analog input channel 14; pull-up applied during reset phase only."
      },
      {
        "number": "15",
        "name": "PB5",
        "type": "bidirectional",
        "description": "Port B5 I/O pin functioning as SPI1 clock (SCK) input/output and ADC1 analog input channel 13."
      },
      {
        "number": "16",
        "name": "PB6",
        "type": "bidirectional",
        "description": "Port B6 I/O pin functioning as SPI1 master-out/slave-in (MOSI) and ADC1 analog input channel 12."
      },
      {
        "number": "17",
        "name": "PB7",
        "type": "bidirectional",
        "description": "Port B7 I/O pin functioning as SPI1 master-in/slave-out (MISO) and ADC1 analog input channel 11."
      },
      {
        "number": "18",
        "name": "PC0",
        "type": "tri_state",
        "description": "I2C1 data (SDA) pin with true open-drain output, 5-volt tolerant input (up to 5.5V), and integrated weak pull-up (30-60 kΩ)."
      },
      {
        "number": "19",
        "name": "PC1",
        "type": "tri_state",
        "description": "I2C1 clock (SCL) pin with true open-drain output, 5-volt tolerant input (up to 5.5V), and integrated weak pull-up (30-60 kΩ)."
      },
      {
        "number": "20",
        "name": "PC4",
        "type": "bidirectional",
        "description": "Port C4 I/O pin with USART1 synchronous clock, I2C1 SMBus, configurable clock output, and ADC1 analog input channel 4 functions."
      }
    ],
    "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": [],
        "pages_sent": 93,
        "cost_usd": 0.8028,
        "at": "2026-09-24T03:33:54"
      },
      "datasheet": {
        "url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8588882519592734720",
        "pages": 93,
        "sha256": "49eab539fe1f16e1",
        "source_tier": "lcsc"
      },
      "cad": "KiCad official (CC-BY-SA 4.0)",
      "pins": {
        "total": 20,
        "described": 20,
        "cites_pages": true,
        "refuses_to_fabricate": true
      }
    },
    "viewers": {
      "symbol": "viewers/symbol.html",
      "footprint": "viewers/footprint.html"
    },
    "models_3d": [
      {
        "file": "stm8l051f3p6.step",
        "role": "plain",
        "up": "Z",
        "units": "mm",
        "origin": "footprint origin = pad-pattern centre",
        "seat": "z = 0",
        "extents_mm": [
          6.4,
          6.5,
          1.2
        ],
        "zmin_mm": -0.0,
        "centre_offset_mm": 0.0,
        "footprint_binding": "identity",
        "sha256": "97339947f3a7196470ec2f1d9f9b92bb2fc2ab66ad53be0cf105192585ef3c9a",
        "checked": "2026-10-07",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      },
      {
        "file": "stm8l051f3p6-etched.step",
        "role": "eda",
        "up": "Z",
        "units": "mm",
        "origin": "footprint origin = pad-pattern centre",
        "seat": "z = 0",
        "extents_mm": [
          6.4,
          6.5,
          1.2
        ],
        "zmin_mm": -0.0,
        "centre_offset_mm": 0.0,
        "footprint_binding": "identity",
        "sha256": "acbd00a93bc1022d5b17de071fb4ddb2b3b5f32afc2f2def1181edde96e8d857",
        "checked": "2026-10-07",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      }
    ]
  }
}