main
Ray Publish 0.1.0 915beec
{
  "slug": "stc12c5a60s2-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",
    "stc12c5a60s2-35i-pdip40",
    "factory-2.0.0",
    "extractor-text"
  ],
  "dependencies": {},
  "hero": {
    "type": "image",
    "path": "docs/hero.png"
  },
  "files": [
    "page.json",
    "README.md",
    "stc12c5a60s2-35i-pdip40.kicad_sym",
    "stc12c5a60s2-35i-pdip40.kicad_mod",
    "stc12c5a60s2-35i-pdip40.glb",
    "stc12c5a60s2-35i-pdip40.step",
    "stc12c5a60s2-35i-pdip40.lbr",
    "docs/hero.png",
    "docs/stc12c5a60s2-35i-pdip40-datasheet.pdf",
    "viewers/symbol.html",
    "viewers/footprint.html",
    "stc12c5a60s2-35i-pdip40-hero.glb",
    "stc12c5a60s2-35i-pdip40-hero.overlay.json"
  ],
  "component": {
    "mpn": "STC12C5A60S2-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": "stc12c5a60s2-35i-pdip40.kicad_sym",
      "footprint": "stc12c5a60s2-35i-pdip40.kicad_mod",
      "model_3d": "stc12c5a60s2-35i-pdip40-hero.glb",
      "model_3d_plain": "stc12c5a60s2-35i-pdip40.glb",
      "model_3d_step": "stc12c5a60s2-35i-pdip40-etched.step",
      "model_3d_step_plain": "stc12c5a60s2-35i-pdip40.step",
      "lbr": "stc12c5a60s2-35i-pdip40.lbr"
    },
    "distributor_links": {
      "lcsc": "C14550"
    },
    "distributor_check": {
      "checked_at": "2026-11-12T20:41:28Z",
      "source": "Component Ocean /api/assign-pns",
      "digikey": {
        "pn": null,
        "status": "no match"
      },
      "mouser": {
        "pn": null,
        "status": "no match"
      }
    },
    "pins": [
      {
        "number": "1",
        "name": "CLKOUT2/ADC0/P1.0",
        "type": "bidirectional",
        "description": "Port 1 bit 0 is a general I/O (mode set by P1M1/P1M0), also the CLKOUT2 clock output from the BRT overflow and ADC channel 0; ADC use requires setting the pin to open-drain or high-impedance input first."
      },
      {
        "number": "2",
        "name": "ADC1/P1.1",
        "type": "bidirectional",
        "description": "Port 1 bit 1 is a general I/O that doubles as ADC channel 1 input and must be set to open-drain or high-impedance input before being used for A/D conversion."
      },
      {
        "number": "3",
        "name": "RxD2/ECI/ADC2/P1.2",
        "type": "bidirectional",
        "description": "Port 1 bit 2 carries the UART2 receive input RxD2, the PCA external clock ECI and ADC channel 2; UART2 can be switched to P4.2 through AUXR1 bit 4 (S2_P4)."
      },
      {
        "number": "4",
        "name": "TxD2/CCP0/ADC3/P1.3",
        "type": "bidirectional",
        "description": "Port 1 bit 3 carries the UART2 transmit output TxD2, PCA module 0 CCP0 and ADC channel 3; UART2 can be switched to P4.3 through AUXR1 bit 4 (S2_P4)."
      },
      {
        "number": "5",
        "name": "SS/CCP1/ADC4/P1.4",
        "type": "bidirectional",
        "description": "Port 1 bit 4 carries the SPI slave select SS, PCA module 1 CCP1 and ADC channel 4; SPI can be moved to P4 through AUXR1 bit 5 (SPI_P4)."
      },
      {
        "number": "6",
        "name": "MOSI/ADC5/P1.5",
        "type": "bidirectional",
        "description": "Port 1 bit 5 carries the SPI master-out/slave-in line MOSI and ADC channel 5; it can be moved to P4.1 when SPI_P4 is set."
      },
      {
        "number": "7",
        "name": "MISO/ADC6/P1.6",
        "type": "bidirectional",
        "description": "Port 1 bit 6 carries the SPI master-in/slave-out line MISO and ADC channel 6; it can be moved to P4.2 when SPI_P4 is set."
      },
      {
        "number": "8",
        "name": "SCLK/ADC7/P1.7",
        "type": "bidirectional",
        "description": "Port 1 bit 7 carries the SPI clock SCLK and ADC channel 7; it can be moved to P4.3 when SPI_P4 is set."
      },
      {
        "number": "9",
        "name": "RST/P4.7",
        "type": "bidirectional",
        "description": "Reset input when configured as RST (ISP option); when used as P4.7 I/O an external crystal is required, and a 470 Ω to 1 kΩ pull-down is recommended to avoid download lockout."
      },
      {
        "number": "10",
        "name": "RxD/P3.0",
        "type": "bidirectional",
        "description": "Port 3 bit 0 carries the UART1 receive input RxD and can wake the part from power-down when RXD_PIN_IE is set."
      },
      {
        "number": "11",
        "name": "TxD/P3.1",
        "type": "bidirectional",
        "description": "Port 3 bit 1 carries the UART1 transmit output TxD."
      },
      {
        "number": "12",
        "name": "INT0/P3.2",
        "type": "bidirectional",
        "description": "Port 3 bit 2 carries external interrupt 0 INT0 and can wake the CPU from power-down mode."
      },
      {
        "number": "13",
        "name": "INT1/P3.3",
        "type": "bidirectional",
        "description": "Port 3 bit 3 carries external interrupt 1 INT1 and can wake the CPU from power-down mode."
      },
      {
        "number": "14",
        "name": "CLKOUT0/T0/P3.4",
        "type": "bidirectional",
        "description": "Port 3 bit 4 carries Timer 0 external input T0, the T0 clock output CLKOUT0 and a power-down wake function when T0_PIN_IE is set."
      },
      {
        "number": "15",
        "name": "CLKOUT1/T1/P3.5",
        "type": "bidirectional",
        "description": "Port 3 bit 5 carries Timer 1 external input T1, the T1 clock output CLKOUT1 and a power-down wake function when T1_PIN_IE is set."
      },
      {
        "number": "16",
        "name": "WR/P3.6",
        "type": "bidirectional",
        "description": "Port 3 bit 6 carries the external data memory write strobe WR, used only when external RAM is accessed by MOVX."
      },
      {
        "number": "17",
        "name": "RD/P3.7",
        "type": "bidirectional",
        "description": "Port 3 bit 7 carries the external data memory read strobe RD, used only when external RAM is accessed by MOVX."
      },
      {
        "number": "18",
        "name": "XTAL2",
        "type": "output",
        "description": "Output of the on-chip inverting oscillator amplifier for the external crystal; it is left floating when the internal R/C oscillator is selected."
      },
      {
        "number": "19",
        "name": "XTAL1",
        "type": "input",
        "description": "Input to the on-chip inverting oscillator amplifier and internal clock circuit; an external clock may be driven into XTAL1 with XTAL2 left floating."
      },
      {
        "number": "20",
        "name": "Gnd",
        "type": "power_in",
        "description": "Ground reference for the device."
      },
      {
        "number": "21",
        "name": "P2.0",
        "type": "bidirectional",
        "description": "Port 2 bit 0 is a general I/O configured by P2M1/P2M0 (quasi-bidirectional, push-pull, input-only or open-drain)."
      },
      {
        "number": "22",
        "name": "P2.1",
        "type": "bidirectional",
        "description": "Port 2 bit 1 is a general I/O configured by P2M1/P2M0 (quasi-bidirectional, push-pull, input-only or open-drain)."
      },
      {
        "number": "23",
        "name": "P2.2",
        "type": "bidirectional",
        "description": "Port 2 bit 2 is a general I/O configured by P2M1/P2M0 (quasi-bidirectional, push-pull, input-only or open-drain)."
      },
      {
        "number": "24",
        "name": "P2.3",
        "type": "bidirectional",
        "description": "Port 2 bit 3 is a general I/O configured by P2M1/P2M0 (quasi-bidirectional, push-pull, input-only or open-drain)."
      },
      {
        "number": "25",
        "name": "P2.4",
        "type": "bidirectional",
        "description": "Port 2 bit 4 is a general I/O configured by P2M1/P2M0 (quasi-bidirectional, push-pull, input-only or open-drain)."
      },
      {
        "number": "26",
        "name": "P2.5",
        "type": "bidirectional",
        "description": "Port 2 bit 5 is a general I/O configured by P2M1/P2M0 (quasi-bidirectional, push-pull, input-only or open-drain)."
      },
      {
        "number": "27",
        "name": "P2.6",
        "type": "bidirectional",
        "description": "Port 2 bit 6 is a general I/O configured by P2M1/P2M0 (quasi-bidirectional, push-pull, input-only or open-drain)."
      },
      {
        "number": "28",
        "name": "P2.7",
        "type": "bidirectional",
        "description": "Port 2 bit 7 is a general I/O configured by P2M1/P2M0 (quasi-bidirectional, push-pull, input-only or open-drain)."
      },
      {
        "number": "29",
        "name": "P4.4/NA",
        "type": "bidirectional",
        "description": "Port 4 bit 4 is a weak-pull-up pin with no function after reset; setting P4SW.4 = 1 makes it a general I/O."
      },
      {
        "number": "30",
        "name": "P4.5/ALE",
        "type": "bidirectional",
        "description": "Port 4 bit 5 outputs ALE only during MOVX accesses to external devices; setting P4SW.5 = 1 makes it a general I/O."
      },
      {
        "number": "31",
        "name": "P4.6/EX_LVD/RST2",
        "type": "bidirectional",
        "description": "Port 4 bit 6 carries the second reset input RST2 and the external low-voltage detect input EX_LVD; setting P4SW.6 = 1 makes it a general I/O."
      },
      {
        "number": "32",
        "name": "P0.7",
        "type": "bidirectional",
        "description": "Port 0 bit 7 is a general I/O configured by P0M1/P0M0, and each I/O pin can sink up to 20 mA while the whole chip must not exceed 100 mA."
      },
      {
        "number": "33",
        "name": "P0.6",
        "type": "bidirectional",
        "description": "Port 0 bit 6 is a general I/O configured by P0M1/P0M0, and each I/O pin can sink up to 20 mA while the whole chip must not exceed 100 mA."
      },
      {
        "number": "34",
        "name": "P0.5",
        "type": "bidirectional",
        "description": "Port 0 bit 5 is a general I/O configured by P0M1/P0M0, and each I/O pin can sink up to 20 mA while the whole chip must not exceed 100 mA."
      },
      {
        "number": "35",
        "name": "P0.4",
        "type": "bidirectional",
        "description": "Port 0 bit 4 is a general I/O configured by P0M1/P0M0, and each I/O pin can sink up to 20 mA while the whole chip must not exceed 100 mA."
      },
      {
        "number": "36",
        "name": "P0.3",
        "type": "bidirectional",
        "description": "Port 0 bit 3 is a general I/O configured by P0M1/P0M0, and each I/O pin can sink up to 20 mA while the whole chip must not exceed 100 mA."
      },
      {
        "number": "37",
        "name": "P0.2",
        "type": "bidirectional",
        "description": "Port 0 bit 2 is a general I/O configured by P0M1/P0M0, and each I/O pin can sink up to 20 mA while the whole chip must not exceed 100 mA."
      },
      {
        "number": "38",
        "name": "P0.1",
        "type": "bidirectional",
        "description": "Port 0 bit 1 is a general I/O configured by P0M1/P0M0, and each I/O pin can sink up to 20 mA while the whole chip must not exceed 100 mA."
      },
      {
        "number": "39",
        "name": "P0.0",
        "type": "bidirectional",
        "description": "Port 0 bit 0 is a general I/O configured by P0M1/P0M0, and each I/O pin can sink up to 20 mA while the whole chip must not exceed 100 mA."
      },
      {
        "number": "40",
        "name": "Vcc",
        "type": "power_in",
        "description": "Positive supply; the 5 V family (STC12C5A60S2) is specified at 5.5 V to 3.5 V per 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: Pin numbers were taken from the PDIP40 diagram text on page 48, where the numbers 1–20 and 40–21 are; The datasheet gives no per-pin electrical limits (absolute max, VIH/VIL, leakage). The descriptions ; RST/P4.7 is typed bidirectional because it is reset input or P4.7 I/O depending on ISP setting; the "
        ],
        "pages_sent": 123,
        "cost_usd": 0.252,
        "at": "2026-11-12T20:41:02"
      },
      "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": "stc12c5a60s2-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": "6aa5ca911cb14667dfadc31d3db6ca9c3bd4c94f31982a8f5a8ff18bca657fd3",
        "checked": "2026-11-12",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      },
      {
        "file": "stc12c5a60s2-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": "d5ab6f6397de1b3ad9f043a285f6063761de6565f506300e90f6d16b29ca2e39",
        "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), stc12c5a60s2-35i-pdip40.dims.json)",
      "model_check": {
        "file": "stc12c5a60s2-35i-pdip40.step",
        "verdict": "PASS",
        "reasons": [
          "height and body within the datasheet's package drawing"
        ],
        "by": "factory/package_fit.py"
      }
    }
  }
}