main
Ray Publish 0.1.0 122d684 6h ago
{
  "slug": "stc32g12k128-35i-lqfp64",
  "version": "0.1.0",
  "type": "component",
  "description": "STC Micro Microcontrollers (MCU/MPU/SOC), LQFP-64(10x10). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
  "tags": [
    "component",
    "embedded processors & controllers",
    "stc32g12k128-35i-lqfp64",
    "factory-2.0.0",
    "extractor-text"
  ],
  "dependencies": {},
  "hero": {
    "type": "image",
    "path": "docs/hero.png"
  },
  "files": [
    "page.json",
    "README.md",
    "stc32g12k128-35i-lqfp64.kicad_sym",
    "stc32g12k128-35i-lqfp64.kicad_mod",
    "stc32g12k128-35i-lqfp64.glb",
    "stc32g12k128-35i-lqfp64.step",
    "stc32g12k128-35i-lqfp64.lbr",
    "docs/hero.png",
    "docs/stc32g12k128-35i-lqfp64-datasheet.pdf",
    "viewers/symbol.html",
    "viewers/footprint.html",
    "stc32g12k128-35i-lqfp64-hero.glb",
    "stc32g12k128-35i-lqfp64-hero.overlay.json",
    "stc32g12k128-35i-lqfp64-etched.glb"
  ],
  "component": {
    "mpn": "STC32G12K128-35I-LQFP64",
    "manufacturer": "STC Micro",
    "package": "LQFP-64(10x10)",
    "pin_count": 64,
    "category": "Embedded Processors & Controllers",
    "subcategory": "Microcontrollers (MCU/MPU/SOC)",
    "datasheet": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8756362524260884480",
    "parts": {
      "symbol": "stc32g12k128-35i-lqfp64.kicad_sym",
      "footprint": "stc32g12k128-35i-lqfp64.kicad_mod",
      "model_3d": "stc32g12k128-35i-lqfp64-hero.glb",
      "model_3d_plain": "stc32g12k128-35i-lqfp64-etched.glb",
      "model_3d_step": "stc32g12k128-35i-lqfp64-etched.step",
      "model_3d_step_plain": "stc32g12k128-35i-lqfp64.step",
      "lbr": "stc32g12k128-35i-lqfp64.lbr"
    },
    "distributor_links": {
      "lcsc": "C5210761"
    },
    "distributor_check": {
      "checked_at": "2026-10-18T14:39:12Z",
      "source": "Component Ocean /api/assign-pns",
      "digikey": {
        "pn": null,
        "status": "quota"
      },
      "mouser": {
        "pn": null,
        "status": "quota"
      }
    },
    "pins": [
      {
        "number": "1",
        "name": "P5.3",
        "type": "bidirectional",
        "description": "Standard bidirectional 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 AD5 address/data bus, ADC13 analog input channel 13 and T3CLKO timer 3 clock-divided output."
      },
      {
        "number": "3",
        "name": "P0.6",
        "type": "bidirectional",
        "description": "Standard I/O port P0.6 with AD6 address/data bus, ADC14 analog input channel 14, T4 external clock input for timer 4 and PWMFLT2_2 enhanced PWM external fault-detect input."
      },
      {
        "number": "4",
        "name": "P0.7",
        "type": "bidirectional",
        "description": "Standard I/O port P0.7 with AD7 address/data bus and T4CLKO timer 4 clock-divided output."
      },
      {
        "number": "5",
        "name": "P6.0",
        "type": "bidirectional",
        "description": "Standard I/O port P6.0 with PWM1P_3 PWM1 capture input and positive pulse output."
      },
      {
        "number": "6",
        "name": "P6.1",
        "type": "bidirectional",
        "description": "Standard I/O port P6.1 with PWM1N_3 PWM1 negative pulse output."
      },
      {
        "number": "7",
        "name": "P6.2",
        "type": "bidirectional",
        "description": "Standard I/O port P6.2 with PWM2P_3 PWM2 capture input and positive pulse output."
      },
      {
        "number": "8",
        "name": "P6.3",
        "type": "bidirectional",
        "description": "Standard I/O port P6.3 with PWM2N_3 PWM2 negative pulse output."
      },
      {
        "number": "9",
        "name": "P1.0",
        "type": "bidirectional",
        "description": "Standard I/O port P1.0 with ADC0 analog input channel 0, PWM1P PWM1 positive capture/pulse output and RxD2 UART2 receive."
      },
      {
        "number": "10",
        "name": "P1.1",
        "type": "bidirectional",
        "description": "Standard I/O port P1.1 with ADC1 analog input channel 1, PWM1N PWM1 negative pulse output and TxD2 UART2 transmit."
      },
      {
        "number": "11",
        "name": "P4.7",
        "type": "bidirectional",
        "description": "Standard I/O port P4.7 with TxD2_2 UART2 transmit, CAN2_TX_3 CAN2 transmit and LIN_TX_3 LIN transmit."
      },
      {
        "number": "12",
        "name": "P1.4",
        "type": "bidirectional",
        "description": "Standard I/O port P1.4 with ADC4 analog input channel 4, PWM3P, SPI MISO (and USART1/USART2 SPI MISO), and I2C data line SDA."
      },
      {
        "number": "13",
        "name": "P1.5",
        "type": "bidirectional",
        "description": "Standard I/O port P1.5 with ADC5 analog input channel 5, PWM3N negative pulse output, SPI clock SCLK (and USART1/USART2 SPI clocks) and I2C clock line SCL."
      },
      {
        "number": "14",
        "name": "P1.6",
        "type": "bidirectional",
        "description": "Standard I/O port P1.6 with ADC6 analog input channel 6, RxD_3 UART1 receive, PWM4P, MCLKO_2 main clock divided output and XTALO external crystal output."
      },
      {
        "number": "15",
        "name": "P1.7",
        "type": "bidirectional",
        "description": "Standard I/O port P1.7 with ADC7 analog input channel 7, TxD_3 UART1 transmit, PWM4N, PWM5_2 and XTALI external crystal/external clock input."
      },
      {
        "number": "16",
        "name": "P1.3",
        "type": "bidirectional",
        "description": "Standard I/O port P1.3 with ADC3 analog input channel 3, SPI MOSI (and USART1/USART2 SPI MOSI), PWM2N negative pulse output and T2CLKO timer 2 clock-divided output."
      },
      {
        "number": "17",
        "name": "UCAP",
        "type": "passive",
        "description": "USB core supply regulator pin (UCAP) that is connected to an external decoupling capacitor."
      },
      {
        "number": "18",
        "name": "P5.4",
        "type": "bidirectional",
        "description": "Standard I/O port P5.4 that can be configured by ISP as the active-low reset pin nRST, with alternate functions including MCLKO, SPI/USART slave selects, PWM2P, PWM6_2, T2 and ADC2."
      },
      {
        "number": "19",
        "name": "Vcc",
        "type": "power_in",
        "description": "Power supply pin Vcc, which also supplies the ADC as AVcc."
      },
      {
        "number": "20",
        "name": "Vref+",
        "type": "power_in",
        "description": "ADC reference voltage pin ADC_VRef+ that must be connected to an external reference voltage between 2.4V and MCU-VCC, since floating it causes leakage current."
      },
      {
        "number": "21",
        "name": "Gnd",
        "type": "power_in",
        "description": "Ground pin Gnd, shared with AGnd (ADC ground) and Vref- (ADC reference ground)."
      },
      {
        "number": "22",
        "name": "P4.0",
        "type": "bidirectional",
        "description": "Standard I/O port P4.0 with SPI MOSI_3 master output/slave input (and USART1/USART2 SPI MOSI)."
      },
      {
        "number": "23",
        "name": "P6.4",
        "type": "bidirectional",
        "description": "Standard I/O port P6.4 with PWM3P_3 PWM3 capture/positive pulse output and S1SS_4 USART1 SPI slave select."
      },
      {
        "number": "24",
        "name": "P6.5",
        "type": "bidirectional",
        "description": "Standard I/O port P6.5 with PWM3N_3 PWM3 negative pulse output and S1MOSI_4 USART1 SPI MOSI."
      },
      {
        "number": "25",
        "name": "P6.6",
        "type": "bidirectional",
        "description": "Standard I/O port P6.6 with PWM4P_3 PWM4 capture/positive pulse output and S1MISO_4 USART1 SPI MISO."
      },
      {
        "number": "26",
        "name": "P6.7",
        "type": "bidirectional",
        "description": "Standard I/O port P6.7 with PWM4N_3 PWM4 negative pulse output and S1SCLK_4 USART1 SPI clock."
      },
      {
        "number": "27",
        "name": "P3.0",
        "type": "bidirectional",
        "description": "Port P3.0 that is also the USB D- data line, UART1 RxD receive and external interrupt INT4; it is quasi-bidirectional (weak pull-up) after power-on."
      },
      {
        "number": "28",
        "name": "P3.1",
        "type": "bidirectional",
        "description": "Port P3.1 that is also the USB D+ data line and UART1 TxD transmit; it is quasi-bidirectional (weak pull-up) after power-on."
      },
      {
        "number": "29",
        "name": "P3.2",
        "type": "bidirectional",
        "description": "Standard I/O port P3.2 with external interrupt INT0, SPI clock SCLK_4, I2C clock SCL_4 and PWM external trigger inputs PWMETI and PWMETI2."
      },
      {
        "number": "30",
        "name": "P3.3",
        "type": "bidirectional",
        "description": "Standard I/O port P3.3 with external interrupt INT1, SPI MISO_4, I2C data SDA_4, PWM4N_4 negative pulse output and PWM7_2."
      },
      {
        "number": "31",
        "name": "P3.4",
        "type": "bidirectional",
        "description": "Standard I/O port P3.4 with timer 0 external clock input T0, T1CLKO timer 1 clock output, SPI MOSI_4, PWM4P_4, PWM8_2 and comparator output CMPO."
      },
      {
        "number": "32",
        "name": "P5.0",
        "type": "bidirectional",
        "description": "Standard I/O port P5.0 with UART3 receive RxD3_2, comparator positive input CMP+_2 and CAN receive CAN_RX_2."
      },
      {
        "number": "33",
        "name": "P5.1",
        "type": "bidirectional",
        "description": "Standard I/O port P5.1 with UART3 transmit TxD3_2, comparator positive input CMP+_3 and CAN transmit CAN_TX_2."
      },
      {
        "number": "34",
        "name": "P3.5",
        "type": "bidirectional",
        "description": "Standard I/O port P3.5 with timer 1 external clock input T1, T0CLKO timer 0 clock output, SPI slave select SS_4 and enhanced PWM external fault input PWMFLT."
      },
      {
        "number": "35",
        "name": "P3.6",
        "type": "bidirectional",
        "description": "Standard I/O port P3.6 with external interrupt INT2, UART1 receive RxD_2 and comparator negative input CMP-."
      },
      {
        "number": "36",
        "name": "P3.7",
        "type": "bidirectional",
        "description": "Standard I/O port P3.7 with external interrupt INT3, UART1 transmit TxD_2 and comparator positive input CMP+."
      },
      {
        "number": "37",
        "name": "P7.0",
        "type": "bidirectional",
        "description": "Standard I/O port P7.0 with CAN_RX_4 CAN receive function."
      },
      {
        "number": "38",
        "name": "P7.1",
        "type": "bidirectional",
        "description": "Standard I/O port P7.1 with CAN_TX_4 CAN transmit function."
      },
      {
        "number": "39",
        "name": "P7.2",
        "type": "bidirectional",
        "description": "Standard I/O port P7.2 with CAN2_RX_4 CAN2 receive and LIN_RX_4 LIN receive functions."
      },
      {
        "number": "40",
        "name": "P7.3",
        "type": "bidirectional",
        "description": "Standard I/O port P7.3 with CAN2_TX_4 and LIN_TX_4 transmit functions and PWMETI_3 PWM external trigger input."
      },
      {
        "number": "41",
        "name": "P4.1",
        "type": "bidirectional",
        "description": "Standard I/O port P4.1 with SPI MISO_3 (and USART1/USART2 SPI MISO), comparator output CMPO_2 and PWMETI_2 PWM external trigger input."
      },
      {
        "number": "42",
        "name": "P4.2",
        "type": "bidirectional",
        "description": "Standard I/O port P4.2 with WR (external bus write strobe) and CAN_RX_3 CAN receive."
      },
      {
        "number": "43",
        "name": "P4.3",
        "type": "bidirectional",
        "description": "Standard I/O port P4.3 with UART4 receive RxD_4, SPI clocks SCLK_3, S1SCLK_3 and S2SCLK_3."
      },
      {
        "number": "44",
        "name": "P4.4",
        "type": "bidirectional",
        "description": "Standard I/O port P4.4 with RD (external bus read strobe) and TxD_4 UART4 transmit."
      },
      {
        "number": "45",
        "name": "P2.0",
        "type": "bidirectional",
        "description": "Standard I/O port P2.0 with address bus A8, PWM1P_2 positive pulse output and PWM5 channel."
      },
      {
        "number": "46",
        "name": "P2.1",
        "type": "bidirectional",
        "description": "Standard I/O port P2.1 with address bus A9, PWM1N_2 negative pulse output and PWM6 channel."
      },
      {
        "number": "47",
        "name": "P2.2",
        "type": "bidirectional",
        "description": "Standard I/O port P2.2 with address bus A10, PWM2P_2, PWM7, SPI slave select SS_2 and USART1/USART2 SPI slave selects S1SS_2 and S2SS_2."
      },
      {
        "number": "48",
        "name": "P2.3",
        "type": "bidirectional",
        "description": "Standard I/O port P2.3 with address bus A11, PWM2N_2, PWM8, SPI MOSI_2 and USART1/USART2 SPI MOSI S1MOSI_2 and S2MOSI_2."
      },
      {
        "number": "49",
        "name": "P2.4",
        "type": "bidirectional",
        "description": "Standard I/O port P2.4 with address bus A12, PWM3P_2, I2C data SDA_2, SPI MISO_2 and USART1/USART2 SPI MISO S1MISO_2 and S2MISO_2."
      },
      {
        "number": "50",
        "name": "P2.5",
        "type": "bidirectional",
        "description": "Standard I/O port P2.5 with address bus A13, PWM3N_2, I2C clock SCL_2, SPI clock SCLK_2 and USART1/USART2 SPI clocks S1SCLK_2 and S2SCLK_2."
      },
      {
        "number": "51",
        "name": "P2.6",
        "type": "bidirectional",
        "description": "Standard I/O port P2.6 with address bus A14 and PWM4P_2 positive pulse output."
      },
      {
        "number": "52",
        "name": "P2.7",
        "type": "bidirectional",
        "description": "Standard I/O port P2.7 with address bus A15 and PWM4N_2 negative pulse output."
      },
      {
        "number": "53",
        "name": "P7.4",
        "type": "bidirectional",
        "description": "Standard I/O port P7.4 with USART2 SPI slave select S2SS_4 and PWM5_4."
      },
      {
        "number": "54",
        "name": "P7.5",
        "type": "bidirectional",
        "description": "Standard I/O port P7.5 with USART2 SPI MOSI S2MOSI_4 and PWM6_4."
      },
      {
        "number": "55",
        "name": "P7.6",
        "type": "bidirectional",
        "description": "Standard I/O port P7.6 with USART2 SPI MISO S2MISO_4 and PWM7_4."
      },
      {
        "number": "56",
        "name": "P7.7",
        "type": "bidirectional",
        "description": "Standard I/O port P7.7 with USART2 SPI clock S2SCLK_4 and PWM8_4."
      },
      {
        "number": "57",
        "name": "P4.5",
        "type": "bidirectional",
        "description": "Standard I/O port P4.5 with ALE (external address latch enable) and CAN_TX_3 CAN transmit."
      },
      {
        "number": "58",
        "name": "P4.6",
        "type": "bidirectional",
        "description": "Standard I/O port P4.6 with LIN_RX_3 LIN receive, CAN2_RX_3 CAN2 receive and RxD2_2 UART2 receive."
      },
      {
        "number": "59",
        "name": "P0.0",
        "type": "bidirectional",
        "description": "Standard I/O port P0.0 with AD0 address/data bus, ADC8 analog input channel 8, RxD3 UART3 receive, PWM5_3, T3_2 timer 3 external clock input and CAN_RX CAN receive."
      },
      {
        "number": "60",
        "name": "P0.1",
        "type": "bidirectional",
        "description": "Standard I/O port P0.1 with AD1 address/data bus, ADC9 analog input channel 9, TxD3 UART3 transmit, PWM6_3, T3CLKO_2 timer 3 clock output and CAN_TX CAN transmit."
      },
      {
        "number": "61",
        "name": "P0.2",
        "type": "bidirectional",
        "description": "Standard I/O port P0.2 with AD2 address/data bus, ADC10 analog input channel 10, RxD4 UART4 receive, PWM7_3, T4_2 timer 4 external clock input, CAN2_RX and LIN_RX."
      },
      {
        "number": "62",
        "name": "P0.3",
        "type": "bidirectional",
        "description": "Standard I/O port P0.3 with AD3 address/data bus, ADC11 analog input channel 11, TxD4 UART4 transmit, PWM8_3, T4CLKO_2 timer 4 clock output, CAN2_TX and LIN_TX."
      },
      {
        "number": "63",
        "name": "P0.4",
        "type": "bidirectional",
        "description": "Standard I/O port P0.4 with AD4 address/data bus, ADC12 analog input channel 12 and T3 timer 3 external clock input."
      },
      {
        "number": "64",
        "name": "P5.2",
        "type": "bidirectional",
        "description": "Standard I/O port P5.2 with UART4 receive RxD4_2, CAN2 receive CAN2_RX_2 and LIN receive LIN_RX_2."
      }
    ],
    "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: Package mismatch: the request hint says LQFP-64 (10x10), but the datasheet lists LQFP64 as 12mm*12mm; Pins 36-59 use the pin-map function lists from the LQFP64 pinout diagram (PAGE 259). The detailed 管脚; Pin 3 (P0.6) conflicts between sources: the pin-map diagram labels it PWMETI2_2, while the pin-descr"
        ],
        "pages_sent": 108,
        "cost_usd": 1.1396,
        "at": "2026-10-18T14:36:15"
      },
      "datasheet": {
        "url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8756362524260884480",
        "pages": 1887,
        "sha256": "59bba1d366cc8d33",
        "source_tier": "lcsc"
      },
      "cad": "KiCad official (CC-BY-SA 4.0)",
      "pins": {
        "total": 64,
        "described": 64,
        "cites_pages": true,
        "refuses_to_fabricate": true
      }
    },
    "viewers": {
      "symbol": "viewers/symbol.html",
      "footprint": "viewers/footprint.html"
    },
    "models_3d": [
      {
        "file": "stc32g12k128-35i-lqfp64.step",
        "role": "plain",
        "up": "Z",
        "units": "mm",
        "origin": "footprint origin = pad-pattern centre",
        "seat": "z = 0",
        "extents_mm": [
          12.0,
          12.0,
          1.5
        ],
        "zmin_mm": 0.0,
        "centre_offset_mm": 0.0,
        "footprint_binding": "identity",
        "sha256": "b0c827bc5c05552175d28affe44a5bd2ab45c9c36efff6ff07a74cc449b13db4",
        "checked": "2026-10-18",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      },
      {
        "file": "stc32g12k128-35i-lqfp64-etched.step",
        "role": "eda",
        "up": "Z",
        "units": "mm",
        "origin": "footprint origin = pad-pattern centre",
        "seat": "z = 0",
        "extents_mm": [
          12.0,
          12.0,
          1.5
        ],
        "zmin_mm": 0.0,
        "centre_offset_mm": 0.0,
        "footprint_binding": "identity",
        "sha256": "2d263e035a49ede0489685201b7dbde7b3ce0da1f330299c28b618b9f04aeadb",
        "checked": "2026-10-18",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      }
    ]
  }
}