SAM L21 Family Data Sheet
SAM L21 Family Data Sheet
Introduction
Atmel
®
SMART SAM L21 is a series of ultra low-power microcontrollers using 32-bit Arm
®
Cortex
®
-M0+ processor at
maximum 48 MHz (2.46 CoreMark
®
/MHz) and up to 256 KB Flash and 40 KB of SRAM in a 32-pin, 48-pin, and 64-
pin package. The sophisticated power management technologies, such as power domain gating, SleepWalking, ultra
low-power peripherals allow very low-power consumptions. The highly configurable peripherals include a touch
controller supporting capacitive interfaces with proximity sensing.
Features
•
Processor
– Arm Cortex-M0+ CPU running at up to 48 MHz
• Single-cycle hardware multiplier
• Micro Trace Buffer
Memories
– 32/64/128/256-KB in-system self-programmable Flash
– 1/2/4/8-KB Flash Read-While-Write section
– 4/8/16/32-KB SRAM main memory
– 2/4/8/8-KB SRAM low-power memory
System
– Power-on Reset (POR) and Brown-out Detection (BOD)
– Internal and external clock options
– External Interrupt Controller (EIC)
– 16 external interrupts
– One non-maskable interrupt
– Two-pin Serial Wire Debug (SWD) programming, testing, and debugging interface
Low Power
– Idle, Stand-by, Backup, and Off Sleep modes
– SleepWalking peripherals
– Static and Dynamic Power Gating Architecture
– Battery backup support
– Two performance levels
– Embedded Buck/LDO regulator supporting on-the-fly selection
Peripherals
– 16-channel Direct Memory Access Controller (DMAC)
– 12-channel Event System
– Up to five 16-bit Timer/Counters (TC) including one low-power TC, each configurable as:
• 16-bit TC with two compare/capture channels
• 8-bit TC with two compare/capture channels
• 32-bit TC with two compare/capture channels, by using two TCs
•
•
•
•
©
2020 Microchip Technology Inc.
DS60001477B-page 1
SAM L21 Family Data Sheet
– Two 24-bit and one 16-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) including one low-power SERCOM, each
configurable to operate as either:
• USART with full-duplex and single-wire half-duplex configuration
• I
2
C up to 3.4 MHz
• SPI
• LIN slave
– One AES encryption engine
– One True Random Generator (TRNG)
– One Configurable Custom Logic (CCL)
– One 12-bit, 1MSPS Analog-to-Digital Converter (ADC) with up to 20 channels
• Differential and single-ended input
• Automatic offset and gain error compensation
• Oversampling and decimation in hardware to support 13-bit, 14-bit, 15-bit, or 16-bit resolution
– Two 12-bit, 1 MSPS dual output Digital-to-Analog Converter (DAC)
– Two Analog Comparators (AC) with window compare function
– Three Operational Amplifiers (OPAMP)
– Peripheral Touch Controller (PTC)
• 169-channel capacitive touch and proximity sensing
• Wake up on touch in Stand-by mode
•
Oscillators
– 32.768 kHz crystal oscillator (XOSC32K)
– 0.4-32 MHz crystal oscillator (XOSC)
– 32.768 kHz internal oscillator (OSC32K)
– 32.768 kHz ultra low-power internal oscillator (OSCULP32K)
– 16/12/8/4 MHz high-accuracy internal oscillator (OSC16M)
– 48 MHz Digital Frequency Locked Loop (DFLL48M)
– 96 MHz Fractional Digital Phased Locked Loop (FDPLL96M)
I/O
– Up to 51 programmable I/O pins
Easy migration from the SAM D family of devices
Packages
– 64-pin TQFP, QFN, WLCSP
– 48-pin TQFP, QFN
– 32-pin TQFP, QFN
Operating voltage
– 1.62V – 3.63V
Temperature range
– -40°C to 85°C
•
•
•
•
•
©
2020 Microchip Technology Inc.
DS60001477B-page 2
SAM L21 Family Data Sheet
– -40°C to 105°C
©
2020 Microchip Technology Inc.
DS60001477B-page 3
SAM L21 Family Data Sheet
Table of Contents
Introduction.....................................................................................................................................................1
Features......................................................................................................................................................... 1
1.
2.
3.
Description............................................................................................................................................ 14
Configuration Summary........................................................................................................................ 15
Ordering Information............................................................................................................................. 17
3.1.
3.2.
3.3.
3.4.
4.
5.
SAM L21J...................................................................................................................................17
SAM L21G..................................................................................................................................18
SAM L21E.................................................................................................................................. 18
Device Identification................................................................................................................... 19
Block Diagram.......................................................................................................................................21
Pinout.................................................................................................................................................... 22
5.1.
5.2.
5.3.
5.4.
SAM L21J...................................................................................................................................22
SAM L21J WLCSP64................................................................................................................. 23
SAM L21G..................................................................................................................................24
SAM L21E.................................................................................................................................. 25
6.
7.
Signal Descriptions List.........................................................................................................................26
I/O Multiplexing and Considerations..................................................................................................... 28
7.1.
7.2.
Multiplexed Signals.................................................................................................................... 28
Other Functions..........................................................................................................................30
8.
Analog Connections of Peripherals.......................................................................................................33
8.1.
8.2.
8.3.
8.4.
Block Diagram............................................................................................................................ 33
Analog Connections................................................................................................................... 33
Reference Voltages.................................................................................................................... 34
Analog ONDEMAND Function................................................................................................... 34
9.
Power Supply and Start-Up Considerations..........................................................................................36
9.1.
9.2.
9.3.
9.4.
9.5.
Power Domain Overview............................................................................................................36
Power Supply Considerations.................................................................................................... 36
Power-Up................................................................................................................................... 39
Power-On Reset and Brown-Out Detector................................................................................. 40
Performance Level Overview..................................................................................................... 41
10. Product Mapping................................................................................................................................... 42
11. Memories.............................................................................................................................................. 43
11.1.
11.2.
11.3.
11.4.
11.5.
Embedded Memories................................................................................................................. 43
Physical Memory Map................................................................................................................ 43
NVM User Row Mapping............................................................................................................44
NVM Software Calibration Area Mapping...................................................................................45
NVM Temperature Log Row....................................................................................................... 45
©
2020 Microchip Technology Inc.
DS60001477B-page 4
SAM L21 Family Data Sheet
11.6. Serial Number............................................................................................................................ 46
12. Processor and Architecture...................................................................................................................47
12.1.
12.2.
12.3.
12.4.
Cortex M0+ Processor............................................................................................................... 47
Nested Vector Interrupt Controller..............................................................................................48
Micro Trace Buffer...................................................................................................................... 50
High-Speed Bus System............................................................................................................ 50
13. PAC - Peripheral Access Controller...................................................................................................... 55
13.1.
13.2.
13.3.
13.4.
13.5.
13.6.
13.7.
Overview.................................................................................................................................... 55
Features..................................................................................................................................... 55
Block Diagram............................................................................................................................ 55
Product Dependencies............................................................................................................... 55
Functional Description................................................................................................................56
Register Summary......................................................................................................................59
Register Description................................................................................................................... 60
14. Peripherals Configuration Summary..................................................................................................... 79
15. DSU - Device Service Unit.................................................................................................................... 82
15.1. Overview.................................................................................................................................... 82
15.2. Features..................................................................................................................................... 82
15.3. Block Diagram............................................................................................................................ 82
15.4. Signal Description...................................................................................................................... 83
15.5. Product Dependencies............................................................................................................... 83
15.6. Debug Operation........................................................................................................................ 84
15.7. Chip Erase..................................................................................................................................85
15.8. Programming..............................................................................................................................86
15.9. Intellectual Property Protection.................................................................................................. 86
15.10. Device Identification................................................................................................................... 87
15.11. Functional Description................................................................................................................88
15.12. Register Summary..................................................................................................................... 93
15.13. Register Description...................................................................................................................94
16. Clock System.......................................................................................................................................117
16.1.
16.2.
16.3.
16.4.
16.5.
16.6.
16.7.
Clock Distribution......................................................................................................................117
Synchronous and Asynchronous Clocks.................................................................................. 118
Register Synchronization..........................................................................................................119
Enabling a Peripheral............................................................................................................... 121
On Demand Clock Requests....................................................................................................121
Power Consumption vs. Speed................................................................................................ 122
Clocks after Reset.................................................................................................................... 122
17. GCLK - Generic Clock Controller........................................................................................................ 123
17.1.
17.2.
17.3.
17.4.
17.5.
Overview.................................................................................................................................. 123
Features................................................................................................................................... 123
Block Diagram.......................................................................................................................... 123
Signal Description.................................................................................................................... 124
Product Dependencies............................................................................................................. 124
©
2020 Microchip Technology Inc.
DS60001477B-page 5