Skip to main content

We use cookies to understand how you use our site and improve your experience. See our Privacy Policy.

SAMD21G18A

Microcontroller

The 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

SAMD21G18A Key Specifications

ParameterValue
ADC12-bit, 350ksps, up to 20 channels
CPUARM Cortex-M0+ 32-bit, up to 48MHz
DAC10-bit, 350ksps
I2SOne two-channel interface
USBFull-speed 12Mbps USB 2.0 host/device
SRAM32KB
Flash256KB
SERCOMUp to 6 (USART, I2C up to 3.4MHz, SPI, LIN slave)
TimersUp to five 16-bit TC and three 24-bit TCC
I/O PinsUp to 52 (device-dependent)
Sleep ModesIdle and standby with SleepWalking
DMA Channels12
Supply Voltage1.62V to 3.63V
Debug InterfaceTwo-pin Serial Wire Debug (SWD)
Capacitive TouchUp to 256 channels (PTC)
Analog Comparators2 with window compare
Event System Channels12
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

PinNameTypeDescription
1PA00I/ODigital Pin / Oscillator
2PA01I/ODigital Pin / Oscillator
3PB03I/OAnalog Pin
4PB02I/OAnalog Pin
5PB01I/OAnalog Pin
6PB00I/OAnalog Pin
7GNDANAPGround (Analog)
8VDDANAPInput Supply (Analog)
9PB06I/OAnalog Pin
10PB07I/OAnalog Pin
11PB08I/OAnalog Pin
12PB09I/OAnalog Pin
13PA04I/OAnalog Pin
14PA05I/OAnalog Pin
15PA06I/OAnalog Pin
16PA07I/OAnalog Pin
17PA08I/ODigital Pin
18PA09I/ODigital Pin
19PA10I/ODigital Pin
20PA11I/ODigital Pin
21VDDIOPInput Supply (Digital)
22GNDPGround
23PB10I/ODigital Pin
24PB11I/ODigital Pin
25PB12I/ODigital Pin
26PB13I/ODigital Pin
27PB14I/ODigital Pin
28PB15I/ODigital Pin
29PA12I/ODigital Pin
30PA13I/ODigital Pin
31PA14I/ODigital Pin
32PA15I/ODigital Pin
33GNDPGround
34VDDIOPInput Supply (Digital)
35PA16I/ODigital Pin
36PA17I/ODigital Pin
37PA18I/ODigital Pin
38PA19I/ODigital Pin
39PB16I/ODigital Pin
40PB17I/ODigital Pin
41PA20I/ODigital Pin
42PA21I/ODigital Pin
43PA22I/ODigital Pin
44PA23I/ODigital Pin
45PA24I/ODigital Pin
46PA25I/ODigital Pin
47GNDPGround
48VDDIOPInput 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 TQFP64.7°C/W23.1°C/W
48-pin TQFP63.6°C/W12.2°C/W
64-pin TQFP60.9°C/W12.2°C/W
32-pin QFN40.9°C/W15.2°C/W
48-pin QFN32.0°C/W10.9°C/W
64-pin QFN32.5°C/W10.7°C/W
35-ball WLCSP41.8°C/W2.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

All Microcontrollers (MCU) datasheets

Data on this page is extracted from publicly available manufacturer datasheets using automated tools including AI. It may contain errors or omissions. Always verify specifications against the official manufacturer datasheet before making design or purchasing decisions. See our Terms of Service. Rights holders can submit a takedown request.

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.