main
Ray Publish 0.1.0 237fd6d
{
  "slug": "stc32g12k128-35i-tssop20",
  "version": "0.1.0",
  "type": "component",
  "description": "STC Micro Microcontroller Units (MCUs/MPUs/SOCs), TSSOP-20. Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
  "tags": [
    "component",
    "single chip microcomputer-microcontroller",
    "stc32g12k128-35i-tssop20",
    "factory-2.0.0",
    "extractor-text"
  ],
  "dependencies": {},
  "hero": {
    "type": "image",
    "path": "docs/hero.png"
  },
  "files": [
    "page.json",
    "README.md",
    "stc32g12k128-35i-tssop20.kicad_sym",
    "stc32g12k128-35i-tssop20.kicad_mod",
    "stc32g12k128-35i-tssop20.glb",
    "stc32g12k128-35i-tssop20.step",
    "stc32g12k128-35i-tssop20.lbr",
    "docs/hero.png",
    "docs/stc32g12k128-35i-tssop20-datasheet.pdf",
    "viewers/symbol.html",
    "viewers/footprint.html",
    "stc32g12k128-35i-tssop20-hero.glb",
    "stc32g12k128-35i-tssop20-hero.overlay.json"
  ],
  "component": {
    "mpn": "STC32G12K128-35I-TSSOP20",
    "manufacturer": "STC Micro",
    "package": "TSSOP-20",
    "pin_count": 20,
    "category": "Single Chip Microcomputer/Microcontroller",
    "subcategory": "Microcontroller Units (MCUs/MPUs/SOCs)",
    "datasheet": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8756362745032269824",
    "parts": {
      "symbol": "stc32g12k128-35i-tssop20.kicad_sym",
      "footprint": "stc32g12k128-35i-tssop20.kicad_mod",
      "model_3d": "stc32g12k128-35i-tssop20-hero.glb",
      "model_3d_plain": "stc32g12k128-35i-tssop20.glb",
      "model_3d_step": "stc32g12k128-35i-tssop20-etched.step",
      "model_3d_step_plain": "stc32g12k128-35i-tssop20.step",
      "lbr": "stc32g12k128-35i-tssop20.lbr"
    },
    "distributor_links": {
      "lcsc": "C20611527"
    },
    "distributor_check": {
      "checked_at": "2026-11-22T00:14:58Z",
      "source": "Component Ocean /api/assign-pns",
      "digikey": {
        "pn": null,
        "status": "no match"
      },
      "mouser": {
        "pn": null,
        "status": "no match"
      }
    },
    "pins": [
      {
        "number": "1",
        "name": "P1.4",
        "type": "bidirectional",
        "description": "Standard I/O port pin P1.4 with ADC4 input, PWM3P, SPI MISO, USART1/USART2-SPI MISO and I2C SDA functions."
      },
      {
        "number": "2",
        "name": "P1.5",
        "type": "bidirectional",
        "description": "Standard I/O port pin P1.5 with ADC5 input, PWM3N, SPI SCLK, USART1/USART2-SPI SCLK and I2C SCL functions."
      },
      {
        "number": "3",
        "name": "P1.6",
        "type": "bidirectional",
        "description": "Standard I/O port pin P1.6 with ADC6 input, RxD_3, PWM4P, MCLKO_2 and XTALO external crystal output functions."
      },
      {
        "number": "4",
        "name": "P1.7",
        "type": "bidirectional",
        "description": "Standard I/O port pin P1.7 with ADC7 input, TxD_3, PWM4N, PWM5_2 and XTALI external crystal/clock input functions."
      },
      {
        "number": "5",
        "name": "P1.3",
        "type": "bidirectional",
        "description": "Standard I/O port pin P1.3 with ADC3 input, SPI/USART1-SPI/USART2-SPI MOSI, PWM2N and T2CLKO functions."
      },
      {
        "number": "6",
        "name": "UCAP",
        "type": "passive",
        "description": "USB core power regulator pin; connect a 0.1u (0.1u~10u) capacitor."
      },
      {
        "number": "7",
        "name": "P5.4",
        "type": "bidirectional",
        "description": "Standard I/O port pin P5.4 that can be configured as active-low reset input nRST; also MCLKO, SPI slave selects, PWM2P, PWM6_2, T2 and ADC2 functions."
      },
      {
        "number": "8",
        "name": "Vcc",
        "type": "power_in",
        "description": "Positive supply (also AVcc ADC supply), operating range 1.9V~5.5V."
      },
      {
        "number": "9",
        "name": "ADC_VRef+",
        "type": "input",
        "description": "ADC reference voltage pin; must be connected to an external reference of 2.4V to MCU-VCC, floating causes leakage current."
      },
      {
        "number": "10",
        "name": "Gnd",
        "type": "power_in",
        "description": "Ground pin (also AGnd ADC ground)."
      },
      {
        "number": "11",
        "name": "P3.0",
        "type": "bidirectional",
        "description": "Standard I/O port pin P3.0 with USB D-, UART1 RxD and INT4 functions; used for ISP download/debug."
      },
      {
        "number": "12",
        "name": "P3.1",
        "type": "bidirectional",
        "description": "Standard I/O port pin P3.1 with USB D+ and UART1 TxD functions; used for ISP download/debug."
      },
      {
        "number": "13",
        "name": "P3.2",
        "type": "bidirectional",
        "description": "Standard I/O port pin P3.2 with INT0, SPI SCLK_4, I2C SCL_4, PWMETI and PWMETI2 functions; low at power-up with P3.0/P3.1 low enters USB download mode."
      },
      {
        "number": "14",
        "name": "P3.3",
        "type": "bidirectional",
        "description": "Standard I/O port pin P3.3 with INT1, SPI MISO_4, I2C SDA_4, PWM4N_4 and PWM7_2 functions."
      },
      {
        "number": "15",
        "name": "P3.4",
        "type": "bidirectional",
        "description": "Standard I/O port pin P3.4 with T0, T1CLKO, SPI MOSI_4, PWM4P_4, PWM8_2 and comparator output CMPO functions."
      },
      {
        "number": "16",
        "name": "P3.5",
        "type": "bidirectional",
        "description": "Standard I/O port pin P3.5 with T1, T0CLKO, SPI SS_4 and PWMFLT external fault detection functions."
      },
      {
        "number": "17",
        "name": "P3.6",
        "type": "bidirectional",
        "description": "Standard I/O port pin P3.6 with INT2, RxD_2 and comparator negative input CMP- functions."
      },
      {
        "number": "18",
        "name": "P3.7",
        "type": "bidirectional",
        "description": "Standard I/O port pin P3.7 with INT3, TxD_2 and comparator positive input CMP+ functions."
      },
      {
        "number": "19",
        "name": "P1.1",
        "type": "bidirectional",
        "description": "Standard I/O port pin P1.1 with ADC1 input, PWM1N and UART2 TxD functions."
      },
      {
        "number": "20",
        "name": "P1.0",
        "type": "bidirectional",
        "description": "Standard I/O port pin P1.0 with ADC0 input, PWM1P and UART2 RxD functions."
      }
    ],
    "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-number assignment for pins 11-20 was resolved by reading the 4.1.10 pin table TSSOP20 column (P1; The pin-table description entry for P3.7 (TSSOP20 pin 18) falls on a page that is not in the supplie; The datasheet covers the STC32G12K128 family with TSSOP20 packaging (section 4.1.8 and 4.1.10). The ",
          "1/20 pins cited to the wrong page (name found elsewhere): ['9:ADC_VRef+@p278']"
        ],
        "pages_sent": 108,
        "cost_usd": 1.0653,
        "at": "2026-11-22T00:14:39"
      },
      "datasheet": {
        "url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8756362745032269824",
        "pages": 1887,
        "sha256": "59bba1d366cc8d33",
        "source_tier": "lcsc",
        "citation": "STC Micro datasheet, copy hosted by JLCPCB"
      },
      "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": "stc32g12k128-35i-tssop20.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-11-22",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      },
      {
        "file": "stc32g12k128-35i-tssop20-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": "bf2a0ca0d8e17cb855fd5a7aa5f937ee51b44a47d945574e3234362676250690",
        "checked": "2026-11-22",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      }
    ]
  }
}