SMART ARM-Based Microcontrollers
SAM D20E / SAM D20G / SAM D20J
DATASHEET COMPLETE
Introduction
Atmel | SMART SAM D20 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 D20 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.
®
™
Features
•
Processor
–
ARM Cortex-M0+ CPU running at up to 48MHz
• Single-cycle hardware multiplier
Memories
–
16/32/64/128/256KB in-system self-programmable Flash
–
2/4/8/16/32KB SRAM Memory
System
–
–
–
–
–
–
Power-on reset (POR) and brown-out detection (BOD)
Internal and external clock options with 48MHz 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 standby sleep modes
–
SleepWalking peripherals
Peripherals
–
8-channel Event System
•
Atmel-42129P-SAM-D20_Datasheet_Complete-09/2016
–
–
–
–
–
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
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 400kHz
Serial Peripheral Interface (SPI)
Differential and single-ended input
1/2x to 16x programmable gain stage
Automatic offset and gain error compensation
–
One 12-bit, 350ksps Analog-to-Digital Converter (ADC) with up to 20 channels
•
•
•
–
–
–
•
•
• Oversampling and decimation in hardware to support 13-, 14-, 15- or 16-bit resolution
10-bit, 350ksps 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
Operating Voltage
–
1.62V – 3.63V
Power Consumption
–
Down to 70µA/MHz in active mode
–
Down to 8µA running the Peripheral Touch Controller
Atmel SAM D20E / SAM D20G / SAM D20J [DATASHEET]
Atmel-42129P-SAM-D20_Datasheet_Complete-09/2016
2
Table of Contents
Introduction......................................................................................................................1
Features.......................................................................................................................... 1
1. Description...............................................................................................................10
2. Configuration Summary........................................................................................... 11
3. Ordering Information................................................................................................12
3.1.
3.2.
3.3.
3.4.
SAM D20E..................................................................................................................................12
SAM D20G................................................................................................................................. 14
SAM D20J.................................................................................................................................. 15
Device Identification................................................................................................................... 17
4. Block Diagram......................................................................................................... 19
5. Pinout.......................................................................................................................20
5.1.
5.2.
5.3.
SAM D20J.................................................................................................................................. 20
SAM D20G................................................................................................................................. 22
SAM D20E..................................................................................................................................24
6. Signal Descriptions List........................................................................................... 25
7. I/O Multiplexing and Considerations........................................................................ 27
7.1.
7.2.
Multiplexed Signals.....................................................................................................................27
Other Functions..........................................................................................................................29
8. Power Supply and Start-Up Considerations............................................................ 31
8.1.
8.2.
8.3.
8.4.
Power Domain Overview............................................................................................................31
Power Supply Considerations.................................................................................................... 31
Power-Up....................................................................................................................................33
Power-On Reset and Brown-Out Detector................................................................................. 33
9. Product Mapping......................................................................................................35
10. Memories.................................................................................................................36
10.1.
10.2.
10.3.
10.4.
10.5.
10.6.
Embedded Memories................................................................................................................. 36
Physical Memory Map................................................................................................................ 36
NVM Calibration and Auxiliary Space.........................................................................................37
NVM User Row Mapping............................................................................................................37
NVM Software Calibration Area Mapping...................................................................................38
Serial Number.............................................................................................................................39
11. Processor And Architecture..................................................................................... 40
11.1. Cortex M0+ Processor................................................................................................................40
11.2. Nested Vector Interrupt Controller..............................................................................................41
11.3.
11.4.
11.5.
11.6.
High-Speed Bus System............................................................................................................ 43
AHB-APB Bridge........................................................................................................................ 44
PAC - Peripheral Access Controller............................................................................................45
Register Description................................................................................................................... 46
12. Peripherals Configuration Summary........................................................................59
13. DSU - Device Service Unit...................................................................................... 61
13.1. Overview.....................................................................................................................................61
13.2. Features..................................................................................................................................... 61
13.3. Block Diagram............................................................................................................................ 62
13.4. Signal Description.......................................................................................................................62
13.5. Product Dependencies............................................................................................................... 62
13.6. Debug Operation........................................................................................................................ 63
13.7. Chip Erase..................................................................................................................................65
13.8. Programming..............................................................................................................................65
13.9. Intellectual Property Protection...................................................................................................66
13.10. Device Identification................................................................................................................... 67
13.11. Functional Description................................................................................................................68
13.12. Register Summary..................................................................................................................... 74
13.13. Register Description...................................................................................................................76
14. Clock System.........................................................................................................100
14.1.
14.2.
14.3.
14.4.
14.5.
Clock Distribution......................................................................................................................100
Synchronous and Asynchronous Clocks..................................................................................101
Register Synchronization..........................................................................................................101
Enabling a Peripheral............................................................................................................... 106
Disabling a Peripheral.............................................................................................................. 106
14.6. On-demand, Clock Requests................................................................................................... 106
14.7. Power Consumption vs. Speed................................................................................................ 107
14.8. Clocks after Reset.................................................................................................................... 107
15. GCLK - Generic Clock Controller.......................................................................... 108
15.1.
15.2.
15.3.
15.4.
15.5.
15.6.
15.7.
15.8.
Overview...................................................................................................................................108
Features................................................................................................................................... 108
Block Diagram.......................................................................................................................... 108
Signal Description.....................................................................................................................109
Product Dependencies............................................................................................................. 109
Functional Description.............................................................................................................. 110
Register Summary.................................................................................................................... 115
Register Description................................................................................................................. 116
16. PM – Power Manager............................................................................................129
16.1.
16.2.
16.3.
16.4.
16.5.
16.6.
Overview...................................................................................................................................129
Features................................................................................................................................... 129
Block Diagram.......................................................................................................................... 130
Signal Description.....................................................................................................................130
Product Dependencies............................................................................................................. 130
Functional Description..............................................................................................................132
Atmel SAM D20E / SAM D20G / SAM D20J [DATASHEET]
Atmel-42129P-SAM-D20_Datasheet_Complete-09/2016
4
16.7. Register Summary....................................................................................................................140
16.8. Register Description................................................................................................................. 140
17. SYSCTRL – System Controller............................................................................. 162
17.1.
17.2.
17.3.
17.4.
17.5.
17.6.
17.7.
17.8.
Overview...................................................................................................................................162
Features................................................................................................................................... 162
Block Diagram.......................................................................................................................... 164
Signal Description.....................................................................................................................164
Product Dependencies............................................................................................................. 165
Functional Description..............................................................................................................166
Register Summary....................................................................................................................178
Register Description................................................................................................................. 179
18. WDT – Watchdog Timer........................................................................................ 216
18.1.
18.2.
18.3.
18.4.
18.5.
18.6.
18.7.
18.8.
Overview...................................................................................................................................216
Features................................................................................................................................... 216
Block Diagram.......................................................................................................................... 217
Signal Description.....................................................................................................................217
Product Dependencies............................................................................................................. 217
Functional Description..............................................................................................................218
Register Summary....................................................................................................................223
Register Description................................................................................................................. 223
19. RTC – Real-Time Counter..................................................................................... 234
19.1.
19.2.
19.3.
19.4.
19.5.
19.6.
19.7.
19.8.
Overview...................................................................................................................................234
Features................................................................................................................................... 234
Block Diagram.......................................................................................................................... 235
Signal Description.....................................................................................................................235
Product Dependencies............................................................................................................. 235
Functional Description..............................................................................................................237
Register Summary....................................................................................................................243
Register Description................................................................................................................. 245
20. EIC – External Interrupt Controller........................................................................ 278
20.1.
20.2.
20.3.
20.4.
20.5.
20.6.
20.7.
20.8.
Overview...................................................................................................................................278
Features................................................................................................................................... 278
Block Diagram.......................................................................................................................... 278
Signal Description.....................................................................................................................279
Product Dependencies............................................................................................................. 279
Functional Description..............................................................................................................280
Register Summary....................................................................................................................285
Register Description................................................................................................................. 285
21. NVMCTRL – Non-Volatile Memory Controller....................................................... 297
21.1.
21.2.
21.3.
21.4.
21.5.
Overview...................................................................................................................................297
Features................................................................................................................................... 297
Block Diagram.......................................................................................................................... 297
Signal Description.....................................................................................................................297
Product Dependencies............................................................................................................. 298
Atmel SAM D20E / SAM D20G / SAM D20J [DATASHEET]
Atmel-42129P-SAM-D20_Datasheet_Complete-09/2016
5