main
Ray Publish 0.1.0 783af99 5d ago
{
  "slug": "atmega168p-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",
    "atmega168p-20au",
    "factory-2.0.0",
    "extractor-text"
  ],
  "dependencies": {},
  "hero": {
    "type": "image",
    "path": "docs/hero.png"
  },
  "files": [
    "page.json",
    "README.md",
    "atmega168p-20au.kicad_sym",
    "atmega168p-20au.kicad_mod",
    "atmega168p-20au.glb",
    "atmega168p-20au.step",
    "atmega168p-20au.lbr",
    "docs/hero.png",
    "docs/atmega168p-20au-datasheet.pdf",
    "viewers/symbol.html",
    "viewers/footprint.html",
    "atmega168p-20au-hero.glb",
    "atmega168p-20au-hero.overlay.json",
    "atmega168p-20au-etched.glb"
  ],
  "component": {
    "mpn": "ATMEGA168P-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": "atmega168p-20au.kicad_sym",
      "footprint": "atmega168p-20au.kicad_mod",
      "model_3d": "atmega168p-20au-hero.glb",
      "model_3d_plain": "atmega168p-20au-etched.glb",
      "model_3d_step": "atmega168p-20au-etched.step",
      "model_3d_step_plain": "atmega168p-20au.step",
      "lbr": "atmega168p-20au.lbr"
    },
    "distributor_links": {
      "lcsc": "C1337245",
      "digikey": "ATMEGA168P-20AU-ND",
      "mouser": "556-ATMEGA168P-20AU"
    },
    "distributor_check": {
      "checked_at": "2026-10-30T21:38:15Z",
      "source": "Component Ocean /api/assign-pns",
      "digikey": {
        "pn": "ATMEGA168P-20AU-ND",
        "status": "found"
      },
      "mouser": {
        "pn": "556-ATMEGA168P-20AU",
        "status": "found",
        "lifecycle": "Not Recommended for New Designs"
      }
    },
    "pins": [
      {
        "number": "1",
        "name": "PD3",
        "type": "bidirectional",
        "description": "Port D bit 3 is a bidirectional I/O pin with internal pull-ups, also serving as external interrupt INT1, OC2B output compare output, and PCINT19 pin-change interrupt source."
      },
      {
        "number": "2",
        "name": "PD4",
        "type": "bidirectional",
        "description": "Port D bit 4 is a bidirectional I/O pin with internal pull-ups, also serving as USART external clock XCK, Timer/Counter0 external counter input T0, and PCINT20."
      },
      {
        "number": "3",
        "name": "GND",
        "type": "power_in",
        "description": "Ground."
      },
      {
        "number": "4",
        "name": "VCC",
        "type": "power_in",
        "description": "Digital supply voltage."
      },
      {
        "number": "5",
        "name": "GND",
        "type": "power_in",
        "description": "Ground."
      },
      {
        "number": "6",
        "name": "VCC",
        "type": "power_in",
        "description": "Digital supply voltage."
      },
      {
        "number": "7",
        "name": "PB6",
        "type": "input",
        "description": "Depending on clock fuse settings, PB6 is the input to the inverting oscillator amplifier (XTAL1) or Timer Oscillator pin 1, and when used as a clock pin it cannot be used as an I/O pin."
      },
      {
        "number": "8",
        "name": "PB7",
        "type": "output",
        "description": "Depending on clock fuse settings, PB7 is the output of the inverting oscillator amplifier (XTAL2) or Timer Oscillator pin 2, and when used as a clock pin it cannot be used as an I/O pin."
      },
      {
        "number": "9",
        "name": "PD5",
        "type": "bidirectional",
        "description": "Port D bit 5 is a bidirectional I/O pin with internal pull-ups, also serving as Timer/Counter1 external counter input T1, OC0B output compare output, and PCINT21."
      },
      {
        "number": "10",
        "name": "PD6",
        "type": "bidirectional",
        "description": "Port D bit 6 is a bidirectional I/O pin with internal pull-ups, also serving as Analog Comparator positive input AIN0, OC0A output compare output, and PCINT22; configure as input with pull-up off when used as AIN0."
      },
      {
        "number": "11",
        "name": "PD7",
        "type": "bidirectional",
        "description": "Port D bit 7 is a bidirectional I/O pin with internal pull-ups, also serving as Analog Comparator negative input AIN1 and PCINT23; configure as input with pull-up off when used as AIN1."
      },
      {
        "number": "12",
        "name": "PB0",
        "type": "bidirectional",
        "description": "Port B bit 0 is a bidirectional I/O pin with internal pull-ups, also serving as Timer/Counter1 input capture ICP1, divided system clock output CLKO, and PCINT0."
      },
      {
        "number": "13",
        "name": "PB1 (OC1A/PCINT1)",
        "type": "bidirectional",
        "description": "Port B bit 1 is a bidirectional I/O pin with internal pull-ups, also serving as Timer/Counter1 output compare output OC1A and PCINT1."
      },
      {
        "number": "14",
        "name": "PB2 (SS/OC1B/PCINT2)",
        "type": "bidirectional",
        "description": "Port B bit 2 is a bidirectional I/O pin with internal pull-ups, also serving as SPI slave select SS, Timer/Counter1 output compare output OC1B, and PCINT2."
      },
      {
        "number": "15",
        "name": "PB3 (MOSI/OC2A/PCINT3)",
        "type": "bidirectional",
        "description": "Port B bit 3 is a bidirectional I/O pin with internal pull-ups, also serving as SPI master output/slave input MOSI, Timer/Counter2 output compare output OC2A, and PCINT3."
      },
      {
        "number": "16",
        "name": "PB4 (MISO/PCINT4)",
        "type": "bidirectional",
        "description": "Port B bit 4 is a bidirectional I/O pin with internal pull-ups, also serving as SPI master input/slave output MISO and PCINT4."
      },
      {
        "number": "17",
        "name": "PB5 (SCK/PCINT5)",
        "type": "bidirectional",
        "description": "Port B bit 5 is a bidirectional I/O pin with internal pull-ups, also serving as SPI clock SCK and 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 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": "Analog input channel 6 of the 10-bit A/D converter (TQFP and QFN/MLF packages only), 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."
      },
      {
        "number": "22",
        "name": "ADC7",
        "type": "input",
        "description": "Analog input channel 7 of the 10-bit A/D converter (TQFP and QFN/MLF packages only), powered from the analog supply."
      },
      {
        "number": "23",
        "name": "PC0 (ADC0/PCINT8)",
        "type": "bidirectional",
        "description": "Port C bit 0 is a bidirectional I/O pin with internal pull-ups (Port C is 7-bit), also serving as ADC input channel 0 using analog power and PCINT8."
      },
      {
        "number": "24",
        "name": "PC1 (ADC1/PCINT9)",
        "type": "bidirectional",
        "description": "Port C bit 1 is a bidirectional I/O pin with internal pull-ups, also serving as ADC input channel 1 using analog power and PCINT9."
      },
      {
        "number": "25",
        "name": "PC2 (ADC2/PCINT10)",
        "type": "bidirectional",
        "description": "Port C bit 2 is a bidirectional I/O pin with internal pull-ups, also serving as ADC input channel 2 using analog power and PCINT10."
      },
      {
        "number": "26",
        "name": "PC3 (ADC3/PCINT11)",
        "type": "bidirectional",
        "description": "Port C bit 3 is a bidirectional I/O pin with internal pull-ups, also serving as ADC input channel 3 using analog power and PCINT11."
      },
      {
        "number": "27",
        "name": "PC4 (ADC4/SDA/PCINT12)",
        "type": "bidirectional",
        "description": "Port C bit 4 is a bidirectional I/O pin with internal pull-ups, also serving as 2-wire serial interface data SDA, ADC input channel 4 using digital power, and PCINT12."
      },
      {
        "number": "28",
        "name": "PC5 (ADC5/SCL/PCINT13)",
        "type": "bidirectional",
        "description": "Port C bit 5 is a bidirectional I/O pin with internal pull-ups, also serving as 2-wire serial interface clock SCL, ADC input channel 5 using digital power, and PCINT13."
      },
      {
        "number": "29",
        "name": "PC6 (RESET/PCINT14)",
        "type": "input",
        "description": "When the RSTDISBL fuse is unprogrammed this pin is a Reset input, and a low level longer than the minimum pulse length (Table 29-3) generates a Reset while shorter pulses are not ensured to reset; when RSTDISBL is programmed it is an I/O pin with electrical characteristics differing from other Port C pins."
      },
      {
        "number": "30",
        "name": "PD0 (RXD/PCINT16)",
        "type": "bidirectional",
        "description": "Port D bit 0 is a bidirectional I/O pin with internal pull-ups, serving as USART receive data input RXD when the USART receiver is enabled, and PCINT16."
      },
      {
        "number": "31",
        "name": "PD1 (TXD/PCINT17)",
        "type": "bidirectional",
        "description": "Port D bit 1 is a bidirectional I/O pin with internal pull-ups, serving as USART transmit data output TXD when the USART transmitter is enabled, and PCINT17."
      },
      {
        "number": "32",
        "name": "PD2 (INT0/PCINT18)",
        "type": "bidirectional",
        "description": "Port D bit 2 is a bidirectional I/O pin with internal pull-ups, also serving as external interrupt source INT0 and 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: The TQFP-32 pin-to-number mapping was reconstructed from the Figure 1-1 text extraction, which is sc; The datasheet does not assign KiCad ERC classes. Types for AREF, ADC6/ADC7, PB6/PB7 and PC6/RESET we; Pin 1 orientation and the 32A package outline are from the Packaging Information (page 421) and Orde"
        ],
        "pages_sent": 76,
        "cost_usd": 0.2801,
        "at": "2026-10-30T21:38:04"
      },
      "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": "atmega168p-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": "atmega168p-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": "c3b01ed386bac77e189e7bf8791a78afa5e8dcb1c1998a2034082625f28376e7",
        "checked": "2026-10-30",
        "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
      }
    ]
  }
}