main
Ray Publish 0.1.0 63b3d6d
{
  "slug": "stc12c5a32s2-35i-pdip40",
  "version": "0.1.0",
  "type": "component",
  "description": "STC Micro Microcontroller Units (MCUs/MPUs/SOCs), DIP-40. Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
  "tags": [
    "component",
    "embedded processors & controllers",
    "stc12c5a32s2-35i-pdip40",
    "factory-2.0.0",
    "extractor-text"
  ],
  "dependencies": {},
  "hero": {
    "type": "image",
    "path": "docs/hero.png"
  },
  "files": [
    "page.json",
    "README.md",
    "stc12c5a32s2-35i-pdip40.kicad_sym",
    "stc12c5a32s2-35i-pdip40.kicad_mod",
    "stc12c5a32s2-35i-pdip40.glb",
    "stc12c5a32s2-35i-pdip40.step",
    "stc12c5a32s2-35i-pdip40.lbr",
    "docs/hero.png",
    "docs/stc12c5a32s2-35i-pdip40-datasheet.pdf",
    "viewers/symbol.html",
    "viewers/footprint.html",
    "stc12c5a32s2-35i-pdip40-hero.glb",
    "stc12c5a32s2-35i-pdip40-hero.overlay.json"
  ],
  "component": {
    "mpn": "STC12C5A32S2-35I-PDIP40",
    "manufacturer": "STC Micro",
    "package": "DIP-40",
    "pin_count": 40,
    "category": "Embedded Processors & Controllers",
    "subcategory": "Microcontroller Units (MCUs/MPUs/SOCs)",
    "datasheet": "https://datasheet.lcsc.com/datasheet/pdf/02701df9a7b1d205cdff5187053fcc09.pdf",
    "parts": {
      "symbol": "stc12c5a32s2-35i-pdip40.kicad_sym",
      "footprint": "stc12c5a32s2-35i-pdip40.kicad_mod",
      "model_3d": "stc12c5a32s2-35i-pdip40-hero.glb",
      "model_3d_plain": "stc12c5a32s2-35i-pdip40.glb",
      "model_3d_step": "stc12c5a32s2-35i-pdip40-etched.step",
      "model_3d_step_plain": "stc12c5a32s2-35i-pdip40.step",
      "lbr": "stc12c5a32s2-35i-pdip40.lbr"
    },
    "distributor_links": {
      "lcsc": "C66940"
    },
    "distributor_check": {
      "checked_at": "2026-11-12T20:44:05Z",
      "source": "Component Ocean /api/assign-pns",
      "digikey": {
        "pn": null,
        "status": "no match"
      },
      "mouser": {
        "pn": null,
        "status": "no match"
      }
    },
    "pins": [
      {
        "number": "1",
        "name": "P1.0",
        "type": "bidirectional",
        "description": "P1.0 general I/O with ADC0 analog input and CLKOUT2 (BRT clock output); set to open-drain or high-impedance input when used as ADC."
      },
      {
        "number": "2",
        "name": "P1.1",
        "type": "bidirectional",
        "description": "P1.1 general I/O with ADC1 analog input."
      },
      {
        "number": "3",
        "name": "P1.2",
        "type": "bidirectional",
        "description": "P1.2 general I/O with ADC2 input, ECI (PCA external clock input) and RxD2 (UART2 receive)."
      },
      {
        "number": "4",
        "name": "P1.3",
        "type": "bidirectional",
        "description": "P1.3 general I/O with ADC3 input, CCP0 (PCA/PWM channel 0) and TxD2 (UART2 transmit)."
      },
      {
        "number": "5",
        "name": "P1.4",
        "type": "bidirectional",
        "description": "P1.4 general I/O with ADC4 input, CCP1 (PCA/PWM channel 1) and SPI SS."
      },
      {
        "number": "6",
        "name": "P1.5",
        "type": "bidirectional",
        "description": "P1.5 general I/O with ADC5 input and SPI MOSI."
      },
      {
        "number": "7",
        "name": "P1.6",
        "type": "bidirectional",
        "description": "P1.6 general I/O with ADC6 input and SPI MISO."
      },
      {
        "number": "8",
        "name": "P1.7",
        "type": "bidirectional",
        "description": "P1.7 general I/O with ADC7 input and SPI SCLK."
      },
      {
        "number": "9",
        "name": "RST/P4.7",
        "type": "input",
        "description": "Reset pin or P4.7 I/O, selected at ISP programming time; if set as P4.7 an external clock must be used."
      },
      {
        "number": "10",
        "name": "P3.0",
        "type": "bidirectional",
        "description": "P3.0 general I/O and RxD (UART1 receive); also INT-style power-down wakeup pin."
      },
      {
        "number": "11",
        "name": "P3.1",
        "type": "bidirectional",
        "description": "P3.1 general I/O and TxD (UART1 transmit)."
      },
      {
        "number": "12",
        "name": "P3.2",
        "type": "bidirectional",
        "description": "P3.2 general I/O and INT0 external interrupt 0; can wake the CPU from power-down."
      },
      {
        "number": "13",
        "name": "P3.3",
        "type": "bidirectional",
        "description": "P3.3 general I/O and INT1 external interrupt 1; can wake the CPU from power-down."
      },
      {
        "number": "14",
        "name": "P3.4",
        "type": "bidirectional",
        "description": "P3.4 general I/O with T0 input and CLKOUT0 (Timer0 overflow clock output); can wake from power-down."
      },
      {
        "number": "15",
        "name": "P3.5",
        "type": "bidirectional",
        "description": "P3.5 general I/O with T1 input and CLKOUT1 (Timer1 overflow clock output); can wake from power-down."
      },
      {
        "number": "16",
        "name": "P3.6",
        "type": "bidirectional",
        "description": "P3.6 general I/O and WR (external data memory write strobe)."
      },
      {
        "number": "17",
        "name": "P3.7",
        "type": "bidirectional",
        "description": "P3.7 general I/O and RD (external data memory read strobe)."
      },
      {
        "number": "18",
        "name": "XTAL2",
        "type": "passive",
        "description": "Crystal oscillator output; leave floating when an external clock is driven on XTAL1 or the internal RC is used."
      },
      {
        "number": "19",
        "name": "XTAL1",
        "type": "input",
        "description": "Crystal oscillator input or external clock input."
      },
      {
        "number": "20",
        "name": "Gnd",
        "type": "power_in",
        "description": "Ground."
      },
      {
        "number": "21",
        "name": "P2.0",
        "type": "bidirectional",
        "description": "P2.0 general I/O (port 2, external memory address high byte)."
      },
      {
        "number": "22",
        "name": "P2.1",
        "type": "bidirectional",
        "description": "P2.1 general I/O (port 2)."
      },
      {
        "number": "23",
        "name": "P2.2",
        "type": "bidirectional",
        "description": "P2.2 general I/O (port 2)."
      },
      {
        "number": "24",
        "name": "P2.3",
        "type": "bidirectional",
        "description": "P2.3 general I/O (port 2)."
      },
      {
        "number": "25",
        "name": "P2.4",
        "type": "bidirectional",
        "description": "P2.4 general I/O (port 2)."
      },
      {
        "number": "26",
        "name": "P2.5",
        "type": "bidirectional",
        "description": "P2.5 general I/O (port 2)."
      },
      {
        "number": "27",
        "name": "P2.6",
        "type": "bidirectional",
        "description": "P2.6 general I/O (port 2)."
      },
      {
        "number": "28",
        "name": "P2.7",
        "type": "bidirectional",
        "description": "P2.7 general I/O (port 2)."
      },
      {
        "number": "29",
        "name": "P4.4/NA",
        "type": "bidirectional",
        "description": "After reset P4.4 is a weak pull-up with no function; setting P4SW.4=1 makes it I/O P4.4."
      },
      {
        "number": "30",
        "name": "P4.5/ALE",
        "type": "bidirectional",
        "description": "After reset ALE signal output only during MOVX external access; setting P4SW.5=1 makes it I/O P4.5."
      },
      {
        "number": "31",
        "name": "P4.6/EX_LVD/RST2",
        "type": "bidirectional",
        "description": "External low-voltage detect / second reset pin after reset (threshold about 1.32V at 5V); setting P4SW.6=1 makes it I/O P4.6."
      },
      {
        "number": "32",
        "name": "P0.7",
        "type": "bidirectional",
        "description": "P0.7 general I/O (port 0, external bus data/address)."
      },
      {
        "number": "33",
        "name": "P0.6",
        "type": "bidirectional",
        "description": "P0.6 general I/O (port 0)."
      },
      {
        "number": "34",
        "name": "P0.5",
        "type": "bidirectional",
        "description": "P0.5 general I/O (port 0)."
      },
      {
        "number": "35",
        "name": "P0.4",
        "type": "bidirectional",
        "description": "P0.4 general I/O (port 0)."
      },
      {
        "number": "36",
        "name": "P0.3",
        "type": "bidirectional",
        "description": "P0.3 general I/O (port 0)."
      },
      {
        "number": "37",
        "name": "P0.2",
        "type": "bidirectional",
        "description": "P0.2 general I/O (port 0)."
      },
      {
        "number": "38",
        "name": "P0.1",
        "type": "bidirectional",
        "description": "P0.1 general I/O (port 0)."
      },
      {
        "number": "39",
        "name": "P0.0",
        "type": "bidirectional",
        "description": "P0.0 general I/O (port 0)."
      },
      {
        "number": "40",
        "name": "Vcc",
        "type": "power_in",
        "description": "Positive supply, 5.5V to 3.5V for the STC12C5A series."
      }
    ],
    "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",
        "consensus_model": "claude-sonnet-5-5",
        "consensus": "agreed",
        "guards": "pin_guards 0.1: passed",
        "guard_notes": [
          "extractor flagged: The PDIP40 pin numbers were read from the pinout diagram on page 48, where numbers and names are in ; The datasheet covers the STC12C5A60S2 family. The STC12C5A32S2-35I part has the same PDIP40 pinout, ; The pin electrical types are my inference, not printed in the datasheet. XTAL1 and XTAL2 are typed i",
          "1/40 pins cited to the wrong page (name found elsewhere): ['19:XTAL1@p144']"
        ],
        "pages_sent": 123,
        "cost_usd": 0.7805,
        "at": "2026-11-12T20:43:37"
      },
      "datasheet": {
        "url": "https://datasheet.lcsc.com/datasheet/pdf/02701df9a7b1d205cdff5187053fcc09.pdf",
        "pages": 1543,
        "sha256": "7fde44da8887b7a0",
        "source_tier": "lcsc"
      },
      "cad": "land: KiCad official (CC-BY-SA 4.0); 3D: generated from the datasheet",
      "model_3d_generated": {
        "generator": "factory/gen_pkg3d.py",
        "family": "(?<![A-Z])P?DIP",
        "height_mm": 4.83,
        "height_basis": "datasheet A, max",
        "standoff_mm": 0.445,
        "standoff_basis": "datasheet A1, nominal"
      },
      "pins": {
        "total": 40,
        "described": 40,
        "cites_pages": true,
        "refuses_to_fabricate": true
      }
    },
    "viewers": {
      "symbol": "viewers/symbol.html",
      "footprint": "viewers/footprint.html"
    },
    "models_3d": [
      {
        "file": "stc12c5a32s2-35i-pdip40.step",
        "role": "plain",
        "up": "Z",
        "units": "mm",
        "origin": "footprint origin = pad-pattern centre",
        "seat": "body on z = 0, through-hole leads below",
        "extents_mm": [
          15.49,
          52.0,
          7.83
        ],
        "zmin_mm": -3.0,
        "centre_offset_mm": 0.0,
        "footprint_binding": "identity",
        "sha256": "bbe5e09b5367427fda8dded50dcc70ef7b46fc267fa834be1982d82f4b663e6f",
        "checked": "2026-11-12",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      },
      {
        "file": "stc12c5a32s2-35i-pdip40-etched.step",
        "role": "eda",
        "up": "Z",
        "units": "mm",
        "origin": "footprint origin = pad-pattern centre",
        "seat": "body on z = 0, through-hole leads below",
        "extents_mm": [
          15.49,
          52.0,
          7.83
        ],
        "zmin_mm": -3.0,
        "centre_offset_mm": 0.0,
        "footprint_binding": "identity",
        "sha256": "8465d4bb7efd8bfccdda3dc2326448d34420d1004439b6abbb7f81de3a0efd9e",
        "checked": "2026-11-12",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      }
    ],
    "package_dims": {
      "package_code": "-PDIP40 suffix; selection table lists STC12C5A60S2 and STC12C5A32S2 both in PDIP40, same series manual",
      "source_page": 103,
      "D": {
        "nom_mm": 52.0,
        "range_mm": [
          51.5,
          52.5
        ]
      },
      "E1": {
        "nom_mm": 13.84,
        "range_mm": [
          13.72,
          13.97
        ]
      },
      "E": {
        "nom_mm": 15.24,
        "range_mm": [
          null,
          null
        ]
      },
      "A": {
        "nom_mm": 4.83,
        "range_mm": [
          null,
          4.83
        ]
      },
      "source": "reviewer dims decision (part-reviewer (ray review), stc12c5a32s2-35i-pdip40.dims.json)",
      "model_check": {
        "file": "stc12c5a32s2-35i-pdip40.step",
        "verdict": "PASS",
        "reasons": [
          "height and body within the datasheet's package drawing"
        ],
        "by": "factory/package_fit.py"
      }
    }
  }
}