SAMD21G18A
MicrocontrollerThe SAMD21G18A is a microcontroller from for produced articles. View the full SAMD21G18A datasheet below including pinout.
Manufacturer
for produced articles
Category
Microcontroller
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)
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
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).
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 |
Get structured datasheet data via API
Get started free