SAM D20 Family
Low-Power, 32-bit Cortex-M0+ MCUs with 12-bit ADC, 10-
bit DAC, 256-Channel PTC, RTC, and SERCOM
Features
Operating Conditions
• 1.62V – 3.63V, -40°C to +85°C, DC up to 48 MHz
• 1.62V – 3.63V, -40°C to +105°C, DC up to 32 MHz
Core
®
®
• Arm Cortex -M0+ CPU running at up to 48 MHz
– Single-cycle hardware multiplier
Memories
• 16/32/64/128/256 KB in-system self-programmable Flash
• 2/4/8/16/32 KB SRAM
System
• Power-on Reset (POR) and Brown-out Detection (BOD)
• Internal and external clock options with 48 MHz Digital Frequency Locked Loop (DFLL48M)
• 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 Stand-by Sleep modes
• SleepWalking peripherals
Peripherals
• 8-channel Event System
• Up to eight 16-bit Timer/Counters (TC), configurable as:
– 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
• 32-bit Real Time Counter (RTC) with clock/calendar function
• Watchdog Timer (WDT)
• CRC-32 generator
• Up to six Serial Communication Interfaces (SERCOM), each configurable to operate as either:
– USART with full-duplex and single-wire half-duplex configuration
– Inter-Integrated Circuit (I
2
C) up to 400 kHz
– Serial Peripheral Interface (SPI)
• One 12-bit, 350 ksps 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
©
2019 Microchip Technology Inc.
Complete Datasheet
DS60001504C-page 1
SAM D20 Family
– Oversampling and decimation in hardware to support 13-, 14-, 15- or 16-bit resolution
10-bit, 350 ksps 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
Packages
• 64-pin TQFP, QFN
• 64-ball UFBGA
• 48-pin TQFP, QFN
• 45-ball WLCSP
• 32-pin TQFP, QFN
Power Consumption
• Power Consumption
– Down to 50 µA/MHz in Active mode
– Down to 8 µA running the PTC
©
2019 Microchip Technology Inc.
Complete Datasheet
DS60001504C-page 2
SAM D20 Family
Table of Contents
Features......................................................................................................................................................... 1
1.
2.
3.
4.
Configuration Summary........................................................................................................................ 10
Ordering Information
(1)
......................................................................................................................... 12
Block Diagram.......................................................................................................................................13
Pinout.................................................................................................................................................... 14
4.1.
4.2.
4.3.
5.
6.
SAM D20J.................................................................................................................................. 14
SAM D20G................................................................................................................................. 16
SAM D20E..................................................................................................................................18
Signal Descriptions List.........................................................................................................................19
I/O Multiplexing and Considerations..................................................................................................... 21
6.1.
6.2.
Multiplexed Signals.................................................................................................................... 21
Other Functions..........................................................................................................................23
7.
Power Supply and Start-Up Considerations..........................................................................................25
7.1.
7.2.
7.3.
7.4.
Power Domain Overview............................................................................................................25
Power Supply Considerations.................................................................................................... 25
Power-Up................................................................................................................................... 27
Power-On Reset and Brown-Out Detector................................................................................. 27
8.
9.
Product Mapping................................................................................................................................... 29
Memories.............................................................................................................................................. 30
9.1.
9.2.
9.3.
9.4.
9.5.
9.6.
Embedded Memories................................................................................................................. 30
Physical Memory Map................................................................................................................ 30
NVM Calibration and Auxiliary Space........................................................................................ 31
NVM User Row Mapping............................................................................................................31
NVM Software Calibration Area Mapping...................................................................................32
Serial Number............................................................................................................................ 33
10. Processor And Architecture.................................................................................................................. 34
10.1.
10.2.
10.3.
10.4.
10.5.
10.6.
Cortex M0+ Processor............................................................................................................... 34
Nested Vector Interrupt Controller..............................................................................................35
High-Speed Bus System............................................................................................................ 36
AHB-APB Bridge........................................................................................................................ 38
PAC - Peripheral Access Controller........................................................................................... 39
Register Description................................................................................................................... 39
11. Peripherals Configuration Summary..................................................................................................... 50
12. DSU - Device Service Unit.................................................................................................................... 52
12.1. Overview.................................................................................................................................... 52
12.2. Features..................................................................................................................................... 52
12.3. Block Diagram............................................................................................................................ 52
©
2019 Microchip Technology Inc.
Complete Datasheet
DS60001504C-page 3
SAM D20 Family
12.4. Signal Description...................................................................................................................... 53
12.5. Product Dependencies............................................................................................................... 53
12.6. Debug Operation........................................................................................................................ 54
12.7. Chip Erase..................................................................................................................................55
12.8. Programming..............................................................................................................................56
12.9. Intellectual Property Protection.................................................................................................. 56
12.10. Device Identification................................................................................................................... 57
12.11. Functional Description................................................................................................................58
12.12. Register Summary..................................................................................................................... 63
12.13. Register Description...................................................................................................................64
13. Clock System........................................................................................................................................ 87
13.1.
13.2.
13.3.
13.4.
13.5.
13.6.
13.7.
13.8.
Clock Distribution....................................................................................................................... 87
Synchronous and Asynchronous Clocks....................................................................................88
Register Synchronization........................................................................................................... 88
Enabling a Peripheral................................................................................................................. 92
Disabling a Peripheral................................................................................................................ 92
On-demand, Clock Requests..................................................................................................... 93
Power Consumption vs. Speed.................................................................................................. 93
Clocks after Reset...................................................................................................................... 93
14. GCLK - Generic Clock Controller.......................................................................................................... 95
14.1.
14.2.
14.3.
14.4.
14.5.
14.6.
14.7.
14.8.
Overview.................................................................................................................................... 95
Features..................................................................................................................................... 95
Block Diagram............................................................................................................................ 95
Signal Description...................................................................................................................... 96
Product Dependencies............................................................................................................... 96
Functional Description................................................................................................................97
Register Summary....................................................................................................................102
Register Description................................................................................................................. 102
15. PM – Power Manager..........................................................................................................................113
15.1.
15.2.
15.3.
15.4.
15.5.
15.6.
15.7.
15.8.
Overview...................................................................................................................................113
Features................................................................................................................................... 113
Block Diagram.......................................................................................................................... 114
Signal Description.....................................................................................................................114
Product Dependencies............................................................................................................. 114
Functional Description.............................................................................................................. 116
Register Summary....................................................................................................................123
Register Description................................................................................................................. 123
16. SYSCTRL – System Controller........................................................................................................... 141
16.1.
16.2.
16.3.
16.4.
16.5.
16.6.
16.7.
Overview.................................................................................................................................. 141
Features................................................................................................................................... 141
Block Diagram.......................................................................................................................... 142
Signal Description.................................................................................................................... 143
Product Dependencies............................................................................................................. 143
Functional Description..............................................................................................................144
Register Summary....................................................................................................................154
©
2019 Microchip Technology Inc.
Complete Datasheet
DS60001504C-page 4
SAM D20 Family
16.8. Register Description................................................................................................................. 155
17. WDT – Watchdog Timer...................................................................................................................... 184
17.1.
17.2.
17.3.
17.4.
17.5.
17.6.
17.7.
17.8.
Overview.................................................................................................................................. 184
Features................................................................................................................................... 184
Block Diagram.......................................................................................................................... 184
Signal Description.................................................................................................................... 185
Product Dependencies............................................................................................................. 185
Functional Description..............................................................................................................186
Register Summary....................................................................................................................190
Register Description................................................................................................................. 190
18. RTC – Real-Time Counter...................................................................................................................199
18.1.
18.2.
18.3.
18.4.
18.5.
18.6.
18.7.
18.8.
Overview.................................................................................................................................. 199
Features................................................................................................................................... 199
Block Diagram.......................................................................................................................... 199
Signal Description.................................................................................................................... 200
Product Dependencies............................................................................................................. 200
Functional Description..............................................................................................................202
Register Summary....................................................................................................................206
Register Description................................................................................................................. 208
19. EIC – External Interrupt Controller...................................................................................................... 240
19.1.
19.2.
19.3.
19.4.
19.5.
19.6.
19.7.
19.8.
Overview.................................................................................................................................. 240
Features................................................................................................................................... 240
Block Diagram.......................................................................................................................... 240
Signal Description.................................................................................................................... 240
Product Dependencies............................................................................................................. 241
Functional Description..............................................................................................................242
Register Summary....................................................................................................................246
Register Description................................................................................................................. 246
20. NVMCTRL – Nonvolatile Memory Controller...................................................................................... 257
20.1.
20.2.
20.3.
20.4.
20.5.
20.6.
20.7.
20.8.
Overview.................................................................................................................................. 257
Features................................................................................................................................... 257
Block Diagram.......................................................................................................................... 257
Signal Description.................................................................................................................... 257
Product Dependencies............................................................................................................. 258
Functional Description..............................................................................................................259
Register Summary....................................................................................................................265
Register Description................................................................................................................. 265
21. PORT - I/O Pin Controller....................................................................................................................278
21.1.
21.2.
21.3.
21.4.
21.5.
21.6.
Overview.................................................................................................................................. 278
Features................................................................................................................................... 278
Block Diagram.......................................................................................................................... 279
Signal Description.................................................................................................................... 279
Product Dependencies............................................................................................................. 279
Functional Description..............................................................................................................281
©
2019 Microchip Technology Inc.
Complete Datasheet
DS60001504C-page 5