SAM D21/DA1 Family
Low-Power, 32-bit Cortex-M0+ MCU with Advanced Analog
and PWM
Features
•
Processor
®
®
– Arm Cortex -M0+ CPU running at up to 48 MHz
• Single-cycle hardware multiplier
• Micro Trace Buffer (MTB)
Memories
– 4/2/1/0.5 KB Read-While-Write (RWWEE) Flash section (not available on 256 KB devices)
– 256/128/64/32/16 KB in-system self-programmable Flash
– 32/16/8/4 KB SRAM Memory
System
– Power-on Reset (POR) and Brown-out Detection (BOD)
– Internal and external clock options with 48 MHz Digital Frequency-Locked Loop (DFLL48M) and 48 MHz to
96 MHz Fractional Digital Phase-Locked Loop (FDPLL96M)
– External Interrupt Controller (EIC)
– 16 external interrupts
– One Non-maskable Interrupt (NMI)
– 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
– Up to four 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
– PWM Channels using TC and TCC peripherals:
• Up to eight PWM channels on each 24-bit TCC
• Up to two PWM channels on each 16-bit TCC
• Up to two PWM channels on each 16-bit TC
– 32-bit Real Time Counter (RTC) with clock/calendar function
– Watchdog Timer (WDT)
– CRC-32 generator
•
•
•
•
©
2021 Microchip Technology Inc.
and its subsidiaries
Complete Datasheet
DS40001882H-page 1
SAM D21/DA1 Family
– One full-speed (12 Mbps) 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
• I
2
C up to 3.4 MHz
• SPI
• LIN client
– 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, 350 ksps Digital-to-Analog Converter (DAC)
– Up to four Analog Comparators (AC) with Window Compare function
– Peripheral Touch Controller (PTC)
• Up to 256-Channel capacitive touch and proximity sensing
I/O
– Up to 52 programmable I/O pins
Qualification
– SAM D21 AEC-Q100 Grade 1 (-40°C to 125°C)
– SAM DA1 AEC-Q100 Grade 2 (-40C to 105C)
Drop-in compatible with SAM D20
Packages
– 64-pin TQFP, QFN, UFBGA
– 48-pin TQFP, QFN
– 45-pin WLCSP
– 35-pin WLCSP
– 32-pin TQFP, QFN
Operating Voltage
– SAM D21: 1.62V – 3.63V
– SAM DA1: 2.7V - 3.63V
•
•
•
•
•
©
2021 Microchip Technology Inc.
and its subsidiaries
Complete Datasheet
DS40001882H-page 2
SAM D21/DA1 Family
Table of Contents
Features......................................................................................................................................................... 1
1.
2.
3.
Description............................................................................................................................................ 13
Configuration Summary........................................................................................................................ 14
SAM D21 Ordering Information
(1)
..........................................................................................................16
3.1.
4.
5.
SAM DA1 Ordering Information..................................................................................................17
Block Diagram.......................................................................................................................................18
Pinout.................................................................................................................................................... 19
5.1.
5.2.
5.3.
5.4.
5.5.
5.6.
5.7.
SAM D21J and SAM DA1J.........................................................................................................19
SAM D21GxxA/B/D and SAM DA1GxxA/B................................................................................ 21
SAM D21GxxA........................................................................................................................... 22
SAM D21GxxL............................................................................................................................23
SAM D21ExxA/B/D and SAM DA1ExxA/B................................................................................. 24
SAM D21ExxB/C/D.................................................................................................................... 25
SAM D21ExxL............................................................................................................................ 26
6.
7.
Signal Descriptions List.........................................................................................................................27
I/O Multiplexing and Considerations..................................................................................................... 29
7.1.
7.2.
Multiplexed Signals.................................................................................................................... 29
Other Functions..........................................................................................................................32
8.
Power Supply and Start-Up Considerations..........................................................................................35
8.1.
8.2.
8.3.
8.4.
Power Domain Overview............................................................................................................35
Power Supply Considerations.................................................................................................... 35
Power-Up................................................................................................................................... 37
Power-On Reset and Brown-Out Detector................................................................................. 37
9.
Product Mapping................................................................................................................................... 39
10. Memories.............................................................................................................................................. 41
10.1. Embedded Memories................................................................................................................. 41
10.2. Physical Memory Map................................................................................................................ 41
10.3. NVM Calibration and Auxiliary Space........................................................................................ 42
11. Processor And Architecture.................................................................................................................. 46
11.1.
11.2.
11.3.
11.4.
11.5.
11.6.
11.7.
Cortex M0+ Processor............................................................................................................... 46
Nested Vector Interrupt Controller..............................................................................................47
Micro Trace Buffer...................................................................................................................... 49
High-Speed Bus System............................................................................................................ 49
AHB-APB Bridge........................................................................................................................ 51
Peripheral Access Controller (PAC)........................................................................................... 52
Register Access and Behavior................................................................................................... 65
12. Peripherals Configuration Summary..................................................................................................... 66
©
2021 Microchip Technology Inc.
and its subsidiaries
Complete Datasheet
DS40001882H-page 3
SAM D21/DA1 Family
13. DSU - Device Service Unit.................................................................................................................... 68
13.1. Overview.................................................................................................................................... 68
13.2. Features..................................................................................................................................... 68
13.3. Block Diagram............................................................................................................................ 68
13.4. Signal Description...................................................................................................................... 69
13.5. Product Dependencies............................................................................................................... 69
13.6. Debug Operation........................................................................................................................ 70
13.7. Chip Erase..................................................................................................................................71
13.8. Programming..............................................................................................................................72
13.9. Intellectual Property Protection.................................................................................................. 72
13.10. Device Identification................................................................................................................... 73
13.11. Functional Description................................................................................................................74
13.12. Register Summary..................................................................................................................... 79
13.13. Register Description...................................................................................................................80
14. Clock System...................................................................................................................................... 103
14.1.
14.2.
14.3.
14.4.
14.5.
14.6.
14.7.
14.8.
Clock Distribution..................................................................................................................... 103
Synchronous and Asynchronous Clocks..................................................................................104
Register Synchronization......................................................................................................... 104
Enabling a Peripheral............................................................................................................... 108
Disabling a Peripheral.............................................................................................................. 108
On-demand, Clock Requests................................................................................................... 109
Power Consumption vs. Speed................................................................................................ 109
Clocks after Reset.................................................................................................................... 109
15. GCLK - Generic Clock Controller.........................................................................................................111
15.1.
15.2.
15.3.
15.4.
15.5.
15.6.
15.7.
15.8.
Overview...................................................................................................................................111
Features....................................................................................................................................111
Block Diagram...........................................................................................................................111
Signal Description.....................................................................................................................112
Product Dependencies............................................................................................................. 112
Functional Description.............................................................................................................. 113
Register Summary....................................................................................................................119
Register Description................................................................................................................. 119
16. PM – Power Manager......................................................................................................................... 130
16.1.
16.2.
16.3.
16.4.
16.5.
16.6.
16.7.
16.8.
Overview.................................................................................................................................. 130
Features................................................................................................................................... 130
Block Diagram.......................................................................................................................... 131
Signal Description.................................................................................................................... 131
Product Dependencies............................................................................................................. 131
Functional Description..............................................................................................................133
Register Summary....................................................................................................................139
Register Description................................................................................................................. 139
17. SYSCTRL – System Controller........................................................................................................... 158
17.1. Overview.................................................................................................................................. 158
17.2. Features................................................................................................................................... 158
©
2021 Microchip Technology Inc.
and its subsidiaries
Complete Datasheet
DS40001882H-page 4
SAM D21/DA1 Family
17.3.
17.4.
17.5.
17.6.
17.7.
17.8.
Block Diagram.......................................................................................................................... 159
Signal Description.................................................................................................................... 159
Product Dependencies............................................................................................................. 160
Functional Description..............................................................................................................161
Register Summary....................................................................................................................175
Register Description................................................................................................................. 176
18. WDT – Watchdog Timer...................................................................................................................... 211
18.1.
18.2.
18.3.
18.4.
18.5.
18.6.
18.7.
18.8.
Overview...................................................................................................................................211
Features................................................................................................................................... 211
Block Diagram.......................................................................................................................... 211
Signal Description.................................................................................................................... 212
Product Dependencies............................................................................................................. 212
Functional Description..............................................................................................................213
Register Summary....................................................................................................................218
Register Description................................................................................................................. 218
19. RTC – Real-Time Counter...................................................................................................................227
19.1.
19.2.
19.3.
19.4.
19.5.
19.6.
19.7.
19.8.
Overview.................................................................................................................................. 227
Features................................................................................................................................... 227
Block Diagram.......................................................................................................................... 227
Signal Description.................................................................................................................... 228
Product Dependencies............................................................................................................. 228
Functional Description..............................................................................................................230
Register Summary....................................................................................................................234
Register Description................................................................................................................. 236
20. DMAC – Direct Memory Access Controller......................................................................................... 268
20.1. Overview.................................................................................................................................. 268
20.2. Features................................................................................................................................... 268
20.3. Block Diagram.......................................................................................................................... 269
20.4. Signal Description.................................................................................................................... 270
20.5. Product Dependencies............................................................................................................. 270
20.6. Functional Description..............................................................................................................271
20.7. Register Summary....................................................................................................................289
20.8. Register Description................................................................................................................. 290
20.9. Register Summary - SRAM...................................................................................................... 317
20.10. Register Description - SRAM................................................................................................... 317
21. EIC – External Interrupt Controller...................................................................................................... 324
21.1.
21.2.
21.3.
21.4.
21.5.
21.6.
21.7.
21.8.
Overview.................................................................................................................................. 324
Features................................................................................................................................... 324
Block Diagram.......................................................................................................................... 324
Signal Description.................................................................................................................... 324
Product Dependencies............................................................................................................. 325
Functional Description..............................................................................................................326
Register Summary....................................................................................................................330
Register Description................................................................................................................. 330
©
2021 Microchip Technology Inc.
and its subsidiaries
Complete Datasheet
DS40001882H-page 5