main
Ray Publish 0.1.0 a58a71e
{
  "slug": "stc8c2k64s4-36i-lqfp32",
  "version": "0.1.0",
  "type": "component",
  "description": "STC Micro Microcontroller Units (MCUs/MPUs/SOCs), LQFP-32(7x7). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
  "tags": [
    "component",
    "single chip microcomputer-microcontroller",
    "stc8c2k64s4-36i-lqfp32",
    "factory-2.0.0",
    "extractor-text"
  ],
  "dependencies": {},
  "hero": {
    "type": "image",
    "path": "docs/hero.png"
  },
  "files": [
    "page.json",
    "README.md",
    "stc8c2k64s4-36i-lqfp32.kicad_sym",
    "stc8c2k64s4-36i-lqfp32.kicad_mod",
    "stc8c2k64s4-36i-lqfp32.glb",
    "stc8c2k64s4-36i-lqfp32.step",
    "stc8c2k64s4-36i-lqfp32.lbr",
    "docs/hero.png",
    "docs/stc8c2k64s4-36i-lqfp32-datasheet.pdf",
    "viewers/symbol.html",
    "viewers/footprint.html",
    "stc8c2k64s4-36i-lqfp32-hero.glb",
    "stc8c2k64s4-36i-lqfp32-hero.overlay.json"
  ],
  "component": {
    "mpn": "STC8C2K64S4-36I-LQFP32",
    "manufacturer": "STC Micro",
    "package": "LQFP-32(7x7)",
    "pin_count": 32,
    "category": "Single Chip Microcomputer/Microcontroller",
    "subcategory": "Microcontroller Units (MCUs/MPUs/SOCs)",
    "datasheet": "https://datasheet.lcsc.com/datasheet/pdf/73d58be2ee34ecb6692592c0f184ce32.pdf",
    "parts": {
      "symbol": "stc8c2k64s4-36i-lqfp32.kicad_sym",
      "footprint": "stc8c2k64s4-36i-lqfp32.kicad_mod",
      "model_3d": "stc8c2k64s4-36i-lqfp32-hero.glb",
      "model_3d_plain": "stc8c2k64s4-36i-lqfp32.glb",
      "model_3d_step": "stc8c2k64s4-36i-lqfp32-etched.step",
      "model_3d_step_plain": "stc8c2k64s4-36i-lqfp32.step",
      "lbr": "stc8c2k64s4-36i-lqfp32.lbr"
    },
    "distributor_links": {
      "lcsc": "C3013127"
    },
    "distributor_check": {
      "checked_at": "2026-11-20T23:05:32Z",
      "source": "Component Ocean /api/assign-pns",
      "digikey": {
        "pn": null,
        "status": "deferred",
        "error": "shared DigiKey quota guard: 934 calls left today"
      },
      "mouser": {
        "pn": null,
        "status": "no match"
      }
    },
    "pins": [
      {
        "number": "1",
        "name": "P1.0/RxD2",
        "type": "bidirectional",
        "description": "Standard I/O port bit whose alternate function RxD2 is the serial port 2 receive pin, and which is high-impedance input after power-up."
      },
      {
        "number": "2",
        "name": "P1.1/TxD2",
        "type": "bidirectional",
        "description": "Standard I/O port bit whose alternate function TxD2 is the serial port 2 transmit pin."
      },
      {
        "number": "3",
        "name": "P1.2 (SS, T2)",
        "type": "bidirectional",
        "description": "Standard I/O port bit with alternate functions SS (SPI slave select, output when operating as master) and T2 (Timer 2 external clock input)."
      },
      {
        "number": "4",
        "name": "P1.3 (MOSI, T2CLKO)",
        "type": "bidirectional",
        "description": "Standard I/O port bit with alternate functions MOSI (SPI master output/slave input) and T2CLKO (Timer 2 clock output, toggling on overflow)."
      },
      {
        "number": "5",
        "name": "P1.4 (MISO, SDA)",
        "type": "bidirectional",
        "description": "Standard I/O port bit with alternate functions MISO (SPI master input/slave output) and SDA (I2C data line)."
      },
      {
        "number": "6",
        "name": "P1.5 (SCLK, SCL)",
        "type": "bidirectional",
        "description": "Standard I/O port bit with alternate functions SCLK (SPI clock) and SCL (I2C clock line)."
      },
      {
        "number": "7",
        "name": "P1.6 (RxD_3, XTALO, MCLKO_2)",
        "type": "bidirectional",
        "description": "Standard I/O port bit with alternate functions RxD_3 (serial 1 receive), XTALO (external crystal output) and MCLKO_2 (divided master clock output)."
      },
      {
        "number": "8",
        "name": "P1.7 (TxD_3, XTALI)",
        "type": "bidirectional",
        "description": "Standard I/O port bit with alternate functions TxD_3 (serial 1 transmit) and XTALI (external crystal or external clock input)."
      },
      {
        "number": "9",
        "name": "P5.4/RST/MCLKO",
        "type": "bidirectional",
        "description": "Standard I/O port bit by default, which becomes an active-low RST reset input when selected as reset pin, with MCLKO as master clock output; its internal 4K pull-up stays on when used as RST."
      },
      {
        "number": "10",
        "name": "Vcc",
        "type": "power_in",
        "description": "Power supply pin; the datasheet states an operating voltage of 1.9 V to 5.5 V."
      },
      {
        "number": "11",
        "name": "P5.5",
        "type": "bidirectional",
        "description": "Standard I/O port bit with no alternate function listed in the pin description table."
      },
      {
        "number": "12",
        "name": "GND",
        "type": "power_in",
        "description": "Ground pin."
      },
      {
        "number": "13",
        "name": "P3.0/RxD/INT4",
        "type": "bidirectional",
        "description": "Standard I/O port bit (weak pull-up after power-up) with alternate functions RxD (serial 1 receive) and INT4 (external interrupt 4, falling edge only); P3.0, P3.1 and P3.2 must not all be low at power-up or the chip enters USB download mode."
      },
      {
        "number": "14",
        "name": "P3.1/TxD",
        "type": "bidirectional",
        "description": "Standard I/O port bit (weak pull-up after power-up) whose alternate function TxD is the serial 1 transmit pin."
      },
      {
        "number": "15",
        "name": "P3.2/INT0/SCLK_4/I2CSCL_4",
        "type": "bidirectional",
        "description": "Standard I/O port bit with alternate functions INT0 (external interrupt 0), SCLK_4 (SPI clock) and SCL_4 (I2C clock)."
      },
      {
        "number": "16",
        "name": "P3.3/INT1/MISO_4/I2CSDA_4",
        "type": "bidirectional",
        "description": "Standard I/O port bit with alternate functions INT1 (external interrupt 1), MISO_4 (SPI master input) and SDA_4 (I2C data)."
      },
      {
        "number": "17",
        "name": "P3.4/T0/T1CLKO/MOSI_4/CMPO",
        "type": "bidirectional",
        "description": "Standard I/O port bit with alternate functions T0 (Timer 0 external clock input), T1CLKO (Timer 1 clock output), MOSI_4 (SPI master output) and CMPO (comparator output)."
      },
      {
        "number": "18",
        "name": "P3.5/T1/T0CLKO/SS_4",
        "type": "bidirectional",
        "description": "Standard I/O port bit with alternate functions T1 (Timer 1 external clock input), T0CLKO (Timer 0 clock output) and SS_4 (SPI slave select)."
      },
      {
        "number": "19",
        "name": "P3.6/INT2/WR_2/RxD_2/CMP-",
        "type": "bidirectional",
        "description": "Standard I/O port bit with alternate functions INT2 (falling-edge external interrupt 2), WR_2 (external bus write strobe), RxD_2 and CMP- (comparator negative input)."
      },
      {
        "number": "20",
        "name": "P3.7/INT3/RD_2/TxD_2/CMP+",
        "type": "bidirectional",
        "description": "Standard I/O port bit with alternate functions INT3 (falling-edge external interrupt 3), RD_2 (external bus read strobe), TxD_2 and CMP+ (comparator positive input)."
      },
      {
        "number": "21",
        "name": "P2.0",
        "type": "bidirectional",
        "description": "Standard I/O port bit as shown in the LQFP32 pin diagram, with no further alternate function listed for this package."
      },
      {
        "number": "22",
        "name": "P2.1",
        "type": "bidirectional",
        "description": "Standard I/O port bit as shown in the LQFP32 pin diagram, with no alternate function listed for this package."
      },
      {
        "number": "23",
        "name": "P2.2/SS_2",
        "type": "bidirectional",
        "description": "Standard I/O port bit with alternate function SS_2 (SPI slave select, group 2)."
      },
      {
        "number": "24",
        "name": "P2.3/MOSI_2",
        "type": "bidirectional",
        "description": "Standard I/O port bit with alternate function MOSI_2 (SPI master output, group 2)."
      },
      {
        "number": "25",
        "name": "P2.4 (MISO_2, I2CSDA_2)",
        "type": "bidirectional",
        "description": "Standard I/O port bit with alternate functions MISO_2 (SPI master input, group 2) and I2CSDA_2 (I2C data, group 2)."
      },
      {
        "number": "26",
        "name": "P2.5 (SCLK_2, I2CSCL_2)",
        "type": "bidirectional",
        "description": "Standard I/O port bit with alternate functions SCLK_2 (SPI clock, group 2) and I2CSCL_2 (I2C clock, group 2)."
      },
      {
        "number": "27",
        "name": "P2.6",
        "type": "bidirectional",
        "description": "Standard I/O port bit with no alternate function shown in the LQFP32 pin diagram."
      },
      {
        "number": "28",
        "name": "P2.7",
        "type": "bidirectional",
        "description": "Standard I/O port bit with no alternate function shown in the LQFP32 pin diagram."
      },
      {
        "number": "29",
        "name": "P0.0 (RxD3)",
        "type": "bidirectional",
        "description": "Standard I/O port bit whose alternate function RxD3 is the serial 3 receive pin."
      },
      {
        "number": "30",
        "name": "P0.1 (TxD3)",
        "type": "bidirectional",
        "description": "Standard I/O port bit whose alternate function TxD3 is the serial 3 transmit pin."
      },
      {
        "number": "31",
        "name": "P0.2 (RxD4)",
        "type": "bidirectional",
        "description": "Standard I/O port bit whose alternate function RxD4 is the serial 4 receive pin."
      },
      {
        "number": "32",
        "name": "P0.3 (TxD4)",
        "type": "bidirectional",
        "description": "Standard I/O port bit whose alternate function TxD4 is the serial 4 transmit pin."
      }
    ],
    "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: Package mismatch: the package hint says LQFP-32 (7x7), but the datasheet's package drawing section 4; Pin-function table rows for P2.x and P3.7 (datasheet page 21) are not included in the supplied text.; P2.1, P2.6 and P2.7 have no alternate function shown in the LQFP32 diagram, and the LQFP44 mapping l",
          "27/32 pins cited to the wrong page (name found elsewhere): ['2:P1.1 (TxD2)@p19', '3:P1.2 (SS, T2)@p19', '4:P1.3 (MOSI, T2CLKO)@p19', '5:P1.4 (MISO, SDA)@p19']"
        ],
        "pages_sent": 181,
        "cost_usd": 1.0692,
        "at": "2026-11-20T23:05:15"
      },
      "datasheet": {
        "url": "https://datasheet.lcsc.com/datasheet/pdf/73d58be2ee34ecb6692592c0f184ce32.pdf",
        "pages": 956,
        "sha256": "f8fa5bab02998432",
        "source_tier": "lcsc",
        "citation": "STC Micro datasheet, copy hosted by 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": "stc8c2k64s4-36i-lqfp32.step",
        "role": "plain",
        "up": "Z",
        "units": "mm",
        "origin": "footprint origin = pad-pattern centre",
        "seat": "z = 0",
        "extents_mm": [
          9.0,
          9.0,
          1.5
        ],
        "zmin_mm": 0.0,
        "centre_offset_mm": 0.0,
        "footprint_binding": "identity",
        "sha256": "be0e412f1c66fee70039b0e109e0cc7c823161dda97593718afa97569bc61ce3",
        "checked": "2026-11-20",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      },
      {
        "file": "stc8c2k64s4-36i-lqfp32-etched.step",
        "role": "eda",
        "up": "Z",
        "units": "mm",
        "origin": "footprint origin = pad-pattern centre",
        "seat": "z = 0",
        "extents_mm": [
          9.0,
          9.0,
          1.5
        ],
        "zmin_mm": 0.0,
        "centre_offset_mm": 0.0,
        "footprint_binding": "identity",
        "sha256": "36d39b3b5dd95adf085416c25497247b105f5707a9ba65b94d1f15aee487da49",
        "checked": "2026-11-20",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      }
    ],
    "package_dims": {
      "package_code": "LQFP32",
      "source_page": 118,
      "D": {
        "nom_mm": 7.0,
        "range_mm": [
          6.9,
          7.1
        ]
      },
      "E1": {
        "nom_mm": 7.0,
        "range_mm": [
          6.9,
          7.1
        ]
      },
      "E": {
        "nom_mm": 9.0,
        "range_mm": [
          8.8,
          9.2
        ]
      },
      "e": {
        "nom_mm": 0.8,
        "range_mm": [
          null,
          null
        ]
      },
      "A": {
        "nom_mm": 1.55,
        "range_mm": [
          null,
          1.65
        ]
      },
      "source": "datasheet package drawing, every number found on its page (extract_pins --task dims)",
      "model_check": {
        "file": "stc8c2k64s4-36i-lqfp32.step",
        "verdict": "PASS",
        "reasons": [
          "height and body within the datasheet's package drawing"
        ],
        "by": "factory/package_fit.py"
      }
    }
  }
}