main
Ray Publish 0.1.0 1f79a31
{
  "slug": "xm004",
  "version": "0.1.0",
  "type": "component",
  "description": "Shenzhen Fuman Microcontroller Units (MCUs/MPUs/SOCs), TSSOP-20. Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
  "tags": [
    "component",
    "single chip microcomputer-microcontroller",
    "xm004",
    "factory-2.0.0",
    "extractor-text"
  ],
  "dependencies": {},
  "hero": {
    "type": "image",
    "path": "docs/hero.png"
  },
  "files": [
    "page.json",
    "README.md",
    "xm004.kicad_sym",
    "xm004.kicad_mod",
    "xm004.glb",
    "xm004.step",
    "xm004.lbr",
    "docs/hero.png",
    "docs/xm004-datasheet.pdf",
    "viewers/symbol.html",
    "viewers/footprint.html",
    "xm004-hero.glb",
    "xm004-hero.overlay.json",
    "xm004-etched.glb"
  ],
  "component": {
    "mpn": "XM004",
    "manufacturer": "Shenzhen Fuman",
    "package": "TSSOP-20",
    "pin_count": 20,
    "category": "Single Chip Microcomputer/Microcontroller",
    "subcategory": "Microcontroller Units (MCUs/MPUs/SOCs)",
    "datasheet": "https://datasheet.lcsc.com/datasheet/pdf/e5fca1c01a1e65a4e267876c592f2f64.pdf",
    "parts": {
      "symbol": "xm004.kicad_sym",
      "footprint": "xm004.kicad_mod",
      "model_3d": "xm004-hero.glb",
      "model_3d_plain": "xm004-etched.glb",
      "model_3d_step": "xm004-etched.step",
      "model_3d_step_plain": "xm004.step",
      "lbr": "xm004.lbr"
    },
    "distributor_links": {
      "lcsc": "C2937658"
    },
    "distributor_check": {
      "checked_at": "2026-10-29T01:31:55Z",
      "source": "Component Ocean /api/assign-pns",
      "digikey": {
        "pn": null,
        "status": "no match"
      },
      "mouser": {
        "pn": null,
        "status": "no match"
      }
    },
    "pins": [
      {
        "number": "1",
        "name": "P2.0",
        "type": "bidirectional",
        "description": "General-purpose I/O port P2.0, also usable as ADC input AN8 and external interrupt INT8."
      },
      {
        "number": "2",
        "name": "P0.5",
        "type": "bidirectional",
        "description": "General-purpose I/O port P0.5, also usable as ADC input AN5 and external interrupt INT5."
      },
      {
        "number": "3",
        "name": "P0.4",
        "type": "bidirectional",
        "description": "General-purpose I/O port P0.4, also usable as ADC input AN4, ADC external reference voltage input/output Vref, and external interrupt INT4."
      },
      {
        "number": "4",
        "name": "P0.3",
        "type": "bidirectional",
        "description": "General-purpose I/O port P0.3, also usable as ADC input AN3, external interrupt INT3, and SCK (two-wire mode clock input)."
      },
      {
        "number": "5",
        "name": "P0.2",
        "type": "bidirectional",
        "description": "General-purpose I/O port P0.2, also usable as external interrupt INT2, PWM2 fault-detection input FLT2, and external crystal oscillator input XIN."
      },
      {
        "number": "6",
        "name": "P0.1",
        "type": "bidirectional",
        "description": "General-purpose I/O port P0.1, also usable as ADC input AN1, external interrupt INT1, PWM1 fault-detection input FLT1, and external crystal oscillator output XOUT."
      },
      {
        "number": "7",
        "name": "GND",
        "type": "power_in",
        "description": "Power ground (0 V reference) for the device."
      },
      {
        "number": "8",
        "name": "P0.0",
        "type": "bidirectional",
        "description": "General-purpose I/O port P0.0, also usable as ADC input AN0, external interrupt INT0, and PWM0 fault-detection input FLT0."
      },
      {
        "number": "9",
        "name": "VDD",
        "type": "power_in",
        "description": "Power supply input; the datasheet gives a working range of 2.0 V to 5.5 V and an absolute maximum of -0.3 V to +6.0 V."
      },
      {
        "number": "10",
        "name": "P1.1",
        "type": "bidirectional",
        "description": "General-purpose I/O port P1.1, software-configurable as external interrupt 1 input INT1_1."
      },
      {
        "number": "11",
        "name": "P1.0",
        "type": "bidirectional",
        "description": "General-purpose I/O port P1.0, software-configurable as external interrupt 0 input INT0_0."
      },
      {
        "number": "12",
        "name": "P2.7",
        "type": "bidirectional",
        "description": "General-purpose I/O port P2.7, also usable as external reset input RST and external interrupt INT15; it is the default reset pin and can be set to a normal I/O via code option."
      },
      {
        "number": "13",
        "name": "P2.6",
        "type": "bidirectional",
        "description": "General-purpose I/O port P2.6, also usable as external interrupt INT14 and port low-voltage detection input PLVD."
      },
      {
        "number": "14",
        "name": "P2.5",
        "type": "bidirectional",
        "description": "General-purpose I/O port P2.5, also usable as ADC input AN2 and external interrupt INT13."
      },
      {
        "number": "15",
        "name": "P2.4",
        "type": "bidirectional",
        "description": "General-purpose I/O port P2.4, also usable as external interrupt INT12."
      },
      {
        "number": "16",
        "name": "P2.3",
        "type": "bidirectional",
        "description": "General-purpose I/O port P2.3, also usable as external interrupt INT11."
      },
      {
        "number": "17",
        "name": "P2.2",
        "type": "bidirectional",
        "description": "General-purpose I/O port P2.2, also usable as ADC input AN10 and external interrupt INT10."
      },
      {
        "number": "18",
        "name": "P2.1",
        "type": "bidirectional",
        "description": "General-purpose I/O port P2.1, also usable as ADC input AN9, external interrupt INT9, and SDA (two-wire mode data I/O)."
      },
      {
        "number": "19",
        "name": "P0.6",
        "type": "bidirectional",
        "description": "General-purpose I/O port P0.6, also usable as ADC input AN6 and external interrupt INT6."
      },
      {
        "number": "20",
        "name": "P0.7",
        "type": "bidirectional",
        "description": "General-purpose I/O port P0.7, also usable as ADC input AN7 and external interrupt INT7."
      }
    ],
    "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: Datasheet pin table lists TSSOP20 only (package type on page 2, pinout figure on page 3, package dra; Pin 12 (P2.7) is the factory-default RST pin; per page 3 note 4 it can be reconfigured to a normal I; Several pins are shared between GPIO and analog or crystal functions (XIN on pin 5, XOUT on pin 6, V"
        ],
        "pages_sent": 15,
        "cost_usd": 0.0688,
        "at": "2026-10-29T01:31:36"
      },
      "datasheet": {
        "url": "https://datasheet.lcsc.com/datasheet/pdf/e5fca1c01a1e65a4e267876c592f2f64.pdf",
        "pages": 15,
        "sha256": "39afb7c52d79a4f3",
        "source_tier": "lcsc"
      },
      "cad": "KiCad official (CC-BY-SA 4.0)",
      "pins": {
        "total": 20,
        "described": 20,
        "cites_pages": true,
        "refuses_to_fabricate": true
      }
    },
    "viewers": {
      "symbol": "viewers/symbol.html",
      "footprint": "viewers/footprint.html"
    },
    "models_3d": [
      {
        "file": "xm004.step",
        "role": "plain",
        "up": "Z",
        "units": "mm",
        "origin": "footprint origin = pad-pattern centre",
        "seat": "z = 0",
        "extents_mm": [
          6.4,
          6.5,
          1.2
        ],
        "zmin_mm": -0.0,
        "centre_offset_mm": 0.0,
        "footprint_binding": "identity",
        "sha256": "97339947f3a7196470ec2f1d9f9b92bb2fc2ab66ad53be0cf105192585ef3c9a",
        "checked": "2026-10-29",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      },
      {
        "file": "xm004-etched.step",
        "role": "eda",
        "up": "Z",
        "units": "mm",
        "origin": "footprint origin = pad-pattern centre",
        "seat": "z = 0",
        "extents_mm": [
          6.4,
          6.5,
          1.2
        ],
        "zmin_mm": -0.0,
        "centre_offset_mm": 0.0,
        "footprint_binding": "identity",
        "sha256": "145ba1d3aed3bf0e4a8ead24bb23530a039bedec20ac5b713b5cbbeb1d591fa2",
        "checked": "2026-10-29",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      }
    ]
  }
}