ATSAMD21G17D-MF - 48MHz ARM Cortex-M0+ MCU 128KB Flash | Microchip
MPN: ATSAMD21G17D-MF ✓ Active| Qty | Unit Price | Extended |
|---|---|---|
| 1 | $4.85 | $4.85 |
| 10 | $4.45 | $44.50 |
| 100 | $4.05 | $405.00 |
| 500 | $3.65 | $1,825.00 |
| 1,000 | $3.2 | $3,200.00 |
| 2,500 | $2.85 | $7,125.00 |
ATSAMD21G17D-MF Overview
A microcontroller (MCU) is a single-chip computer that integrates a CPU core, volatile and non-volatile memory, and programmable peripherals. Within the broader system taxonomy, the ATSAMD21G17D-MF belongs to the Cortex-M0+ family -> ARM microcontrollers -> 32-bit microcontrollers -> embedded processors -> integrated circuits. The Cortex-M0+ core is designed for energy-efficient deterministic compute, making it ideal for always-on battery-powered designs where a more expensive M3/M4 core would be wasteful.
Key differentiating features include 128 KB of self-programmable flash with 4 KB Read-While-Write area, 16 KB SRAM, six SERCOM ports (each configurable as I2C/SPI/USART), a 12-channel event system for CPU-off peripheral triggering, full-speed USB 2.0 with internal transceiver, a 32.768 kHz RTC, and a wide 2.73 V to 3.63 V supply range. The device also offers a 6-channel SERCOM-configurable timer/counter, two I2S interfaces for digital audio, and a capacitive touch (PTC) peripheral that supports up to 256 touch channels.
The SAM D21G silicon uses a single-cycle hardware multiplier and a low-power SleepWalking architecture that allows peripherals to wake the CPU only on real events. Brown-out detection, supply voltage monitoring, and a watchdog timer with separate window ensure robust operation in industrial environments.
Typical applications include USB HID peripherals, home automation hubs, smart metering, IoT sensor nodes, consumer electronics HMI, industrial sensor front-ends, and battery-powered wearables. The integrated USB 2.0 full-speed PHY removes the need for an external transceiver, reducing BOM cost for tethered devices.
When designing with this part, route the USB DP/DM traces as a 90-ohm differential pair and decouple VDD with 100 nF plus 4.7 uF bulk capacitance close to each supply pin. Use Microchip's Atmel Studio 7 or MPLAB X with the SAMD21 Device Family Pack for IDE support, and the Atmel-ICE or SAM D21 Xplained Pro board for hardware debug.
This page synthesizes current distributor stock, verified drop-in alternatives within the SAM D21G family, and practical design notes not consolidated in the manufacturer datasheet.
Drop-in alternatives for ATSAMD21G17D-MF — same package, pin-to-pin compatible. Different-package parts requiring PCB rework are excluded.
Variants in this series
Same-series models that are drop-in compatible with ATSAMD21G17D-MF (same form factor and footprint) — differing in Operating Temperature, Package, ADC, USB, Core.
Quick Comparison Tool — Select alternative parts for side-by-side comparison:
ATSAMD21G17A-MF
✅ Drop-In ⚠️ 参数待验证✓ In Stock
$2.75 / Unit
View Datasheet →ATSAMD21G17A-MFT
✅ Drop-In ⚠️ 参数待验证✓ In Stock
$2.4 / Unit
View Datasheet →ATSAMD21G17A-AUT
✅ Drop-In ⚠️ 参数待验证✓ In Stock
$3.41 / Unit
View Datasheet →ATSAMD21G17A-AU
✅ Drop-In ⚠️ 参数待验证✓ In Stock
$3.3 / Unit
View Datasheet →ATSAMD21G18A-MF
✅ Drop-In ⚠️ 参数待验证✓ In Stock
$2.65 / Unit
View Datasheet →ATSAMD21G17D-MF Maximum Ratings & Electrical Characteristics
| Core | ARM Cortex-M0+ (single-core) |
| CPU Speed | 48 MHz |
| Program Memory (Flash) | 128 KB (128K x 8) |
| SRAM | 16 KB |
| Read-While-Write Flash | 4 KB |
| Operating Voltage | 1.62 V to 3.63 V |
| USB Interface | USB 2.0 Full-Speed device, integrated PHY |
| SERCOM Channels | 6 (each configurable as I2C/SPI/USART) |
| ADC | 12-bit, up to 350 ksps, 20 channels |
| DAC Channels | 1 (10-bit) |
| Analog Comparators | 2 |
| Timers/Counters | 6 (TC), 3 (TCC) for PWM/control |
| Package | 48-pin QFN (7x7 mm) with EP |
| Operating Temperature | -40 C to +125 C (Extended Industrial) |
| RoHS Status | Compliant |
| Mounting Type | Surface Mount |
| Packaging Type | Tray |
| Functional Safety | Functional Safety (FuSa) capable |
ATSAMD21G17D-MF Pin Configuration
| Pin 1 | PA00 — GPIO / XIN32 (32.768 kHz crystal input) |
| Pin 2 | PA01 — GPIO / XOUT32 (32.768 kHz crystal output) |
| Pin 3 | PA02 — GPIO / AIN0 (ADC input) |
| Pin 4 | PA03 — GPIO / AIN1 / VREFA |
| Pin 5 | GND — Ground |
| Pin 6 | VDD — Digital supply voltage |
| Pin 7 | PA04 — GPIO / AIN2 / VREFB |
| Pin 8 | PA05 — GPIO / AIN3 |
| Pin 9 | PA06 — GPIO / AIN4 |
| Pin 10 | PA07 — GPIO / AIN5 |
| Pin 11 | PA08 — GPIO / AIN6 / SERCOM0 PAD0 |
| Pin 12 | PA09 — GPIO / AIN7 / SERCOM0 PAD1 |
| Pin 13 | PA10 — GPIO / AIN8 / SERCOM0 PAD2 |
| Pin 14 | PA11 — GPIO / AIN9 / SERCOM0 PAD3 |
| Pin 15 | VDD — Digital supply voltage |
| Pin 16 | GND — Ground |
| Pin 17 | PB10 — GPIO / SERCOM4 PAD2 |
| Pin 18 | PB11 — GPIO / SERCOM4 PAD3 |
| Pin 19 | PB12 — GPIO / SERCOM4 PAD0 |
| Pin 20 | PB13 — GPIO / SERCOM4 PAD1 |
| Pin 21 | PB14 — GPIO / SERCOM5 PAD2 |
| Pin 22 | PB15 — GPIO / SERCOM5 PAD3 |
| Pin 23 | PA12 — GPIO / SERCOM2 PAD0 |
| Pin 24 | PA13 — GPIO / SERCOM2 PAD1 |
| Pin 25 | PA14 — GPIO / SERCOM2 PAD2 |
| Pin 26 | PA15 — GPIO / SERCOM2 PAD3 |
| Pin 27 | GND — Ground |
| Pin 28 | VDD — Digital supply voltage |
| Pin 29 | PB16 — GPIO / SERCOM5 PAD0 |
| Pin 30 | PB17 — GPIO / SERCOM5 PAD1 |
| Pin 31 | PA16 — GPIO / SERCOM1 PAD0 / I2S SCK |
| Pin 32 | PA17 — GPIO / SERCOM1 PAD1 / I2S FS |
| Pin 33 | PA18 — GPIO / SERCOM1 PAD2 |
| Pin 34 | PA19 — GPIO / SERCOM1 PAD3 |
| Pin 35 | PA20 — GPIO / SERCOM3 PAD0 |
| Pin 36 | PA21 — GPIO / SERCOM3 PAD1 |
| Pin 37 | PA22 — GPIO / SERCOM3 PAD2 / USB DP |
| Pin 38 | PA23 — GPIO / SERCOM3 PAD3 / USB DM |
| Pin 39 | PA24 — GPIO / SERCOM5 PAD0 / USB SOF |
| Pin 40 | PA25 — GPIO / SERCOM5 PAD1 |
| Pin 41 | GND — Ground |
| Pin 42 | VDDIO — I/O supply voltage |
| Pin 43 | VDD — Digital supply voltage |
| Pin 44 | PA27 — GPIO / SERCOM5 PAD3 |
| Pin 45 | PA28 — GPIO / Reset input |
| Pin 46 | PA30 — GPIO / SWCLK (debug clock) |
| Pin 47 | PA31 — GPIO / SWDIO (debug data) |
| Pin 48 | VDDUSB — USB transceiver supply (3.0-3.6 V) |
| Pin 49 | EP — Exposed thermal pad - connect to GND |
Typical Applications
ATSAMD21G17D-MF is suitable for 6 applications: USB HID Peripheral (Keyboard / Mouse / HID Game Controller), Home Automation Hub / Smart Sensor Node, Smart Metering (Electricity / Energy / Water Meter), Consumer Electronics HMI (Wearable / Smart Watch UI), Industrial Sensor Front-End (4-20 mA / Modbus RTU), Battery-Powered IoT Edge Node.
USB HID Peripheral (Keyboard / Mouse / HID Game Controller)
The ATSAMD21G17D-MF's integrated USB 2.0 full-speed PHY with on-chip pull-up/pull-down resistors makes it ideal for USB Human Interface Device designs. The integrated USB module supports up to 8 endpoints per the SAM D21G datasheet, sufficient for composite HID (keyboard + mouse + media controls). With 128 KB flash, the device can host HID class drivers, NKRO matrix scan firmware, and a USB bootloader (UF2 or HID-based) without external memory. Place a 22-ohm series resistor on DP/DM and route as a 90-ohm differential pair; unlike an external PHY, no external crystal or pull-up is needed for USB.
Recommended
Home Automation Hub / Smart Sensor Node
The ATSAMD21G17D-MF's 6 SERCOM ports (each configurable as I2C/SPI/USART) make it well-suited for home automation gateways interfacing to multiple wireless modules, sensors, and actuators simultaneously. The 12-bit ADC at 350 ksps with 20 channels handles analog sensor inputs from temperature, humidity, and gas sensors. The SERCOM flexibility lets one MCU drive an NRF24 SPI radio, a UART-attached Wi-Fi module, and I2C sensors concurrently. With Cortex-M0+ at 48 MHz, the device executes Bluetooth Mesh or Zigbee stacks with low active power consumption.
Recommended
Smart Metering (Electricity / Energy / Water Meter)
The ATSAMD21G17D-MF's low-power SleepWalking architecture is well-suited for utility metering applications where the MCU spends most of its time in sleep and only processes periodic ADC samples from current transformers. The 12-bit ADC at 350 ksps accurately digitizes metrology-class signals, and the integrated 32.768 kHz RTC keeps calendar time for billing cycles. Industrial temperature grade (-40C to +125C) supports outdoor meter enclosures. The 128 KB flash holds encrypted metrology firmware with anti-tamper storage in the 4 KB RWW flash area.
Recommended
Consumer Electronics HMI (Wearable / Smart Watch UI)
The ATSAMD21G17D-MF's 6 TCC (Timer/Counter for Control) channels drive PWM for LED backlights, haptic feedback motors, and display dimming in consumer HMIs. The SERCOM-configurable I2S ports connect to audio CODECs for voice prompts, while the 12-bit ADC reads touch sensor panels through the integrated PTC peripheral (up to 256 touch channels). With 128 KB flash and 16 KB SRAM, the device runs LVGL or emWin graphics libraries with reasonable frame rates on small LCD or OLED panels.
Recommended
Industrial Sensor Front-End (4-20 mA / Modbus RTU)
The ATSAMD21G17D-MF's RS-485-capable SERCOM UART plus industrial -40C to +125C temperature range makes it ideal for industrial sensor transmitters. The integrated 12-bit ADC reads 4-20 mA current loop sensors, RTDs, or bridge sensors with on-chip PGA. Hardware CRC and event system offload Modbus RTU processing from the CPU, leaving headroom for application logic. 128 KB flash hosts IEC 61131-3 or custom protocol firmware with industrial safety margins.
Recommended
Battery-Powered IoT Edge Node
The ATSAMD21G17D-MF's SleepWalking peripherals autonomously monitor sensors and wake the CPU only on real events, dramatically extending battery life in IoT edge nodes. The 1.62 V to 3.63 V supply range enables direct connection to 3.6 V LiSOCl2 primary cells. Brown-out detection and supply voltage monitoring protect against battery end-of-life, while the integrated RTC tracks time-based wake events. With 128 KB flash, the device hosts LoRaWAN or Thread mesh stacks alongside application code.
Recommended
Recommended Products Summary
Engineering reference data for ATSAMD21G17D-MF — comparison, design guidance, and compliance information.
Selection Guide
Comparison with Alternatives
| Parameter | This Product | ATSAMD21G17A-MF | ATSAMD21G17A-MFT | ATSAMD21G17A-AUT | ATSAMD21G17A-AU | ATSAMD21G18A-MF |
|---|---|---|---|---|---|---|
| Brand | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology | Microchip Technology |
| Package | 48-pin QFN (7x7) | 48-pin QFN (7x7) - same | 48-pin QFN (7x7) - same | 48-pin QFN (7x7) - same | 48-pin QFN (7x7) - same | 48-pin QFN (7x7) - same |
| Flash Memory | 128 KB | 128 KB | 128 KB | 128 KB | 128 KB | 256 KB (+100%) |
| SRAM | 16 KB | 16 KB | 16 KB | 16 KB | 16 KB | 32 KB (+100%) |
| Core / Speed | Cortex-M0+ / 48 MHz | Cortex-M0+ / 48 MHz | Cortex-M0+ / 48 MHz | Cortex-M0+ / 48 MHz | Cortex-M0+ / 48 MHz | Cortex-M0+ / 48 MHz |
| USB 2.0 FS | Yes (integrated PHY) | Yes | Yes | Yes | Yes | Yes |
| Operating Temperature | -40C to +125C (Extended Industrial) | -40C to +85C (Industrial) | -40C to +85C | -40C to +125C (Automotive) | -40C to +125C (Automotive) | -40C to +125C (Extended Industrial) |
| AEC-Q100 Automotive | No (industrial -MF only) | No | No | Yes (automotive) | Yes (automotive) | No (industrial -MF) |
| Silicon Revision | D revision (latest, FuSa-capable) | A revision (earlier) | A revision | A revision | A revision | A revision |
| Unit Price (1k qty) | $3.20 | $3.50 | $3.50 | $4.20 (automotive premium) | $4.20 | $4.50 (larger flash premium) |
Key Differentiators
- Latest D silicon revision with Functional Safety documentation (vs ATSAMD21G17A-MF (A revision))
- Extended industrial temperature grade (-40C to +125C) (vs ATSAMD21G17A-MF (industrial -40C to +85C))
- Doubled flash and SRAM vs G17 (vs ATSAMD21G18A-MF (256 KB flash / 32 KB SRAM))
- Industrial vs automotive temperature grade (vs ATSAMD21G17A-AUT (AEC-Q100 automotive))
Design Notes
Decouple each VDD pin with a 100 nF ceramic capacitor placed within 2 mm of the pin, plus a shared 4.7 uF bulk capacitor. Connect VDDIO and VDDUSB independently with their own decoupling. For USB operation, VDDUSB must be 3.0 V to 3.6 V - if the main VDD is below 3.0 V, drive VDDUSB from an external LDO or boost converter. Estimated: total inrush current during USB enumeration peaks at ~50 mA; a 10 uF bulk on VDDUSB is recommended to suppress USB inrush transients.
Route USB DP/DM as a 90-ohm differential pair with matched lengths (delta < 150 mil). Place the 22-ohm series resistors on DP and DM near the MCU. The exposed pad (EP) must be soldered to a continuous ground plane with at least 9 thermal vias (0.3 mm drill, 0.5 mm pitch) to the inner ground layer for thermal dissipation. Without proper EP soldering, junction temperature may exceed 125C at high ambient temperatures.
When using the ADC, place a 10 nF bypass capacitor at AREF and use separate analog and digital ground planes joined at a single point near the MCU's GND pin. The 12-bit ADC achieves 350 ksps but ENOB drops to ~10 bits above 100 ksps due to input bandwidth limits - decimate or average for precision measurements. Avoid switching signals near AINx pins during ADC conversions; the event system can synchronize ADC sampling with timer events to reduce jitter.
Do not drive SWDIO/SWCLK (PA30/PA31) with external circuitry during reset - Microchip's debug logic samples them at reset release to enter bootloader or normal mode. If the application needs PA30/PA31 as GPIO after boot, configure the appropriate fuse bit; otherwise, leave them as SWD. Also note: the D revision (this part) is the latest silicon with FuSa documentation; older A revision does not support Functional Safety libraries - choose carefully for safety-critical designs.
Estimated: at 48 MHz active mode, the SAM D21G draws ~7 mA (typical), so total power is ~23 mW at 3.3 V. In sleep mode with RTC running, current drops to <2 uA. With the 48-pin QFN (7x7) EP properly soldered, theta_JA is approximately 32 C/W, giving a 25C temperature rise above ambient at full active load. Industrial temperature grade parts (-40C to +125C) can therefore operate up to 100C ambient in active mode without heatsinking.
Compliance Information
RoHS and REACH compliant per Microchip product declaration. Industrial temperature grade only - not AEC-Q100 qualified. For AEC-Q100, see ATSAMD21G17A-AUT. Halogen-free per Microchip packaging marking.