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 Memory
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
•
•
•
•
©
2017 Microchip Technology Inc.
Datasheet Complete
DS60001504B-page 1
SAM D20 Family
•
– 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
– 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)
–
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
256-Channel capacitive touch and proximity sensing
•
•
•
Power Consumption
•
Power Consumption
– Down to 50 µA/MHz in Active mode
– Down to 8 µA running the PTC
©
2017 Microchip Technology Inc.
Datasheet Complete
DS60001504B-page 2
Table of Contents
Features.......................................................................................................................... 1
1. Configuration Summary........................................................................................... 11
2. Ordering Information
(1)
........................................................................................... 13
3. Block Diagram......................................................................................................... 14
4. Pinout...................................................................................................................... 15
4.1.
4.2.
4.3.
SAM D20J.................................................................................................................................. 15
SAM D20G................................................................................................................................. 17
SAM D20E..................................................................................................................................19
5. Signal Descriptions List........................................................................................... 20
6. I/O Multiplexing and Considerations........................................................................22
6.1.
6.2.
Multiplexed Signals.................................................................................................................... 22
Other Functions..........................................................................................................................24
7. Power Supply and Start-Up Considerations............................................................ 26
7.1.
7.2.
7.3.
7.4.
Power Domain Overview............................................................................................................26
Power Supply Considerations.................................................................................................... 26
Power-Up................................................................................................................................... 28
Power-On Reset and Brown-Out Detector................................................................................. 28
8. Product Mapping..................................................................................................... 30
9. Memories.................................................................................................................31
9.1.
9.2.
9.3.
9.4.
9.5.
9.6.
Embedded Memories................................................................................................................. 31
Physical Memory Map................................................................................................................ 31
NVM Calibration and Auxiliary Space........................................................................................ 32
NVM User Row Mapping............................................................................................................32
NVM Software Calibration Area Mapping...................................................................................34
Serial Number............................................................................................................................ 34
10. Processor And Architecture.....................................................................................35
10.1.
10.2.
10.3.
10.4.
10.5.
10.6.
Cortex M0+ Processor............................................................................................................... 35
Nested Vector Interrupt Controller..............................................................................................36
High-Speed Bus System............................................................................................................ 38
AHB-APB Bridge........................................................................................................................ 39
PAC - Peripheral Access Controller........................................................................................... 40
Register Description................................................................................................................... 41
11. Peripherals Configuration Summary........................................................................54
©
2017 Microchip Technology Inc.
Datasheet Complete
DS60001504B-page 3
SAM D20 Family
12. DSU - Device Service Unit...................................................................................... 56
12.1. Overview.................................................................................................................................... 56
12.2. Features..................................................................................................................................... 56
12.3. Block Diagram............................................................................................................................ 57
12.4. Signal Description...................................................................................................................... 57
12.5. Product Dependencies............................................................................................................... 57
12.6. Debug Operation........................................................................................................................ 58
12.7. Chip Erase..................................................................................................................................60
12.8. Programming..............................................................................................................................61
12.9. Intellectual Property Protection.................................................................................................. 61
12.10. Device Identification................................................................................................................... 63
12.11. Functional Description................................................................................................................64
12.12. Register Summary..................................................................................................................... 69
12.13. Register Description...................................................................................................................71
13. Clock System...........................................................................................................94
13.1.
13.2.
13.3.
13.4.
13.5.
13.6.
13.7.
13.8.
Clock Distribution....................................................................................................................... 94
Synchronous and Asynchronous Clocks....................................................................................95
Register Synchronization........................................................................................................... 95
Enabling a Peripheral............................................................................................................... 100
Disabling a Peripheral.............................................................................................................. 100
On-demand, Clock Requests................................................................................................... 100
Power Consumption vs. Speed................................................................................................ 101
Clocks after Reset.................................................................................................................... 101
14. GCLK - Generic Clock Controller.......................................................................... 103
14.1.
14.2.
14.3.
14.4.
14.5.
14.6.
14.7.
14.8.
Overview.................................................................................................................................. 103
Features................................................................................................................................... 103
Block Diagram.......................................................................................................................... 103
Signal Description.................................................................................................................... 104
Product Dependencies............................................................................................................. 104
Functional Description..............................................................................................................105
Register Summary....................................................................................................................110
Register Description..................................................................................................................111
15. PM – Power Manager............................................................................................124
15.1.
15.2.
15.3.
15.4.
15.5.
15.6.
15.7.
15.8.
Overview.................................................................................................................................. 124
Features................................................................................................................................... 124
Block Diagram.......................................................................................................................... 125
Signal Description.................................................................................................................... 125
Product Dependencies............................................................................................................. 125
Functional Description..............................................................................................................127
Register Summary....................................................................................................................135
Register Description................................................................................................................. 135
16. SYSCTRL – System Controller............................................................................. 155
16.1. Overview.................................................................................................................................. 155
©
2017 Microchip Technology Inc.
Datasheet Complete
DS60001504B-page 4
SAM D20 Family
16.2.
16.3.
16.4.
16.5.
16.6.
16.7.
16.8.
Features................................................................................................................................... 155
Block Diagram.......................................................................................................................... 157
Signal Description.................................................................................................................... 157
Product Dependencies............................................................................................................. 158
Functional Description..............................................................................................................159
Register Summary....................................................................................................................171
Register Description................................................................................................................. 172
17. WDT – Watchdog Timer........................................................................................ 206
17.1.
17.2.
17.3.
17.4.
17.5.
17.6.
17.7.
17.8.
Overview.................................................................................................................................. 206
Features................................................................................................................................... 206
Block Diagram.......................................................................................................................... 207
Signal Description.................................................................................................................... 207
Product Dependencies............................................................................................................. 207
Functional Description..............................................................................................................208
Register Summary....................................................................................................................213
Register Description................................................................................................................. 213
18. RTC – Real-Time Counter..................................................................................... 225
18.1.
18.2.
18.3.
18.4.
18.5.
18.6.
18.7.
18.8.
Overview.................................................................................................................................. 225
Features................................................................................................................................... 225
Block Diagram.......................................................................................................................... 226
Signal Description.................................................................................................................... 226
Product Dependencies............................................................................................................. 226
Functional Description..............................................................................................................228
Register Summary....................................................................................................................234
Register Description................................................................................................................. 236
19. EIC – External Interrupt Controller........................................................................ 269
19.1.
19.2.
19.3.
19.4.
19.5.
19.6.
19.7.
19.8.
Overview.................................................................................................................................. 269
Features................................................................................................................................... 269
Block Diagram.......................................................................................................................... 269
Signal Description.................................................................................................................... 270
Product Dependencies............................................................................................................. 270
Functional Description..............................................................................................................271
Register Summary....................................................................................................................276
Register Description................................................................................................................. 276
20. NVMCTRL – Nonvolatile Memory Controller.........................................................288
20.1.
20.2.
20.3.
20.4.
20.5.
20.6.
20.7.
20.8.
Overview.................................................................................................................................. 288
Features................................................................................................................................... 288
Block Diagram.......................................................................................................................... 288
Signal Description.................................................................................................................... 289
Product Dependencies............................................................................................................. 289
Functional Description..............................................................................................................290
Register Summary....................................................................................................................297
Register Description................................................................................................................. 297
©
2017 Microchip Technology Inc.
Datasheet Complete
DS60001504B-page 5