main
Ray Publish 0.1.1 9111b69
{
  "schema_version": 1,
  "type": "component",
  "slug": "stc8g2k64s4-36i-lqfp32",
  "title": "STC8G2K64S4-36I-LQFP32",
  "brief": "STC Micro Microcontroller Units (MCUs/MPUs/SOCs), LQFP-32(7x7). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
  "version": "0.1.1",
  "license": "CC-BY-SA-4.0",
  "tags": [
    "component",
    "embedded processors & controllers",
    "stc8g2k64s4-36i-lqfp32",
    "factory-2.0.0",
    "extractor-text"
  ],
  "component": {
    "mpn": "STC8G2K64S4-36I-LQFP32",
    "manufacturer": "STC Micro",
    "package": "LQFP-32(7x7)",
    "pin_count": 32,
    "category": "Embedded Processors & Controllers",
    "subcategory": "Microcontroller Units (MCUs/MPUs/SOCs)",
    "datasheet": "https://datasheet.lcsc.com/datasheet/pdf/5b76295ab6e43792073a51d0ce1481a3.pdf",
    "parts": {
      "symbol": "stc8g2k64s4-36i-lqfp32.kicad_sym",
      "footprint": "stc8g2k64s4-36i-lqfp32.kicad_mod",
      "model_3d": "stc8g2k64s4-36i-lqfp32-hero.glb",
      "model_3d_plain": "stc8g2k64s4-36i-lqfp32.glb",
      "model_3d_step": "stc8g2k64s4-36i-lqfp32-etched.step",
      "model_3d_step_plain": "stc8g2k64s4-36i-lqfp32.step",
      "lbr": "stc8g2k64s4-36i-lqfp32.lbr"
    },
    "distributor_links": {
      "lcsc": "C915671"
    },
    "distributor_check": {
      "checked_at": "2026-10-27T07:55:45Z",
      "source": "Component Ocean /api/assign-pns",
      "digikey": {
        "pn": null,
        "status": "quota"
      },
      "mouser": {
        "pn": null,
        "status": "quota"
      }
    },
    "pins": [
      {
        "number": "1",
        "name": "P1.0/RxD2/CCP1/ADC0/PWM10",
        "type": "bidirectional",
        "description": "General I/O P1.0 that can also serve as UART2 receive (RxD2), PCA CCP1, ADC input channel 0 or enhanced PWM10."
      },
      {
        "number": "2",
        "name": "P1.1/TxD2/CCP0/ADC1/PWM11",
        "type": "bidirectional",
        "description": "General I/O P1.1 that can also serve as UART2 transmit (TxD2), PCA CCP0, ADC input channel 1 or enhanced PWM11."
      },
      {
        "number": "3",
        "name": "P1.2/T2/SS/ECI/ADC2/PWM12",
        "type": "bidirectional",
        "description": "General I/O P1.2 that can also serve as Timer 2 external clock input (T2), SPI slave select (SS), PCA external pulse input (ECI), ADC input channel 2 or enhanced PWM12."
      },
      {
        "number": "4",
        "name": "P1.3/T2CLKO/MOSI/ADC3/PWM13",
        "type": "bidirectional",
        "description": "General I/O P1.3 that can also serve as Timer 2 clock divided output (T2CLKO), SPI MOSI, ADC input channel 3 or enhanced PWM13."
      },
      {
        "number": "5",
        "name": "P1.4/I2CSDA/MISO/ADC4/PWM14",
        "type": "bidirectional",
        "description": "General I/O P1.4 that can also serve as I2C data line (SDA), SPI MISO, ADC input channel 4 or enhanced PWM14."
      },
      {
        "number": "6",
        "name": "P1.5/I2CSCL/SCLK/ADC5/PWM15",
        "type": "bidirectional",
        "description": "General I/O P1.5 that can also serve as I2C clock line (SCL), SPI clock (SCLK), ADC input channel 5 or enhanced PWM15."
      },
      {
        "number": "7",
        "name": "P1.6/XTALO/MCLKO_2/RxD_3/ADC6/PWM16",
        "type": "bidirectional",
        "description": "General I/O P1.6 that can also serve as external crystal output (XTALO), main clock output (MCLKO_2), UART1 receive (RxD_3), ADC input channel 6 or enhanced PWM16."
      },
      {
        "number": "8",
        "name": "P1.7/XTALI/TxD_3/ADC7/PWM17",
        "type": "bidirectional",
        "description": "General I/O P1.7 that can also serve as external crystal or clock input (XTALI), UART1 transmit (TxD_3), ADC input channel 7 or enhanced PWM17."
      },
      {
        "number": "9",
        "name": "P5.4/nRST/MCLKO/SS_3/PWM54",
        "type": "bidirectional",
        "description": "General I/O P5.4 that defaults to I/O and can be set in ISP as the active-low reset pin (nRST); it also serves as main clock output (MCLKO), SPI slave select (SS_3) or enhanced PWM54."
      },
      {
        "number": "10",
        "name": "Vcc/AVcc",
        "type": "power_in",
        "description": "Positive supply pin for the MCU and the ADC; the datasheet specifies 1.9V~5.5V operation and recommends a 10uF-or-larger plus 0.1uF decoupling capacitor between Vcc and Gnd."
      },
      {
        "number": "11",
        "name": "ADC_VRef+",
        "type": "input",
        "description": "ADC external reference voltage input that must be connected to an external reference of 2.4V to MCU-VCC because leaving it floating causes leakage current."
      },
      {
        "number": "12",
        "name": "Gnd/AGnd",
        "type": "power_in",
        "description": "Ground and ADC ground pin."
      },
      {
        "number": "13",
        "name": "P3.0/RxD/INT4/PWM30",
        "type": "bidirectional",
        "description": "General I/O P3.0 that can also serve as UART1 receive (RxD, used for ISP download), external interrupt 4 (INT4, falling edge only) or enhanced PWM30; it powers up in weak pull-up quasi-bidirectional mode."
      },
      {
        "number": "14",
        "name": "P3.1/TxD/PWM31",
        "type": "bidirectional",
        "description": "General I/O P3.1 that can also serve as UART1 transmit (TxD, used for ISP download) or enhanced PWM31; it powers up in weak pull-up quasi-bidirectional mode."
      },
      {
        "number": "15",
        "name": "P3.2/INT0/SCLK_4/I2CSCL_4/PWM32",
        "type": "bidirectional",
        "description": "General I/O P3.2 that can also serve as external interrupt 0 (INT0), SPI clock (SCLK_4), I2C clock line (SCL_4) or enhanced PWM32; P3.0/P3.1/P3.2 must not all be low at power-up unless USB ISP mode is intended."
      },
      {
        "number": "16",
        "name": "P3.3/INT1/MISO_4/I2CSDA_4/PWM33",
        "type": "bidirectional",
        "description": "General I/O P3.3 that can also serve as external interrupt 1 (INT1), SPI MISO (MISO_4), I2C data line (SDA_4) or enhanced PWM33."
      },
      {
        "number": "17",
        "name": "P3.4/T0/T1CLKO/ECI_2/MOSI_4/CMPO/PWM34",
        "type": "bidirectional",
        "description": "General I/O P3.4 that can also serve as Timer 0 external clock input (T0), Timer 1 clock divided output (T1CLKO), PCA external pulse input (ECI_2), SPI MOSI (MOSI_4), comparator output (CMPO) or enhanced PWM34."
      },
      {
        "number": "18",
        "name": "P3.5/T1/T0CLKO/SS_4/CCP0_2/PWMFLT/PWM35",
        "type": "bidirectional",
        "description": "General I/O P3.5 that can also serve as Timer 1 external clock input (T1), Timer 0 clock divided output (T0CLKO), SPI slave select (SS_4), PCA CCP0_2, enhanced PWM external fault detection (PWMFLT) or enhanced PWM35."
      },
      {
        "number": "19",
        "name": "P3.6/INT2/RxD_2/CMP-/CCP1_2/PWM36",
        "type": "bidirectional",
        "description": "General I/O P3.6 that can also serve as external interrupt 2 (INT2, falling edge only), UART1 receive (RxD_2), comparator negative input (CMP-), PCA CCP1_2 or enhanced PWM36."
      },
      {
        "number": "20",
        "name": "P3.7/INT3/TxD_2/CMP+/CCP2_2/CCP2/PWM37",
        "type": "bidirectional",
        "description": "General I/O P3.7 that can also serve as external interrupt 3 (INT3, falling edge only), UART1 transmit (TxD_2), comparator positive input (CMP+), PCA CCP2/CCP2_2 or enhanced PWM37."
      },
      {
        "number": "21",
        "name": "P2.0/PWM20/A8",
        "type": "bidirectional",
        "description": "General I/O P2.0 that can also serve as enhanced PWM20 or address bus line A8."
      },
      {
        "number": "22",
        "name": "P2.1/PWM21/A9",
        "type": "bidirectional",
        "description": "General I/O P2.1 that can also serve as enhanced PWM21 or address bus line A9."
      },
      {
        "number": "23",
        "name": "P2.2/PWM22/A10/SS_2",
        "type": "bidirectional",
        "description": "General I/O P2.2 that can also serve as enhanced PWM22, address bus line A10 or SPI slave select (SS_2)."
      },
      {
        "number": "24",
        "name": "P2.3/PWM23/A11/MOSI_2",
        "type": "bidirectional",
        "description": "General I/O P2.3 that can also serve as enhanced PWM23, address bus line A11 or SPI MOSI (MOSI_2)."
      },
      {
        "number": "25",
        "name": "P2.4/MISO_2/I2CSDA_2/ECI_3/A12/PWM24",
        "type": "bidirectional",
        "description": "General I/O P2.4 that can also serve as SPI MISO (MISO_2), I2C data line (SDA_2), PCA external pulse input (ECI_3), address bus line A12 or enhanced PWM24."
      },
      {
        "number": "26",
        "name": "P2.5/SCLK_2/I2CSCL_2/CCP0_3/A13/PWM25",
        "type": "bidirectional",
        "description": "General I/O P2.5 that can also serve as SPI clock (SCLK_2), I2C clock line (SCL_2), PCA CCP0_3, address bus line A13 or enhanced PWM25."
      },
      {
        "number": "27",
        "name": "P2.6/CCP1_3/A14/PWM26",
        "type": "bidirectional",
        "description": "General I/O P2.6 that can also serve as PCA CCP1_3, address bus line A14 or enhanced PWM26."
      },
      {
        "number": "28",
        "name": "P2.7/CCP2_3/A15/PWM27",
        "type": "bidirectional",
        "description": "General I/O P2.7 that can also serve as PCA CCP2_3, address bus line A15 or enhanced PWM27."
      },
      {
        "number": "29",
        "name": "P0.0/RxD3/AD0/ADC8/PWM00",
        "type": "bidirectional",
        "description": "General I/O P0.0 that can also serve as UART3 receive (RxD3), address/data bus line AD0, ADC input channel 8 or enhanced PWM00."
      },
      {
        "number": "30",
        "name": "P0.1/TxD3/AD1/ADC9/PWM01",
        "type": "bidirectional",
        "description": "General I/O P0.1 that can also serve as UART3 transmit (TxD3), address/data bus line AD1, ADC input channel 9 or enhanced PWM01."
      },
      {
        "number": "31",
        "name": "P0.2/RxD4/AD2/ADC10/PWM02",
        "type": "bidirectional",
        "description": "General I/O P0.2 that can also serve as UART4 receive (RxD4), address/data bus line AD2, ADC input channel 10 or enhanced PWM02."
      },
      {
        "number": "32",
        "name": "P0.3/TxD4/AD3/ADC11/PWM03",
        "type": "bidirectional",
        "description": "General I/O P0.3 that can also serve as UART4 transmit (TxD4), address/data bus line AD3, ADC input channel 11 or enhanced PWM03."
      }
    ],
    "provenance": {
      "extractor": "extract_pins 0.3",
      "factory_chain": {
        "factory": "2.0.0",
        "extractor": "extract_pins 0.3",
        "primary_model": "claude-sonnet-5-5",
        "primary_mode": "text+vision",
        "consensus_model": "claude-opus-5-5",
        "consensus": "agreed",
        "guards": "pin_guards 0.1: passed",
        "guard_notes": [
          "extractor flagged: The package hint says LQFP-32(7x7), but the datasheet table of contents (section 4.6) lists the LQFP; The datasheet has no LQFP32-specific pin description table. The pin numbers and alternate-function n; Pin types for the multi-function port pins are assigned as bidirectional because every GPIO supports",
          "vision extraction: provenance cannot be text-verified; needs consensus"
        ],
        "pages_sent": 127,
        "cost_usd": 0.6951,
        "at": "2026-10-27T07:55:28"
      },
      "datasheet": {
        "url": "https://datasheet.lcsc.com/datasheet/pdf/5b76295ab6e43792073a51d0ce1481a3.pdf",
        "pages": 1240,
        "sha256": "7d5e82c9f651aa92",
        "source_tier": "lcsc"
      },
      "cad": "KiCad official (CC-BY-SA 4.0)",
      "pins": {
        "total": 32,
        "described": 32,
        "cites_pages": true,
        "refuses_to_fabricate": true
      }
    },
    "viewers": {
      "symbol": "viewers/symbol.html",
      "footprint": "viewers/footprint.html"
    },
    "models_3d": [
      {
        "file": "stc8g2k64s4-36i-lqfp32.step",
        "role": "plain",
        "up": "Z",
        "units": "mm",
        "origin": "footprint origin = pad-pattern centre",
        "seat": "z = 0",
        "extents_mm": [
          9,
          9,
          1.5
        ],
        "zmin_mm": 0,
        "centre_offset_mm": 0,
        "footprint_binding": "identity",
        "sha256": "be0e412f1c66fee70039b0e109e0cc7c823161dda97593718afa97569bc61ce3",
        "checked": "2026-10-27",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      },
      {
        "file": "stc8g2k64s4-36i-lqfp32-etched.step",
        "role": "eda",
        "up": "Z",
        "units": "mm",
        "origin": "footprint origin = pad-pattern centre",
        "seat": "z = 0",
        "extents_mm": [
          9,
          9,
          1.5
        ],
        "zmin_mm": 0,
        "centre_offset_mm": 0,
        "footprint_binding": "identity",
        "sha256": "73df39527a55ef4c52b2a31ea960bc84758a2a2db94dc28b9b946a4057923764",
        "checked": "2026-10-27",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      }
    ]
  },
  "metadata": {
    "specs": {
      "Manufacturer": "STC Micro",
      "Package": "LQFP-32(7x7)",
      "Category": "Embedded Processors & Controllers",
      "Pins": "32"
    },
    "appearance": {
      "housing": {
        "quote": "Accumulator contents and the contents of a sixteen-bit base register, which may be either the Data Pointer or the PC. In the latter case, the PC is incremented to the address of the following",
        "page": 548,
        "doc": "ds.pdf",
        "material": "PC"
      },
      "version": 1,
      "datasheet_sha256": "7d5e82c9f651aa928f3835549a3fc2736c30431283b01b9ccbf1179766cb8fee"
    }
  },
  "variants": [],
  "sections": [
    "hero",
    "viewers",
    "readme",
    "breadcrumbs",
    "info"
  ],
  "discovery_triggers": [
    "stc8g2k64s4-36i-lqfp32"
  ],
  "discovery_pitch": "STC8G2K64S4-36I-LQFP32 (STC Micro) component page: datasheet pinout, KiCad symbol, footprint and 3D.",
  "author": {
    "name": "Ray"
  },
  "dependencies": {},
  "hero": {
    "type": "image",
    "path": "docs/hero.png"
  },
  "files": [
    "page.json",
    "README.md",
    "stc8g2k64s4-36i-lqfp32.kicad_sym",
    "stc8g2k64s4-36i-lqfp32.kicad_mod",
    "stc8g2k64s4-36i-lqfp32.glb",
    "stc8g2k64s4-36i-lqfp32.step",
    "stc8g2k64s4-36i-lqfp32.lbr",
    "docs/hero.png",
    "docs/stc8g2k64s4-36i-lqfp32-datasheet.pdf",
    "viewers/symbol.html",
    "viewers/footprint.html",
    "stc8g2k64s4-36i-lqfp32-hero.glb",
    "stc8g2k64s4-36i-lqfp32-hero.overlay.json",
    "stc8g2k64s4-36i-lqfp32-etched.glb",
    "stc8g2k64s4-36i-lqfp32-etched.step"
  ],
  "visibility": "public",
  "description": "STC Micro Microcontroller Units (MCUs/MPUs/SOCs), LQFP-32(7x7). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
  "org": "adom"
}