main
Ray Publish 0.1.0 90728fd 5d ago
{
  "slug": "atmega48p-20au",
  "version": "0.1.0",
  "type": "component",
  "description": "Microchip Tech Pre-ordered MCUs, TQFP-32(7x7). Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",
  "tags": [
    "component",
    "embedded processors & controllers",
    "atmega48p-20au",
    "factory-2.0.0",
    "extractor-text"
  ],
  "dependencies": {},
  "hero": {
    "type": "image",
    "path": "docs/hero.png"
  },
  "files": [
    "page.json",
    "README.md",
    "atmega48p-20au.kicad_sym",
    "atmega48p-20au.kicad_mod",
    "atmega48p-20au.glb",
    "atmega48p-20au.step",
    "atmega48p-20au.lbr",
    "docs/hero.png",
    "docs/atmega48p-20au-datasheet.pdf",
    "viewers/symbol.html",
    "viewers/footprint.html",
    "atmega48p-20au-hero.glb",
    "atmega48p-20au-hero.overlay.json",
    "atmega48p-20au-etched.glb"
  ],
  "component": {
    "mpn": "ATMEGA48P-20AU",
    "manufacturer": "Microchip Tech",
    "package": "TQFP-32(7x7)",
    "pin_count": 32,
    "category": "Embedded Processors & Controllers",
    "subcategory": "Pre-ordered MCUs",
    "datasheet": "https://ww1.microchip.com/downloads/en/DeviceDoc/ATmega48P_88P_168P-DS40002065A.pdf",
    "parts": {
      "symbol": "atmega48p-20au.kicad_sym",
      "footprint": "atmega48p-20au.kicad_mod",
      "model_3d": "atmega48p-20au-hero.glb",
      "model_3d_plain": "atmega48p-20au-etched.glb",
      "model_3d_step": "atmega48p-20au-etched.step",
      "model_3d_step_plain": "atmega48p-20au.step",
      "lbr": "atmega48p-20au.lbr"
    },
    "distributor_links": {
      "lcsc": "C1339303",
      "digikey": "ATMEGA48P-20AU-ND",
      "mouser": "556-ATMEGA48P-20AU"
    },
    "distributor_check": {
      "checked_at": "2026-10-30T22:11:43Z",
      "source": "Component Ocean /api/assign-pns",
      "digikey": {
        "pn": "ATMEGA48P-20AU-ND",
        "status": "found"
      },
      "mouser": {
        "pn": "556-ATMEGA48P-20AU",
        "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 that can serve as external interrupt INT1, OC2B output, or PCINT19 source, and must be configured as an output for OC2B."
      },
      {
        "number": "2",
        "name": "PD4",
        "type": "bidirectional",
        "description": "Port D bit 4 is a bi-directional I/O pin with internal pull-up that can serve as USART external clock XCK, Timer/Counter0 external counter input T0, or PCINT20 source."
      },
      {
        "number": "3",
        "name": "GND",
        "type": "power_in",
        "description": "Ground."
      },
      {
        "number": "4",
        "name": "VCC",
        "type": "power_in",
        "description": "Digital supply voltage; ATmega48P/88P/168P operates at 2.7 - 5.5V (ATmega48PV variant 1.8 - 5.5V)."
      },
      {
        "number": "5",
        "name": "GND",
        "type": "power_in",
        "description": "Ground."
      },
      {
        "number": "6",
        "name": "VCC",
        "type": "power_in",
        "description": "Digital supply voltage; ATmega48P/88P/168P operates at 2.7 - 5.5V (ATmega48PV variant 1.8 - 5.5V)."
      },
      {
        "number": "7",
        "name": "PB6",
        "type": "bidirectional",
        "description": "Port B bit 6 is the input to the inverting oscillator amplifier (XTAL1) or Timer Oscillator pin 1 depending on clock fuse settings; when used as a clock pin it cannot be used as I/O."
      },
      {
        "number": "8",
        "name": "PB7",
        "type": "bidirectional",
        "description": "Port B bit 7 is the output of the inverting oscillator amplifier (XTAL2) or Timer Oscillator pin 2 depending on clock fuse settings; when used as a clock pin it cannot be used as I/O."
      },
      {
        "number": "9",
        "name": "PD5",
        "type": "bidirectional",
        "description": "Port D bit 5 is a bi-directional I/O pin with internal pull-up that can serve as Timer/Counter1 external counter input T1, OC0B output, or PCINT21 source."
      },
      {
        "number": "10",
        "name": "PD6",
        "type": "bidirectional",
        "description": "Port D bit 6 is a bi-directional I/O pin that serves as Analog Comparator positive input AIN0 (pull-up should be switched off), OC0A output, or PCINT22 source."
      },
      {
        "number": "11",
        "name": "PD7",
        "type": "bidirectional",
        "description": "Port D bit 7 is a bi-directional I/O pin that serves as Analog Comparator negative input AIN1 (pull-up should be switched off) or PCINT23 source."
      },
      {
        "number": "12",
        "name": "PB0",
        "type": "bidirectional",
        "description": "Port B bit 0 is a bi-directional I/O pin that serves as Timer/Counter1 input capture ICP1, divided system clock output CLKO, or PCINT0 source."
      },
      {
        "number": "13",
        "name": "PB1 (OC1A/PCINT1)",
        "type": "bidirectional",
        "description": "Port B bit 1 is a bi-directional I/O pin that serves as Timer/Counter1 output compare match A output OC1A (must be configured as output) or PCINT1 source."
      },
      {
        "number": "14",
        "name": "PB2 (SS/OC1B/PCINT2)",
        "type": "bidirectional",
        "description": "Port B bit 2 is a bi-directional I/O pin that serves as SPI slave select SS, Timer/Counter1 output compare match B output OC1B (must be configured as output), or PCINT2 source."
      },
      {
        "number": "15",
        "name": "PB3 (MOSI/OC2A/PCINT3)",
        "type": "bidirectional",
        "description": "Port B bit 3 is a bi-directional I/O pin that serves as SPI MOSI, Timer/Counter2 output compare match A output OC2A (must be configured as output), or PCINT3 source."
      },
      {
        "number": "16",
        "name": "PB4 (MISO/PCINT4)",
        "type": "bidirectional",
        "description": "Port B bit 4 is a bi-directional I/O pin that serves as SPI MISO data pin or PCINT4 source."
      },
      {
        "number": "17",
        "name": "PB5 (SCK/PCINT5)",
        "type": "bidirectional",
        "description": "Port B bit 5 is a bi-directional I/O pin that serves as SPI clock SCK (input when SPI is slave) or PCINT5 source."
      },
      {
        "number": "18",
        "name": "AVCC",
        "type": "power_in",
        "description": "Supply voltage pin for the A/D converter, PC3:0 and ADC7:6; it should be externally connected to VCC even if the ADC is not used, and through a low-pass filter if the ADC is used."
      },
      {
        "number": "19",
        "name": "ADC6",
        "type": "input",
        "description": "ADC input channel 6 (TQFP and QFN/MLF package only), powered from the analog supply, serving as a 10-bit ADC channel."
      },
      {
        "number": "20",
        "name": "AREF",
        "type": "input",
        "description": "Analog reference pin for the A/D converter."
      },
      {
        "number": "21",
        "name": "GND",
        "type": "power_in",
        "description": "Ground."
      },
      {
        "number": "22",
        "name": "ADC7",
        "type": "input",
        "description": "ADC input channel 7 (TQFP and QFN/MLF package only), powered from the analog supply, serving as a 10-bit ADC channel."
      },
      {
        "number": "23",
        "name": "PC0 (ADC0/PCINT8)",
        "type": "bidirectional",
        "description": "Port C bit 0 is a bi-directional I/O pin with internal pull-up that can serve as ADC input channel 0 (analog power) or PCINT8 source."
      },
      {
        "number": "24",
        "name": "PC1 (ADC1/PCINT9)",
        "type": "bidirectional",
        "description": "Port C bit 1 is a bi-directional I/O pin with internal pull-up that can serve as ADC input channel 1 (analog power) or PCINT9 source."
      },
      {
        "number": "25",
        "name": "PC2 (ADC2/PCINT10)",
        "type": "bidirectional",
        "description": "Port C bit 2 is a bi-directional I/O pin with internal pull-up that can serve as ADC input channel 2 (analog power) or PCINT10 source."
      },
      {
        "number": "26",
        "name": "PC3 (ADC3/PCINT11)",
        "type": "bidirectional",
        "description": "Port C bit 3 is a bi-directional I/O pin with internal pull-up that can serve as ADC input channel 3 (analog power) or PCINT11 source."
      },
      {
        "number": "27",
        "name": "PC4 (ADC4/SDA/PCINT12)",
        "type": "bidirectional",
        "description": "Port C bit 4 is a bi-directional I/O pin with internal pull-up that serves as 2-wire serial data SDA when TWEN is set, ADC input channel 4 (digital power), or PCINT12 source."
      },
      {
        "number": "28",
        "name": "PC5 (ADC5/SCL/PCINT13)",
        "type": "bidirectional",
        "description": "Port C bit 5 is a bi-directional I/O pin with internal pull-up that serves as 2-wire serial clock SCL when TWEN is set, ADC input channel 5 (digital power), or PCINT13 source."
      },
      {
        "number": "29",
        "name": "PC6 (RESET/PCINT14)",
        "type": "input",
        "description": "If RSTDISBL fuse is unprogrammed this pin is the Reset input and a low level longer than the minimum pulse length (Table 29-3) generates a reset; shorter pulses are not ensured to reset; if programmed it is I/O with electrical characteristics differing from other Port C pins."
      },
      {
        "number": "30",
        "name": "PD0 (RXD/PCINT16)",
        "type": "bidirectional",
        "description": "Port D bit 0 is a bi-directional I/O pin with internal pull-up that serves as USART receive data input RXD (input when USART receiver enabled) or PCINT16 source."
      },
      {
        "number": "31",
        "name": "PD1 (TXD/PCINT17)",
        "type": "bidirectional",
        "description": "Port D bit 1 is a bi-directional I/O pin that serves as USART transmit data output TXD (output when USART transmitter enabled) or PCINT17 source."
      },
      {
        "number": "32",
        "name": "PD2 (INT0/PCINT18)",
        "type": "bidirectional",
        "description": "Port D bit 2 is a bi-directional I/O pin with internal pull-up that serves as external interrupt source INT0 or PCINT18 source."
      }
    ],
    "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: The pin-number-to-label assignment was reconstructed from the printed Figure 1-1 text, which is extr; Power and ground pins are listed as GND/VCC/AVCC in the figure without per-pin labels in the extract; PB6/PB7 are both oscillator pins and general I/O; they were typed bidirectional although the XTAL1 (",
          "13/32 pins cited to the wrong page (name found elsewhere): ['8:PB7 (XTAL2/TOSC2/PCINT7)@p92', '12:PB0 (ICP1/CLKO/PCINT0)@p92', '15:PB3 (MOSI/OC2A/PCINT3)@p93', '16:PB4 (MISO/PCINT4)@p93']"
        ],
        "pages_sent": 76,
        "cost_usd": 0.2779,
        "at": "2026-10-30T22:11:33"
      },
      "datasheet": {
        "url": "https://ww1.microchip.com/downloads/en/DeviceDoc/ATmega48P_88P_168P-DS40002065A.pdf",
        "pages": 436,
        "sha256": "aab081a362918ab9",
        "source_tier": "mfr"
      },
      "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": "atmega48p-20au.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-30",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      },
      {
        "file": "atmega48p-20au-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": "eb46ca091d91c663a213cf81f0cb14cfbbee95875c60cff6a1f0d5f8fec8605b",
        "checked": "2026-10-30",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      }
    ]
  }
}