main
Ray stm8s103f2m6: etched from the flattened plain STEP (service-occt 1.6.0, from the plain STEP) 4383078
{
  "slug": "stm8s103f2m6",
  "version": "0.1.0",
  "type": "component",
  "description": "STMicroelectronics Microcontroller Units (MCUs/MPUs/SOCs), SOP-20-300mil. Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
  "tags": [
    "component",
    "single chip microcomputer-microcontroller",
    "stm8s103f2m6",
    "factory-2.0.0",
    "extractor-text"
  ],
  "dependencies": {},
  "hero": {
    "type": "image",
    "path": "docs/hero.png"
  },
  "files": [
    "page.json",
    "README.md",
    "stm8s103f2m6.kicad_sym",
    "stm8s103f2m6.kicad_mod",
    "stm8s103f2m6.glb",
    "stm8s103f2m6.step",
    "stm8s103f2m6.lbr",
    "docs/hero.png",
    "docs/stm8s103f2m6-datasheet.pdf",
    "viewers/symbol.html",
    "viewers/footprint.html"
  ],
  "component": {
    "mpn": "STM8S103F2M6",
    "manufacturer": "STMicroelectronics",
    "package": "SOP-20-300mil",
    "pin_count": 20,
    "category": "Single Chip Microcomputer/Microcontroller",
    "subcategory": "Microcontroller Units (MCUs/MPUs/SOCs)",
    "datasheet": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8588922750673301504",
    "parts": {
      "symbol": "stm8s103f2m6.kicad_sym",
      "footprint": "stm8s103f2m6.kicad_mod",
      "model_3d": "stm8s103f2m6-etched.glb",
      "model_3d_plain": "stm8s103f2m6.glb",
      "model_3d_step": "stm8s103f2m6-etched.step",
      "model_3d_step_plain": "stm8s103f2m6.step",
      "lbr": "stm8s103f2m6.lbr"
    },
    "distributor_links": {
      "lcsc": "C1338322",
      "digikey": "497-16856-ND",
      "mouser": "511-STM8S103F2M6"
    },
    "distributor_check": {
      "checked_at": "2026-10-01T17:35:04Z",
      "source": "Component Ocean /api/assign-pns",
      "digikey": {
        "pn": "497-16856-ND",
        "status": "found",
        "lifecycle": "Active"
      },
      "mouser": {
        "pn": "511-STM8S103F2M6",
        "status": "found"
      }
    },
    "pins": [
      {
        "number": "1",
        "name": "PD4/BEEP/TIM2_CH1/UART1_CK",
        "type": "bidirectional",
        "description": "Port D4 configurable as Timer 2 channel 1, BEEP output, or UART1 clock with high sink output capability."
      },
      {
        "number": "2",
        "name": "PD5/AIN5/UART1_TX",
        "type": "bidirectional",
        "description": "Port D5 configurable as analog input 5 or UART1 transmit data with high sink output capability."
      },
      {
        "number": "3",
        "name": "PD6/AIN6/UART1_RX",
        "type": "bidirectional",
        "description": "Port D6 configurable as analog input 6 or UART1 receive data with high sink output capability."
      },
      {
        "number": "4",
        "name": "NRST",
        "type": "input",
        "description": "Active-low reset input with 30 to 80 kΩ internal pull-up resistor and approximately 75 ns input filter."
      },
      {
        "number": "5",
        "name": "PA1/OSCIN",
        "type": "bidirectional",
        "description": "Port A1 configurable as crystal/oscillator input or standard GPIO with weak pull-up; O1 output speed."
      },
      {
        "number": "6",
        "name": "PA2/OSCOUT",
        "type": "bidirectional",
        "description": "Port A2 configurable as crystal/oscillator output or standard GPIO; O1 output speed."
      },
      {
        "number": "7",
        "name": "VSS",
        "type": "power_in",
        "description": "Digital ground; all ground pins must be connected to complete power distribution."
      },
      {
        "number": "8",
        "name": "VCAP",
        "type": "passive",
        "description": "Internal voltage regulator bypass capacitor connection; requires 470 nF to 3.3 µF capacitor to ground with ESR 0.3 Ω and ESL 15 nH maximum."
      },
      {
        "number": "9",
        "name": "VDD",
        "type": "power_in",
        "description": "Digital power supply; 2.95 to 5.5 V operating voltage range; all supply pins must be connected to external power."
      },
      {
        "number": "10",
        "name": "PA3/TIM2_CH3/SPI_NSS",
        "type": "bidirectional",
        "description": "Port A3 configurable as Timer 2 channel 3, SPI master/slave select, or GPIO with high sink output capability and O3 speed."
      },
      {
        "number": "11",
        "name": "PB5/I2C_SDA/TIM1_BKIN",
        "type": "bidirectional",
        "description": "Port B5 configurable as I2C data (true open-drain), Timer 1 break input, or GPIO; O1 output speed."
      },
      {
        "number": "12",
        "name": "PB4/I2C_SCL",
        "type": "bidirectional",
        "description": "Port B4 configurable as I2C clock (true open-drain), ADC external trigger, or GPIO; O1 output speed."
      },
      {
        "number": "13",
        "name": "PC3/TIM1_CH3/TLI",
        "type": "bidirectional",
        "description": "Port C3 configurable as Timer 1 channel 3, top-level interrupt, or GPIO with high sink output capability and O3 speed."
      },
      {
        "number": "14",
        "name": "PC4/CLK_CCO/TIM1_CH4/AIN2",
        "type": "bidirectional",
        "description": "Port C4 configurable as configurable clock output, Timer 1 channel 4, analog input 2, or GPIO with high sink output capability and O3 speed."
      },
      {
        "number": "15",
        "name": "PC5/SPI_SCK",
        "type": "bidirectional",
        "description": "Port C5 configurable as SPI clock, Timer 2 channel 1, or GPIO with high sink output capability and O3 speed."
      },
      {
        "number": "16",
        "name": "PC6/SPI_MOSI",
        "type": "bidirectional",
        "description": "Port C6 configurable as SPI master out/slave in, Timer 1 channel 1, or GPIO with high sink output capability and O3 speed."
      },
      {
        "number": "17",
        "name": "PC7/SPI_MISO",
        "type": "bidirectional",
        "description": "Port C7 configurable as SPI master in/slave out, Timer 1 channel 2, or GPIO with high sink output capability and O3 speed."
      },
      {
        "number": "18",
        "name": "PD1/SWIM",
        "type": "bidirectional",
        "description": "Port D1 configurable as SWIM data interface or GPIO with high sink output capability, O4 speed, and internal pull-up during reset phase."
      },
      {
        "number": "19",
        "name": "PD2/AIN3",
        "type": "bidirectional",
        "description": "Port D2 configurable as analog input 3, Timer 2 channel 3, or GPIO with high sink output capability and O3 speed."
      },
      {
        "number": "20",
        "name": "PD3/AIN4/TIM2_CH2/ADC_ETR",
        "type": "bidirectional",
        "description": "Port D3 configurable as analog input 4, Timer 2 channel 2, ADC external trigger, or GPIO with high sink output capability and O3 speed."
      }
    ],
    "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-4-6",
        "consensus": "agreed",
        "guards": "pin_guards 0.1: passed",
        "guard_notes": [
          "extractor flagged: PA1 and PA2 classification: These pins are classified as bidirectional I/O since they can function a"
        ],
        "pages_sent": 121,
        "cost_usd": 0.7598,
        "at": "2026-10-01T17:34:39"
      },
      "datasheet": {
        "url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8588922750673301504",
        "pages": 121,
        "sha256": "ac23789ac0a2f408",
        "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": "stm8s103f2m6.step",
        "role": "plain",
        "up": "Z",
        "units": "mm",
        "origin": "footprint origin = pad-pattern centre",
        "seat": "z = 0",
        "extents_mm": [
          10.26,
          12.8,
          2.65
        ],
        "zmin_mm": 0.0,
        "centre_offset_mm": 0.0,
        "footprint_binding": "identity",
        "sha256": "ce8e2841f7ad25e17d23fbe37a1a2a16da3e5aa4ec41d651b1e69a6e1a226491",
        "checked": "2026-10-07",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      },
      {
        "file": "stm8s103f2m6-etched.step",
        "role": "eda",
        "up": "Z",
        "units": "mm",
        "origin": "footprint origin = pad-pattern centre",
        "seat": "z = 0",
        "extents_mm": [
          10.26,
          12.8,
          2.65
        ],
        "zmin_mm": 0.0,
        "centre_offset_mm": 0.0,
        "footprint_binding": "identity",
        "sha256": "4ffc3ae96c014cddc3ff7662d4cb582c3d6c38dcf5d0158b1a9201a14299ad11",
        "checked": "2026-10-17",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      }
    ]
  }
}