main
Ray Publish 0.1.0 240c7a8 2h ago
{
  "slug": "ch558l",
  "version": "0.1.0",
  "type": "component",
  "description": "WCH(Jiangsu Qin Heng) Microcontroller Units (MCUs/MPUs/SOCs), TQFP-48(7x7). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
  "tags": [
    "component",
    "embedded processors & controllers",
    "ch558l",
    "factory-2.0.0",
    "extractor-text"
  ],
  "dependencies": {},
  "hero": {
    "type": "image",
    "path": "docs/hero.png"
  },
  "files": [
    "page.json",
    "README.md",
    "ch558l.kicad_sym",
    "ch558l.kicad_mod",
    "ch558l.glb",
    "ch558l.step",
    "ch558l.lbr",
    "docs/hero.png",
    "docs/ch558l-datasheet.pdf",
    "viewers/symbol.html",
    "viewers/footprint.html",
    "ch558l-hero.glb",
    "ch558l-hero.overlay.json",
    "ch558l-etched.glb"
  ],
  "component": {
    "mpn": "CH558L",
    "manufacturer": "WCH(Jiangsu Qin Heng)",
    "package": "TQFP-48(7x7)",
    "pin_count": 48,
    "category": "Embedded Processors & Controllers",
    "subcategory": "Microcontroller Units (MCUs/MPUs/SOCs)",
    "datasheet": "https://datasheet.lcsc.com/datasheet/pdf/788990aa700d49c96eef10dc65511111.pdf",
    "parts": {
      "symbol": "ch558l.kicad_sym",
      "footprint": "ch558l.kicad_mod",
      "model_3d": "ch558l-hero.glb",
      "model_3d_plain": "ch558l-etched.glb",
      "model_3d_step": "ch558l-etched.step",
      "model_3d_step_plain": "ch558l.step",
      "lbr": "ch558l.lbr"
    },
    "distributor_links": {
      "lcsc": "C139617"
    },
    "distributor_check": {
      "checked_at": "2026-10-22T22:17:26Z",
      "source": "Component Ocean /api/assign-pns",
      "digikey": {
        "pn": null,
        "status": "quota"
      },
      "mouser": {
        "pn": null,
        "status": "quota"
      }
    },
    "pins": [
      {
        "number": "1",
        "name": "P1.6",
        "type": "bidirectional",
        "description": "P1.6 GPIO with ADC input AIN6 and SPI0 MISO; not 5V tolerant (P1 pins are excluded from 5V-tolerant inputs)."
      },
      {
        "number": "2",
        "name": "P1.7",
        "type": "bidirectional",
        "description": "P1.7 GPIO with ADC input AIN7 and SPI0 SCK; not 5V tolerant."
      },
      {
        "number": "3",
        "name": "P5.7",
        "type": "input",
        "description": "P5.7 / RST external reset input with built-in pull-down resistor; not 5V tolerant."
      },
      {
        "number": "4",
        "name": "P3.0",
        "type": "bidirectional",
        "description": "P3.0 GPIO with UART0 RXD serial data input; 5V tolerant input."
      },
      {
        "number": "5",
        "name": "P4.5",
        "type": "bidirectional",
        "description": "P4.5 GPIO with external bus direct-address output A5."
      },
      {
        "number": "6",
        "name": "P4.4",
        "type": "bidirectional",
        "description": "P4.4 GPIO with LED3 serial data output, TNOW_/TXD1_ UART1 remap and bus address A4."
      },
      {
        "number": "7",
        "name": "P3.1",
        "type": "bidirectional",
        "description": "P3.1 GPIO with UART0 TXD serial data output."
      },
      {
        "number": "8",
        "name": "P3.2",
        "type": "bidirectional",
        "description": "P3.2 GPIO with LED0 serial data output and external interrupt 0 input INT0."
      },
      {
        "number": "9",
        "name": "P3.3",
        "type": "bidirectional",
        "description": "P3.3 GPIO with LED1 data output, inverted bus address A15 (!A15) chip select and external interrupt 1 input INT1."
      },
      {
        "number": "10",
        "name": "P3.4",
        "type": "bidirectional",
        "description": "P3.4 GPIO with LEDC clock output, XCS0 chip select (bus 4000h-7FFFh) and Timer0 external input T0."
      },
      {
        "number": "11",
        "name": "P3.5",
        "type": "bidirectional",
        "description": "P3.5 GPIO with direct-address bus output DA6 and Timer1 external input T1."
      },
      {
        "number": "12",
        "name": "P3.6",
        "type": "bidirectional",
        "description": "P3.6 GPIO with external bus write strobe WR."
      },
      {
        "number": "13",
        "name": "P3.7",
        "type": "bidirectional",
        "description": "P3.7 GPIO with external bus read strobe RD."
      },
      {
        "number": "14",
        "name": "P4.3",
        "type": "bidirectional",
        "description": "P4.3 GPIO with external bus direct-address output A3."
      },
      {
        "number": "15",
        "name": "P4.2",
        "type": "bidirectional",
        "description": "P4.2 GPIO with PWM3_/CAP3_ (Timer3 PWM output/capture input remap) and bus address A2."
      },
      {
        "number": "16",
        "name": "P4.6",
        "type": "bidirectional",
        "description": "P4.6 GPIO, crystal oscillator input XI, or SPI0 SCS_ remap; not 5V tolerant."
      },
      {
        "number": "17",
        "name": "P4.7",
        "type": "bidirectional",
        "description": "P4.7 GPIO, crystal oscillator inverting output XO, or SPI0 SCK_ remap; not 5V tolerant."
      },
      {
        "number": "18",
        "name": "GND",
        "type": "power_in",
        "description": "Common ground (VSS)."
      },
      {
        "number": "19",
        "name": "P4.1",
        "type": "bidirectional",
        "description": "P4.1 GPIO with external bus direct-address output A1; selectable as GPIO interrupt source."
      },
      {
        "number": "20",
        "name": "P4.0",
        "type": "bidirectional",
        "description": "P4.0 GPIO with LED2 data output, bus address A0 and UART1 RXD1_ remap."
      },
      {
        "number": "21",
        "name": "P2.0",
        "type": "bidirectional",
        "description": "P2.0 GPIO with external bus high address output A8."
      },
      {
        "number": "22",
        "name": "P2.1",
        "type": "bidirectional",
        "description": "P2.1 GPIO with external bus high address output A9."
      },
      {
        "number": "23",
        "name": "P2.2",
        "type": "bidirectional",
        "description": "P2.2 GPIO with external bus high address output A10."
      },
      {
        "number": "24",
        "name": "P2.3",
        "type": "bidirectional",
        "description": "P2.3 GPIO with external bus high address output A11."
      },
      {
        "number": "25",
        "name": "P2.4",
        "type": "bidirectional",
        "description": "P2.4 GPIO with external bus high address output A12."
      },
      {
        "number": "26",
        "name": "P2.5",
        "type": "bidirectional",
        "description": "P2.5 GPIO with UART1 TNOW transmit indicator, bus address A13 and T2EX_/CAP2_ Timer2 remap."
      },
      {
        "number": "27",
        "name": "P2.6",
        "type": "bidirectional",
        "description": "P2.6 GPIO with UART1 RXD1 input and bus address A14."
      },
      {
        "number": "28",
        "name": "P2.7",
        "type": "bidirectional",
        "description": "P2.7 GPIO with UART1 TXD1 output, direct address DA7 and bus address A15."
      },
      {
        "number": "29",
        "name": "P5.5",
        "type": "bidirectional",
        "description": "P5.5 GPIO with inverted bus address A15 (!A15) or iRS485 XA (A/non-inverting) signal; built-in pull-down when not in iRS485 mode."
      },
      {
        "number": "30",
        "name": "P5.4",
        "type": "bidirectional",
        "description": "P5.4 GPIO with ALE address latch output or iRS485 XB (B/inverting) signal; built-in pull-down when not in iRS485 mode."
      },
      {
        "number": "31",
        "name": "P5.1",
        "type": "bidirectional",
        "description": "P5.1 GPIO / USB device D+ (DP) signal, with controllable internal pull-down."
      },
      {
        "number": "32",
        "name": "P5.0",
        "type": "bidirectional",
        "description": "P5.0 GPIO / USB device D- (DM) signal, with controllable internal pull-down."
      },
      {
        "number": "33",
        "name": "P0.7",
        "type": "bidirectional",
        "description": "P0.7 open-drain bidirectional port pin with bus data AD7 and UART1 modem input UDCD."
      },
      {
        "number": "34",
        "name": "P0.6",
        "type": "bidirectional",
        "description": "P0.6 open-drain bidirectional port pin with bus data AD6 and UART1 modem input URI."
      },
      {
        "number": "35",
        "name": "P0.5",
        "type": "bidirectional",
        "description": "P0.5 open-drain bidirectional port pin with bus data AD5 and UART1 modem input UDSR."
      },
      {
        "number": "36",
        "name": "P0.4",
        "type": "bidirectional",
        "description": "P0.4 open-drain bidirectional port pin with bus data AD4 and UART1 modem input UCTS."
      },
      {
        "number": "37",
        "name": "P0.3",
        "type": "bidirectional",
        "description": "P0.3 open-drain bidirectional port pin with bus data AD3 and UART0 TXD_ remap; selectable as GPIO interrupt source."
      },
      {
        "number": "38",
        "name": "P0.2",
        "type": "bidirectional",
        "description": "P0.2 open-drain bidirectional port pin with bus data AD2 and UART0 RXD_ remap."
      },
      {
        "number": "39",
        "name": "P0.1",
        "type": "bidirectional",
        "description": "P0.1 open-drain bidirectional port pin with bus data AD1 and UART1 modem output URTS."
      },
      {
        "number": "40",
        "name": "P0.0",
        "type": "bidirectional",
        "description": "P0.0 open-drain bidirectional port pin with bus data AD0 and UART1 modem output UDTR; optional internal pull-up via P0_PU."
      },
      {
        "number": "41",
        "name": "VIN5",
        "type": "power_in",
        "description": "5V external supply input to the internal 5V-to-3.3V regulator; needs a 0.1uF decoupling capacitor (3.3V to 5V supply, max 5.5V typical-range)."
      },
      {
        "number": "42",
        "name": "VDD33",
        "type": "power_in",
        "description": "Regulator output and 3.3V internal supply input; connect to VIN5 when supply is below 3.6V, otherwise add a 3.3uF decoupling capacitor (2.85V to 3.6V)."
      },
      {
        "number": "43",
        "name": "P1.0",
        "type": "bidirectional",
        "description": "P1.0 GPIO with ADC input AIN0, Timer2 external input/clock output T2 and capture input CAP1; not 5V tolerant."
      },
      {
        "number": "44",
        "name": "P1.1",
        "type": "bidirectional",
        "description": "P1.1 GPIO with ADC input AIN1, Timer2 reload/capture input T2EX and capture CAP2; not 5V tolerant."
      },
      {
        "number": "45",
        "name": "P1.2",
        "type": "bidirectional",
        "description": "P1.2 GPIO with ADC input AIN2 and Timer3 PWM3 output/CAP3 capture input; not 5V tolerant."
      },
      {
        "number": "46",
        "name": "P1.3",
        "type": "bidirectional",
        "description": "P1.3 GPIO with ADC input AIN3; not 5V tolerant."
      },
      {
        "number": "47",
        "name": "P1.4",
        "type": "bidirectional",
        "description": "P1.4 GPIO with ADC input AIN4 and SPI0 chip select SCS (also programming chip select); not 5V tolerant."
      },
      {
        "number": "48",
        "name": "P1.5",
        "type": "bidirectional",
        "description": "P1.5 GPIO with ADC input AIN5 and SPI0 MOSI; not 5V tolerant."
      }
    ],
    "provenance": {
      "extractor": "extract_pins 0.3",
      "factory_chain": {
        "factory": "2.0.0",
        "extractor": "extract_pins 0.3",
        "primary_model": "claude-sonnet-5-5",
        "primary_mode": "text",
        "consensus_model": "claude-sonnet-5-5",
        "consensus": "agreed",
        "guards": "pin_guards 0.1: passed",
        "guard_notes": [
          "extractor flagged: Datasheet lists the CH558L package as LQFP-48 7x7mm 0.5mm pitch, while the hint says TQFP-48(7x7); t; VDD33 is typed power_in, but it is also the regulator output when powered from 5V on VIN5; it may ne; Pin 41 description: the datasheet gives VIN5 external supply 3.6-5.5V when VDD33 has only a capacito"
        ],
        "pages_sent": 56,
        "cost_usd": 0.6835,
        "at": "2026-10-22T22:17:09"
      },
      "datasheet": {
        "url": "https://datasheet.lcsc.com/datasheet/pdf/788990aa700d49c96eef10dc65511111.pdf",
        "pages": 65,
        "sha256": "2b45c8b5f7296514",
        "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": "ch558l.step",
        "role": "plain",
        "up": "Z",
        "units": "mm",
        "origin": "footprint origin = pad-pattern centre",
        "seat": "z = 0",
        "extents_mm": [
          9.0,
          9.0,
          1.1
        ],
        "zmin_mm": -0.0,
        "centre_offset_mm": 0.0,
        "footprint_binding": "identity",
        "sha256": "14ca7676e4932e92f0eca0c6d56ce3018cd28a2531204a70ab7bbacb3eeb3cf5",
        "checked": "2026-10-22",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      },
      {
        "file": "ch558l-etched.step",
        "role": "eda",
        "up": "Z",
        "units": "mm",
        "origin": "footprint origin = pad-pattern centre",
        "seat": "z = 0",
        "extents_mm": [
          9.0,
          9.0,
          1.1
        ],
        "zmin_mm": -0.0,
        "centre_offset_mm": 0.0,
        "footprint_binding": "identity",
        "sha256": "21c34391b86f76b0f4a7005755de7c86c8c9cebb1dabf0b60cca4c9b58152d42",
        "checked": "2026-10-22",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      }
    ]
  }
}