main
Ray Publish 0.1.0 afd6371 6d ago
{
  "slug": "atmega328p-an",
  "version": "0.1.0",
  "type": "component",
  "description": "Microchip Tech Microcontrollers (MCU/MPU/SOC), TQFP-32(7x7). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
  "tags": [
    "component",
    "embedded processors & controllers",
    "atmega328p-an",
    "factory-2.0.0",
    "extractor-text"
  ],
  "dependencies": {},
  "hero": {
    "type": "image",
    "path": "docs/hero.png"
  },
  "files": [
    "page.json",
    "README.md",
    "atmega328p-an.kicad_sym",
    "atmega328p-an.kicad_mod",
    "atmega328p-an.glb",
    "atmega328p-an.step",
    "atmega328p-an.lbr",
    "docs/hero.png",
    "docs/atmega328p-an-datasheet.pdf",
    "viewers/symbol.html",
    "viewers/footprint.html",
    "atmega328p-an-hero.glb",
    "atmega328p-an-hero.overlay.json",
    "atmega328p-an-etched.glb"
  ],
  "component": {
    "mpn": "ATMEGA328P-AN",
    "manufacturer": "Microchip Tech",
    "package": "TQFP-32(7x7)",
    "pin_count": 32,
    "category": "Embedded Processors & Controllers",
    "subcategory": "Microcontrollers (MCU/MPU/SOC)",
    "datasheet": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8590908782740656128",
    "parts": {
      "symbol": "atmega328p-an.kicad_sym",
      "footprint": "atmega328p-an.kicad_mod",
      "model_3d": "atmega328p-an-hero.glb",
      "model_3d_plain": "atmega328p-an-etched.glb",
      "model_3d_step": "atmega328p-an-etched.step",
      "model_3d_step_plain": "atmega328p-an.step",
      "lbr": "atmega328p-an.lbr"
    },
    "distributor_links": {
      "lcsc": "C618732",
      "digikey": "ATMEGA328P-AN-ND",
      "mouser": "556-ATMEGA328P-AN"
    },
    "distributor_check": {
      "checked_at": "2026-10-21T00:02:33Z",
      "source": "Component Ocean /api/assign-pns",
      "digikey": {
        "pn": "ATMEGA328P-AN-ND",
        "status": "found"
      },
      "mouser": {
        "pn": "556-ATMEGA328P-AN",
        "status": "found",
        "lifecycle": "Not Recommended for New Designs"
      }
    },
    "pins": [
      {
        "number": "1",
        "name": "PD3",
        "type": "bidirectional",
        "description": "Port D bit 3 is a bi-directional I/O pin with internal pull-up, also usable as INT1 external interrupt 1 input, OC2B Timer/Counter2 compare output, or PCINT19."
      },
      {
        "number": "2",
        "name": "PD4",
        "type": "bidirectional",
        "description": "Port D bit 4 is a bi-directional I/O pin with internal pull-up, also usable as XCK USART external clock, T0 Timer/Counter0 external counter input, or PCINT20."
      },
      {
        "number": "3",
        "name": "GND",
        "type": "power_in",
        "description": "Ground reference for the digital supply."
      },
      {
        "number": "4",
        "name": "VCC",
        "type": "power_in",
        "description": "Digital supply voltage, 1.8 to 5.5 V operating range."
      },
      {
        "number": "5",
        "name": "GND",
        "type": "power_in",
        "description": "Ground reference for the digital supply."
      },
      {
        "number": "6",
        "name": "VCC",
        "type": "power_in",
        "description": "Digital supply voltage, 1.8 to 5.5 V operating range."
      },
      {
        "number": "7",
        "name": "PB6",
        "type": "bidirectional",
        "description": "Port B bit 6 is used as XTAL1 chip clock oscillator input or external clock input (or TOSC1 / PCINT6) depending on fuse settings, and cannot be used as an I/O pin when used as a clock pin."
      },
      {
        "number": "8",
        "name": "PB7",
        "type": "bidirectional",
        "description": "Port B bit 7 is used as XTAL2 inverting oscillator amplifier output (or TOSC2 / PCINT7) depending on fuse settings, and cannot be used as an I/O pin when used as a clock pin."
      },
      {
        "number": "9",
        "name": "PD5",
        "type": "bidirectional",
        "description": "Port D bit 5 is a bi-directional I/O pin with internal pull-up, also usable as T1 Timer/Counter1 external counter input, OC0B output, or PCINT21."
      },
      {
        "number": "10",
        "name": "PD6",
        "type": "bidirectional",
        "description": "Port D bit 6 is a bi-directional I/O pin with internal pull-up, also usable as AIN0 analog comparator positive input, OC0A output, or PCINT22."
      },
      {
        "number": "11",
        "name": "PD7",
        "type": "bidirectional",
        "description": "Port D bit 7 is a bi-directional I/O pin with internal pull-up, also usable as AIN1 analog comparator negative input or PCINT23; disable its pull-up when used as comparator input."
      },
      {
        "number": "12",
        "name": "PB0",
        "type": "bidirectional",
        "description": "Port B bit 0 is a bi-directional I/O pin with internal pull-up, also usable as ICP1 input capture, CLKO divided system clock output, or PCINT0."
      },
      {
        "number": "13",
        "name": "PB1",
        "type": "bidirectional",
        "description": "Port B bit 1 is a bi-directional I/O pin with internal pull-up, also usable as OC1A Timer/Counter1 compare output or PCINT1."
      },
      {
        "number": "14",
        "name": "PB2",
        "type": "bidirectional",
        "description": "Port B bit 2 is a bi-directional I/O pin with internal pull-up, also usable as SS SPI slave select, OC1B Timer/Counter1 compare output, or PCINT2."
      },
      {
        "number": "15",
        "name": "PB3",
        "type": "bidirectional",
        "description": "Port B bit 3 is a bi-directional I/O pin with internal pull-up, also usable as MOSI SPI data line, OC2A Timer/Counter2 compare output, or PCINT3."
      },
      {
        "number": "16",
        "name": "PB4",
        "type": "bidirectional",
        "description": "Port B bit 4 is a bi-directional I/O pin with internal pull-up, also usable as MISO SPI data line or PCINT4."
      },
      {
        "number": "17",
        "name": "PB5",
        "type": "bidirectional",
        "description": "Port B bit 5 is a bi-directional I/O pin with internal pull-up, also usable as SCK SPI clock or PCINT5."
      },
      {
        "number": "18",
        "name": "AVCC",
        "type": "power_in",
        "description": "Supply voltage pin for the A/D converter, PC3:0 and ADC7:6; it should be connected to VCC even if the ADC is unused, and through a low-pass filter if the ADC is used."
      },
      {
        "number": "19",
        "name": "ADC6",
        "type": "input",
        "description": "Analog input channel 6 of the 10-bit A/D converter, available in the TQFP and VQFN packages only and powered from the analog supply."
      },
      {
        "number": "20",
        "name": "AREF",
        "type": "input",
        "description": "Analog reference pin for the A/D converter."
      },
      {
        "number": "21",
        "name": "GND",
        "type": "power_in",
        "description": "Ground reference for the digital supply."
      },
      {
        "number": "22",
        "name": "ADC7",
        "type": "input",
        "description": "Analog input channel 7 of the 10-bit A/D converter, available in the TQFP and VQFN packages only and powered from the analog supply."
      },
      {
        "number": "23",
        "name": "PC0",
        "type": "bidirectional",
        "description": "Port C bit 0 is a 7-bit I/O pin group member with internal pull-up, also usable as ADC0 analog input (analog power) or PCINT8."
      },
      {
        "number": "24",
        "name": "PC1",
        "type": "bidirectional",
        "description": "Port C bit 1 is an I/O pin with internal pull-up, also usable as ADC1 analog input (analog power) or PCINT9."
      },
      {
        "number": "25",
        "name": "PC2",
        "type": "bidirectional",
        "description": "Port C bit 2 is an I/O pin with internal pull-up, also usable as ADC2 analog input (analog power) or PCINT10."
      },
      {
        "number": "26",
        "name": "PC3",
        "type": "bidirectional",
        "description": "Port C bit 3 is an I/O pin with internal pull-up, also usable as ADC3 analog input (analog power) or PCINT11."
      },
      {
        "number": "27",
        "name": "PC4",
        "type": "bidirectional",
        "description": "Port C bit 4 is an I/O pin with internal pull-up, also usable as SDA 2-wire serial data, ADC4 analog input (digital power), or PCINT12."
      },
      {
        "number": "28",
        "name": "PC5",
        "type": "bidirectional",
        "description": "Port C bit 5 is an I/O pin with internal pull-up, also usable as SCL 2-wire serial clock, ADC5 analog input (digital power), or PCINT13."
      },
      {
        "number": "29",
        "name": "PC6",
        "type": "input",
        "description": "Reset input when the RSTDISBL fuse is unprogrammed; a low level longer than the minimum pulse length (Table 29-11) generates a reset, and shorter pulses are not ensured to reset the device."
      },
      {
        "number": "30",
        "name": "PD0",
        "type": "bidirectional",
        "description": "Port D bit 0 is a bi-directional I/O pin with internal pull-up, also usable as RXD USART receive data input or PCINT16."
      },
      {
        "number": "31",
        "name": "PD1",
        "type": "bidirectional",
        "description": "Port D bit 1 is a bi-directional I/O pin with internal pull-up, also usable as TXD USART transmit data output or PCINT17."
      },
      {
        "number": "32",
        "name": "PD2",
        "type": "bidirectional",
        "description": "Port D bit 2 is a bi-directional I/O pin with internal pull-up, also usable as INT0 external interrupt 0 input or PCINT18."
      }
    ],
    "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: Pin-to-number mapping was reconstructed from the garbled text layer of the 32 TQFP top-view figure o; Pin types are inferred: GPIO pins are marked bidirectional, PC6/RESET is marked input, and ADC6, ADC; The 32A TQFP package drawing (pages 636-637) is not in the supplied text, so package dimensions and ",
          "13/32 pins cited to the wrong page (name found elsewhere): ['8:PB7@p91', '12:PB0@p91', '15:PB3@p92', '16:PB4@p92']"
        ],
        "pages_sent": 126,
        "cost_usd": 0.3929,
        "at": "2026-10-20T23:59:00"
      },
      "datasheet": {
        "url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8590908782740656128",
        "pages": 653,
        "sha256": "7699c7d2d6d12492",
        "source_tier": "lcsc"
      },
      "cad": "KiCad official (CC-BY-SA 4.0)",
      "pins": {
        "total": 32,
        "described": 32,
        "cites_pages": true,
        "refuses_to_fabricate": true
      }
    },
    "viewers": {
      "symbol": "viewers/symbol.html",
      "footprint": "viewers/footprint.html"
    },
    "models_3d": [
      {
        "file": "atmega328p-an.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": "53431be61c684e9d923915676a90cb08050c23ee3f834d76a77a3b19b41422f1",
        "checked": "2026-10-21",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      },
      {
        "file": "atmega328p-an-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": "ae515e1bb68d5561fbf9be890ebbc8738673c8159cc3417e0862f91527c57112",
        "checked": "2026-10-21",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      }
    ]
  }
}