main
Ray Publish 0.1.0 2fe7f4f 8d ago
{
  "slug": "stc15h2k64s4-36i-sop28",
  "version": "0.1.0",
  "type": "component",
  "description": "STC Micro Microcontrollers (MCU/MPU/SOC), SOP-28. Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
  "tags": [
    "component",
    "embedded processors & controllers",
    "stc15h2k64s4-36i-sop28",
    "factory-2.0.0",
    "extractor-text"
  ],
  "dependencies": {},
  "hero": {
    "type": "image",
    "path": "docs/hero.png"
  },
  "files": [
    "page.json",
    "README.md",
    "stc15h2k64s4-36i-sop28.kicad_sym",
    "stc15h2k64s4-36i-sop28.kicad_mod",
    "stc15h2k64s4-36i-sop28.glb",
    "stc15h2k64s4-36i-sop28.step",
    "stc15h2k64s4-36i-sop28.lbr",
    "docs/hero.png",
    "docs/stc15h2k64s4-36i-sop28-datasheet.pdf",
    "viewers/symbol.html",
    "viewers/footprint.html",
    "stc15h2k64s4-36i-sop28-hero.glb",
    "stc15h2k64s4-36i-sop28-hero.overlay.json",
    "stc15h2k64s4-36i-sop28-etched.glb"
  ],
  "component": {
    "mpn": "STC15H2K64S4-36I-SOP28",
    "manufacturer": "STC Micro",
    "package": "SOP-28",
    "pin_count": 28,
    "category": "Embedded Processors & Controllers",
    "subcategory": "Microcontrollers (MCU/MPU/SOC)",
    "datasheet": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8603394997840998400",
    "parts": {
      "symbol": "stc15h2k64s4-36i-sop28.kicad_sym",
      "footprint": "stc15h2k64s4-36i-sop28.kicad_mod",
      "model_3d": "stc15h2k64s4-36i-sop28-hero.glb",
      "model_3d_plain": "stc15h2k64s4-36i-sop28-etched.glb",
      "model_3d_step": "stc15h2k64s4-36i-sop28-etched.step",
      "model_3d_step_plain": "stc15h2k64s4-36i-sop28.step",
      "lbr": "stc15h2k64s4-36i-sop28.lbr"
    },
    "distributor_links": {
      "lcsc": "C22472739"
    },
    "distributor_check": {
      "checked_at": "2026-10-19T08:50:40Z",
      "source": "Component Ocean /api/assign-pns",
      "digikey": {
        "pn": null,
        "status": "error"
      },
      "mouser": {
        "pn": null,
        "status": "no match"
      }
    },
    "pins": [
      {
        "number": "1",
        "name": "P2.6/PWM26/A14/CCP1_3",
        "type": "bidirectional",
        "description": "General-purpose I/O P2.6 (alternates PWM26, CCP1_3, A14) that powers up as a high-impedance input and must have its mode set before use."
      },
      {
        "number": "2",
        "name": "P2.7/PWM27/A15/CCP2_3",
        "type": "bidirectional",
        "description": "General-purpose I/O P2.7 (alternates PWM27, CCP2_3, A15) that powers up as a high-impedance input and must have its mode set before use."
      },
      {
        "number": "3",
        "name": "P1.0",
        "type": "bidirectional",
        "description": "General-purpose I/O P1.0 (alternates UART2 RxD2, CCP1, ADC channel 0, PWM10) that powers up as a high-impedance input and must have its mode set before use."
      },
      {
        "number": "4",
        "name": "P1.1",
        "type": "bidirectional",
        "description": "General-purpose I/O P1.1 (alternates UART2 TxD2, CCP0, ADC channel 1, PWM11) that powers up as a high-impedance input and must have its mode set before use."
      },
      {
        "number": "5",
        "name": "P1.2",
        "type": "bidirectional",
        "description": "General-purpose I/O P1.2 (alternates Timer 2 external count input T2, SPI SS, ECI, ADC channel 2, PWM12) that powers up as a high-impedance input and must have its mode set before use."
      },
      {
        "number": "6",
        "name": "P1.3",
        "type": "bidirectional",
        "description": "General-purpose I/O P1.3 (alternates T2CLKO, SPI MOSI, ADC channel 3, PWM13) that powers up as a high-impedance input and must have its mode set before use."
      },
      {
        "number": "7",
        "name": "P1.4",
        "type": "bidirectional",
        "description": "General-purpose I/O P1.4 (alternates I2C SDA, SPI MISO, ADC channel 4, PWM14) that powers up as a high-impedance input and can also wake the MCU from power-down via I2C SDA falling edge."
      },
      {
        "number": "8",
        "name": "P1.5",
        "type": "bidirectional",
        "description": "General-purpose I/O P1.5 (alternates I2C SCL, SPI SCLK, ADC channel 5, PWM15) that powers up as a high-impedance input and must have its mode set before use."
      },
      {
        "number": "9",
        "name": "P1.6",
        "type": "bidirectional",
        "description": "General-purpose I/O P1.6 that serves as XTALO crystal output when a crystal is used, and is fixed as a high-impedance input when external clock mode (XITYPE=0) is selected."
      },
      {
        "number": "10",
        "name": "P1.7",
        "type": "bidirectional",
        "description": "General-purpose I/O P1.7 that serves as XTALI crystal or external clock input when the external oscillator is enabled, and otherwise is available as ADC channel 7 or PWM17."
      },
      {
        "number": "11",
        "name": "P5.4",
        "type": "bidirectional",
        "description": "P5.4 is a general-purpose I/O by default and becomes an active-low reset input (nRST) when the RST pin function is selected in RSTCFG; in reset mode its internal 4K pull-up stays enabled, while as I/O its pull-up is on for about 6.5 ms after power-up."
      },
      {
        "number": "12",
        "name": "Vcc/AVcc/ADC_VRef+",
        "type": "power_in",
        "description": "Main MCU supply (Vcc, also AVcc and ADC_VRef+); the datasheet gives an operating range of 1.9 V to 5.5 V, and ADC_VRef+ must be tied to an external reference of 2.4 V to MCU-VCC or directly to VCC, never left floating."
      },
      {
        "number": "13",
        "name": "P5.2",
        "type": "bidirectional",
        "description": "General-purpose I/O P5.2 (alternates UART4 RxD4_2 and PWM52) that powers up as a high-impedance input and must have its mode set before use."
      },
      {
        "number": "14",
        "name": "Gnd/AGnd",
        "type": "power_in",
        "description": "Ground reference for the digital core and analog ground (AGnd); the datasheet requires the ADC analog ground to be connected to system ground with a short, thick trace."
      },
      {
        "number": "15",
        "name": "P3.0/PWM30/RxD/INT4",
        "type": "bidirectional",
        "description": "General-purpose I/O P3.0 (alternates UART1 RxD, PWM30, INT4 falling-edge interrupt) that powers up in weak-pull-up quasi-bidirectional mode and is used with P3.1/P3.2 for USB ISP boot selection, so these three pins must not all be low at power-up if user code is to run."
      },
      {
        "number": "16",
        "name": "P3.1/PWM31/TxD",
        "type": "bidirectional",
        "description": "General-purpose I/O P3.1 (alternates UART1 TxD and PWM31) that powers up in weak-pull-up quasi-bidirectional mode and is part of the ISP download/emulation interface."
      },
      {
        "number": "17",
        "name": "P3.2/PWM32/INT0/SCLK_4/I2CSCL_4",
        "type": "bidirectional",
        "description": "General-purpose I/O P3.2 (alternates external interrupt INT0 with rising/falling edge support, PWM32, SCLK_4, I2C SCL_4) that powers up as a high-impedance input and is part of the USB ISP boot-selection check at power-up."
      },
      {
        "number": "18",
        "name": "P3.3/PWM33/INT1/MISO_4/I2CSDA_4",
        "type": "bidirectional",
        "description": "General-purpose I/O P3.3 (alternates external interrupt INT1 with rising/falling edge support, PWM33, MISO_4, I2C SDA_4) that powers up as a high-impedance input and must have its mode set before use."
      },
      {
        "number": "19",
        "name": "P3.4/PWM34/T0/T1CLKO/ECI_2/MOSI_4/CMPO",
        "type": "bidirectional",
        "description": "General-purpose I/O P3.4 (alternates Timer 0 external input T0, T1CLKO, ECI_2, MOSI_4, comparator output CMPO, PWM34) that powers up as a high-impedance input and must have its mode set before use."
      },
      {
        "number": "20",
        "name": "P3.5/PWM35/T1/T0CLKO/SS_4/CCP0_2/PWMFLT",
        "type": "bidirectional",
        "description": "General-purpose I/O P3.5 (alternates Timer 1 external input T1, T0CLKO, SS_4, CCP0_2, PWMFLT, PWM35) that powers up as a high-impedance input and must have its mode set before use."
      },
      {
        "number": "21",
        "name": "P3.6/PWM36/INT2/RxD_2/CMP-/CCP1_2",
        "type": "bidirectional",
        "description": "General-purpose I/O P3.6 (alternates external interrupt INT2 falling-edge only, UART2 RxD_2, comparator input CMP-, CCP1_2, PWM36) that powers up as a high-impedance input and must have its mode set before use."
      },
      {
        "number": "22",
        "name": "P3.7/PWM37/INT3/TxD_2/CMP+/CCP2_2/CCP2",
        "type": "bidirectional",
        "description": "General-purpose I/O P3.7 (alternates external interrupt INT3 falling-edge only, UART2 TxD_2, comparator input CMP+, CCP2_2, CCP2, PWM37) that powers up as a high-impedance input and must have its mode set before use."
      },
      {
        "number": "23",
        "name": "P2.0/PWM20/A8",
        "type": "bidirectional",
        "description": "General-purpose I/O P2.0 (alternates PWM20 and address bit A8) that powers up as a high-impedance input and must have its mode set before use."
      },
      {
        "number": "24",
        "name": "P2.1/PWM21/A9",
        "type": "bidirectional",
        "description": "General-purpose I/O P2.1 (alternates PWM21 and address bit A9) that powers up as a high-impedance input and must have its mode set before use."
      },
      {
        "number": "25",
        "name": "P2.2/PWM22/A10/SS_2",
        "type": "bidirectional",
        "description": "General-purpose I/O P2.2 (alternates PWM22, address bit A10, SPI SS_2) that powers up as a high-impedance input and must have its mode set before use."
      },
      {
        "number": "26",
        "name": "P2.3/PWM23/A11/MOSI_2",
        "type": "bidirectional",
        "description": "General-purpose I/O P2.3 (alternates PWM23, address bit A11, SPI MOSI_2) that powers up as a high-impedance input and must have its mode set before use."
      },
      {
        "number": "27",
        "name": "P2.4/PWM24/A12/ECI_3/I2CSDA_2/MISO_2",
        "type": "bidirectional",
        "description": "General-purpose I/O P2.4 (alternates PWM24, address bit A12, ECI_3, I2C SDA_2, SPI MISO_2) that powers up as a high-impedance input and must have its mode set before use."
      },
      {
        "number": "28",
        "name": "P2.5/PWM25/A13/CCP0_3/I2CSCL_2/SCLK_2",
        "type": "bidirectional",
        "description": "General-purpose I/O P2.5 (alternates PWM25, address bit A13, CCP0_3, I2C SCL_2, SPI SCLK_2) that powers up as a high-impedance input and must have its mode set before use."
      }
    ],
    "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: The pinout is taken from the SOP28/SKDIP28 pin diagram on PDF page 33, which the datasheet presents ; Pin 9 and pin 10 (P1.6/P1.7) are shared with the external crystal/clock function. Their GPIO use dep; Pins 1, 2 and 23-28 list address alternates (A8-A15). The datasheet states the external 64 KB bus ca"
        ],
        "pages_sent": 182,
        "cost_usd": 1.0351,
        "at": "2026-10-19T08:50:22"
      },
      "datasheet": {
        "url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8603394997840998400",
        "pages": 1003,
        "sha256": "eceec044fae19745",
        "source_tier": "lcsc"
      },
      "cad": "KiCad official (CC-BY-SA 4.0)",
      "pins": {
        "total": 28,
        "described": 28,
        "cites_pages": true,
        "refuses_to_fabricate": true
      }
    },
    "viewers": {
      "symbol": "viewers/symbol.html",
      "footprint": "viewers/footprint.html"
    },
    "models_3d": [
      {
        "file": "stc15h2k64s4-36i-sop28.step",
        "role": "plain",
        "up": "Z",
        "units": "mm",
        "origin": "footprint origin = pad-pattern centre",
        "seat": "z = 0",
        "extents_mm": [
          11.636,
          18.16,
          2.666
        ],
        "zmin_mm": 0.0,
        "centre_offset_mm": 0.0,
        "footprint_binding": "identity",
        "sha256": "ecc34510e8f74b6103a72c2f24133ad80006c738972a56531d1221b277fcecdb",
        "checked": "2026-10-19",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      },
      {
        "file": "stc15h2k64s4-36i-sop28-etched.step",
        "role": "eda",
        "up": "Z",
        "units": "mm",
        "origin": "footprint origin = pad-pattern centre",
        "seat": "z = 0",
        "extents_mm": [
          11.636,
          18.16,
          2.666
        ],
        "zmin_mm": 0.0,
        "centre_offset_mm": 0.0,
        "footprint_binding": "identity",
        "sha256": "984848178f070c5a85737f737b3c09ce3844c0744f59f957c47ac2ba54213139",
        "checked": "2026-10-19",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      }
    ]
  }
}