main
Ray Publish 0.1.0 98897ff 7h ago
{
  "slug": "ch559l",
  "version": "0.1.0",
  "type": "component",
  "description": "WCH(Jiangsu Qin Heng) Microcontroller Units (MCUs/MPUs/SOCs), LQFP-48(7x7). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
  "tags": [
    "component",
    "embedded processors & controllers",
    "ch559l",
    "factory-2.0.0",
    "extractor-text"
  ],
  "dependencies": {},
  "hero": {
    "type": "image",
    "path": "docs/hero.png"
  },
  "files": [
    "page.json",
    "README.md",
    "ch559l.kicad_sym",
    "ch559l.kicad_mod",
    "ch559l.glb",
    "ch559l.step",
    "ch559l.lbr",
    "docs/hero.png",
    "docs/ch559l-datasheet.pdf",
    "viewers/symbol.html",
    "viewers/footprint.html",
    "ch559l-hero.glb",
    "ch559l-hero.overlay.json",
    "ch559l-etched.glb"
  ],
  "component": {
    "mpn": "CH559L",
    "manufacturer": "WCH(Jiangsu Qin Heng)",
    "package": "LQFP-48(7x7)",
    "pin_count": 48,
    "category": "Embedded Processors & Controllers",
    "subcategory": "Microcontroller Units (MCUs/MPUs/SOCs)",
    "datasheet": "https://datasheet.lcsc.com/datasheet/pdf/c41a4fde9a2fbe6af689fa0ceae309cc.pdf",
    "parts": {
      "symbol": "ch559l.kicad_sym",
      "footprint": "ch559l.kicad_mod",
      "model_3d": "ch559l-hero.glb",
      "model_3d_plain": "ch559l-etched.glb",
      "model_3d_step": "ch559l-etched.step",
      "model_3d_step_plain": "ch559l.step",
      "lbr": "ch559l.lbr"
    },
    "distributor_links": {
      "lcsc": "C150548"
    },
    "distributor_check": {
      "checked_at": "2026-10-22T21:27:33Z",
      "source": "Component Ocean /api/assign-pns",
      "digikey": {
        "pn": null,
        "status": "quota"
      },
      "mouser": {
        "pn": null,
        "status": "quota"
      }
    },
    "pins": [
      {
        "number": "1",
        "name": "P1.6/AIN6/MISO",
        "type": "bidirectional",
        "description": "Port 1 bit 6 GPIO with ADC analog input channel 6 and SPI0 MISO (master input/slave output); not 5V-tolerant."
      },
      {
        "number": "2",
        "name": "P1.7/AIN7/SCK",
        "type": "bidirectional",
        "description": "Port 1 bit 7 GPIO with ADC analog input channel 7 and SPI0 serial clock SCK; not 5V-tolerant."
      },
      {
        "number": "3",
        "name": "P5.7/RST",
        "type": "input",
        "description": "Port 5 bit 7 input pin, also configurable external reset input RST; the pin state is read via P5.7 in P5_IN."
      },
      {
        "number": "4",
        "name": "P3.0/RXD",
        "type": "bidirectional",
        "description": "Port 3 bit 0 GPIO with UART0 serial data input RXD."
      },
      {
        "number": "5",
        "name": "P4.5/PWM2_/A5",
        "type": "bidirectional",
        "description": "Port 4 bit 5 GPIO with PWM2 mapped output and direct-address bus output A5 in xbus mode."
      },
      {
        "number": "6",
        "name": "P4.4/LED3/TNOW_/TXD1_/A4",
        "type": "bidirectional",
        "description": "Port 4 bit 4 GPIO with LED data3 output, mapped UART1 TNOW/TXD1 and direct-address bus output A4."
      },
      {
        "number": "7",
        "name": "P3.1/TXD",
        "type": "bidirectional",
        "description": "Port 3 bit 1 GPIO with UART0 serial data output TXD."
      },
      {
        "number": "8",
        "name": "P3.2/LED0/INT0",
        "type": "bidirectional",
        "description": "Port 3 bit 2 GPIO with LED data0 output and external interrupt 0 input INT0."
      },
      {
        "number": "9",
        "name": "P3.3/LED1/!A15/INT1",
        "type": "bidirectional",
        "description": "Port 3 bit 3 GPIO with LED data1 output, inverted bus address A15 chip-select output (ALE disabled) and external interrupt 1 input INT1."
      },
      {
        "number": "10",
        "name": "P3.4/LEDC/XCS0/T0",
        "type": "bidirectional",
        "description": "Port 3 bit 4 GPIO with LED clock output, XCS0 chip-select output for 4000h-7FFFh and Timer0 external input T0."
      },
      {
        "number": "11",
        "name": "P3.5/DA6/T1",
        "type": "bidirectional",
        "description": "Port 3 bit 5 GPIO with direct-address bus output A6 and Timer1 external input T1."
      },
      {
        "number": "12",
        "name": "P3.6/WR",
        "type": "bidirectional",
        "description": "Port 3 bit 6 GPIO with external bus write signal WR (active low)."
      },
      {
        "number": "13",
        "name": "P3.7/RD",
        "type": "bidirectional",
        "description": "Port 3 bit 7 GPIO with external bus read signal RD (active low)."
      },
      {
        "number": "14",
        "name": "P4.3/PWM1_/A3",
        "type": "bidirectional",
        "description": "Port 4 bit 3 GPIO with PWM1 mapped output and direct-address bus output A3."
      },
      {
        "number": "15",
        "name": "P4.2/PWM3_/CAP3_/A2",
        "type": "bidirectional",
        "description": "Port 4 bit 2 GPIO with mapped PWM3/CAP3 and direct-address bus output A2."
      },
      {
        "number": "16",
        "name": "P4.6/XI/SCS_",
        "type": "bidirectional",
        "description": "Port 4 bit 6 GPIO, external crystal oscillator pin XI, and mapped SPI0 chip select SCS_; not 5V-tolerant."
      },
      {
        "number": "17",
        "name": "P4.7/XO/SCK_",
        "type": "bidirectional",
        "description": "Port 4 bit 7 GPIO, external crystal oscillator pin XO, and mapped SPI0 clock SCK_; not 5V-tolerant."
      },
      {
        "number": "18",
        "name": "GND",
        "type": "power_in",
        "description": "Ground (VSS)."
      },
      {
        "number": "19",
        "name": "P4.1/A1",
        "type": "bidirectional",
        "description": "Port 4 bit 1 GPIO with direct-address bus output A1."
      },
      {
        "number": "20",
        "name": "P4.0/LED2/A0/RXD1_",
        "type": "bidirectional",
        "description": "Port 4 bit 0 GPIO with LED data2 output, direct-address bus output A0 and mapped UART1 RXD1_."
      },
      {
        "number": "21",
        "name": "P2.0/A8",
        "type": "bidirectional",
        "description": "Port 2 bit 0 GPIO with bus address output A8."
      },
      {
        "number": "22",
        "name": "P2.1/MOSI1/A9",
        "type": "bidirectional",
        "description": "Port 2 bit 1 GPIO with SPI1 master output MOSI1 and bus address output A9."
      },
      {
        "number": "23",
        "name": "P2.2/MISO1/A10",
        "type": "bidirectional",
        "description": "Port 2 bit 2 GPIO with SPI1 master input MISO1 and bus address output A10."
      },
      {
        "number": "24",
        "name": "P2.3/SCK1/A11",
        "type": "bidirectional",
        "description": "Port 2 bit 3 GPIO with SPI1 serial clock output SCK1 and bus address output A11."
      },
      {
        "number": "25",
        "name": "P2.4/PWM1/A12",
        "type": "bidirectional",
        "description": "Port 2 bit 4 GPIO with PWM1 output and bus address output A12."
      },
      {
        "number": "26",
        "name": "P2.5/TNOW/PWM2/A13/T2EX_/CAP2_",
        "type": "bidirectional",
        "description": "Port 2 bit 5 GPIO with UART1 transmit indicator TNOW, PWM2 output, bus address A13 and mapped T2EX/CAP2."
      },
      {
        "number": "27",
        "name": "P2.6/RXD1/A14",
        "type": "bidirectional",
        "description": "Port 2 bit 6 GPIO with UART1 serial data input RXD1 and bus address output A14."
      },
      {
        "number": "28",
        "name": "P2.7/TXD1/DA7/A15",
        "type": "bidirectional",
        "description": "Port 2 bit 7 GPIO with UART1 serial data output TXD1, direct-address output A7 and bus address A15."
      },
      {
        "number": "29",
        "name": "P5.5/HP/!A15/XA",
        "type": "bidirectional",
        "description": "Port 5 bit 5 with USB root-hub port D+ (HP), inverted A15 output when ALE output is enabled, and controllable internal pull-down resistor."
      },
      {
        "number": "30",
        "name": "P5.4/HM/ALE/XB",
        "type": "bidirectional",
        "description": "Port 5 bit 4 with USB root-hub port D- (HM), ALE output (address latch or Fsys/12), and controllable internal pull-down resistor."
      },
      {
        "number": "31",
        "name": "P5.1/DP",
        "type": "bidirectional",
        "description": "Port 5 bit 1 with USB data line DP (D+) and controllable internal pull-down resistor."
      },
      {
        "number": "32",
        "name": "P5.0/DM",
        "type": "bidirectional",
        "description": "Port 5 bit 0 with USB data line DM (D-) and controllable internal pull-down resistor."
      },
      {
        "number": "33",
        "name": "P0.7/AD7/UDCD",
        "type": "bidirectional",
        "description": "Port 0 bit 7, open-drain bidirectional by default, with xbus data/address bit AD7 and UART1 modem input UDCD."
      },
      {
        "number": "34",
        "name": "P0.6/AD6/URI",
        "type": "bidirectional",
        "description": "Port 0 bit 6, open-drain bidirectional by default, with xbus data/address bit AD6 and UART1 modem input URI."
      },
      {
        "number": "35",
        "name": "P0.5/AD5/UDSR",
        "type": "bidirectional",
        "description": "Port 0 bit 5, open-drain bidirectional by default, with xbus data/address bit AD5 and UART1 modem input UDSR."
      },
      {
        "number": "36",
        "name": "P0.4/AD4/UCTS",
        "type": "bidirectional",
        "description": "Port 0 bit 4, open-drain bidirectional by default, with xbus data/address bit AD4 and UART1 modem input UCTS."
      },
      {
        "number": "37",
        "name": "P0.3/AD3/TXD_",
        "type": "bidirectional",
        "description": "Port 0 bit 3, open-drain bidirectional by default, with xbus data/address bit AD3 and mapped UART0 TXD_."
      },
      {
        "number": "38",
        "name": "P0.2/AD2/RXD_",
        "type": "bidirectional",
        "description": "Port 0 bit 2, open-drain bidirectional by default, with xbus data/address bit AD2 and mapped UART0 RXD_."
      },
      {
        "number": "39",
        "name": "P0.1/AD1/URTS",
        "type": "bidirectional",
        "description": "Port 0 bit 1, open-drain bidirectional by default, with xbus data/address bit AD1 and UART1 modem output URTS."
      },
      {
        "number": "40",
        "name": "P0.0/AD0/UDTR",
        "type": "bidirectional",
        "description": "Port 0 bit 0, open-drain bidirectional by default, with xbus data/address bit AD0 and UART1 modem output UDTR."
      },
      {
        "number": "41",
        "name": "VIN5",
        "type": "power_in",
        "description": "5V external power input of the internal 5V->3.3V LDO; requires an external 0.1uF decoupling capacitor."
      },
      {
        "number": "42",
        "name": "VDD33",
        "type": "power_in",
        "description": "Internal regulator output and internal 3.3V working power input; connect VIN5 to the supply when below 3.6V, and an external 3.3uF decoupling capacitor is required above 3.6V."
      },
      {
        "number": "43",
        "name": "P1.0/AIN0/T2/CAP1",
        "type": "bidirectional",
        "description": "Port 1 bit 0 GPIO with ADC input channel 0, Timer2 external count input/clock output T2 and capture input CAP1; not 5V-tolerant."
      },
      {
        "number": "44",
        "name": "P1.1/AIN1/T2EX/CAP2",
        "type": "bidirectional",
        "description": "Port 1 bit 1 GPIO with ADC input channel 1, Timer2 reload/capture input T2EX and capture input CAP2; not 5V-tolerant."
      },
      {
        "number": "45",
        "name": "P1.2/AIN2/PWM3/CAP3",
        "type": "bidirectional",
        "description": "Port 1 bit 2 GPIO with ADC input channel 2 and Timer3 PWM3 output/CAP3 capture input; not 5V-tolerant."
      },
      {
        "number": "46",
        "name": "P1.3/AIN3",
        "type": "bidirectional",
        "description": "Port 1 bit 3 GPIO with ADC analog input channel 3; not 5V-tolerant."
      },
      {
        "number": "47",
        "name": "P1.4/AIN4/SCS",
        "type": "bidirectional",
        "description": "Port 1 bit 4 GPIO with ADC input channel 4 and SPI0 chip select SCS; not 5V-tolerant."
      },
      {
        "number": "48",
        "name": "P1.5/AIN5/MOSI",
        "type": "bidirectional",
        "description": "Port 1 bit 5 GPIO with ADC input channel 5 and SPI0 MOSI (master output/slave input); 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: The datasheet pages given skip page 5, so the descriptions for P4.5 to P4.7 and P5.x pins are partly; Pin types are inferred. GPIO pins are set to bidirectional. P5.7/RST is set to input because it is r; The pin-definition table on pages 3 and 4 and the package diagram agree on the LQFP48 pin numbers fo"
        ],
        "pages_sent": 20,
        "cost_usd": 0.2741,
        "at": "2026-10-22T21:27:15"
      },
      "datasheet": {
        "url": "https://datasheet.lcsc.com/datasheet/pdf/c41a4fde9a2fbe6af689fa0ceae309cc.pdf",
        "pages": 93,
        "sha256": "f3f1d22954ee4bb3",
        "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": "ch559l.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-22",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      },
      {
        "file": "ch559l-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": "99111edb3f45873e42118e82197e917bfe589f106cd6ed9b3f9d9c46261673cb",
        "checked": "2026-10-22",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      }
    ]
  }
}