SMART ARM-Based Microcontrollers
SAM D20E / SAM D20G / SAM D20J Summary
DATASHEET SUMMARY
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
•
•
•
This is a summary document. A
complete document is available
on our Web site at
www.atmel.com
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_Summary-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 Summary [DATASHEET]
Atmel-42129P-SAM D20_Datasheet_Summary-09/2016
2
Table of Contents
Introduction......................................................................................................................1
Features.......................................................................................................................... 1
1. Description.................................................................................................................4
2. Configuration Summary............................................................................................. 5
3. Ordering Information..................................................................................................6
3.1.
3.2.
3.3.
3.4.
SAM D20E....................................................................................................................................6
SAM D20G................................................................................................................................... 8
SAM D20J.................................................................................................................................... 9
Device Identification....................................................................................................................11
4. Block Diagram......................................................................................................... 13
5. Pinout.......................................................................................................................14
5.1.
5.2.
5.3.
SAM D20J.................................................................................................................................. 14
SAM D20G................................................................................................................................. 16
SAM D20E..................................................................................................................................18
6. Product Mapping......................................................................................................19
7. Processor And Architecture..................................................................................... 20
7.1.
7.2.
7.3.
7.4.
7.5.
7.6.
7.7.
Cortex M0+ Processor................................................................................................................20
Nested Vector Interrupt Controller..............................................................................................21
Micro Trace Buffer...................................................................................................................... 23
High-Speed Bus System............................................................................................................ 24
AHB-APB Bridge........................................................................................................................ 24
PAC - Peripheral Access Controller............................................................................................25
Register Description................................................................................................................... 26
8. Packaging Information............................................................................................. 39
8.1.
8.2.
8.3.
Thermal Considerations............................................................................................................. 39
Package Drawings......................................................................................................................40
Soldering Profile......................................................................................................................... 50
1.
Description
The 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.
The SAM D20 devices provide the following features: In-system programmable Flash, eight-channel
Event System, programmable interrupt controller, up to 52 programmable I/O pins, 32-bit real-time clock
and calendar, up to eight 16-bit Timer/Counters (TC) . The timer/counters can be configured to perform
frequency and waveform generation, accurate program execution timing or input capture with time and
frequency measurement of digital signals. The TCs can operate in 8- or 16-bit mode, selected TCs can be
cascaded to form a 32-bit TC. The series provide up to six Serial Communication Modules (SERCOM)
that each can be configured to act as an USART, UART, SPI, I
2
C up to 400kHz, up to twenty-channel
350ksps 12-bit ADC with programmable gain and optional oversampling and decimation supporting up to
16-bit resolution, one 10-bit 350ksps DAC, two analog comparators with window mode, Peripheral Touch
Controller supporting up to 256 buttons, sliders, wheels and proximity sensing; programmable Watchdog
Timer, brown-out detector and power-on reset and two-pin Serial Wire Debug (SWD) program and debug
interface.
All devices have accurate and low-power external and internal oscillators. All oscillators can be used as a
source for the system clock. Different clock domains can be independently configured to run at different
frequencies, enabling power saving by running each peripheral at its optimal clock frequency, and thus
maintaining a high CPU frequency while reducing power consumption.
The SAM D20 devices have two software-selectable sleep modes, idle and standby. In idle mode the
CPU is stopped while all other functions can be kept running. In standby all clocks and functions are
stopped expect those selected to continue running. The device supports SleepWalking. This feature
allows the peripheral to wake up from sleep based on predefined conditions, and thus allows the CPU to
wake up only when needed, e.g. when a threshold is crossed or a result is ready. The Event System
supports synchronous and asynchronous events, allowing peripherals to receive, react to and send
events even in standby mode.
The Flash program memory can be reprogrammed in-system through the SWD interface. The same
interface can be used for non-intrusive on-chip debug of application code. A boot loader running in the
device can use any communication interface to download and upgrade the application program in the
Flash memory.
The SAM D20 devices are supported with a full suite of program and system development tools, including
C compilers, macro assemblers, program debugger/simulators, programmers and evaluation kits.
®
™
®
®
Atmel SAM D20E / SAM D20G / SAM D20J Summary [DATASHEET]
Atmel-42129P-SAM D20_Datasheet_Summary-09/2016
4
2.
Pins
Configuration Summary
SAM D20J
64
52
256/128/64/32KB
32/16/8/4/2KB
8
2
6
20
2
1
Yes
1
SAM D20G
48
38
256/128/64/32KB
32/16/8/4/2KB
6
2
6
14
2
1
Yes
1
SAM D20E
32
26
256/128/64/32KB
32/16/8/4/2KB
6
2
4
10
2
1
Yes
1
General Purpose I/O-pins (GPIOs)
Flash
SRAM
Timer Counter (TC) instances
Waveform output channels per TC instance
Serial Communication Interface (SERCOM)
instances
Analog-to-Digital Converter (ADC) channels
Analog Comparators (AC)
Digital-to-Analog Converter (DAC) channels
Real-Time Counter (RTC)
RTC alarms
RTC compare values
One 32-bit value or One 32-bit value or One 32-bit value or
two 16-bit values
two 16-bit values
16
12x10
two 16-bit values
16
10x6
External Interrupt lines
Peripheral Touch Controller (PTC) X and Y lines
Maximum CPU frequency
Packages
16
16x16
48MHz
QFN
TQFP
UFBGA
QFN
TQFP
WLCSP
QFN
TQFP
Oscillators
32.768kHz crystal oscillator (XOSC32K)
0.4-32MHz crystal oscillator (XOSC)
32.768kHz internal oscillator (OSC32K)
32KHz ultra-low-power internal oscillator (OSCULP32K)
8MHz high-accuracy internal oscillator (OSC8M)
48MHz Digital Frequency Locked Loop (DFLL48M)
Event System channels
SW Debug Interface
Watchdog Timer (WDT)
8
Yes
Yes
8
Yes
Yes
8
Yes
Yes
Atmel SAM D20E / SAM D20G / SAM D20J Summary [DATASHEET]
Atmel-42129P-SAM D20_Datasheet_Summary-09/2016
5