main
Ray Publish 0.1.0 b6fff05 8d ago
{
  "slug": "stc32g8k48-42i-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",
    "stc32g8k48-42i-lqfp48",
    "factory-2.0.0",
    "extractor-text"
  ],
  "dependencies": {},
  "hero": {
    "type": "image",
    "path": "docs/hero.png"
  },
  "files": [
    "page.json",
    "README.md",
    "stc32g8k48-42i-lqfp48.kicad_sym",
    "stc32g8k48-42i-lqfp48.kicad_mod",
    "stc32g8k48-42i-lqfp48.glb",
    "stc32g8k48-42i-lqfp48.step",
    "stc32g8k48-42i-lqfp48.lbr",
    "docs/hero.png",
    "docs/stc32g8k48-42i-lqfp48-datasheet.pdf",
    "viewers/symbol.html",
    "viewers/footprint.html",
    "stc32g8k48-42i-lqfp48-hero.glb",
    "stc32g8k48-42i-lqfp48-hero.overlay.json",
    "stc32g8k48-42i-lqfp48-etched.glb"
  ],
  "component": {
    "mpn": "STC32G8K48-42I-LQFP48",
    "manufacturer": "STC Micro",
    "package": "LQFP-48(7x7)",
    "pin_count": 48,
    "category": "Embedded Processors & Controllers",
    "subcategory": "Microcontrollers (MCU/MPU/SOC)",
    "datasheet": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8756362888305364992",
    "parts": {
      "symbol": "stc32g8k48-42i-lqfp48.kicad_sym",
      "footprint": "stc32g8k48-42i-lqfp48.kicad_mod",
      "model_3d": "stc32g8k48-42i-lqfp48-hero.glb",
      "model_3d_plain": "stc32g8k48-42i-lqfp48-etched.glb",
      "model_3d_step": "stc32g8k48-42i-lqfp48-etched.step",
      "model_3d_step_plain": "stc32g8k48-42i-lqfp48.step",
      "lbr": "stc32g8k48-42i-lqfp48.lbr"
    },
    "distributor_links": {
      "lcsc": "C20613520"
    },
    "distributor_check": {
      "checked_at": "2026-10-19T00:12:43Z",
      "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": "General-purpose GPIO P5.3 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions TxD4_2, CAN2_TX_2 and LIN_TX_2."
      },
      {
        "number": "2",
        "name": "P0.5",
        "type": "bidirectional",
        "description": "General-purpose GPIO P0.5 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions AD5, ADC13 analog input and T3CLKO."
      },
      {
        "number": "3",
        "name": "P0.6",
        "type": "bidirectional",
        "description": "General-purpose GPIO P0.6 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions AD6, ADC14 analog input, T4 external clock input and PWM external trigger/fault input PWMETI2_2."
      },
      {
        "number": "4",
        "name": "P0.7",
        "type": "bidirectional",
        "description": "General-purpose GPIO P0.7 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions AD7 and T4CLKO timer 4 clock output."
      },
      {
        "number": "5",
        "name": "P1.0",
        "type": "bidirectional",
        "description": "General-purpose GPIO P1.0 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions ADC0, PWM1P and RxD2 (UART2 receive)."
      },
      {
        "number": "6",
        "name": "P1.1",
        "type": "bidirectional",
        "description": "General-purpose GPIO P1.1 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions ADC1, PWM1N and TxD2 (UART2 transmit)."
      },
      {
        "number": "7",
        "name": "P4.7",
        "type": "bidirectional",
        "description": "General-purpose GPIO P4.7 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions TxD2_2, CAN2_TX_3 and LIN_TX_3."
      },
      {
        "number": "8",
        "name": "P1.4",
        "type": "bidirectional",
        "description": "General-purpose GPIO P1.4 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions ADC4, PWM3P, SPI MISO/S1MISO/S2MISO and I2C SDA."
      },
      {
        "number": "9",
        "name": "P1.5",
        "type": "bidirectional",
        "description": "General-purpose GPIO P1.5 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions ADC5, PWM3N, SPI SCLK/S1SCLK/S2SCLK, I2C SCL and I2S clock I2SCK_2."
      },
      {
        "number": "10",
        "name": "P1.6",
        "type": "bidirectional",
        "description": "General-purpose GPIO P1.6 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions ADC6, RxD_3, PWM4P, MCLKO_2 clock output, XTALO crystal output and I2S master clocks I2SMCK_2/I2SMCK_4."
      },
      {
        "number": "11",
        "name": "P1.7",
        "type": "bidirectional",
        "description": "General-purpose GPIO P1.7 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions ADC7, TxD_3, PWM4N, PWM5_2 and XTALI external crystal/clock input."
      },
      {
        "number": "12",
        "name": "P1.3",
        "type": "bidirectional",
        "description": "General-purpose GPIO P1.3 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions ADC3, SPI MOSI/S1MOSI/S2MOSI, PWM2N, T2CLKO timer 2 clock output and I2S data I2SSD_2."
      },
      {
        "number": "13",
        "name": "P1.2",
        "type": "bidirectional",
        "description": "General-purpose GPIO P1.2 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions PWM2P, SPI SS/S1SS/S2SS and T2 timer 2 external clock input."
      },
      {
        "number": "14",
        "name": "P5.4",
        "type": "bidirectional",
        "description": "P5.4 is a general-purpose I/O (default after power-up); when configured as the reset pin it acts as an active-low reset input, and it also carries ADC2, MCLKO, SPI SS, PWM2P, T2 and I2S functions."
      },
      {
        "number": "15",
        "name": "Vcc/AVcc",
        "type": "power_in",
        "description": "Main supply pin, also the ADC supply (AVcc); the datasheet gives an operating voltage of 1.9 V to 5.5 V for the STC32G8K48 part."
      },
      {
        "number": "16",
        "name": "ADC_VRef+",
        "type": "input",
        "description": "ADC external reference voltage input which must be connected to an external reference between 2.4 V and MCU-VCC, because leaving it floating causes leakage current."
      },
      {
        "number": "17",
        "name": "Gnd/AGnd",
        "type": "power_in",
        "description": "Ground pin for the MCU, shared with the ADC analog ground (AGnd)."
      },
      {
        "number": "18",
        "name": "P4.0",
        "type": "bidirectional",
        "description": "General-purpose GPIO P4.0 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions SPI MOSI_3, S1MOSI_3, S2MOSI_3 and I2S data I2SSD_4."
      },
      {
        "number": "19",
        "name": "P3.0",
        "type": "bidirectional",
        "description": "General-purpose GPIO P3.0 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions RxD (UART1 receive) and external interrupt INT4; P3.0 and P3.1 are weakly pulled up after power-up."
      },
      {
        "number": "20",
        "name": "P3.1",
        "type": "bidirectional",
        "description": "General-purpose GPIO P3.1 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate function TxD (UART1 transmit); P3.0 and P3.1 are in weak-pull-up/quasi-bidirectional mode after power-up."
      },
      {
        "number": "21",
        "name": "P3.2",
        "type": "bidirectional",
        "description": "General-purpose GPIO P3.2 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions INT0, SPI SCLK_4, I2C SCL_4, PWMETI, PWMETI2 and I2S clock I2SCK; it is sampled at power-up for the USB download mode decision."
      },
      {
        "number": "22",
        "name": "P3.3",
        "type": "bidirectional",
        "description": "General-purpose GPIO P3.3 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions INT1, SPI MISO_4, I2C SDA_4, PWM4N_4 and PWM7_2."
      },
      {
        "number": "23",
        "name": "P3.4",
        "type": "bidirectional",
        "description": "General-purpose GPIO P3.4 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions T0 external clock input, T1CLKO, SPI MOSI_4, PWM4P_4, PWM8_2, comparator output CMPO and I2S data I2SSD."
      },
      {
        "number": "24",
        "name": "P5.0",
        "type": "bidirectional",
        "description": "General-purpose GPIO P5.0 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions RxD3_2 (UART3 receive), CMP+_2 comparator positive input and CAN_RX_2."
      },
      {
        "number": "25",
        "name": "P5.1",
        "type": "bidirectional",
        "description": "General-purpose GPIO P5.1 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions TxD3_2 (UART3 transmit), CMP+_3 comparator positive input and CAN_TX_2."
      },
      {
        "number": "26",
        "name": "P3.5",
        "type": "bidirectional",
        "description": "General-purpose GPIO P3.5 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions T1 external clock input, T0CLKO, SPI SS_4, PWMFLT fault input and I2S word select I2SLRCK."
      },
      {
        "number": "27",
        "name": "P3.6",
        "type": "bidirectional",
        "description": "General-purpose GPIO P3.6 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions external interrupt INT2, RxD_2 (UART1 alternate receive) and comparator negative input CMP-."
      },
      {
        "number": "28",
        "name": "P3.7",
        "type": "bidirectional",
        "description": "General-purpose GPIO P3.7 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions external interrupt INT3, TxD_2 and comparator positive input CMP+ (from pinout map; description table page not in the provided text)."
      },
      {
        "number": "29",
        "name": "P4.1",
        "type": "bidirectional",
        "description": "General-purpose GPIO P4.1 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions MISO_3/S1MISO_3/S2MISO_3, CMPO_2 and PWMETI_2 (from pinout map)."
      },
      {
        "number": "30",
        "name": "P4.2",
        "type": "bidirectional",
        "description": "General-purpose GPIO P4.2 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions WR (LCD interface write) and CAN_RX_3 (from pinout map)."
      },
      {
        "number": "31",
        "name": "P4.3",
        "type": "bidirectional",
        "description": "General-purpose GPIO P4.3 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions RxD_4, SCLK_3/S1SCLK_3/S2SCLK_3 and I2SCK_4 (from pinout map)."
      },
      {
        "number": "32",
        "name": "P4.4",
        "type": "bidirectional",
        "description": "General-purpose GPIO P4.4 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions RD (LCD interface read) and TxD_4 (from pinout map)."
      },
      {
        "number": "33",
        "name": "P2.0",
        "type": "bidirectional",
        "description": "General-purpose GPIO P2.0 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions A8 (address bus), PWM1P_2 and PWM5 (from pinout map)."
      },
      {
        "number": "34",
        "name": "P2.1",
        "type": "bidirectional",
        "description": "General-purpose GPIO P2.1 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions A9 (address bus), PWM1N_2 and PWM6 (from pinout map)."
      },
      {
        "number": "35",
        "name": "P2.2",
        "type": "bidirectional",
        "description": "General-purpose GPIO P2.2 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions A10 (address bus), PWM2P_2, PWM7, SPI SS_2/S1SS_2/S2SS_2 and I2SWS_3 (from pinout map)."
      },
      {
        "number": "36",
        "name": "P2.3",
        "type": "bidirectional",
        "description": "General-purpose GPIO P2.3 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions A11 (address bus), PWM2N_2, PWM8, SPI MOSI_2/S1MOSI_2/S2MOSI_2 and I2SSD_3 (from pinout map)."
      },
      {
        "number": "37",
        "name": "P2.4",
        "type": "bidirectional",
        "description": "General-purpose GPIO P2.4 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions A12 (address bus), PWM3P_2, I2C SDA_2 and SPI MISO_2/S1MISO_2/S2MISO_2 (from pinout map)."
      },
      {
        "number": "38",
        "name": "P2.5",
        "type": "bidirectional",
        "description": "General-purpose GPIO P2.5 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions A13 (address bus), PWM3N_2, I2C SCL_2, SPI SCLK_2/S1SCLK_2/S2SCLK_2 and I2SCK_3 (from pinout map)."
      },
      {
        "number": "39",
        "name": "P2.6",
        "type": "bidirectional",
        "description": "General-purpose GPIO P2.6 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions A14 (address bus) and PWM4P_2 (from pinout map)."
      },
      {
        "number": "40",
        "name": "P2.7",
        "type": "bidirectional",
        "description": "General-purpose GPIO P2.7 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions A15 (address bus) and PWM4N_2 (from pinout map)."
      },
      {
        "number": "41",
        "name": "P4.5",
        "type": "bidirectional",
        "description": "General-purpose GPIO P4.5 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions ALE (address latch enable) and CAN_TX_3 (from pinout map)."
      },
      {
        "number": "42",
        "name": "P4.6",
        "type": "bidirectional",
        "description": "General-purpose GPIO P4.6 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions LIN_RX_3, CAN2_RX_3 and RxD2_2 (from pinout map)."
      },
      {
        "number": "43",
        "name": "P0.0",
        "type": "bidirectional",
        "description": "General-purpose GPIO P0.0 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions AD0 (address/data bus), ADC8, RxD3, PWM5_3, T3_2 and CAN_RX."
      },
      {
        "number": "44",
        "name": "P0.1",
        "type": "bidirectional",
        "description": "General-purpose GPIO P0.1 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions AD1 (address/data bus), ADC9, TxD3, PWM6_3, T3CLKO_2 and CAN_TX."
      },
      {
        "number": "45",
        "name": "P0.2",
        "type": "bidirectional",
        "description": "General-purpose GPIO P0.2 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions AD2 (address/data bus), ADC10, RxD4, PWM7_3, T4_2, CAN2_RX and LIN_RX."
      },
      {
        "number": "46",
        "name": "P0.3",
        "type": "bidirectional",
        "description": "General-purpose GPIO P0.3 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions AD3 (address/data bus), ADC11, TxD4, PWM8_3, T4CLKO_2, CAN2_TX and LIN_TX."
      },
      {
        "number": "47",
        "name": "P0.4",
        "type": "bidirectional",
        "description": "General-purpose GPIO P0.4 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions AD4 (address/data bus), ADC12 analog input and T3 timer 3 external clock input."
      },
      {
        "number": "48",
        "name": "P5.2",
        "type": "bidirectional",
        "description": "General-purpose GPIO P5.2 with selectable quasi-bidirectional, push-pull, open-drain or high-impedance input mode; alternate functions RxD4_2 (UART4 receive), CAN2_RX_2 and 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 package hint says LQFP-48 (7x7), but the datasheet gives LQFP48 as 9mm*9mm (se; MPN STC32G8K48-42I-LQFP48 is not listed on its own. The LQFP48 pinout and pin table come from the ST; PDF pages 318 and 319 (the pin description table for pins 28-42) are not in the provided text. Descr",
          "1/48 pins cited to the wrong page (name found elsewhere): ['16:ADC_VRef+@p316']"
        ],
        "pages_sent": 108,
        "cost_usd": 1.1033,
        "at": "2026-10-19T00:12:22"
      },
      "datasheet": {
        "url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8756362888305364992",
        "pages": 1887,
        "sha256": "59bba1d366cc8d33",
        "source_tier": "lcsc"
      },
      "cad": "KiCad official (CC-BY-SA 4.0)",
      "pins": {
        "total": 48,
        "described": 48,
        "cites_pages": true,
        "refuses_to_fabricate": true
      }
    },
    "viewers": {
      "symbol": "viewers/symbol.html",
      "footprint": "viewers/footprint.html"
    },
    "models_3d": [
      {
        "file": "stc32g8k48-42i-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-10-19",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      },
      {
        "file": "stc32g8k48-42i-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": "e42377c163dc810a622c032678bd52b3244c49d0b82d74b9fcf9db4db55cdd94",
        "checked": "2026-10-19",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      }
    ]
  }
}