main
Ray Publish 0.1.0 96bbf74
{
  "slug": "stc32g12k128-35i-lqfp48",
  "version": "0.1.0",
  "type": "component",
  "description": "STC Micro Microcontrollers (MCU/MPU/SOC), LQFP-48(7x7). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
  "tags": [
    "component",
    "embedded processors & controllers",
    "stc32g12k128-35i-lqfp48",
    "factory-2.0.0",
    "extractor-text"
  ],
  "dependencies": {},
  "hero": {
    "type": "image",
    "path": "docs/hero.png"
  },
  "files": [
    "page.json",
    "README.md",
    "stc32g12k128-35i-lqfp48.kicad_sym",
    "stc32g12k128-35i-lqfp48.kicad_mod",
    "stc32g12k128-35i-lqfp48.glb",
    "stc32g12k128-35i-lqfp48.step",
    "stc32g12k128-35i-lqfp48.lbr",
    "docs/hero.png",
    "docs/stc32g12k128-35i-lqfp48-datasheet.pdf",
    "viewers/symbol.html",
    "viewers/footprint.html",
    "stc32g12k128-35i-lqfp48-hero.glb",
    "stc32g12k128-35i-lqfp48-hero.overlay.json"
  ],
  "component": {
    "mpn": "STC32G12K128-35I-LQFP48",
    "manufacturer": "STC Micro",
    "package": "LQFP-48(7x7)",
    "pin_count": 48,
    "category": "Embedded Processors & Controllers",
    "subcategory": "Microcontrollers (MCU/MPU/SOC)",
    "datasheet": "https://datasheet.lcsc.com/datasheet/pdf/8fe4cdefdfe8ba1a5b5a614521aecf58.pdf",
    "parts": {
      "symbol": "stc32g12k128-35i-lqfp48.kicad_sym",
      "footprint": "stc32g12k128-35i-lqfp48.kicad_mod",
      "model_3d": "stc32g12k128-35i-lqfp48-hero.glb",
      "model_3d_plain": "stc32g12k128-35i-lqfp48.glb",
      "model_3d_step": "stc32g12k128-35i-lqfp48-etched.step",
      "model_3d_step_plain": "stc32g12k128-35i-lqfp48.step",
      "lbr": "stc32g12k128-35i-lqfp48.lbr"
    },
    "distributor_links": {
      "lcsc": "C5210760"
    },
    "distributor_check": {
      "checked_at": "2026-11-22T11:23:22Z",
      "source": "Component Ocean /api/assign-pns",
      "digikey": {
        "pn": null,
        "status": "no match"
      },
      "mouser": {
        "pn": null,
        "status": "no match"
      }
    },
    "pins": [
      {
        "number": "1",
        "name": "P5.3",
        "type": "bidirectional",
        "description": "Standard I/O port P5.3 with alternate functions TxD4_2 (UART4 transmit), CAN2_TX_2 (CAN2 transmit) and LIN_TX_2 (LIN transmit)."
      },
      {
        "number": "2",
        "name": "P0.5",
        "type": "bidirectional",
        "description": "Standard I/O port P0.5 with alternate functions AD5 (address/data bus), ADC13 (ADC channel 13), and T3CLKO (timer 3 clock divided output)."
      },
      {
        "number": "3",
        "name": "P0.6",
        "type": "bidirectional",
        "description": "Standard I/O port P0.6 with alternate functions AD6, ADC14 (ADC channel 14), T4 (timer 4 external clock input) and PWMFLT2_2 (PWM external fault detection input)."
      },
      {
        "number": "4",
        "name": "P0.7",
        "type": "bidirectional",
        "description": "Standard I/O port P0.7 with alternate functions AD7 (address/data bus) and T4CLKO (timer 4 clock divided output)."
      },
      {
        "number": "5",
        "name": "P1.0",
        "type": "bidirectional",
        "description": "Standard I/O port P1.0 with alternate functions ADC0 (ADC channel 0), PWM1P (PWM1 capture input/pulse output positive) and RxD2 (UART2 receive)."
      },
      {
        "number": "6",
        "name": "P1.1",
        "type": "bidirectional",
        "description": "Standard I/O port P1.1 with alternate functions ADC1 (ADC channel 1), PWM1N (PWM1 pulse output negative) and TxD2 (UART2 transmit)."
      },
      {
        "number": "7",
        "name": "P4.7",
        "type": "bidirectional",
        "description": "Standard I/O port P4.7 with alternate functions TxD2_2 (UART2 transmit), CAN2_TX_3 (CAN2 transmit) and LIN_TX_3 (LIN transmit)."
      },
      {
        "number": "8",
        "name": "P1.4",
        "type": "bidirectional",
        "description": "Standard I/O port P1.4 with alternate functions ADC4, PWM3P, MISO (SPI master input/slave output), S1MISO, S2MISO and SDA (I2C data line)."
      },
      {
        "number": "9",
        "name": "P1.5",
        "type": "bidirectional",
        "description": "Standard I/O port P1.5 with alternate functions ADC5, PWM3N, SCLK (SPI clock), S1SCLK, S2SCLK and SCL (I2C clock line)."
      },
      {
        "number": "10",
        "name": "P1.6",
        "type": "bidirectional",
        "description": "Standard I/O port P1.6 with alternate functions ADC6, RxD_3 (UART1 receive), PWM4P, MCLKO_2 (master clock divided output) and XTALO (external crystal output)."
      },
      {
        "number": "11",
        "name": "P1.7",
        "type": "bidirectional",
        "description": "Standard I/O port P1.7 with alternate functions ADC7, TxD_3 (UART1 transmit), PWM4N, PWM5_2 and XTALI (external crystal/clock input)."
      },
      {
        "number": "12",
        "name": "P1.3",
        "type": "bidirectional",
        "description": "Standard I/O port P1.3 with alternate functions ADC3, MOSI (SPI master output/slave input), S1MOSI, S2MOSI, PWM2N and T2CLKO (timer 2 clock divided output)."
      },
      {
        "number": "13",
        "name": "UCAP",
        "type": "passive",
        "description": "USB core power regulator pin (UCAP)."
      },
      {
        "number": "14",
        "name": "P5.4",
        "type": "bidirectional",
        "description": "Standard I/O port P5.4 that can be set as the nRST reset pin (low-level reset) and also carries MCLKO, SS, ADC2, PWM2P and T2 alternate functions."
      },
      {
        "number": "15",
        "name": "Vcc",
        "type": "power_in",
        "description": "Power supply pin Vcc (also AVcc for the ADC)."
      },
      {
        "number": "16",
        "name": "ADC_VRef+",
        "type": "input",
        "description": "ADC external reference voltage pin, which must be connected to an external reference between 2.4V and MCU-VCC because floating causes leakage current."
      },
      {
        "number": "17",
        "name": "Gnd",
        "type": "power_in",
        "description": "Ground pin (Gnd, also AGnd for the ADC)."
      },
      {
        "number": "18",
        "name": "P4.0",
        "type": "bidirectional",
        "description": "Standard I/O port P4.0 with alternate functions MOSI_3, S1MOSI_3 and S2MOSI_3 (SPI master output/slave input)."
      },
      {
        "number": "19",
        "name": "P3.0",
        "type": "bidirectional",
        "description": "Standard I/O port P3.0 with alternate functions RxD (UART1 receive), D- (USB data line) and INT4; P3.0 and P3.1 are weakly pulled-up quasi-bidirectional after power-up."
      },
      {
        "number": "20",
        "name": "P3.1",
        "type": "bidirectional",
        "description": "Standard I/O port P3.1 with alternate functions TxD (UART1 transmit) and D+ (USB data line); P3.0 and P3.1 are the download/emulation interface."
      },
      {
        "number": "21",
        "name": "P3.2",
        "type": "bidirectional",
        "description": "Standard I/O port P3.2 with alternate functions INT0 (external interrupt 0), SCLK_4, SCL_4, PWMETI and PWMETI2; it reads high at power-up and is used to select USB download when held low."
      },
      {
        "number": "22",
        "name": "P3.3",
        "type": "bidirectional",
        "description": "Standard I/O port P3.3 with alternate functions INT1 (external interrupt 1), MISO_4, SDA_4, PWM4N_4 and PWM7_2."
      },
      {
        "number": "23",
        "name": "P3.4",
        "type": "bidirectional",
        "description": "Standard I/O port P3.4 with alternate functions T0 (timer 0 external input), T1CLKO, MOSI_4, PWM4P_4, PWM8_2 and CMPO (comparator output)."
      },
      {
        "number": "24",
        "name": "P5.0",
        "type": "bidirectional",
        "description": "Standard I/O port P5.0 with alternate functions RxD3_2 (UART3 receive), CMP+_2 (comparator positive input) and CAN_RX_2 (CAN receive)."
      },
      {
        "number": "25",
        "name": "P5.1",
        "type": "bidirectional",
        "description": "Standard I/O port P5.1 with alternate functions TxD3_2 (UART3 transmit), CMP+_3 (comparator positive input) and CAN_TX_2 (CAN transmit)."
      },
      {
        "number": "26",
        "name": "P3.5",
        "type": "bidirectional",
        "description": "Standard I/O port P3.5 with alternate functions T1 (timer 1 external input), T0CLKO, SS_4 (SPI slave select) and PWMFLT (PWM external fault input)."
      },
      {
        "number": "27",
        "name": "P3.6",
        "type": "bidirectional",
        "description": "Standard I/O port P3.6 with alternate functions INT2 (external interrupt 2), RxD_2 (UART1 receive) and CMP- (comparator negative input)."
      },
      {
        "number": "28",
        "name": "P3.7",
        "type": "bidirectional",
        "description": "Standard I/O port P3.7 with alternate functions INT3 (external interrupt 3), TxD_2 (UART1 transmit) and CMP+ (comparator positive input)."
      },
      {
        "number": "29",
        "name": "P4.1",
        "type": "bidirectional",
        "description": "Standard I/O port P4.1 with alternate functions MISO_3, S1MISO_3, S2MISO_3 (SPI master input), CMPO_2 (comparator output) and PWMETI_2."
      },
      {
        "number": "30",
        "name": "P4.2",
        "type": "bidirectional",
        "description": "Standard I/O port P4.2 with alternate functions WR (external bus write strobe) and CAN_RX_3 (CAN receive)."
      },
      {
        "number": "31",
        "name": "P4.3",
        "type": "bidirectional",
        "description": "Standard I/O port P4.3 with alternate functions RxD_4 (UART4 receive), SCLK_3, S1SCLK_3 and S2SCLK_3 (SPI clock)."
      },
      {
        "number": "32",
        "name": "P4.4",
        "type": "bidirectional",
        "description": "Standard I/O port P4.4 with alternate functions RD (external bus read strobe) and TxD_4 (UART4 transmit)."
      },
      {
        "number": "33",
        "name": "P2.0",
        "type": "bidirectional",
        "description": "Standard I/O port P2.0 with alternate functions A8 (address bus), PWM1P_2 and PWM5."
      },
      {
        "number": "34",
        "name": "P2.1",
        "type": "bidirectional",
        "description": "Standard I/O port P2.1 with alternate functions A9 (address bus), PWM1N_2 and PWM6."
      },
      {
        "number": "35",
        "name": "P2.2",
        "type": "bidirectional",
        "description": "Standard I/O port P2.2 with alternate functions A10 (address bus), PWM2P_2, PWM7, SS_2, S1SS_2 and S2SS_2."
      },
      {
        "number": "36",
        "name": "P2.3",
        "type": "bidirectional",
        "description": "Standard I/O port P2.3 with alternate functions A11 (address bus), PWM2N_2, PWM8, MOSI_2, S1MOSI_2 and S2MOSI_2."
      },
      {
        "number": "37",
        "name": "P2.4",
        "type": "bidirectional",
        "description": "Standard I/O port P2.4 with alternate functions A12 (address bus), PWM3P_2, SDA_2, MISO_2, S1MISO_2 and S2MISO_2."
      },
      {
        "number": "38",
        "name": "P2.5",
        "type": "bidirectional",
        "description": "Standard I/O port P2.5 with alternate functions A13 (address bus), PWM3N_2, SCL_2, SCLK_2, S1SCLK_2 and S2SCLK_2."
      },
      {
        "number": "39",
        "name": "P2.6",
        "type": "bidirectional",
        "description": "Standard I/O port P2.6 with alternate functions A14 (address bus) and PWM4P_2."
      },
      {
        "number": "40",
        "name": "P2.7",
        "type": "bidirectional",
        "description": "Standard I/O port P2.7 with alternate functions A15 (address bus) and PWM4N_2."
      },
      {
        "number": "41",
        "name": "P4.5",
        "type": "bidirectional",
        "description": "Standard I/O port P4.5 with alternate functions ALE (address latch enable) and CAN_TX_3 (CAN transmit)."
      },
      {
        "number": "42",
        "name": "P4.6",
        "type": "bidirectional",
        "description": "Standard I/O port P4.6 with alternate functions LIN_RX_3, CAN2_RX_3 (CAN2 receive) and RxD2_2 (UART2 receive)."
      },
      {
        "number": "43",
        "name": "P0.0",
        "type": "bidirectional",
        "description": "Standard I/O port P0.0 with alternate functions AD0 (address/data bus), ADC8 (ADC channel 8), RxD3 (UART3 receive) and CAN_RX (CAN receive)."
      },
      {
        "number": "44",
        "name": "P0.1",
        "type": "bidirectional",
        "description": "Standard I/O port P0.1 with alternate functions AD1 (address/data bus), ADC9 (ADC channel 9), TxD3 (UART3 transmit), PWM6_3, T3CLKO_2 and CAN_TX (CAN transmit)."
      },
      {
        "number": "45",
        "name": "P0.2",
        "type": "bidirectional",
        "description": "Standard I/O port P0.2 with alternate functions AD2 (address/data bus), ADC10 (ADC channel 10), RxD4 (UART4 receive), PWM7_3, T4_2, CAN2_RX and LIN_RX."
      },
      {
        "number": "46",
        "name": "P0.3",
        "type": "bidirectional",
        "description": "Standard I/O port P0.3 with alternate functions AD3 (address/data bus), ADC11 (ADC channel 11), TxD4 (UART4 transmit), PWM8_3, T4CLKO_2, CAN2_TX and LIN_TX."
      },
      {
        "number": "47",
        "name": "P0.4",
        "type": "bidirectional",
        "description": "Standard I/O port P0.4 with alternate functions AD4 (address/data bus), ADC12 (ADC channel 12) and T3 (timer 3 external clock input)."
      },
      {
        "number": "48",
        "name": "P5.2",
        "type": "bidirectional",
        "description": "Standard I/O port P5.2 with alternate functions RxD4_2 (UART4 receive), CAN2_RX_2 (CAN2 receive) and LIN_RX_2 (LIN receive)."
      }
    ],
    "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 LQFP48 pin-function table for STC32G12K128 is split across pages 276-279 and 283; pages 280-282 ; Pin 3 (P0.6) is listed as PWMETI2_2 in the LQFP48 pin diagram but as PWMFLT2_2 in the pin-function t; Type for UCAP (pin 13) is mapped to passive because the datasheet only labels it as an I pin for the",
          "5/48 pins cited to the wrong page (name found elsewhere): ['16:ADC_VRef+@p278', '40:P2.7@p279', '41:P4.5@p279', '42:P4.6@p279']"
        ],
        "pages_sent": 108,
        "cost_usd": 0.5071,
        "at": "2026-11-22T11:23:00"
      },
      "datasheet": {
        "url": "https://datasheet.lcsc.com/datasheet/pdf/8fe4cdefdfe8ba1a5b5a614521aecf58.pdf",
        "pages": 1887,
        "sha256": "59bba1d366cc8d33",
        "source_tier": "lcsc",
        "citation": "STC Micro datasheet, copy hosted by LCSC"
      },
      "cad": "KiCad official (CC-BY-SA 4.0)",
      "pins": {
        "total": 48,
        "described": 48,
        "cites_pages": true,
        "refuses_to_fabricate": true
      },
      "model_origin": {
        "blob_sha256": "9dea352d93177c2904afd7d7b68ea8855ce1ab691f69f8b3e13655600514b6bf",
        "file": "LQFP-48_7x7mm_P0.5mm.step",
        "package_key": "Package_QFP:LQFP-48_7x7mm_P0.5mm",
        "source": "reef standard-3d",
        "via": "reef standard-3d",
        "page_step_identical": true
      }
    },
    "viewers": {
      "symbol": "viewers/symbol.html",
      "footprint": "viewers/footprint.html"
    },
    "models_3d": [
      {
        "file": "stc32g12k128-35i-lqfp48.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": "9dea352d93177c2904afd7d7b68ea8855ce1ab691f69f8b3e13655600514b6bf",
        "checked": "2026-11-22",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      },
      {
        "file": "stc32g12k128-35i-lqfp48-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": "17fc2844ea609ea2c8eedf3db77b351a2306850320b0ef776ace12979662a43d",
        "checked": "2026-11-22",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      }
    ],
    "package_dims": {
      "package_code": "LQFP48",
      "source_page": 428,
      "pin_count": 48,
      "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.5,
        "range_mm": [
          null,
          null
        ]
      },
      "A": {
        "nom_mm": 1.6,
        "range_mm": [
          null,
          1.6
        ]
      },
      "source": "datasheet package drawing, every number found on its page (extract_pins --task dims)",
      "model_check": {
        "file": "stc32g12k128-35i-lqfp48.step",
        "verdict": "PASS",
        "reasons": [
          "height and body within the datasheet's package drawing"
        ],
        "by": "factory/package_fit.py"
      }
    }
  }
}