main
Ray Publish 0.1.0 aab1c8b 2d ago
{
  "slug": "stc32g8k64-42i-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",
    "stc32g8k64-42i-tssop20",
    "factory-2.0.0",
    "extractor-text"
  ],
  "dependencies": {},
  "hero": {
    "type": "image",
    "path": "docs/hero.png"
  },
  "files": [
    "page.json",
    "README.md",
    "stc32g8k64-42i-tssop20.kicad_sym",
    "stc32g8k64-42i-tssop20.kicad_mod",
    "stc32g8k64-42i-tssop20.glb",
    "stc32g8k64-42i-tssop20.step",
    "stc32g8k64-42i-tssop20.lbr",
    "docs/hero.png",
    "docs/stc32g8k64-42i-tssop20-datasheet.pdf",
    "viewers/symbol.html",
    "viewers/footprint.html",
    "stc32g8k64-42i-tssop20-hero.glb",
    "stc32g8k64-42i-tssop20-hero.overlay.json",
    "stc32g8k64-42i-tssop20-etched.glb"
  ],
  "component": {
    "mpn": "STC32G8K64-42I-TSSOP20",
    "manufacturer": "STC Micro",
    "package": "TSSOP-20",
    "pin_count": 20,
    "category": "Single Chip Microcomputer/Microcontroller",
    "subcategory": "Microcontroller Units (MCUs/MPUs/SOCs)",
    "datasheet": "https://datasheet.lcsc.com/datasheet/pdf/8fe4cdefdfe8ba1a5b5a614521aecf58.pdf",
    "parts": {
      "symbol": "stc32g8k64-42i-tssop20.kicad_sym",
      "footprint": "stc32g8k64-42i-tssop20.kicad_mod",
      "model_3d": "stc32g8k64-42i-tssop20-hero.glb",
      "model_3d_plain": "stc32g8k64-42i-tssop20-etched.glb",
      "model_3d_step": "stc32g8k64-42i-tssop20-etched.step",
      "model_3d_step_plain": "stc32g8k64-42i-tssop20.step",
      "lbr": "stc32g8k64-42i-tssop20.lbr"
    },
    "distributor_links": {
      "lcsc": "C20611528"
    },
    "distributor_check": {
      "checked_at": "2026-10-26T23:41:52Z",
      "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 with alternate functions ADC4, PWM3P, MISO, S1MISO, S2MISO and SDA (I2C data)."
      },
      {
        "number": "2",
        "name": "P1.5",
        "type": "bidirectional",
        "description": "Standard I/O port pin with alternate functions ADC5, PWM3N, SCLK, S1SCLK, S2SCLK, SCL and I2SCK_2."
      },
      {
        "number": "3",
        "name": "P1.6",
        "type": "bidirectional",
        "description": "Standard I/O port pin with alternate functions ADC6, RxD_3, PWM4P, MCLKO_2, XTALO (external crystal output) and I2SMCK_2/I2SMCK_4."
      },
      {
        "number": "4",
        "name": "P1.7",
        "type": "bidirectional",
        "description": "Standard I/O port pin with alternate functions ADC7, TxD_3, PWM4N, PWM5_2 and XTALI (external crystal or clock input)."
      },
      {
        "number": "5",
        "name": "P1.3",
        "type": "bidirectional",
        "description": "Standard I/O port pin with alternate functions ADC3, MOSI, S1MOSI, S2MOSI, PWM2N, T2CLKO and I2SData_2."
      },
      {
        "number": "6",
        "name": "P1.2",
        "type": "bidirectional",
        "description": "Standard I/O port pin with alternate functions PWM2P, SS, S1SS, S2SS and T2 (timer 2 external clock input)."
      },
      {
        "number": "7",
        "name": "P5.4",
        "type": "bidirectional",
        "description": "Standard I/O port pin that can be configured as the active-low reset input nRST, with alternate functions ADC2, MCLKO, SS and PWM6_2."
      },
      {
        "number": "8",
        "name": "Vcc",
        "type": "power_in",
        "description": "Power supply pin for the MCU core and I/O, which also feeds AVcc for the ADC."
      },
      {
        "number": "9",
        "name": "ADC_VRef+",
        "type": "input",
        "description": "ADC external reference voltage pin that must be connected to an external reference of 2.4V to MCU-VCC, since floating it causes leakage current."
      },
      {
        "number": "10",
        "name": "Gnd",
        "type": "power_in",
        "description": "Ground pin, which is also the ADC analog ground AGnd."
      },
      {
        "number": "11",
        "name": "P3.0",
        "type": "bidirectional",
        "description": "Standard I/O port pin with alternate functions UART1 receive RxD and external interrupt INT4, and it is weakly pulled up after power-on."
      },
      {
        "number": "12",
        "name": "P3.1",
        "type": "bidirectional",
        "description": "Standard I/O port pin with alternate function UART1 transmit TxD, and it is weakly pulled up after power-on."
      },
      {
        "number": "13",
        "name": "P3.2",
        "type": "bidirectional",
        "description": "Standard I/O port pin with alternate functions external interrupt INT0, SCLK_4, SCL_4, PWMETI, PWMETI2 and I2SCK; it is high level during power-on reset."
      },
      {
        "number": "14",
        "name": "P3.3",
        "type": "bidirectional",
        "description": "Standard I/O port pin with alternate functions external interrupt INT1, MISO_4, SDA_4, PWM4N_4 and PWM7_2."
      },
      {
        "number": "15",
        "name": "P3.4",
        "type": "bidirectional",
        "description": "Standard I/O port pin with alternate functions T0 external clock input, T1CLKO, MOSI_4, PWM4P_4, PWM8_2, comparator output CMPO and I2SData."
      },
      {
        "number": "16",
        "name": "P3.5",
        "type": "bidirectional",
        "description": "Standard I/O port pin with alternate functions T1 external clock input, T0CLKO, SS_4, PWM fault input PWMFLT and I2SLRCK."
      },
      {
        "number": "17",
        "name": "P3.6",
        "type": "bidirectional",
        "description": "Standard I/O port pin with alternate functions external interrupt INT2, UART1 receive RxD_2 and comparator negative input CMP-."
      },
      {
        "number": "18",
        "name": "P3.7",
        "type": "bidirectional",
        "description": "Standard I/O port pin with alternate functions external interrupt INT3, TxD_2 and comparator positive input CMP+."
      },
      {
        "number": "19",
        "name": "P1.1",
        "type": "bidirectional",
        "description": "Standard I/O port pin with alternate functions ADC1, PWM1N and UART2 transmit TxD2."
      },
      {
        "number": "20",
        "name": "P1.0",
        "type": "bidirectional",
        "description": "Standard I/O port pin with alternate functions ADC0, PWM1P and UART2 receive RxD2."
      }
    ],
    "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: The pin-description row for P3.7 (pin 18) falls on datasheet page 280, which is not in the supplied ; The STC32G8K64 pin table (page 274 diagram, pages 276-279 table) lists TSSOP20 pin numbers 1-20 and ",
          "1/20 pins cited to the wrong page (name found elsewhere): ['6:P1.2@p277']"
        ],
        "pages_sent": 108,
        "cost_usd": 0.2304,
        "at": "2026-10-26T23:41:24"
      },
      "datasheet": {
        "url": "https://datasheet.lcsc.com/datasheet/pdf/8fe4cdefdfe8ba1a5b5a614521aecf58.pdf",
        "pages": 1887,
        "sha256": "59bba1d366cc8d33",
        "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": "stc32g8k64-42i-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-10-26",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      },
      {
        "file": "stc32g8k64-42i-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": "f3fd56538fbf7a7ef6a16c8092dd42d631eb6fd86637260b359a4c7815ae30d5",
        "checked": "2026-10-26",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      }
    ]
  }
}