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 (RWW) Flash section (not available on 256KB 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 Stand-by 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
– 32-bit Real Time Counter (RTC) with clock/calendar function
– Watchdog Timer (WDT)
– CRC-32 generator
– 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:
•
•
•
•
©
2020 Microchip Technology Inc.
Complete Datasheet
DS40001882E-page 1
SAM D21/DA1 Family
• USART with full-duplex and single-wire half-duplex configuration
• I
2
C up to 3.4 MHz
• 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, 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
©
2020 Microchip Technology Inc.
Complete Datasheet
DS40001882E-page 2
SAM D21/DA1 Family
Table of Contents
Features......................................................................................................................................................... 1
1.
2.
3.
Description............................................................................................................................................ 13
Configuration Summary........................................................................................................................ 14
SAM D21 Ordering Information
(1)
..........................................................................................................17
3.1.
4.
5.
SAM DA1 Ordering Information..................................................................................................18
Block Diagram.......................................................................................................................................19
Pinout.................................................................................................................................................... 20
5.1.
5.2.
5.3.
5.4.
5.5.
5.6.
5.7.
SAM D21J and SAM DA1J.........................................................................................................20
SAM D21GxxA/B/D and SAM DA1GxxA/B................................................................................ 22
SAM D21GxxA........................................................................................................................... 23
SAM D21GxxL............................................................................................................................24
SAM D21ExxA/B/D and SAM DA1ExxA/B................................................................................. 25
SAM D21ExxC/D........................................................................................................................26
SAM D21ExxL............................................................................................................................ 27
6.
7.
Signal Descriptions List.........................................................................................................................28
I/O Multiplexing and Considerations..................................................................................................... 30
7.1.
7.2.
Multiplexed Signals.................................................................................................................... 30
Other Functions..........................................................................................................................33
8.
Power Supply and Start-Up Considerations..........................................................................................36
8.1.
8.2.
8.3.
8.4.
Power Domain Overview............................................................................................................36
Power Supply Considerations.................................................................................................... 36
Power-Up................................................................................................................................... 38
Power-On Reset and Brown-Out Detector................................................................................. 38
9.
Product Mapping................................................................................................................................... 40
10. Memories.............................................................................................................................................. 42
10.1. Embedded Memories................................................................................................................. 42
10.2. Physical Memory Map................................................................................................................ 42
10.3. NVM Calibration and Auxiliary Space........................................................................................ 43
11. Processor And Architecture.................................................................................................................. 47
11.1.
11.2.
11.3.
11.4.
11.5.
11.6.
Cortex M0+ Processor............................................................................................................... 47
Nested Vector Interrupt Controller..............................................................................................48
Micro Trace Buffer...................................................................................................................... 50
High-Speed Bus System............................................................................................................ 50
AHB-APB Bridge........................................................................................................................ 52
Peripheral Access Controller (PAC)........................................................................................... 53
12. Peripherals Configuration Summary..................................................................................................... 67
13. DSU - Device Service Unit.................................................................................................................... 69
©
2020 Microchip Technology Inc.
Complete Datasheet
DS40001882E-page 3
SAM D21/DA1 Family
13.1. Overview.................................................................................................................................... 69
13.2. Features..................................................................................................................................... 69
13.3. Block Diagram............................................................................................................................ 69
13.4. Signal Description...................................................................................................................... 70
13.5. Product Dependencies............................................................................................................... 70
13.6. Debug Operation........................................................................................................................ 71
13.7. Chip Erase..................................................................................................................................72
13.8. Programming..............................................................................................................................73
13.9. Intellectual Property Protection.................................................................................................. 73
13.10. Device Identification................................................................................................................... 74
13.11. Functional Description................................................................................................................75
13.12. Register Summary..................................................................................................................... 80
13.13. Register Description...................................................................................................................81
14. Clock System...................................................................................................................................... 104
14.1.
14.2.
14.3.
14.4.
14.5.
14.6.
14.7.
Clock Distribution..................................................................................................................... 104
Synchronous and Asynchronous Clocks..................................................................................105
Register Synchronization......................................................................................................... 105
Enabling a Peripheral............................................................................................................... 109
Disabling a Peripheral.............................................................................................................. 109
On-demand, Clock Requests................................................................................................... 110
Power Consumption vs. Speed................................................................................................ 110
14.8. Clocks after Reset.................................................................................................................... 110
15. GCLK - Generic Clock Controller........................................................................................................ 112
15.1.
15.2.
15.3.
15.4.
15.5.
15.6.
15.7.
15.8.
Overview...................................................................................................................................112
Features................................................................................................................................... 112
Block Diagram.......................................................................................................................... 112
Signal Description.....................................................................................................................113
Product Dependencies............................................................................................................. 113
Functional Description.............................................................................................................. 114
Register Summary....................................................................................................................120
Register Description................................................................................................................. 120
16. PM – Power Manager......................................................................................................................... 131
16.1.
16.2.
16.3.
16.4.
16.5.
16.6.
16.7.
16.8.
Overview.................................................................................................................................. 131
Features................................................................................................................................... 131
Block Diagram.......................................................................................................................... 132
Signal Description.................................................................................................................... 132
Product Dependencies............................................................................................................. 132
Functional Description..............................................................................................................134
Register Summary....................................................................................................................140
Register Description................................................................................................................. 140
17. SYSCTRL – System Controller........................................................................................................... 159
17.1.
17.2.
17.3.
17.4.
Overview.................................................................................................................................. 159
Features................................................................................................................................... 159
Block Diagram.......................................................................................................................... 161
Signal Description.................................................................................................................... 161
©
2020 Microchip Technology Inc.
Complete Datasheet
DS40001882E-page 4
SAM D21/DA1 Family
17.5.
17.6.
17.7.
17.8.
Product Dependencies............................................................................................................. 161
Functional Description..............................................................................................................163
Register Summary....................................................................................................................176
Register Description................................................................................................................. 177
18. WDT – Watchdog Timer...................................................................................................................... 212
18.1.
18.2.
18.3.
18.4.
18.5.
18.6.
18.7.
18.8.
Overview.................................................................................................................................. 212
Features................................................................................................................................... 212
Block Diagram.......................................................................................................................... 212
Signal Description.................................................................................................................... 213
Product Dependencies............................................................................................................. 213
Functional Description..............................................................................................................214
Register Summary....................................................................................................................219
Register Description................................................................................................................. 219
19. RTC – Real-Time Counter...................................................................................................................228
19.1.
19.2.
19.3.
19.4.
19.5.
19.6.
19.7.
19.8.
Overview.................................................................................................................................. 228
Features................................................................................................................................... 228
Block Diagram.......................................................................................................................... 228
Signal Description.................................................................................................................... 229
Product Dependencies............................................................................................................. 229
Functional Description..............................................................................................................231
Register Summary....................................................................................................................235
Register Description................................................................................................................. 237
20. DMAC – Direct Memory Access Controller......................................................................................... 269
20.1. Overview.................................................................................................................................. 269
20.2. Features................................................................................................................................... 269
20.3. Block Diagram.......................................................................................................................... 270
20.4. Signal Description.................................................................................................................... 271
20.5. Product Dependencies............................................................................................................. 271
20.6. Functional Description..............................................................................................................272
20.7. Register Summary....................................................................................................................290
20.8. Register Description................................................................................................................. 291
20.9. Register Summary - SRAM...................................................................................................... 318
20.10. Register Description - SRAM................................................................................................... 318
21. EIC – External Interrupt Controller...................................................................................................... 325
21.1.
21.2.
21.3.
21.4.
21.5.
21.6.
21.7.
21.8.
Overview.................................................................................................................................. 325
Features................................................................................................................................... 325
Block Diagram.......................................................................................................................... 325
Signal Description.................................................................................................................... 325
Product Dependencies............................................................................................................. 326
Functional Description..............................................................................................................327
Register Summary....................................................................................................................331
Register Description................................................................................................................. 331
22. NVMCTRL – Nonvolatile Memory Controller...................................................................................... 342
22.1. Overview.................................................................................................................................. 342
©
2020 Microchip Technology Inc.
Complete Datasheet
DS40001882E-page 5