Skip to main content

SAMD21G18A

SAM D21E / SAM D21G /SAM D21J Summary

The SAMD21G18A is an electronic component from for produced articles. SAM D21E / SAM D21G /SAM D21J Summary. View the full SAMD21G18A datasheet below including specifications and datasheet sections.

Manufacturer

for produced articles

Overview

Part: Microchip Technology SAM D21E / SAM D21G / SAM D21J Type: ARM Cortex-M0+ Microcontroller

Key Specs:

  • Processor: ARM Cortex-M0+ CPU
  • Max Frequency: 48 MHz
  • Flash Memory: 32 KB to 256 KB
  • SRAM Memory: 4 KB to 32 KB
  • CoreMark/MHz: 2.46
  • Operating Voltage: 1.62 V to 3.63 V
  • ADC Resolution: 12-bit (up to 16-bit with oversampling)
  • ADC Sample Rate: 350 ksps
  • DAC Resolution: 10-bit
  • DAC Sample Rate: 350 ksps
  • I/O Pins: Up to 52

Features:

  • Single-cycle hardware multiplier
  • Micro Trace Buffer (MTB)
  • 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) with 16 external interrupts and one non-maskable interrupt
  • Two-pin Serial Wire Debug (SWD) programming, test and debugging interface
  • Idle and standby sleep modes
  • SleepWalking peripherals
  • 12-channel Direct Memory Access Controller (DMAC)
  • 12-channel Event System
  • Up to five 16-bit Timer/Counters (TC), configurable as 8-bit, 16-bit, or 32-bit (cascaded)
  • Three 24-bit Timer/Counters for Control (TCC) with extended functions (PWM, fault protection, dithering)
  • 32-bit Real Time Counter (RTC) with clock/calendar function
  • Watchdog Timer (WDT)
  • CRC-32 generator
  • Full-speed (12Mbps) Universal Serial Bus (USB) 2.0 interface with embedded host and device function, eight endpoints
  • Up to six Serial Communication Interfaces (SERCOM), each configurable as USART, I2C (up to 3.4MHz), SPI, LIN slave, SMBus, PMBus
  • One two-channel Inter-IC Sound (I2S) interface
  • One 12-bit, 350ksps Analog-to-Digital Converter (ADC) with up to 20 channels, programmable gain, automatic offset and gain error compensation, oversampling and decimation for up to 16-bit resolution
  • One 10-bit, 350ksps Digital-to-Analog Converter (DAC)
  • Two Analog Comparators (AC) with window compare function
  • Peripheral Touch Controller (PTC) with 256-Channel capacitive touch and proximity sensing
  • Drop in compatible with SAM D20

Applications:

  • null

Package:

  • 64-pin TQFP, QFN, UFBGA
  • 48-pin TQFP, QFN, WLCSP
  • 32-pin TQFP, QFN, WLCSP

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 (I2S) 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
  • Introduction1

  • Features 1

    1. Description5
    1. Configuration Summary6
  • 3.
    Ordering Information8

  • 3.1. SAM D21E8

  • 3.2. SAM D21G 11

  • 3.3. SAM D21J 13

  • 3.4. Device Identification 15

    1. Block Diagram 17
    1. Pinout 18
  • 5.1. SAM D21J 18

  • 5.2. SAM D21G 20

  • 5.3. SAM D21E22

    1. Product Mapping 24
    1. Processor And Architecture25
  • 7.1. Cortex M0+ Processor 25

  • 7.2. Nested Vector Interrupt Controller26

  • 7.3. Micro Trace Buffer28

  • 7.4. High-Speed Bus System 29

  • 7.5. AHB-APB Bridge 31

  • 7.6. PAC - Peripheral Access Controller 32

    1. Packaging Information43
  • 8.1. Thermal Considerations 43

  • 8.2. Package Drawings 44

  • 8.3. Soldering Profile55

  • The Microchip Web Site 56

  • Customer Change Notification Service56

  • Customer Support 56

  • Product Identification System56

  • Microchip Devices Code Protection Feature 57

  • Legal Notice57

1. Description

The SAM D21 is a series of low-power microcontrollers using the 32-bit ARM® Cortex® -M0+ processor, and ranging from 32- to 64-pins with up to 256KB Flash and 32KB of SRAM. The SAM D21 operate at a maximum frequency of 48MHz and reach 2.46 CoreMark/MHz. They are designed for simple and intuitive migration with identical peripheral modules, hex compatible code, identical linear address map and pin compatible migration paths between all devices in the product series. All devices include intelligent and flexible peripherals, Event System for inter-peripheral signaling, and support for capacitive touch button, slider and wheel user interfaces.

The SAM D21 provide the following features: In-system programmable Flash, twelve-channel direct memory access (DMA) controller, 12 channel Event System, programmable interrupt controller, up to 52 programmable I/O pins, 32-bit real-time clock and calendar, up to five 16-bit Timer/Counters (TC) and three 24-bit Timer/Counters for Control (TCC), where each TC can be configured to perform frequency and waveform generation, accurate program execution timing or input capture with time and frequency measurement of digital signals. The TCs can operate in 8- or 16-bit mode, selected TCs can be cascaded to form a 32-bit TC, and three timer/counters have extended functions optimized for motor, lighting and other control applications. The series provide one full-speed USB 2.0 embedded host and device interface; up to six Serial Communication Modules (SERCOM) that each can be configured to act as an USART, UART, SPI, I2C up to 3.4MHz, SMBus, PMBus, and LIN slave; two-channel I2S interface; up to twenty-channel 350ksps 12-bit ADC with programmable gain and optional oversampling and decimation supporting up to 16-bit resolution, one 10-bit 350ksps DAC, two analog comparators with window mode, Peripheral Touch Controller supporting up to 256 buttons, sliders, wheels and proximity sensing; programmable Watchdog Timer, brown-out detector and power-on reset and two-pin Serial Wire Debug (SWD) program and debug interface.

All devices have accurate and low-power external and internal oscillators. All oscillators can be used as a source for the system clock. Different clock domains can be independently configured to run at different frequencies, enabling power saving by running each peripheral at its optimal clock frequency, and thus maintaining a high CPU frequency while reducing power consumption.

The SAM D21 have two software-selectable sleep modes, idle and standby. In idle mode the CPU is stopped while all other functions can be kept running. In standby all clocks and functions are stopped expect those selected to continue running. The device supports SleepWalking. This feature allows the peripheral to wake up from sleep based on predefined conditions, and thus allows the CPU to wake up only when needed, e.g. when a threshold is crossed or a result is ready. The Event System supports synchronous and asynchronous events, allowing peripherals to receive, react to and send events even in standby mode.

The Flash program memory can be reprogrammed in-system through the SWD interface. The same interface can be used for non-intrusive on-chip debug of application code. A boot loader running in the device can use any communication interface to download and upgrade the application program in the Flash memory.

The SAM D21 microcontrollers are supported with a full suite of program and system development tools, including C compilers, macro assemblers, program debugger/simulators, programmers and evaluation kits.

Thermal Information

The following Table summarizes the thermal resistance data depending on the package.

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.

Get structured datasheet data via API

Get started free