SAMD21G18A
MicrocontrollerThe SAMD21G18A is a microcontroller from for produced articles. View the full SAMD21G18A datasheet below including key specifications, pinout.
Official SAMD21G18A datasheet (PDF) — the source this page was extracted from.
Manufacturer
for produced articles
Category
Microcontrollers (MCU)SAMD21G18A Key Specifications
| Parameter | Value |
|---|---|
| ADC | 12-bit, 350ksps, up to 20 channels |
| CPU | ARM Cortex-M0+ 32-bit, up to 48MHz |
| DAC | 10-bit, 350ksps |
| I2S | One two-channel interface |
| USB | Full-speed 12Mbps USB 2.0 host/device |
| SRAM | 32KB |
| Flash | 256KB |
| SERCOM | Up to 6 (USART, I2C up to 3.4MHz, SPI, LIN slave) |
| Timers | Up to five 16-bit TC and three 24-bit TCC |
| I/O Pins | Up to 52 (device-dependent) |
| Sleep Modes | Idle and standby with SleepWalking |
| DMA Channels | 12 |
| Supply Voltage | 1.62V to 3.63V |
| Debug Interface | Two-pin Serial Wire Debug (SWD) |
| Capacitive Touch | Up to 256 channels (PTC) |
| Analog Comparators | 2 with window compare |
| Event System Channels | 12 |
| Package Options (G Series) | 48-pin TQFP, QFN, WLCSP |
SAMD21G18A Overview
Part: SAM D21E / SAM D21G / SAM D21J — Microchip Type: 32-bit ARM Cortex-M0+ Microcontroller Description: Low-power 32-bit ARM Cortex-M0+ microcontrollers operating at up to 48MHz, with up to 256KB Flash and 32KB SRAM, featuring extensive peripherals including USB 2.0, I2C up to 3.4MHz, SPI, USART, 12-bit ADC, and 10-bit DAC.
Operating Conditions:
- Supply voltage: 1.62V - 3.63V
- Max CPU frequency: 48MHz
Absolute Maximum Ratings:
Key Specs:
- CPU: ARM Cortex-M0+
- Max CPU frequency: 48MHz
- Flash memory: 32KB to 256KB
- SRAM memory: 4KB to 32KB
- ADC resolution: 12-bit, 350ksps
- DAC resolution: 10-bit, 350ksps
- I2C speed: Up to 3.4MHz
- USB interface: Full-speed (12Mbps) USB 2.0
Features:
- Single-cycle hardware multiplier
- Micro Trace Buffer (MTB)
- Power-on reset (POR) and brown-out detection (BOD)
- Internal and external clock options with DFLL48M and FDPLL96M
- 12-channel Direct Memory Access Controller (DMAC)
- 12-channel Event System
- Up to six Serial Communication Interfaces (SERCOM) configurable as USART, I2C, SPI, LIN slave
- Peripheral Touch Controller (PTC) with up to 256-channel capacitive touch sensing
- Two-pin Serial Wire Debug (SWD) interface
- Idle and standby sleep modes with SleepWalking peripherals
Applications:
Package:
- 64-pin TQFP, QFN, UFBGA (SAM D21J)
- 48-pin TQFP, QFN, WLCSP (SAM D21G)
- 32-pin TQFP, QFN, WLCSP (SAM D21E)
SAMD21G18A Features
-
Processor
-
-ARM Cortex-M0+ CPU running at up to 48MHz
-
Single-cycle hardware multiplier
-
Micro Trace Buffer (MTB)
-
Memories
-
-32/64/128/256KB in-system self-programmable Flash
-
-4/8/16/32KB SRAM Memory
-
System
-
-Power-on reset (POR) and brown-out detection (BOD)
-
-Internal and external clock options with 48MHz Digital Frequency Locked Loop (DFLL48M) and 48MHz to 96MHz Fractional Digital Phase Locked Loop (FDPLL96M)
-
-External Interrupt Controller (EIC)
-
-16 external interrupts
-
-One non-maskable interrupt
-
-Two-pin Serial Wire Debug (SWD) programming, test and debugging interface
-
Low Power
-
-Idle and standby sleep modes
-
-SleepWalking peripherals
-
Peripherals
-
-12-channel Direct Memory Access Controller (DMAC)
-
-12-channel Event System
-
-Up to five 16-bit Timer/Counters (TC), configurable as either:
-
One 16-bit TC with two compare/capture channels
-
One 8-bit TC with two compare/capture channels
-
One 32-bit TC with two compare/capture channels, by using two TCs
-
-Three 24-bit Timer/Counters for Control (TCC), with extended functions:
-
Up to four compare channels with optional complementary output
-
Generation of synchronized pulse width modulation (PWM) pattern across port pins
-
Deterministic fault protection, fast decay and configurable dead-time between complementary output
-
Dithering that increase resolution with up to 5 bit and reduce quantization error
-
-32-bit Real Time Counter (RTC) with clock/calendar function
-
-Watchdog Timer (WDT)
-
-CRC-32 generator
-
-One full-speed (12Mbps) Universal Serial Bus (USB) 2.0 interface
-
Embedded host and device function
-
Eight endpoints
-
-Up to six Serial Communication Interfaces (SERCOM), each configurable to operate as either:
-
USART with full-duplex and single-wire half-duplex configuration
-
I2C up to 3.4MHz
-
SPI
-
LIN slave
-
-One two-channel Inter-IC Sound (I 2 S) interface
-
-One 12-bit, 350ksps Analog-to-Digital Converter (ADC) with up to 20 channels
-
Differential and single-ended input
-
1/2x to 16x programmable gain stage
-
Automatic offset and gain error compensation
-
Oversampling and decimation in hardware to support 13-, 14-, 15- or 16-bit resolution
-
-10-bit, 350ksps Digital-to-Analog Converter (DAC)
-
-Two Analog Comparators (AC) with window compare function
-
-Peripheral Touch Controller (PTC)
-
256-Channel capacitive touch and proximity sensing
-
I/O
-
-Up to 52 programmable I/O pins
-
Drop in compatible with SAM D20
-
Packages
-
-64-pin TQFP, QFN, UFBGA
-
-48-pin TQFP, QFN, WLCSP
-
-32-pin TQFP, QFN, WLCSP
-
Operating Voltage
-
-1.62V - 3.63V
SAMD21G18A Pin Configuration
SAMD21G18A – QFN48/TQFP48 Pinout
| Pin | Name | Type | Description |
|---|---|---|---|
| 1 | PA00 | I/O | Digital Pin / Oscillator |
| 2 | PA01 | I/O | Digital Pin / Oscillator |
| 3 | PB03 | I/O | Analog Pin |
| 4 | PB02 | I/O | Analog Pin |
| 5 | PB01 | I/O | Analog Pin |
| 6 | PB00 | I/O | Analog Pin |
| 7 | GNDANA | P | Ground (Analog) |
| 8 | VDDANA | P | Input Supply (Analog) |
| 9 | PB06 | I/O | Analog Pin |
| 10 | PB07 | I/O | Analog Pin |
| 11 | PB08 | I/O | Analog Pin |
| 12 | PB09 | I/O | Analog Pin |
| 13 | PA04 | I/O | Analog Pin |
| 14 | PA05 | I/O | Analog Pin |
| 15 | PA06 | I/O | Analog Pin |
| 16 | PA07 | I/O | Analog Pin |
| 17 | PA08 | I/O | Digital Pin |
| 18 | PA09 | I/O | Digital Pin |
| 19 | PA10 | I/O | Digital Pin |
| 20 | PA11 | I/O | Digital Pin |
| 21 | VDDIO | P | Input Supply (Digital) |
| 22 | GND | P | Ground |
| 23 | PB10 | I/O | Digital Pin |
| 24 | PB11 | I/O | Digital Pin |
| 25 | PB12 | I/O | Digital Pin |
| 26 | PB13 | I/O | Digital Pin |
| 27 | PB14 | I/O | Digital Pin |
| 28 | PB15 | I/O | Digital Pin |
| 29 | PA12 | I/O | Digital Pin |
| 30 | PA13 | I/O | Digital Pin |
| 31 | PA14 | I/O | Digital Pin |
| 32 | PA15 | I/O | Digital Pin |
| 33 | GND | P | Ground |
| 34 | VDDIO | P | Input Supply (Digital) |
| 35 | PA16 | I/O | Digital Pin |
| 36 | PA17 | I/O | Digital Pin |
| 37 | PA18 | I/O | Digital Pin |
| 38 | PA19 | I/O | Digital Pin |
| 39 | PB16 | I/O | Digital Pin |
| 40 | PB17 | I/O | Digital Pin |
| 41 | PA20 | I/O | Digital Pin |
| 42 | PA21 | I/O | Digital Pin |
| 43 | PA22 | I/O | Digital Pin |
| 44 | PA23 | I/O | Digital Pin |
| 45 | PA24 | I/O | Digital Pin |
| 46 | PA25 | I/O | Digital Pin |
| 47 | GND | P | Ground |
| 48 | VDDIO | P | Input Supply (Digital) |
Notes
- Pin numbers extracted directly from the QFN48/TQFP48 package diagram for SAM D21G variant.
- SAMD21G18A is the 48-pin variant of the SAM D21 family.
- Analog pins (PB00–PB09, PA04–PA07) support ADC/DAC functions.
- Multiple VDDIO and GND pins distributed for power distribution and grounding.
- VDDANA and GNDANA are dedicated analog supply pins.
- PA00 and PA01 are oscillator pins (XIN32/XOUT32).
SAMD21G18A Thermal Information
The following Table summarizes the thermal resistance data depending on the package.
Table 8-1. Thermal Resistance Data
| Package Type | θ JA | θ JC |
|---|---|---|
| 32-pin TQFP | 64.7°C/W | 23.1°C/W |
| 48-pin TQFP | 63.6°C/W | 12.2°C/W |
| 64-pin TQFP | 60.9°C/W | 12.2°C/W |
| 32-pin QFN | 40.9°C/W | 15.2°C/W |
| 48-pin QFN | 32.0°C/W | 10.9°C/W |
| 64-pin QFN | 32.5°C/W | 10.7°C/W |
| 35-ball WLCSP | 41.8°C/W | 2.26°C/W |
Other Microcontrollers (MCU)
- STM32F407VET6 – STMicroelectronics, ARM Cortex-M4 MCU
- STM32H563ZIT6 – STMicroelectronics, Arm Cortex-M33 32-bit MCU
- STM32H743VIT6 – STMicroelectronics, Microcontroller Unit (MCU)
- RP2040 – Raspberry Pi, Microcontroller
- STM32U575RIT6 – STMicroelectronics, Ultra-low-power Arm Cortex-M33 32-bit MCU
- STM32L011F4U6 – STMicroelectronics, Ultra-low-power Arm Cortex-M0+ MCU
- GD32F103C8T6 – GigaDevice, Arm Cortex-M3 32-bit MCU
- CH32H417QEU6 – WCH, Dual-Core RISC-V Microcontroller
Ask your AI agent about the SAMD21G18A
Connect SheetsData to Claude, Cursor, Codex or any MCP client and your agent reads this datasheet for you: pinout, limits, register maps and design checks, with the numbers taken from the PDF.
claude mcp add --transport http sheetsdata https://mcp.sheetsdata.com/mcp
Then ask: "Can the SAMD21G18A run from my 12 V rail? Check it against the datasheet limits."
Create a free account $2 of usage every month, no card needed.