The Atmel® | SMART™ 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 devices 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, Atmel Event System for inter-peripheral signaling, and support for capacitive
touch button, slider and wheel user interfaces.
The Atmel SAM D21 devices 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, I
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.
2
C up to 3.4MHz, SMBus, PMBus, and LIN slave; two-channel I2S
SMART
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 devices 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 Atmel SAM D21 devices are supported with a full suite of program and system development
tools, including C compilers, macro assemblers, program debugger/simulators, programmers and
evaluation kits
.
Atmel-42181G–SAM-D21_Datasheet–09/2015
Features
z Processor
z ARM Cortex-M0+ CPU running at up to 48MHz
z Single-cycle hardware multiplier
z Micro Trace Buffer (MTB)
z Memories
z 32/64/128/256KB in-system self-programmable Flash
z 4/8/16/32KB SRAM Memory
z System
z Power-on reset (POR) and brown-out detection (BOD)
z Internal and external clock options with 48MHz Digital Frequency Locked Loop (DFLL48M) and 48MHz to 96MHz Fractional
Digital Phase Locked Loop (FDPLL96M)
z External Interrupt Controller (EIC)
z 16 external interrupts
z One non-maskable interrupt
z Two-pin Serial Wire Debug (SWD) programming, test and debugging interface
z Low Power
z Idle and standby sleep modes
z SleepWalking peripherals
z Peripherals
z 12-channel Direct Memory Access Controller (DMAC)
z 12-channel Event System
z Up to five 16-bit Timer/Counters (TC), configurable as either:
z One 16-bit TC with compare/capture channels
z One 8-bit TC with compare/capture channels
z One 32-bit TC with compare/capture channels, by using two TCs
z Three 24-bit Timer/Counters for Control (TCC), with extended functions:
z Up to four compare channels with optional complementary output
z Generation of synchronized pulse width modulation (PWM) pattern across port pins
z Deterministic fault protection, fast decay and configurable dead-time between complementary output
z Dithering that increase resolution with up to 5 bit and reduce quantization error
z 32-bit Real Time Counter (RTC) with clock/calendar function
z Watchdog Timer (WDT)
z CRC-32 generator
z One full-speed (12Mbps) Universal Serial Bus (USB) 2.0 interface
z Embedded host and device function
z Eight endpoints
z Up to six Serial Communication Interfaces (SERCOM), each configurable to operate as either:
z USART with full-duplex and single-wire half-duplex configuration
2
z I
C up to 3.4MHz
z SPI
z LIN slave
z One two-channel Inter-IC Sound (I
z One 12-bit, 350ksps Analog-to-Digital Converter (ADC) with up to 20 channels
z Differential and single-ended input
z 1/2x to 16x programmable gain stage
z Automatic offset and gain error compensation
z Oversampling and decimation in hardware to support 13-, 14-, 15- or 16-bit resolution
z 10-bit, 350ksps Digital-to-Analog Converter (DAC)
z Two Analog Comparators (AC) with window compare function
z Peripheral Touch Controller (PTC)
z 256-Channel capacitive touch and proximity sensing
z I/O
z Up to 52 programmable I/O pins
z Drop in compatible with SAM D20
z Packages
z 64-pin TQFP, QFN, UFBGA
z 48-pin TQFP, QFN, WLCSP
z 32-pin TQFP, QFN, WLCSP
The following table gives details on signal names classified by peripheral.
Signal NameFunctionTypeActive Level
Analog Comparators - AC
AIN[3:0]AC Analog InputsAnalog
CMP[:0]AC Comparator OutputsDigital
Analog Digital Converter - ADC
AIN[19:0]ADC Analog InputsAnalog
VREFAADC Voltage External Reference AAnalog
VREFBADC Voltage External Reference BAnalog
Digital Analog Converter - DAC
VOUTDAC Voltage outputAnalog
VREFADAC Voltage External ReferenceAnalog
External Interrupt Controller
EXTINT[15:0]External InterruptsInput
NMIExternal Non-Maskable InterruptInput
Generic Clock Generator - GCLK
GCLK_IO[7:0]Generic Clock (source clock or generic clock generator output)I/O
Inter-IC Sound Controller - I2S
MCK[1..0]Master ClockI/O
SCK[1..0]Serial ClockI/O
FS[1..0]I2S Word Select or TDM Frame SyncI/O
SD[1..0]Serial Data Input or Output I/O
Power Manager - PM
RESETNResetInputLow
Serial Communication Interface - SERCOMx
PAD[3:0]SERCOM I/O PadsI/O
System Control - SYSCTRL
XINCrystal InputAnalog/ Digital
XIN3232kHz Crystal InputAnalog/ Digital
XOUTCrystal OutputAnalog
XOUT3232kHz Crystal OutputAnalog
Timer Counter - TCx
Atmel | SMART SAM D21 [DATASHEET]
Atmel-42181G–SAM-D21_Datasheet–09/2015
19
Signal NameFunctionTypeActive Level
WO[1:0]Waveform OutputsOutput
Timer Counter - TCCx
WO[1:0]Waveform OutputsOutput
Peripheral Touch Controller - PTC
X[15:0]PTC Input Analog
Y[15:0]PTC InputAnalog
General Purpose I/O - PORT
PA25 - PA00Parallel I/O Controller I/O Port AI/O
PA28 - PA27Parallel I/O Controller I/O Port AI/O
PA31 - PA30Parallel I/O Controller I/O Port AI/O
PB17 - PB00Parallel I/O Controller I/O Port BI/O
PB23 - PB22Parallel I/O Controller I/O Port BI/O
PB31 - PB30Parallel I/O Controller I/O Port BI/O
Universal Serial Bus - USB
DPDP for USBI/O
DMDM for USBI/O
SOF 1kHzUSB Start of FrameI/O
Atmel | SMART SAM D21 [DATASHEET]
Atmel-42181G–SAM-D21_Datasheet–09/2015
20
Atmel-42181G–SAM-D21_Datasheet–09/2015
[DATASHEET]
21
6.I/O Multiplexing and Considerations
6.1Multiplexed Signals
Each pin is by default controlled by the PORT as a general purpose I/O and alternatively it can be assigned to one of the peripheral functions A, B, C,
D, E, F, G or H. To enable a peripheral function on a pin, the Peripheral Multiplexer Enable bit in the Pin Configuration register corresponding to that pin
(PINCFGn.PMUXEN, n = 0-31) in the PORT must be written to one. The selection of peripheral function A to H is done by writing to the Peripheral
Multiplexing Odd and Even bits in the Peripheral Multiplexing register (PMUXn.PMUXE/O) in the PORT.
Table 5-1 on page 11 describes the peripheral signals multiplexed to the PORT I/O pins.
Table 6-1. PORT Function Multiplexing
(1)
Pin
SAMD21E SAMD21GSAMD21JEICREFADCACPTCDAC SERCOM
111PA0 0VDDANA EXTINT[0]
222PA0 1VDDANAEXTINT[1]
333PA02VDDANAEXTINT[2]AIN[0]Y[0]VOUT
444PA03VDDANAEXTINT[3]
711PB08VDDANAEXTINT[8]AIN[2]Y[14]
812PB09 VDDANAEXTINT[9]AIN[3]Y[15]
5913PA0 4VDDANAEXTINT[4]
61014PA 05VDDANAEXTINT[5]AIN[5]AIN[1]Y[3]
71115PA 06VDDANAEXTINT[6]AIN[6]AIN[2]Y[4]
81216PA 07VDDANAEXTINT[7]AIN[7]AIN[3]Y[5]
111317PA 08VDDIOI2CNMIAIN[16]X[0]
121418PA0 9VDDIOI2CEXTINT[9]AIN[17]X[1]
131519PA1 0VDDIOEXTINT[10]AIN[18]X[2]
141620PA11VDDIOEXTINT[11]AIN[19]X[3]
I/O Pin Supply Typ e
5PB04VDDANAEXTINT[4]AIN[12]Y[10]
6PB05VDDANAEXTINT[5]AIN[13]Y[11]
9PB06VDDANAEXTINT[6]AIN[14]Y[12]
10PB07VDDANAEXTINT[7]AIN[15]Y[13]
AB
ADC/VREFA
DAC/VREFA
ADC/VREFB
(2)(3)
AIN[1]Y[1]
AIN[4]AIN[0]Y[2]
CDEFGH
SERCOM0/
PAD [0]
SERCOM0/
PAD [1]
SERCOM0/
PAD [2]
SERCOM0/
PAD [3]
(2)(3)
SERCOM-
ALT
SERCOM1/
PAD [0]
SERCOM1/
PAD [1]
SERCOM4/
PAD [0]
SERCOM4/
PAD [1]
SERCOM0/
PAD [0]
SERCOM0/
PAD [1]
SERCOM0/
PAD [2]
SERCOM0/
PAD [3]
SERCOM2/
PAD [0]
SERCOM2/
PAD [1]
SERCOM2/
PAD [2]
SERCOM2/
PAD [3]
(4)
TC
/TCCTCCCOMAC/GCLK
TCC2/WO[0]
TCC2/WO[1]
TC4/WO[0]
TC4/WO[1]
TCC0/WO[0]
TCC0/WO[1]
TCC1/WO[0]
TCC1/WO[1]I2S/SD[0]
TCC0/WO[0]
TCC0/WO[1]
TCC1/WO[0]
TCC1/WO[1]
TCC1/
WO[2]
TCC1/
WO[3]
TCC0/
WO[2]
TCC0/
WO[3]
I2S/SD[1]
I2S/
MCK[0]
I2S/
SCK[0]
I2S/FS[0] GCLK_IO[5]
GCLK_IO[4]
Atmel-42181G–SAM-D21_Datasheet–09/2015
[DATASHEET]
22
Table 6-1. PORT Function Multiplexing (Continued)
(1)
Pin
SAMD21E SAMD21GSAMD21JEICREFADCACPTCDAC SERCOM
1923PB10VDDIOEXTINT[10]
2024PB11VDDIOEXTINT[11]
2129PA 12VDDIOI2CEXTINT[12]
2230PA 13VDDIOI2CEXTINT[13]
152331PA1 4VDDIOEXTINT[14]
162432PA1 5VDDIOEXTINT[15]
172535PA1 6VDDIOI2CEXTINT[0]X[4]
182636PA1 7VDDIOI2CEXTINT[1]X[5]
192737PA1 8VDDIOEXTINT[2]X[6]
202838PA1 9VDDIOEXTINT[3]X[7]
2941PA 20VDDIOEXTINT[4]X[8]
3042PA 21VDDIOEXTINT[5]X[9]
213143PA2 2VDDIOI2CEXTINT[6]X[10]
223244PA2 3VDDIOI2CEXTINT[7]X[11]
233345PA2 4VDDIOEXTINT[12]
243446PA2 5VDDIOEXTINT[13]
I/O Pin Supply Typ e
25PB12VDDIOI2CEXTINT[12]X[12]
26PB13VDDIOI2CEXTINT[13]X[13]
27PB14VDDIOEXTINT[14]X[14]
28PB15VDDIOEXTINT[15]X[15]
39PB16VDDIOI2CEXTINT[0]
40PB17VDDIOI2CEXTINT[1]
AB
(2)(3)
CDEFGH
SERCOM4/
PAD [0]
SERCOM4/
PAD [1]
SERCOM4/
PAD [2]
SERCOM4/
PAD [3]
SERCOM2/
PAD [0]
SERCOM2/
PAD [1]
SERCOM2/
PAD [2]
SERCOM2/
PAD [3]
SERCOM1/
PAD [0]
SERCOM1/
PAD [1]
SERCOM1/
PAD [2]
SERCOM1/
PAD [3]
SERCOM5/
PAD [0]
SERCOM5/
PAD [1]
SERCOM5/
PAD [2]
SERCOM5/
PAD [3]
SERCOM3/
PAD [0]
SERCOM3/
PAD [1]
SERCOM3/
PAD [2]
SERCOM3/
PAD [3]
(2)(3)
SERCOM-
ALT
SERCOM4/
PAD [2]
SERCOM4/
PAD [3]
SERCOM4/
PAD [0]
SERCOM4/
PAD [1]
SERCOM4/
PAD [2]
SERCOM4/
PAD [3]
SERCOM3/
PAD [0]
SERCOM3/
PAD [1]
SERCOM3/
PAD [2]
SERCOM3/
PAD [3]
SERCOM3/
PAD [2]
SERCOM3/
PAD [3]
SERCOM5/
PAD [0]
SERCOM5/
PAD [1]
SERCOM5/
PAD [2]
SERCOM5/
PAD [3]
(4)
TC
/TCCTCCCOMAC/GCLK
TC5/WO[0]
TC5/WO[1]
TC4/WO[0]
TC4/WO[1]
TC5/WO[0]GCLK_IO[0]
TC5/WO[1]GCLK_IO[1]
TCC2/WO[0]
TCC2/WO[1]
TC3/WO[0]
TC3/WO[1]
TCC2/WO[0] TCC0/WO[6]GCLK_IO[2]
TCC2/WO[1] TCC0/WO[7]GCLK_IO[3]
TC3/WO[0]
TC3/WO[1]
TC6/WO[0]
TC6/WO[1]
TC7/WO[0]
TC7/WO[1]
TC4/WO[0]
TC4/WO[1]
TC5/WO[0]
TC5/WO[1]
TCC0/
WO[4]
TCC0/
WO[5]
TCC0/
WO[6]
TCC0/
WO[7]
TCC0/
WO[6]
TCC0/
WO[7]
TCC0/
WO[4]
TCC0/
WO[5]
TCC0/
WO[2]
TCC0/
WO[3]
TCC0/
WO[4]
TCC0/
WO[5]
TCC0/
WO[6]
TCC0/
WO[7]
TCC0/
WO[4]
TCC0/
WO[5]
TCC1/
WO[2]
TCC1/
WO[3]
I2S/
I2S/
I2S/
I2S/
1kHz
GCLK_IO[4]
GCLK_IO[5]
GCLK_IO[7]
AC/CMP[0]
AC/CMP[1]
GCLK_IO[0]
GCLK_IO[1]
AC/CMP[0]
GCLK_IO[3]
GCLK_IO[4]
GCLK_IO[6]
GCLK_IO[7]
MCK[1]
SCK[1]
I2S/FS[1] GCLK_IO[6]
I2S/SD[0] AC/CMP[1]
I2S/SD[1] GCLK_IO[2]
MCK[0]
SCK[0]
I2S/FS[0] GCLK_IO[5]
USB/SOF
USB/DM
USB/DP
Table 6-1. PORT Function Multiplexing (Continued)
(1)
Pin
SAMD21E SAMD21GSAMD21JEICREFADCACPTCDAC SERCOM
3749PB22VDDIOEXTINT[6]
3850PB23VDDIOEXTINT[7]
253951PA2 7VDDIOEXTINT[15]GCLK_IO[0]
274153PA2 8VDDIOEXTINT[8]GCLK_IO[0]
314557PA3 0VDDIOEXTINT[10]
324658PA3 1VDDIOEXTINT[11]
4763PB02 VDDANAEXTINT[2]AIN[10]Y[8]
4864PB03 VDDANAEXTINT[3]AIN[11]Y[9]
Notes:1. Use the SAMD21J pinout muxing for WLCSP45 package.
2. All analog pin functions are on peripheral function B. Peripheral function B must be selected to disable the digital control of the pin.
3. Only some pins can be used in SERCOM I
characteristics.
4. Note that TC6 and TC7 are not supported on the SAM D21E and G devices. Refer to “Configuration Summary” on page 3 for details.
5. This function is only activated in the presence of a debugger.
I/O Pin Supply Typ e
59PB30VDDIOI2CEXTINT[14]
60PB31VDDIOI2CEXTINT[15]
61PB00 VDDANAEXTINT[0]AIN[8]Y[6]
62PB01 VDDANAEXTINT[1]AIN[9]Y[7]
2
C mode. See the Type column for using a SERCOM pin in I2C mode. Refer to “Electrical Characteristics” on page 935 for details on the I2C pin
AB
(2)(3)
CDEFGH
SERCOM-
(2)(3)
ALT
SERCOM5/
PAD [2]
SERCOM5/
PAD [3]
SERCOM1/
PAD [2]
SERCOM1/
PAD [3]
SERCOM5/
PAD [0]
SERCOM5/
PAD [1]
SERCOM5/
PAD [2]
SERCOM5/
PAD [3]
SERCOM5/
PAD [0]
SERCOM5/
PAD [1]
(4)
TC
/TCCTCCCOMAC/GCLK
TC7/WO[0]GCLK_IO[0]
TC7/WO[1]GCLK_IO[1]
TCC1/WO[0]SWCLK GCLK_IO[0]
TCC1/WO[1]SWDIO
TCC0/WO[0]
TCC0/WO[1]
TC7/WO[0]
TC7/WO[1]
TC6/WO[0]
TC6/WO[1]
TCC1/
WO[2]
TCC1/
WO[3]
(5)
Atmel-42181G–SAM-D21_Datasheet–09/2015
[DATASHEET]
23
6.2Other Functions
6.2.1Oscillator Pinout
The oscillators are not mapped to the normal PORT functions and their multiplexing are controlled by registers in the
System Controller (SYSCTRL).
OscillatorSupplySignalI/O Pin
XOSCVDDIO
XOSC32KVDDANA
6.2.2Serial Wire Debug Interface Pinout
Only the SWCLK pin is mapped to the normal PORT functions. A debugger cold-plugging or hot-plugging detection will
automatically switch the SWDIO port to the SWDIO function.
SignalSupplyI/O Pin
SWCLKVDDIOPA30
SWDIOVDDIOPA31
XINPA1 4
XOUTPA1 5
XIN32PA0 0
XOUT32PA01
Atmel | SMART SAM D21 [DATASHEET]
Atmel-42181G–SAM-D21_Datasheet–09/2015
24
7.Power Supply and Start-Up Considerations
VOLTAGE
REGULATOR
VDDIN
VDDCORE
GND
ADC
AC
DAC
PTC
XOSC32K
OSC32K
VDDANA
GNDANA
PA[7:2]
PB[9:0]
PA[1:0]
Digital Logic
(CPU, peripherals)
DFLL48M
VDDIO
OSC8M
XOSC
OSCULP32K
PA[31:16]
PB[31:10]
PA[15:14]
BOD33
POR
PA[13:8]
BOD12
FDPLL96M
7.1Power Domain Overview
7.2Power Supply Considerations
7.2.1Power Supplies
The Atmel® SAM D21 has several different power supply pins:
zVDDIO: Powers I/O lines, OSC8M and XOSC. Voltage is 1.62V to 3.63V.
zVDDIN: Powers I/O lines and the internal regulator. Voltage is 1.62V to 3.63V.
zVDDANA: Powers I/O lines and the ADC, AC, DAC, PTC, OSCULP32K, OSC32K, XOSC32K. Voltage is 1.62V to
3.63V.
zVDDCORE: Internal regulated voltage output. Powers the core, memories, peripherals, DFLL48M and
FDPLL96M. Voltage is 1.2V.
The same voltage must be applied to both VDDIN, VDDIO and VDDANA. This common voltage is referred to as V
the datasheet.
DD
in
Atmel | SMART SAM D21 [DATASHEET]
Atmel-42181G–SAM-D21_Datasheet–09/2015
25
The ground pins, GND, are common to VDDCORE, VDDIO and VDDIN. The ground pin for VDDANA is GNDANA.
(1.62V — 3.63V)
Main Supply
VDDIO
VDDANA
VDDIN
VDDCORE
GND
GNDANA
SAM D21
For decoupling recommendations for the different power supplies, refer to the schematic checklist.
Refer to “Schematic Checklist” on page 1008 for details.
7.2.2Voltage Regulator
The SAM D21 voltage regulator has two different modes:
zNormal mode: To be used when the CPU and peripherals are running
zLow Power (LP) mode: To be used when the regulator draws small static current. It can be used in standby mode
7.2.3Typical Powering Schematics
The SAM D21 uses a single supply from 1.62V to 3.63V.
The following figure shows the recommended power supply connection.
Figure 7-1. Power Supply Connection
7.2.4Power-Up Sequence
7.2.4.1 Minimum Rise Rate
7.2.4.2 Maximum Rise Rate
The integrated power-on reset (POR) circuitry monitoring the VDDANA power supply requires a minimum rise rate. Refer
to the “Electrical Characteristics” on page 935 for details.
The rise rate of the power supply must not exceed the values described in Electrical Characteristics. Refer to the
“Electrical Characteristics” on page 935 for details.
Atmel | SMART SAM D21 [DATASHEET]
Atmel-42181G–SAM-D21_Datasheet–09/2015
26
7.3Power-Up
This section summarizes the power-up sequence of the SAM D21. The behavior after power-up is controlled by the
Power Manager. Refer to “PM – Power Manager” on page 117 for details.
7.3.1Starting of Clocks
After power-up, the device is set to its initial state and kept in reset, until the power has stabilized throughout the device.
Once the power has stabilized, the device will use a 1MHz clock. This clock is derived from the 8MHz Internal Oscillator
(OSC8M), which is divided by eight and used as a clock source for generic clock generator 0. Generic clock generator 0
is the main clock for the Power Manager (PM).
Some synchronous system clocks are active, allowing software execution.
Refer to the “Clock Mask Register” section in “PM – Power Manager” on page 117 for the list of default peripheral clocks
running. Synchronous system clocks that are running are by default not divided and receive a 1MHz clock through
generic clock generator 0. Other generic clocks are disabled except GCLK_WDT, which is used by the Watchdog Timer
(WDT).
7.3.2I/O Pins
After power-up, the I/O pins are tri-stated.
7.3.3Fetching of Initial Instructions
After reset has been released, the CPU starts fetching PC and SP values from the reset address, which is 0x00000000.
This address points to the first executable address in the internal flash. The code read from the internal flash is free to
configure the clock system and clock sources. Refer to “PM – Power Manager” on page 117, “GCLK – Generic Clock
Controller” on page 95 and “SYSCTRL – System Controller” on page 148 for details. Refer to the ARM Architecture
Reference Manual for more information on CPU startup (http://www.arm.com).
7.4Power-On Reset and Brown-Out Detector
The SAM D21 embeds three features to monitor, warn and/or reset the device:
zPOR: Power-on reset on VDDANA
zBOD33: Brown-out detector on VDDANA
zBOD12: Voltage Regulator Internal Brown-out detector on VDDCORE. The Voltage Regulator Internal BOD is
calibrated in production and its calibration configuration is stored in the NVM User Row. This configuration should
not be changed if the user row is written to assure the correct behavior of the BOD12.
7.4.1Power-On Reset on VDDANA
POR monitors VDDANA. It is always activated and monitors voltage at startup and also during all the sleep modes. If
VDDANA goes below the threshold voltage, the entire chip is reset.
7.4.2Brown-Out Detector on VDDANA
BOD33 monitors VDDANA. Refer to “SYSCTRL – System Controller” on page 148 for details.
7.4.3Brown-Out Detector on VDDCORE
Once the device has started up, BOD12 monitors the internal VDDCORE.
Atmel | SMART SAM D21 [DATASHEET]
Atmel-42181G–SAM-D21_Datasheet–09/2015
27
8.Product Mapping
Code
SRAM
Undefined
Peripherals
Reserved
Undefined
Global Memory Space
0x00000000
0x20000000
0x20008000
0x40000000
0x43000000
0x60000000
Internal SRAM
SRAM
AHB-APB
Bridge A
AHB-APB
Bridge B
AHB-APB
Bridge C
AHB-APB
Internal Flash
Reserved
Code
0x00000000
0x00040000
0x1FFFFFFF
0x20000000
0x20007FFF
0x40000000
0x41000000
0x42000000
0x42FFFFFF
Reserved
PAC0
PM
SYSCTRL
GCLK
WDT
RTC
EIC
AHB-APB Bridge A
0x40000000
0x40000400
0x40000800
0x40000C00
0x40001000
0x40001400
0x40001800
0x40FFFFFF
0x40001C00
AHB-APB Bridge B
Reserved
PAC1
DSU
NVMCTRL
PORT
0x41000000
0x41002000
0x41004000
0x41004400
0x41FFFFFF
0x41007000
SERCOM5
PAC2
EVSYS
SERCOM0
SERCOM1
SERCOM2
SERCOM3
SERCOM4
AHB-APB Bridge C
TC7
TCC0
TCC1
TCC2
TC3
TC4
TC5
TC6
ADC
AC
0x42000000
0x42000400
0x42000800
0x42000C00
0x42001000
0x42001400
0x42001800
0x42002000
0x42001C00
0x42003000
0x42003400
0x42003800
0x42003C00
0x42004000
0x42004400
0x42004800
Reserved
0x42FFFFFF
0x60000200
0xFFFFFFFF
Reserved
System
0xE0000000
DAC
0x42004C00
0x42002400
0x42002800
0x42002C00
PTC
0x42005400
0x42005000
I2S
DMAC
USB
MTB
0x41004800
0x41005000
0x41006000
0xE0000000
0xE000E000
0xE000F000
0xE00FF000
0xE0100000
0xFFFFFFFF
System
Reserved
SCS
Reserved
ROMTable
Reserved
Internal Flash
0x00000000
0x00400000
0x1FFFFFFF
Internal
RWW section
Device Variant A
Device Variant B
Figure 8-1. Atmel | SMART SAM D21 Product Mapping
This figure represents the full configuration of the Atmel® SAM D21 with maximum flash and SRAM capabilities and a full
set of peripherals. Refer to the “Configuration Summary” on page 3 for details.
Atmel | SMART SAM D21 [DATASHEET]
Atmel-42181G–SAM-D21_Datasheet–09/2015
28
9.Memories
9.1Embedded Memories
zInternal high-speed flash with Read-While-Write (RWW) capability on section of the array (Device Variant B).
zInternal high-speed flash
zInternal high-speed RAM, single-cycle access at full speed
9.2Physical Memory Map
The High-Speed bus is implemented as a bus matrix. All High-Speed bus addresses are fixed, and they are never
remapped in any way, even during boot. The 32-bit physical address space is mapped as follow: