main
Ray Publish 0.1.0 5713a8b 9d ago
{
  "slug": "stc89c516rd-40i-pdip40",
  "version": "0.1.0",
  "type": "component",
  "description": "STC Micro Microcontrollers (MCU/MPU/SOC), DIP-40. Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
  "tags": [
    "component",
    "embedded processors & controllers",
    "stc89c516rd+40i-pdip40",
    "factory-2.0.0",
    "extractor-text"
  ],
  "dependencies": {},
  "hero": {
    "type": "image",
    "path": "docs/hero.png"
  },
  "files": [
    "page.json",
    "README.md",
    "stc89c516rd-40i-pdip40.kicad_sym",
    "stc89c516rd-40i-pdip40.kicad_mod",
    "stc89c516rd-40i-pdip40.glb",
    "stc89c516rd-40i-pdip40.step",
    "stc89c516rd-40i-pdip40.lbr",
    "docs/hero.png",
    "docs/stc89c516rd-40i-pdip40-datasheet.pdf",
    "viewers/symbol.html",
    "viewers/footprint.html",
    "stc89c516rd-40i-pdip40-hero.glb",
    "stc89c516rd-40i-pdip40-hero.overlay.json",
    "stc89c516rd-40i-pdip40-etched.glb"
  ],
  "component": {
    "mpn": "STC89C516RD+40I-PDIP40",
    "manufacturer": "STC Micro",
    "package": "DIP-40",
    "pin_count": 40,
    "category": "Embedded Processors & Controllers",
    "subcategory": "Microcontrollers (MCU/MPU/SOC)",
    "datasheet": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8756361976966856704",
    "parts": {
      "symbol": "stc89c516rd-40i-pdip40.kicad_sym",
      "footprint": "stc89c516rd-40i-pdip40.kicad_mod",
      "model_3d": "stc89c516rd-40i-pdip40-hero.glb",
      "model_3d_plain": "stc89c516rd-40i-pdip40-etched.glb",
      "model_3d_step": "stc89c516rd-40i-pdip40-etched.step",
      "model_3d_step_plain": "stc89c516rd-40i-pdip40.step",
      "lbr": "stc89c516rd-40i-pdip40.lbr"
    },
    "distributor_links": {
      "lcsc": "C52225"
    },
    "distributor_check": {
      "checked_at": "2026-10-17T23:18:43Z",
      "source": "Component Ocean /api/assign-pns",
      "digikey": {
        "pn": null,
        "status": "quota"
      },
      "mouser": {
        "pn": null,
        "status": "quota"
      }
    },
    "pins": [
      {
        "number": "1",
        "name": "P1.0/T2",
        "type": "bidirectional",
        "description": "Standard I/O port bit P1.0, quasi-bidirectional with weak pull-up after power-on reset; also the external input of Timer/Counter 2 (T2)."
      },
      {
        "number": "2",
        "name": "P1.1/T2EX",
        "type": "bidirectional",
        "description": "Standard I/O port bit P1.1; also T2EX, the Timer 2 capture/reload trigger input."
      },
      {
        "number": "3",
        "name": "P1.2",
        "type": "bidirectional",
        "description": "Standard I/O port bit P1.2 (PORT1[2]), quasi-bidirectional with weak pull-up after power-on reset."
      },
      {
        "number": "4",
        "name": "P1.3",
        "type": "bidirectional",
        "description": "Standard I/O port bit P1.3 (PORT1[3]), quasi-bidirectional with weak pull-up after power-on reset."
      },
      {
        "number": "5",
        "name": "P1.4",
        "type": "bidirectional",
        "description": "Standard I/O port bit P1.4 (PORT1[4]), quasi-bidirectional with weak pull-up after power-on reset."
      },
      {
        "number": "6",
        "name": "P1.5",
        "type": "bidirectional",
        "description": "Standard I/O port bit P1.5 (PORT1[5]), quasi-bidirectional with weak pull-up after power-on reset."
      },
      {
        "number": "7",
        "name": "P1.6",
        "type": "bidirectional",
        "description": "Standard I/O port bit P1.6 (PORT1[6]), quasi-bidirectional with weak pull-up after power-on reset."
      },
      {
        "number": "8",
        "name": "P1.7",
        "type": "bidirectional",
        "description": "Standard I/O port bit P1.7 (PORT1[7]), quasi-bidirectional with weak pull-up after power-on reset."
      },
      {
        "number": "9",
        "name": "RST",
        "type": "input",
        "description": "Reset pin; holding RST high for at least 24 clock cycles plus 10 us places the MCU in reset."
      },
      {
        "number": "10",
        "name": "RxD/P3.0",
        "type": "bidirectional",
        "description": "Standard I/O port bit P3.0; also RxD, the serial port 1 receive data input."
      },
      {
        "number": "11",
        "name": "TxD/P3.1",
        "type": "bidirectional",
        "description": "Standard I/O port bit P3.1; also TxD, the serial port 1 transmit data output."
      },
      {
        "number": "12",
        "name": "INT0/P3.2",
        "type": "bidirectional",
        "description": "Standard I/O port bit P3.2; also INT0, external interrupt 0 (falling-edge or low-level triggered)."
      },
      {
        "number": "13",
        "name": "INT1/P3.3",
        "type": "bidirectional",
        "description": "Standard I/O port bit P3.3; also INT1, external interrupt 1 (falling-edge or low-level triggered)."
      },
      {
        "number": "14",
        "name": "T0/P3.4",
        "type": "bidirectional",
        "description": "Standard I/O port bit P3.4; also T0, the external input of Timer/Counter 0."
      },
      {
        "number": "15",
        "name": "T1/P3.5",
        "type": "bidirectional",
        "description": "Standard I/O port bit P3.5; also T1, the external input of Timer/Counter 1."
      },
      {
        "number": "16",
        "name": "WR/P3.6",
        "type": "bidirectional",
        "description": "Standard I/O port bit P3.6; also WR, the external data memory write strobe output."
      },
      {
        "number": "17",
        "name": "RD/P3.7",
        "type": "bidirectional",
        "description": "Standard I/O port bit P3.7; also RD, the external data memory read strobe output."
      },
      {
        "number": "18",
        "name": "XTAL2",
        "type": "output",
        "description": "Output of the internal inverting oscillator amplifier for the external crystal; left floating when an external clock is driven into XTAL1."
      },
      {
        "number": "19",
        "name": "XTAL1",
        "type": "input",
        "description": "Input to the internal inverting oscillator amplifier, connected to one crystal pin; it is the clock input when an external clock source is used."
      },
      {
        "number": "20",
        "name": "Gnd",
        "type": "power_in",
        "description": "Power supply negative terminal, connected to ground."
      },
      {
        "number": "21",
        "name": "P2.0/A8",
        "type": "bidirectional",
        "description": "Port 2 bit P2.0 with internal pull-up; drives address line A8 of the high address byte when external memory is used."
      },
      {
        "number": "22",
        "name": "P2.1/A9",
        "type": "bidirectional",
        "description": "Port 2 bit P2.1 with internal pull-up; drives address line A9 when external memory is used."
      },
      {
        "number": "23",
        "name": "P2.2/A10",
        "type": "bidirectional",
        "description": "Port 2 bit P2.2 with internal pull-up; drives address line A10 when external memory is used."
      },
      {
        "number": "24",
        "name": "P2.3/A11",
        "type": "bidirectional",
        "description": "Port 2 bit P2.3 with internal pull-up; drives address line A11 when external memory is used."
      },
      {
        "number": "25",
        "name": "P2.4/A12",
        "type": "bidirectional",
        "description": "Port 2 bit P2.4 with internal pull-up; drives address line A12 when external memory is used."
      },
      {
        "number": "26",
        "name": "P2.5/A13",
        "type": "bidirectional",
        "description": "Port 2 bit P2.5 with internal pull-up; drives address line A13 when external memory is used."
      },
      {
        "number": "27",
        "name": "P2.6/A14",
        "type": "bidirectional",
        "description": "Port 2 bit P2.6 with internal pull-up; drives address line A14 when external memory is used."
      },
      {
        "number": "28",
        "name": "P2.7/A15",
        "type": "bidirectional",
        "description": "Port 2 bit P2.7 with internal pull-up; drives address line A15 when external memory is used."
      },
      {
        "number": "29",
        "name": "P4.4/PSEN",
        "type": "bidirectional",
        "description": "Port 4 bit P4.4 (90C version) or the PSEN external program memory select strobe output (HD version); the pin function depends on the version."
      },
      {
        "number": "30",
        "name": "P4.5/ALE",
        "type": "bidirectional",
        "description": "Port 4 bit P4.5 (90C version, ALE default function must be changed in AiCube-ISP) or the ALE address latch enable output (HD version); the function depends on the version."
      },
      {
        "number": "31",
        "name": "P4.6/EA",
        "type": "bidirectional",
        "description": "Port 4 bit P4.6 (90C version) or the EA internal/external memory select input (HD version); the function depends on the version."
      },
      {
        "number": "32",
        "name": "P0.7/AD7",
        "type": "bidirectional",
        "description": "Port 0 bit P0.7: open-drain after reset and needs a 10K-4.7K pull-up when used as I/O; multiplexed as data/address bit AD7 without an external pull-up."
      },
      {
        "number": "33",
        "name": "P0.6/AD6",
        "type": "bidirectional",
        "description": "Port 0 bit P0.6: open-drain after reset and needs a 10K-4.7K pull-up when used as I/O; multiplexed as data/address bit AD6 without an external pull-up."
      },
      {
        "number": "34",
        "name": "P0.5/AD5",
        "type": "bidirectional",
        "description": "Port 0 bit P0.5: open-drain after reset and needs a 10K-4.7K pull-up when used as I/O; multiplexed as data/address bit AD5 without an external pull-up."
      },
      {
        "number": "35",
        "name": "P0.4/AD4",
        "type": "bidirectional",
        "description": "Port 0 bit P0.4: open-drain after reset and needs a 10K-4.7K pull-up when used as I/O; multiplexed as data/address bit AD4 without an external pull-up."
      },
      {
        "number": "36",
        "name": "P0.3/AD3",
        "type": "bidirectional",
        "description": "Port 0 bit P0.3: open-drain after reset and needs a 10K-4.7K pull-up when used as I/O; multiplexed as data/address bit AD3 without an external pull-up."
      },
      {
        "number": "37",
        "name": "P0.2/AD2",
        "type": "bidirectional",
        "description": "Port 0 bit P0.2: open-drain after reset and needs a 10K-4.7K pull-up when used as I/O; multiplexed as data/address bit AD2 without an external pull-up."
      },
      {
        "number": "38",
        "name": "P0.1/AD1",
        "type": "bidirectional",
        "description": "Port 0 bit P0.1: open-drain after reset and needs a 10K-4.7K pull-up when used as I/O; multiplexed as data/address bit AD1 without an external pull-up."
      },
      {
        "number": "39",
        "name": "P0.0/AD0",
        "type": "bidirectional",
        "description": "Port 0 bit P0.0: open-drain after reset and needs a 10K-4.7K pull-up when used as I/O; multiplexed as data/address bit AD0 without an external pull-up."
      },
      {
        "number": "40",
        "name": "Vcc",
        "type": "power_in",
        "description": "Power supply positive terminal; the 5V C-suffix part is specified for 5.5 V to 3.3 V operation in the selection table."
      }
    ],
    "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: Pins 29-31 depend on the die version. The 90C version has P4.4, P4.5/ALE and P4.6 on these pins, whi; The datasheet's PDIP-40 pinout diagrams and pin table give no P4.0-P4.3 pins for this package, so no"
        ],
        "pages_sent": 134,
        "cost_usd": 0.908,
        "at": "2026-10-17T23:17:19"
      },
      "datasheet": {
        "url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8756361976966856704",
        "pages": 1691,
        "sha256": "fac7be430b93e2dd",
        "source_tier": "lcsc"
      },
      "cad": "KiCad official (CC-BY-SA 4.0)",
      "pins": {
        "total": 40,
        "described": 40,
        "cites_pages": true,
        "refuses_to_fabricate": true
      }
    },
    "viewers": {
      "symbol": "viewers/symbol.html",
      "footprint": "viewers/footprint.html"
    },
    "models_3d": [
      {
        "file": "stc89c516rd-40i-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": [
          25.4,
          50.8,
          6.98
        ],
        "zmin_mm": -3.3,
        "centre_offset_mm": 0.127,
        "footprint_binding": "identity",
        "sha256": "114010029e96b840de5e76a4e7f09f46a19e6db723f6d096bd70dbeb8ce0aff9",
        "checked": "2026-10-17",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      },
      {
        "file": "stc89c516rd-40i-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": [
          25.4,
          50.8,
          6.98
        ],
        "zmin_mm": -3.3,
        "centre_offset_mm": 0.127,
        "footprint_binding": "identity",
        "sha256": "9a71d910befdc75b1753485fd471cb651a92e29b3b9061840d5cb5f97dd418a6",
        "checked": "2026-10-17",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      }
    ]
  }
}