.claude/skills/manufacturers/atmel/SKILL.md
Atmel/Microchip AVR MPN encoding patterns, suffix decoding, and handler guidance. Use when working with ATmega, ATtiny, SAM, or other Atmel components.
npx skillsauth add Cantara/lib-electronic-components atmelInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Atmel MPNs follow this general structure:
[FAMILY][SERIES][VARIANT]-[PACKAGE][TEMP]
│ │ │ │ │
│ │ │ │ └── Optional temperature grade
│ │ │ └── Package code (after hyphen)
│ │ └── Feature variant (P=picopower, A=automotive, etc.)
│ └── Series number (flash size, pin count encoded)
└── Product family (ATMEGA, ATTINY, ATSAM, etc.)
ATMEGA328P-PU
│ │ │ ││
│ │ │ │└── (no temp suffix = commercial)
│ │ │ └── U in PU = standard grade
│ │ └── P = picoPower technology
│ └── 328 = 32KB flash, 8-bit
└── ATMEGA = AVR 8-bit megaAVR family
ATSAM3X8E-AU
│ │ ││ ││
│ │ ││ │└── U = standard grade
│ │ ││ └── A = TQFP package
│ │ │└── E = Ethernet variant
│ │ └── 8 = 512KB flash
│ └── 3X = Cortex-M3 SAM3X series
└── ATSAM = ARM-based SAM family
| Code | Package | Description | |------|---------|-------------| | PU | PDIP | Plastic Dual In-line Package (through-hole) | | AU | TQFP | Thin Quad Flat Pack (surface mount) | | MU | QFN/MLF | Quad Flat No-leads / Micro Lead Frame | | SU | SOIC | Small Outline IC | | XU | TSSOP | Thin Shrink Small Outline Package | | TU | QFP | Quad Flat Pack (larger than TQFP) | | CU | WLCSP/UCSP | Wafer Level / Ultra Chip Scale Package | | SS | SSOP | Shrink Small Outline Package |
[PACKAGE_TYPE][GRADE]
│ │
│ └── U = Standard, C = Commercial, I = Industrial
└── P=PDIP, A=TQFP, M=QFN, S=SOIC, X=TSSOP, T=QFP, C=WLCSP
| Family | Description | Example | |--------|-------------|---------| | ATmega | Feature-rich 8-bit | ATMEGA328P, ATMEGA2560 | | ATtiny | Small footprint 8-bit | ATTINY85, ATTINY13A | | AT90 | USB/CAN enabled | AT90USB162, AT90CAN128 | | ATxmega | Extended 8/16-bit | ATXMEGA128A1U |
| Family | Core | Example | |--------|------|---------| | ATSAM3 | Cortex-M3 | ATSAM3X8E (Arduino Due) | | ATSAM4 | Cortex-M4 | ATSAM4S16B | | ATSAMD | Cortex-M0+ | ATSAMD21G18A | | ATSAME | Cortex-M7 | ATSAME70Q21 |
| Family | Type | Example | |--------|------|---------| | AT24C | I2C EEPROM | AT24C256-PU (256Kbit) | | AT25 | SPI EEPROM/Flash | AT25SF041 (4Mbit Flash) | | AT45DB | DataFlash | AT45DB321E |
| Family | Type | Example | |--------|------|---------| | ATECC | Crypto Authentication | ATECC608A | | ATSHA | SHA Authentication | ATSHA204A | | AT42QT | QTouch Controller | AT42QT1010 | | ATMXT | maXTouch Controller | ATMXT336S |
The number encodes flash size and sometimes pin count:
| Series | Flash | SRAM | EEPROM | Notes | |--------|-------|------|--------|-------| | ATMEGA8 | 8KB | 1KB | 512B | Original | | ATMEGA88 | 8KB | 1KB | 512B | Improved | | ATMEGA168 | 16KB | 1KB | 512B | Pin-compatible with 88 | | ATMEGA328 | 32KB | 2KB | 1KB | Arduino Uno | | ATMEGA1284 | 128KB | 16KB | 4KB | High memory | | ATMEGA2560 | 256KB | 8KB | 4KB | Arduino Mega |
| Series | Flash | Pins | Notes | |--------|-------|------|-------| | ATTINY13 | 1KB | 8 | Smallest | | ATTINY25 | 2KB | 8 | | | ATTINY45 | 4KB | 8 | | | ATTINY85 | 8KB | 8 | Popular small MCU | | ATTINY84 | 8KB | 14 | More I/O | | ATTINY2313 | 2KB | 20 | UART included |
| Suffix | Meaning | |--------|---------| | P | picoPower - Ultra low power modes | | A | Revision A / Automotive grade | | V | Low voltage operation (1.8V-5.5V) | | PA | picoPower + Automotive | | PB | picoPower revision B | | U | USB capable | | L | Low voltage (1.8V-3.6V only) |
ATMEGA328 → Original
ATMEGA328P → picoPower (lower sleep current)
ATMEGA328PB → picoPower revision B (more features)
ATMEGA328PA → Automotive grade picoPower
| Grade | Range | Suffix Position | |-------|-------|-----------------| | Commercial | 0°C to +70°C | (no suffix) | | Industrial | -40°C to +85°C | Often implicit | | Automotive | -40°C to +125°C | A in variant or separate |
| Arduino Board | MCU | Full MPN | |---------------|-----|----------| | Uno | ATmega328P | ATMEGA328P-PU | | Nano | ATmega328P | ATMEGA328P-AU | | Mega 2560 | ATmega2560 | ATMEGA2560-16AU | | Leonardo | ATmega32U4 | ATMEGA32U4-AU | | Due | ATSAM3X8E | ATSAM3X8E-AU | | Zero | ATSAMD21G18A | ATSAMD21G18A-AU |
// Atmel package codes are AFTER the hyphen
// ATMEGA328P-PU → package = "PU"
String[] parts = mpn.split("-");
if (parts.length > 1) {
String suffix = parts[parts.length - 1];
return switch (suffix) {
case "PU" -> "PDIP";
case "AU" -> "TQFP";
case "MU" -> "QFN/MLF";
case "SU" -> "SOIC";
case "XU" -> "TSSOP";
case "TU" -> "QFP";
case "CU" -> "WLCSP";
default -> suffix;
};
}
// Extract family + number, stop at variant letter or hyphen
// ATMEGA328P-PU → series = "ATMEGA328"
// ATTINY85-20PU → series = "ATTINY85"
if (mpn.startsWith("ATMEGA")) {
// Find end of digits after "ATMEGA"
int end = "ATMEGA".length();
while (end < mpn.length() && Character.isDigit(mpn.charAt(end))) {
end++;
}
return mpn.substring(0, end);
}
// ATmega: ATMEGA + digits + optional letter variant + optional -package
"^ATMEGA[0-9]+[A-Z]?(?:-[A-Z]{2,4})?$"
// ATtiny: ATTINY + digits + optional variant + optional -package
"^ATTINY[0-9]+[A-Z]?(?:-[A-Z]{2,4})?$"
// SAM: ATSAM + series + variant + -package
"^ATSAM[A-Z0-9]+(?:-[A-Z]{2,4})?$"
manufacturers/AtmelHandler.javaMICROCONTROLLER_ATMEL, MCU_ATMEL, MEMORY_ATMEL, TOUCH_ATMEL, CRYPTO_ATMELPackageCodeRegistry.java (Atmel-specific codes: PU, AU, MU, SU, XU, CU)AtmelHandler needs the same cleanup as TIHandler (PR #77):
HashSet with Set.of() in getSupportedTypes()PackageCodeRegistry - has local switch statement-20AU (20MHz before package)mpn.startsWith() without toUpperCase()When creating AtmelHandlerTest:
no.cantara.electronic.component.lib.handlers package (NOT manufacturers)@BeforeAll with MPNUtils.getManufacturerHandler("ATMEGA328P")data-ai
Cost-effective task delegation strategy using Haiku model for straightforward work. Use when planning how to approach simple, pattern-following tasks to minimize costs.
tools
Use when working with component similarity calculations - comparing MPNs, finding equivalent parts, implementing new similarity calculators, or understanding how component matching works.
testing
Use when working with transistor similarity calculations - comparing BJT MPNs, understanding NPN/PNP polarity matching, equivalent groups like 2N2222/PN2222, or transistor-specific similarity logic.
testing
Use when working with sensor similarity calculations - comparing temperature/accelerometer/humidity sensor MPNs, understanding sensor families, equivalent parts, or sensor-specific similarity logic.