main
Ray Publish 0.1.0 50c125a
{
  "slug": "atsamd21g18a-af",
  "version": "0.1.0",
  "type": "component",
  "description": "Microchip Tech Microcontroller Units (MCUs/MPUs/SOCs), TQFP-48(7x7). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
  "tags": [
    "component",
    "single chip microcomputer-microcontroller",
    "atsamd21g18a-af",
    "factory-2.0.0",
    "extractor-text"
  ],
  "dependencies": {},
  "hero": {
    "type": "image",
    "path": "docs/hero.png"
  },
  "files": [
    "page.json",
    "README.md",
    "atsamd21g18a-af.kicad_sym",
    "atsamd21g18a-af.kicad_mod",
    "atsamd21g18a-af.glb",
    "atsamd21g18a-af.step",
    "atsamd21g18a-af.lbr",
    "docs/hero.png",
    "docs/atsamd21g18a-af-datasheet.pdf",
    "viewers/symbol.html",
    "viewers/footprint.html",
    "atsamd21g18a-af-hero.glb",
    "atsamd21g18a-af-hero.overlay.json"
  ],
  "component": {
    "mpn": "ATSAMD21G18A-AF",
    "manufacturer": "Microchip Tech",
    "package": "TQFP-48(7x7)",
    "pin_count": 48,
    "category": "Single Chip Microcomputer/Microcontroller",
    "subcategory": "Microcontroller Units (MCUs/MPUs/SOCs)",
    "datasheet": "https://datasheet.lcsc.com/datasheet/pdf/d70e0a926271e38a2611b8b6dcc19c07.pdf",
    "parts": {
      "symbol": "atsamd21g18a-af.kicad_sym",
      "footprint": "atsamd21g18a-af.kicad_mod",
      "model_3d": "atsamd21g18a-af-hero.glb",
      "model_3d_plain": "atsamd21g18a-af.glb",
      "model_3d_step": "atsamd21g18a-af-etched.step",
      "model_3d_step_plain": "atsamd21g18a-af.step",
      "lbr": "atsamd21g18a-af.lbr"
    },
    "distributor_links": {
      "lcsc": "C619067",
      "digikey": "ATSAMD21G18A-AF-ND",
      "mouser": "556-ATSAMD21G18A-AF"
    },
    "distributor_check": {
      "checked_at": "2026-11-13T17:48:50Z",
      "source": "Component Ocean /api/assign-pns",
      "digikey": {
        "pn": "ATSAMD21G18A-AF-ND",
        "status": "found"
      },
      "mouser": {
        "pn": "556-ATSAMD21G18A-AF",
        "status": "found"
      }
    },
    "pins": [
      {
        "number": "1",
        "name": "PA00",
        "type": "bidirectional",
        "description": "GPIO on VDDANA supply with EXTINT[0]; also XIN32 for the 32kHz crystal oscillator, SERCOM1 PAD[0], TCC2/WO[0]."
      },
      {
        "number": "2",
        "name": "PA01",
        "type": "bidirectional",
        "description": "GPIO on VDDANA supply with EXTINT[1]; also XOUT32 for the 32kHz crystal oscillator, SERCOM1 PAD[1], TCC2/WO[1]."
      },
      {
        "number": "3",
        "name": "PA02",
        "type": "bidirectional",
        "description": "GPIO on VDDANA supply with EXTINT[2], ADC AIN[0], PTC Y[0] and DAC VOUT."
      },
      {
        "number": "4",
        "name": "PA03",
        "type": "bidirectional",
        "description": "GPIO on VDDANA supply with EXTINT[3], ADC/DAC VREFA, ADC AIN[1], PTC Y[1]."
      },
      {
        "number": "5",
        "name": "GNDANA",
        "type": "power_in",
        "description": "Analog ground for the VDDANA domain."
      },
      {
        "number": "6",
        "name": "VDDANA",
        "type": "power_in",
        "description": "Analog supply input powering the analog I/O pins (PA00-PA07, PB00-PB09)."
      },
      {
        "number": "7",
        "name": "PB08",
        "type": "bidirectional",
        "description": "GPIO on VDDANA supply with EXTINT[8], ADC AIN[2], PTC Y[14], SERCOM4 PAD[0], TC4/WO[0]."
      },
      {
        "number": "8",
        "name": "PB09",
        "type": "bidirectional",
        "description": "GPIO on VDDANA supply with EXTINT[9], ADC AIN[3], PTC Y[15], SERCOM4 PAD[1], TC4/WO[1]."
      },
      {
        "number": "9",
        "name": "PA04",
        "type": "bidirectional",
        "description": "GPIO on VDDANA supply with EXTINT[4], ADC VREFB, ADC AIN[4], AC AIN[0], PTC Y[2], SERCOM0 PAD[0]."
      },
      {
        "number": "10",
        "name": "PA05",
        "type": "bidirectional",
        "description": "GPIO on VDDANA supply with EXTINT[5], ADC AIN[5], AC AIN[1], PTC Y[3], SERCOM0 PAD[1]."
      },
      {
        "number": "11",
        "name": "PA06",
        "type": "bidirectional",
        "description": "GPIO on VDDANA supply with EXTINT[6], ADC AIN[6], AC AIN[2], PTC Y[4], SERCOM0 PAD[2]."
      },
      {
        "number": "12",
        "name": "PA07",
        "type": "bidirectional",
        "description": "GPIO on VDDANA supply with EXTINT[7], ADC AIN[7], AC AIN[3], PTC Y[5], SERCOM0 PAD[3], I2S SD[0]."
      },
      {
        "number": "13",
        "name": "PA08",
        "type": "bidirectional",
        "description": "GPIO on VDDIO supply with NMI, ADC AIN[16], PTC X[0], SERCOM0/2 PAD[0], I2S SD[1]; supports I2C."
      },
      {
        "number": "14",
        "name": "PA09",
        "type": "bidirectional",
        "description": "GPIO on VDDIO supply with EXTINT[9], ADC AIN[17], PTC X[1], SERCOM0/2 PAD[1], I2S MCK[0]; supports I2C."
      },
      {
        "number": "15",
        "name": "PA10",
        "type": "bidirectional",
        "description": "GPIO on VDDIO supply with EXTINT[10], ADC AIN[18], PTC X[2], SERCOM0/2 PAD[2], I2S SCK[0], GCLK_IO[4]."
      },
      {
        "number": "16",
        "name": "PA11",
        "type": "bidirectional",
        "description": "GPIO on VDDIO supply with EXTINT[11], ADC AIN[19], PTC X[3], SERCOM0/2 PAD[3], I2S FS[0], GCLK_IO[5]."
      },
      {
        "number": "17",
        "name": "VDDIO",
        "type": "power_in",
        "description": "Digital I/O supply input for the neighbouring I/O pins (paired with GND pin 18)."
      },
      {
        "number": "18",
        "name": "GND",
        "type": "power_in",
        "description": "Digital ground (paired with VDDIO pin 17)."
      },
      {
        "number": "19",
        "name": "PB10",
        "type": "bidirectional",
        "description": "GPIO on VDDIO supply with EXTINT[10], SERCOM4 PAD[2], TC5/WO[0], TCC0/WO[4], I2S MCK[1], GCLK_IO[4]."
      },
      {
        "number": "20",
        "name": "PB11",
        "type": "bidirectional",
        "description": "GPIO on VDDIO supply with EXTINT[11], SERCOM4 PAD[3], TC5/WO[1], TCC0/WO[5], I2S SCK[1], GCLK_IO[5]."
      },
      {
        "number": "21",
        "name": "PA12",
        "type": "bidirectional",
        "description": "GPIO on VDDIO supply with EXTINT[12], SERCOM2/4 PAD[0], TCC2/WO[0], TCC0/WO[6], AC CMP[0]; supports I2C."
      },
      {
        "number": "22",
        "name": "PA13",
        "type": "bidirectional",
        "description": "GPIO on VDDIO supply with EXTINT[13], SERCOM2/4 PAD[1], TCC2/WO[1], TCC0/WO[7], AC CMP[1]; supports I2C."
      },
      {
        "number": "23",
        "name": "PA14",
        "type": "bidirectional",
        "description": "GPIO on VDDIO supply with EXTINT[14]; also XIN for the 0.4-32MHz crystal oscillator, SERCOM2/4 PAD[2], TC3/WO[0], GCLK_IO[0]."
      },
      {
        "number": "24",
        "name": "PA15",
        "type": "bidirectional",
        "description": "GPIO on VDDIO supply with EXTINT[15]; also XOUT for the crystal oscillator, SERCOM2/4 PAD[3], TC3/WO[1], GCLK_IO[1]."
      },
      {
        "number": "25",
        "name": "PA16",
        "type": "bidirectional",
        "description": "GPIO on VDDIO supply with EXTINT[0], PTC X[4], SERCOM1/3 PAD[0], TCC2/WO[0], TCC0/WO[6], GCLK_IO[2]; supports I2C."
      },
      {
        "number": "26",
        "name": "PA17",
        "type": "bidirectional",
        "description": "GPIO on VDDIO supply with EXTINT[1], PTC X[5], SERCOM1/3 PAD[1], TCC2/WO[1], TCC0/WO[7], GCLK_IO[3]; supports I2C."
      },
      {
        "number": "27",
        "name": "PA18",
        "type": "bidirectional",
        "description": "GPIO on VDDIO supply with EXTINT[2], PTC X[6], SERCOM1/3 PAD[2], TC3/WO[0], TCC0/WO[2], AC CMP[0]."
      },
      {
        "number": "28",
        "name": "PA19",
        "type": "bidirectional",
        "description": "GPIO on VDDIO supply with EXTINT[3], PTC X[7], SERCOM1/3 PAD[3], TC3/WO[1], TCC0/WO[3], I2S SD[0], AC CMP[1]."
      },
      {
        "number": "29",
        "name": "PA20",
        "type": "bidirectional",
        "description": "GPIO on VDDIO supply with EXTINT[4], PTC X[8], SERCOM5/3 PAD[2], TC7/WO[0], TCC0/WO[6], I2S SCK[0], GCLK_IO[4]."
      },
      {
        "number": "30",
        "name": "PA21",
        "type": "bidirectional",
        "description": "GPIO on VDDIO supply with EXTINT[5], PTC X[9], SERCOM5/3 PAD[3], TC7/WO[1], TCC0/WO[7], I2S FS[0], GCLK_IO[5]."
      },
      {
        "number": "31",
        "name": "PA22",
        "type": "bidirectional",
        "description": "GPIO on VDDIO supply with EXTINT[6], PTC X[10], SERCOM3/5 PAD[0], TC4/WO[0], TCC0/WO[4], GCLK_IO[6]; supports I2C."
      },
      {
        "number": "32",
        "name": "PA23",
        "type": "bidirectional",
        "description": "GPIO on VDDIO supply with EXTINT[7], PTC X[11], SERCOM3/5 PAD[1], TC4/WO[1], TCC0/WO[5], USB SOF 1kHz, GCLK_IO[7]; supports I2C."
      },
      {
        "number": "33",
        "name": "PA24",
        "type": "bidirectional",
        "description": "GPIO on VDDIO supply with EXTINT[12], SERCOM3/5 PAD[2], TC5/WO[0], TCC1/WO[2], USB DM; no drive strength option, pull-up recommended if unconnected."
      },
      {
        "number": "34",
        "name": "PA25",
        "type": "bidirectional",
        "description": "GPIO on VDDIO supply with EXTINT[13], SERCOM3/5 PAD[3], TC5/WO[1], TCC1/WO[3], USB DP; no drive strength option, pull-up recommended if unconnected."
      },
      {
        "number": "35",
        "name": "GND",
        "type": "power_in",
        "description": "Digital ground (paired with VDDIO pin 36)."
      },
      {
        "number": "36",
        "name": "VDDIO",
        "type": "power_in",
        "description": "Digital I/O supply input (paired with GND pin 35)."
      },
      {
        "number": "37",
        "name": "PB22",
        "type": "bidirectional",
        "description": "GPIO on VDDIO supply with EXTINT[6], SERCOM5 PAD[2], TC7/WO[0], TCC3/WO[0], GCLK_IO[0]."
      },
      {
        "number": "38",
        "name": "PB23",
        "type": "bidirectional",
        "description": "GPIO on VDDIO supply with EXTINT[7], SERCOM5 PAD[3], TC7/WO[1], TCC3/WO[1], GCLK_IO[1]."
      },
      {
        "number": "39",
        "name": "PA27",
        "type": "bidirectional",
        "description": "GPIO on VDDIO supply with EXTINT[15], TCC3/WO[6], GCLK_IO[0]."
      },
      {
        "number": "40",
        "name": "RESET",
        "type": "input",
        "description": "Active-low external reset input."
      },
      {
        "number": "41",
        "name": "PA28",
        "type": "bidirectional",
        "description": "GPIO on VDDIO supply with EXTINT[8], TCC3/WO[7], GCLK_IO[0]."
      },
      {
        "number": "42",
        "name": "GND",
        "type": "power_in",
        "description": "Ground for the VDDIN/core domain."
      },
      {
        "number": "43",
        "name": "VDDCORE",
        "type": "power_out",
        "description": "Regulated output supply of the internal voltage regulator for the core."
      },
      {
        "number": "44",
        "name": "VDDIN",
        "type": "power_in",
        "description": "Input supply for the internal voltage regulator and the PA30/PA31 I/O cluster."
      },
      {
        "number": "45",
        "name": "PA30",
        "type": "bidirectional",
        "description": "GPIO on VDDIO supply with EXTINT[10]; also SWCLK serial wire debug clock, SERCOM1 PAD[2], TCC1/WO[0], TCC3/WO[4]."
      },
      {
        "number": "46",
        "name": "PA31",
        "type": "bidirectional",
        "description": "GPIO on VDDIO supply with EXTINT[11]; also SWDIO serial wire debug data (active only with a debugger), SERCOM1 PAD[3], TCC1/WO[1], TCC3/WO[5]."
      },
      {
        "number": "47",
        "name": "PB02",
        "type": "bidirectional",
        "description": "GPIO on VDDANA supply with EXTINT[2], ADC AIN[10], PTC Y[8], SERCOM5 PAD[0], TC6/WO[0], TCC3/WO[2]."
      },
      {
        "number": "48",
        "name": "PB03",
        "type": "bidirectional",
        "description": "GPIO on VDDANA supply with EXTINT[3], ADC AIN[11], PTC Y[9], SERCOM5 PAD[1], TC6/WO[1], TCC3/WO[3]."
      }
    ],
    "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 pin 30 label is missing from the page 21 pinout text (the 'PA21' label appears at the top of the; The datasheet gives no electrical rating text for the supply pins in the pinout section. VDDCORE is "
        ],
        "pages_sent": 118,
        "cost_usd": 0.953,
        "at": "2026-11-13T17:48:38"
      },
      "datasheet": {
        "url": "https://datasheet.lcsc.com/datasheet/pdf/d70e0a926271e38a2611b8b6dcc19c07.pdf",
        "pages": 1148,
        "sha256": "18ca1ccab5aa330f",
        "source_tier": "mfr"
      },
      "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": "atsamd21g18a-af.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-11-13",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      },
      {
        "file": "atsamd21g18a-af-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": "3b471c0edefdcaa25e4dada87bd19eacb821c78bffbfc550bd765ee8cd4f69d5",
        "checked": "2026-11-13",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      }
    ],
    "package_dims": {
      "package_code": "Y8",
      "source_page": 1069,
      "D": {
        "nom_mm": 7.0,
        "range_mm": [
          null,
          null
        ]
      },
      "E1": {
        "nom_mm": 7.0,
        "range_mm": [
          null,
          null
        ]
      },
      "E": {
        "nom_mm": 9.0,
        "range_mm": [
          null,
          null
        ]
      },
      "e": {
        "nom_mm": 0.5,
        "range_mm": [
          null,
          null
        ]
      },
      "A": {
        "nom_mm": 1.2,
        "range_mm": [
          null,
          1.2
        ]
      },
      "source": "datasheet package drawing, every number found on its page (extract_pins --task dims)",
      "model_check": {
        "file": "atsamd21g18a-af.step",
        "verdict": "PASS",
        "reasons": [
          "height and body within the datasheet's package drawing"
        ],
        "by": "factory/package_fit.py"
      }
    }
  }
}