Atmel 42385 SAM L21 - Datasheet - Summary PDF
Atmel 42385 SAM L21 - Datasheet - Summary PDF
Atmel 42385 SAM L21 - Datasheet - Summary PDF
Introduction
using the 32-bit ARM Cortex -M0+ processor at max. 48MHz (2.46
CoreMark /MHz) and up to 256KB Flash and 40KB of SRAM in a 32, 48,
and 64 pin package. The sophisticated power management technologies,
such as power domain gating, SleepWalking, Ultra low-power peripherals
and more, allow for very low current 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 48MHz
Single-cycle hardware multiplier
Micro Trace Buffer
Memories
32/64/128/256KB in-system self-programmable Flash
1/2/4/8KB Flash Read-While-Write section
4/8/16/32KB SRAM Main Memory
2/4/8/8KB 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, test and
debugging interface
Low Power
Idle, Standby, Backup, and Off sleep modes
SleepWalking peripherals
Atmel-42385J-SAM L21_Datasheet_Summary-06/2016
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:
Oscillators
32.768kHz crystal oscillator (XOSC32K)
Atmel SAM L21E / SAM L21G / SAM L21J Summary [DATASHEET]
Atmel-42385J-SAM L21_Datasheet_Summary-06/2016
I/O
Operating Voltage
1.62V 3.63V
Table of Contents
Introduction......................................................................................................................1
1. Description.................................................................................................................5
Features.......................................................................................................................... 1
2. Configuration Summary............................................................................................. 7
3. Ordering Information................................................................................................10
3.1.
3.2.
3.3.
3.4.
SAM L21J...................................................................................................................................10
SAM L21G.................................................................................................................................. 11
SAM L21E...................................................................................................................................11
Device Identification....................................................................................................................11
4. Block Diagram......................................................................................................... 13
5. Pinout.......................................................................................................................15
5.1.
5.2.
5.3.
5.4.
SAM L21J...................................................................................................................................15
SAM L21J WLCSP64................................................................................................................. 16
SAM L21G..................................................................................................................................17
SAM L21E.................................................................................................................................. 18
6. Product Mapping......................................................................................................19
7. Processor and Architecture..................................................................................... 20
7.1.
7.2.
7.3.
7.4.
8. Packaging Information............................................................................................. 29
8.1.
8.2.
8.3.
Thermal Considerations............................................................................................................. 29
Package Drawings......................................................................................................................30
Soldering Profile......................................................................................................................... 39
1.
Description
Atmel | SMART SAM L21 is a series of Ultra low-power microcontrollers using the 32-bit ARM Cortex M0+ processor, and ranging from 32- to 64-pins with up to 256KB Flash and 40KB of SRAM. The SAM
L21 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 Atmel SAM L21 devices provide the following features: In-system programmable Flash, 16-channel
direct memory access (DMA) controller, 12-channel Event System, programmable interrupt controller, up
to 51 programmable I/O pins, 32-bit real-time clock and calendar, up to five 16-bit Timer/Counters (TC)
and three Timer/Counters for Control (TCC) where each TC/TCC 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, and three timer/counters have extended functions optimized for motor, lighting and
other control applications. Two TCC can operate in 24-bit mode, the third TCC can operate in 16-bit
mode. The series provide one full-speed USB 2.0 embedded host and device interface; up to six Serial
Communication Modules (SERCOM) that each can be configured to act as an USART, UART, SPI, I2C up
to 3.4MHz, SMBus, PMBus, and LIN slave; up to twenty channel 1MSPS 12-bit ADC with programmable
gain and optional oversampling and decimation supporting up to 16-bit resolution, two 12-bit 1MSPS
DACs, two analog comparators with window mode, three independent cascadable OPAMPs supporting
internal connection with others analog features, Peripheral Touch Controller supporting up to 192 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 L21 devices have four software-selectable sleep modes, idle, standby, backup and off. In idle
mode the CPU is stopped while all other functions can be kept running. In standby all clocks and
functions are stopped except those selected to continue running. In this mode all RAMs and logic
contents are retained. The device supports SleepWalking. This feature allows the peripheral to wake up
from sleep based on predefined conditions, and thus allows some internal operation like DMA transfer
and/or 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 SAM L21 devices have two software-selectable performance levels (PL0 and PL2) allowing the user
to scale the lowest core voltage level that will support the operating frequency. To further minimize
consumption, specifically leakage dissipation, the SAM L21 devices utilizes power domain gating
technique with retention to turn off some logic area while keeping its logic state. This technique is fully
handled by hardware.
The Flash program memory can be reprogrammed in-system through the SWD interface. The same
interface can be used for nonintrusive on-chip debugging 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 Atmel SAM L21 devices are supported with a full suite of programs and system development tools,
including C compilers, macro assemblers, program debugger/simulators, programmers and evaluation
kits.
2.
Configuration Summary
SAM L21J
SAM L21G
SAM L21E
Pins
64
48
32
51
37
25
Flash
256/128/64KB
256/128/64KB
256/128/64/32KB
8/4/2KB
8/4/2KB
8/4/2/1KB
System SRAM
32/16/8KB
32/16/8KB
32/16/8/4KB
8/8/4KB
8/8/4KB
8/8/4/2KB
Waveform output
channels per TC
instance
Waveform output
channels per TCC
8/4/2
8/4/2
6/4/2
DMA channels
16
16
16
USB interface
AES engine
Configurable Custom
Logic (CCL) (LUTs)
Serial Communication
Interface (SERCOM)
instances
Analog-to-Digital
Converter (ADC)
channels
20
14
10
Analog Comparators
(AC)
Digital-to-Analog
Converter (DAC)
channels
Operational Amplifier
(OPAMP)
SAM L21J
SAM L21G
SAM L21E
Real-Time Counter
(RTC)
Yes
Yes
Yes
RTC alarms
16
16
16
Peripheral Touch
Controller (PTC)
channels (X- x Y-Lines)
for mutual capacitance
169 (13x13)
81 (9x9)
42 (7x6)
Peripheral Touch
Controller (PTC)
channels for self
capacitance (Y-Lines
only) (3)
16
10
Maximum CPU
frequency
48MHz
Packages
QFN
QFN
QFN
TQFP
TQFP
TQFP
(2)
WLCSP(4)
Oscillators
12
12
12
SW Debug Interface
Yes
Yes
Yes
Yes
Yes
Yes
Note:
1. For SAM L21E and SAM L21G, only TC0, TC1 and TC4 are available.
2. The number of X- and Y-lines depends on the configuration of the device, as some I/O lines can be
configured as either X-lines or Y-lines. Refer to Multiplexed Signals for details. The number in the
Configuration Summary is the maximum number of channels that can be obtained.
3.
4.
The number of Y-lines depends on the configuration of the device, as some I/O lines can be
configured as either X-lines or Y-lines. The number given here is the maximum number of Y-lines
that can be obtained.
WLCSP parts are programmed with a specific SPI bootloader. Refer to Application Note AT09002
for details.
3.
Ordering Information
SAML 21 E 15 B - M U T
Product Family
Package Carrier
Product Series
Package Grade
U = 40 - 85 C Matte Sn Plating
O
Pin Count
Package Type
E = 32 Pins
G = 48 Pins
J = 64 Pins
A = TQFP
M = QFN
U = WLCSP
18 = 256KB
17 = 128KB
16 = 64KB
15 = 32KB
Device Variant
A = Engineering Samples Only
B = Released to Production
Note: The device variant (last letter of the ordering number) is independent of the die revision
(DSU.DID.REVISION): The device variant denotes functional differences, whereas the die revision marks
evolution of the die.
3.1.
SAM L21J
Table 3-1.SAM L21J Ordering Codes
Ordering Code
ATSAML21J16B-AUT
FLASH (bytes)
SRAM (bytes)
Package
Carrier Type
64K
8K
TQFP64
ATSAML21J16B-MUT
ATSAML21J17B-AUT
QFN64
128K
16K
TQFP64
ATSAML21J17B-MUT
QFN64
ATSAML21J17B-UUT
WLCSP64
ATSAML21J18B-AUT
256K
32K
TQFP64
ATSAML21J18B-MUT
QFN64
ATSAML21J18B-UUT
WLCSP64
10
3.2.
SAM L21G
Table 3-2.SAM L21G Ordering Codes
Ordering Code
ATSAML21G16B-AUT
FLASH (bytes)
SRAM (bytes)
Package
Carrier Type
64K
8K
TQFP48
ATSAML21G16B-MUT
ATSAML21G17B-AUT
QFN48
128K
16K
TQFP48
ATSAML21G17B-MUT
ATSAML21G18B-AUT
QFN48
256K
32K
TQFP48
ATSAML21G18B-MUT
3.3.
QFN48
SAM L21E
Table 3-3.SAM L21E
Ordering Code
ATSAML21E15B-AUT
FLASH (bytes)
SRAM (bytes)
Package
Carrier Type
32K
4K
TQFP32
ATSAML21E15B-MUT
ATSAML21E16B-AUT
QFN32
64K
8K
TQFP32
ATSAML21E16B-MUT
ATSAML21E17B-AUT
QFN32
128K
16K
TQFP32
ATSAML21E17B-MUT
ATSAML21E18B-AUT
QFN32
256K
32K
TQFP32
ATSAML21E18B-MUT
3.4.
QFN32
Device Identification
The DSU - Device Service Unit peripheral provides the Device Selection bits in the Device Identification
register (DID.DEVSEL) in order to identify the device by software. The SAM L21 variants have a reset
value of DID=0x1081drxx, with the LSB identifying the die number ('d'), the die revision ('r') and the device
selection ('xx').
Table 3-4.SAM L21 Device Identification Values
DEVSEL (DID[7:0])
Device
0x00
SAML21J18A
0x01
SAML21J17A
0x02
SAML21J16A
0x03-0x04
Reserved
0x05
SAML21G18A
11
DEVSEL (DID[7:0])
Device
0x06
SAML21G17A
0x07
SAML21G16A
0x08-0x09
Reserved
0x0A
SAML21E18A
0x0B
SAML21E17A
0x0C
SAML21E16A
0x0D
SAML21E15A
0x0E
Reserved
0x0F
SAML21J18B
0x10
SAML21J17B
0x11
SAML21J16B
0x12-0x13
Reserved
0x14
SAML21G18B
0x15
SAML21G17B
0x16
SAML21G16B
0x17-0x18
Reserved
0x19
SAML21E18B
0x1A
SAML21E17B
0x1B
SAML21E16B
0x1C
SAML21E15B
0x1D-0xFF
Reserved
Note: The device variant (last letter of the ordering number) is independent of the die revision
(DSU.DID.REVISION): The device variant denotes functional differences, whereas the die revision marks
evolution of the die.
12
IOBUS
SWCLK
CORTEX-M0+
PROCESSOR
Fmax 48 MHz
SERIAL
WIRE
EVENT
SWDIO
MEMORY
TRACE BUFFER
Block Diagram
DEVICE
SERVICE
UNIT
256/128/64/32KB
NVM
32/16/8/4KB
RAM
NVM
CONTROLLER
Cache
SRAM
CONTROLLER
HIGH SPEED
BUS MATRIX
S
DP
USB FS
DEVICE
MINI-HOST
DM
SOF 1KHZ
8/8/4/2KB
RAM
AHB-APB
BRIDGE B
LP SRAM
CONTROLLER
LOW POWER
BUS MATRIX
PERIPHERAL
ACCESS
CONTROLLER
DMA
EVENT
AHB-APB
BRIDGE D
AHB-APB
BRIDGE C
DMA
56xxSERCOM
SERCOM
MAIN CLOCKS
CONTROLLER
OSCILLATORS CONTROLLER
OSC16M
XIN
XOUT
XOSC
GCLK_IO[7..0]
FDPLL96M
GENERIC CLOCK
CONTROLLER
WO0
4 x TIMER / COUNTER
EVENT 8 x Timer Counter
WO1
DMA
WO0
WO1
(2)
WOn
DMA
DMA
WATCHDOG
TIMER
EXTINT[15..0]
NMI
DMA
3x TIMER / COUNTER
FOR CONTROL
EVENT
EVENT SYSTEM
DFLL48M
EXTERNAL INTERRUPT
CONTROLLER
TIMER / COUNTER
OSCULP32K
OSC32K
20-CHANNEL
12-bit ADC 1MSPS
EVENT
SUPPLY CONTROLLER
BOD33
DMA
EVENT
VREF
VREG
EVENT
RESET
EXTWAKEx
VOUT[1..0]
VREFA
PAD0
PAD1
PAD2
PAD3
WO0
DMA
OSC32K CONTROLLER
XOSC32K
TRNG
Dual Channels
12-bit DAC 1MSPS
EVENT
SERCOM
XIN32
XOUT32
AES
DMA
POWER
MANAGER
PAD0
PAD1
PAD2
PAD3
EVENT
AHB-APB
BRIDGE A
PORT
AHB-APB
BRIDGE E
PORT
4.
2 ANALOG
COMPARATORS
PERIPHERAL
TOUCH
CONTROLLER
WO1
AIN[19..0]
VREFA
VREFB
AIN[3..0]
X[15..0]
Y[15..0]
OA_NEG
RESET
CONTROLLER
3 x OPAMP
REAL TIME
COUNTER
4 x CCL
OA_POS
OA_OUT
IN[2..0]
EVENT
OUT
EVENT
Note:
1. Some products have different number of SERCOM instances, Timer/Counter instances, PTC
signals and ADC signals.
13
2.
The three TCC instances have different configurations, including the number of Waveform Output
(WO) lines.
14
Pinout
5.1.
SAM L21J
64
63
62
61
60
59
58
57
56
55
54
53
52
51
50
49
PB03
PB02
PB01
PB00
PB31
PB30
PA31
PA30
VDDIN
VSW
GND
VDDCORE
RESET
PA27
PB23
PB22
5.
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
VDDIO
GND
PA25
PA24
PA23
PA22
PA21
PA20
PB17
PB16
PA19
PA18
PA17
PA16
VDDIO
GND
25
26
27
28
29
30
31
32
24
17
18
19
20
21
22
23
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
PA08
PA09
PA10
PA11
VDDIO
GND
PB10
PB11
PB12
PB13
PB14
PB15
PA12
PA13
PA14
PA15
PA00
PA01
PA02
PA03
PB04
PB05
GNDANA
VDDANA
PB06
PB07
PB08
PB09
PA04
PA05
PA06
PA07
DIGITAL PIN
ANALOG PIN
OSCILLATOR
GROUND
INPUT SUPPLY
REGULATED INPUT/OUTPUT SUPPLY
RESET PIN
15
5.2.
8
R
Q
P
N
M
L
K
J
H
G
F
E
D
C
B
A
PA16
PB16
PA13
PB13
PB10
PB08
PB30
PB06
PA00
PA02
PB01
PA01
GNDANA
VDDANA
PB31
PB04
PA06
PB07
PA30
PB00
PA07
PA04
GND
VDDIN
PB05
PB09
PA05
PA31
PB11
PA09
VDDCORE
VSW
PB02
PA10
PA08
PB23
PB12
GND
RESET
PA27
PB17
VDDIO
PA11
PA24
VDDIO
PB14
PB22
GND
PA21
PB15
PA25
PA19
GND
PA12
2
VDDIO
PA23
PA18
PA14
PA22
PA20
PA17
PA15
PA03
PB03
16
48
47
46
45
44
43
42
41
40
39
38
37
PB03
PB02
PA31
PA30
VDDIN
VSW
GND
VDDCORE
RESET
PA27
PB23
PB22
SAM L21G
36
35
34
33
32
31
30
29
28
27
26
25
1
2
3
4
5
6
7
8
9
10
11
12
VDDIO
GND
PA25
PA24
PA23
PA22
PA21
PA20
PA19
PA18
PA17
PA16
13
14
15
16
17
18
19
20
21
22
23
24
PA00
PA01
PA02
PA03
GNDANA
VDDANA
PB08
PB09
PA04
PA05
PA06
PA07
PA08
PA09
PA10
PA11
VDDIO
GND
PB10
PB11
PA12
PA13
PA14
PA15
5.3.
DIGITAL PIN
ANALOG PIN
OSCILLATOR
GROUND
INPUT SUPPLY
REGULATED INPUT/OUTPUT SUPPLY
RESET PIN
17
32
31
30
29
28
27
26
25
PA31
PA30
VDDIN
VSW
GND
VDDCORE
RESET
PA27
SAM L21E
24
23
22
21
20
19
18
17
1
2
3
4
5
6
7
8
PA25
PA24
PA23
PA22
PA19
PA18
PA17
PA16
9
10
11
12
13
14
15
16
PA00
PA01
PA02
PA03
PA04
PA05
PA06
PA07
VDDANA
GND
PA08
PA09
PA10
PA11
PA14
PA15
5.4.
DIGITAL PIN
ANALOG PIN
OSCILLATOR
GROUND
INPUT SUPPLY
REGULATED INPUT/OUTPUT SUPPLY
RESET PIN
18
6.
Product Mapping
Figure 6-1.Atmel SAM L21 Product Mapping
Code
0x40000000
0x00000000
Internal Flash
Code
0x20000000
0x00400000
SRAM
Undefined
0x40000800
Reserved
SRAM
0x20000000
0x40000000
0x43000000
Reserved
SRAM
Low Power
0x40002400
AHB-APB
0x40000000
0x60000200
AHB-APB
Bridge A
System
Reserved
Reserved
0x42000000
AHB-APB
Bridge C
SCS
Reserved
0x43000000
AHB-APB
Bridge D
ROMTable
Reserved
0x41004000
0x41006000
0x41008000
0x41FFFFFF
RSTC
OSCCTRL
OSC32KCTRL
SUPC
GCLK
WDT
RTC
EIC
PORT
Reserved
0x40FFFFFF
USB
AHB-APB Bridge D
0x43000000
0x43000400
0x43000800
AHB-APB
Bridge E
AHB-APB Bridge E
0x43001400
DSU
0x44000000
NVMCTRL
0x44000400
MTB
0x44000800
Reserved
0x44FFFFFF
0x42000000
0x42000400
0x42000800
0x42000C00
0x42001000
SERCOM0
SERCOM1
SERCOM2
SERCOM3
SERCOM4
0x42001400
TCC0
0x42001800
TCC1
0x42001C00
TCC2
TC0
0x42002400
0x43000C00
0x44FFFFFF
AHB-APB Bridge C
0x42002000
0x44000000
AHB-APB Bridge B
0x41002000
0x40002C00
MCLK
AHB-APB
Bridge B
System
0x41000000
0x40002800
PM
0x41000000
0xFFFFFFFF
0xFFFFFFFF
0x40002000
0x30002000
Undefined
0xE0100000
0x40001800
0x40001C00
0x60000000
0xE00FF000
0x40001000
0x20008000
0x30000000
0xE000F000
0x40000C00
0x40001400
Internal SRAM
Peripherals
0xE000E000
0x40000400
0x1FFFFFFF
0x22008000
0xE0000000
AHB-APB Bridge A
0x43001000
PAC
0x43001800
DMAC
0x43001C00
Reserved
0x43002000
EVSYS
0x42002C00
SERCOM5
0x42003000
TC4
0x42003400
ADC
0x42003800
AC
0x42003C00
PTC
TC1
0x42002800
TC2
TC3
DAC
AES
0x42FFFFFF
TRNG
Reserved
OPAMP
CCL
Reserved
0x43FFFFFF
19
7.
7.1.
The Atmel SAM L21 implements the ARM Cortex -M0+ processor, based on the ARMv6 Architecture
and Thumb -2 ISA. The Cortex M0+ is 100% instruction set compatible with its predecessor, the CortexM0 core, and upward compatible to Cortex-M3 and M4 cores. The implemented ARM Cortex-M0+ is
revision r0p1. For more information refer to http://www.arm.com
7.1.1.
Features
Interrupts
29
Data endianness
Little-endian or big-endian
Little-endian
SysTick timer
Present or absent
Present
Number of watchpoint
comparators
0, 1, 2
Number of breakpoint
comparators
0, 1, 2, 3, 4
Present or absent
Present
Multiplier
Fast or small
Present or absent
Present
Not supported
Present or absent
Present
Unprivileged/Privileged support
Present or absent
Not present
Present or absent
Absent
32-bit
7.1.1.1.
Single 32-bit AMBA-3 AHB-Lite system interface that provides connections to peripherals and all
system memory including Flash memory and RAM
Single 32-bit I/O port bus interfacing to the PORT with 1-cycle loads and stores
20
External interrupt signals connect to the NVIC, and the NVIC prioritizes the interrupts.
Software can set the priority of each interrupt. The NVIC and the Cortex-M0+ processor core
are closely coupled, providing low latency interrupt processing and efficient processing of late
arriving interrupts. Refer to the Cortex-M0+ Technical Reference Manual for details (http://
www.arm.com).
Note: When the CPU frequency is much higher than the APB frequency it is recommended
to insert a memory read barrier after each CPU write to registers mapped on the APB. Failing
to do so in such conditions may lead to unexpected behavior such as e.g. re-entering a
peripheral interrupt handler just after leaving it.
Related Links
Nested Vector Interrupt Controller on page 21
7.1.1.2.
7.1.1.3.
Address
Peripheral
0xE000E000
0xE000E010
0xE000E100
0xE000ED00
0x41006000
I/O Interface
The device allows direct access to PORT registers. Accesses to the AMBA AHB-Lite and the single
cycle I/O interface can be made concurrently, so the Cortex M0+ processor can fetch the next instructions
while accessing the I/Os. This enables single cycle I/O access to be sustained for as long as necessary.
7.2.
7.2.1.
Overview
The Nested Vectored Interrupt Controller (NVIC) in the SAM L21 supports 32 interrupt lines with four
different priority levels. For more details, refer to the Cortex-M0+ Technical Reference Manual (http://
www.arm.com).
21
7.2.2.
Peripheral source
NVIC line
NMI
PM Power Manager
10
11
12
22
Peripheral source
NVIC line
13
14
15
16
17
18
19
20
21
22
AC Analog Comparator
23
24
25
26
27
7.3.
7.3.1.
Features
7.3.2.
Overview
When enabled, the MTB records the changes in program flow that are reported by the Cortex-M0+
processor over the execution trace interface. This interface is shared between the Cortex-M0+ processor
and the CoreSight MTB-M0+. The information is stored by the MTB in the SRAM as trace packets. An offchip debugger can extract the trace information using the Debug Access Port to read the trace
information from the SRAM. The debugger can then reconstruct the program flow from this information.
The MTB stores trace information into the SRAM and gives the processor access to the SRAM
simultaneously. The MTB ensures that trace write accesses have priority over processor accesses.
An execution trace packet consists of a pair of 32-bit words that the MTB generates when it detects a
non-sequential change of the program pounter (PC) value. A non-sequential PC change can occur during
branch instructions or during exception entry. See the CoreSight MTB-M0+ Technical Reference Manual
for more details on the MTB execution trace packet format.
Tracing is enabled when the MASTER.EN bit in the Master Trace Control Register is 1. There are various
ways to set the bit to 1 to start tracing, or to 0 to stop tracing. See the CoreSight Cortex-M0+ Technical
Reference Manual for more details on the Trace start and stop and for a detailed description of the MTBs
Atmel SAM L21E / SAM L21G / SAM L21J Summary [DATASHEET]
Atmel-42385J-SAM L21_Datasheet_Summary-06/2016
23
MASTER register. The MTB can be programmed to stop tracing automatically when the memory fills to a
specified watermark level or to start or stop tracing by writing directly to the MASTER.EN bit. If the
watermark mechanism is not being used and the trace buffer overflows, then the buffer wraps around
overwriting previous trace packets.
The base address of the MTB registers is 0x41006000; this address is also written in the CoreSight ROM
Table. The offset of each register from the base address is fixed and as defined by the CoreSight MTBM0+ Technical Reference Manual. The MTB has four programmable registers to control the behavior of
the trace features:
POSITION: Contains the trace write pointer and the wrap bit
MASTER: Contains the main trace enable bit and other trace control fields
FLOW: Contains the WATERMARK address and the AUTOSTOP and AUTOHALT control bits
BASE: Indicates where the SRAM is located in the processor memory map. This register is
provided to enable auto discovery of the MTB SRAM location by a debug agent
See the CoreSight MTB-M0+ Technical Reference Manual for a detailed description of these registers.
7.4.
7.4.1.
Features
High-Speed Bus Matrix has the following features:
Write: 1 cycle bus stall when full when LP clock is not divided
Write: 1 cycle bus stall when full when LP clock is not divided
24
H2LBRIDGES S
M M
M H2LBRIDGEM
H2LBRIDGE
HMATRIXLP
HMATRIXHS
L2HBRIDGES M
S S S S S
S L2HBRIDGES
S S S S S S S S
Configuration
Figure 7-2.Master-Slave Relations High-Speed Bus Matrix
High-Speed Bus
MASTERS
CM0+
DSU
L2HBRIDGEM
Internal Flash
HS SRAM PORT 0
HS SRAM PORT 1
AHB-APB Bridge B
H2LBRIDGES
H2LBRIDGEM
DMAC
AHB-APB Bridge A
AHB-APB Bridge C
AHB-APB Bridge D
AHB-APB Bridge E
LP SRAM PORT 2
LP SRAM PORT 1
L2HBRIDGES
HS SRAM PORT 2
Low-Power Bus
MASTERS
7.4.2.
L2HBRIDGE
25
Master ID
Slave ID
AHB-APB Bridge B
Master ID
7.4.3.
Slave ID
AHB-APB Bridge A
AHB-APB Bridge C
AHB-APB Bridge D
AHB-APB Bridge E
26
The Quality of Service (QoS) level is independently selected for each master accessing the RAM. For any
access to the RAM, the RAM also receives the QoS level. The QoS levels and their corresponding bit
values for the QoS level configuration are shown in the following table.
Table 7-8.Quality of Service
Value
Name
Description
0x0
DISABLE
0x1
LOW
Sensitive Bandwidth
0x2
MEDIUM
Sensitive Latency
0x3
HIGH
Critical Latency
If a master is configured with QoS level DISABLE (0x0) or LOW (0x1) there will be a minimum latency of
one cycle for the RAM access.
The priority order for concurrent accesses are decided by two factors. First, the QoS level for the master
and second, a static priority given by the port ID. The lowest port ID has the highest static priority. See the
tables below for details.
The MTB has a fixed QoS level HIGH (0x3).
The CPU QoS level can be written/read, using 32-bit access only, at address 0x41008114 bits [1:0]. Its
reset value is 0x3.
Refer to different master QOSCTRL registers for configuring QoS for the other masters (USB, DMAC).
Table 7-9.HS SRAM Port Connections QoS
default QoS
Direct
STATIC-3
0x3
Direct
IP-QOSCTRL
0x3
HMATRIXLP - Low-Power
Bus Matrix
Bus Matrix
0x44000934(1), bits[1:0]
0x2
Bus Matrix
0x4100201C(1)
0x2
Bus Matrix
0x41008114(1), bits[1:0]
0x3
Note:
1. Using 32-bit access only.
Table 7-10.LP SRAM Port Connections QoS
default QoS
5, 6
Direct
IP-QOSCTRL.WRBQOS
0x2
3, 4
Direct
IP-QOSCTRL.FQOS
0x2
27
default QoS
H2LBRIDGEM - HS to LP
bus matrix AHB to AHB
bridge
Bus Matrix
0x44000924(1), bits[1:0]
0x2
Bus Matrix
IP-QOSCTRL.DQOS
0x2
Note:
1. Using 32-bit access only.
28
8.
Packaging Information
8.1.
Thermal Considerations
8.1.1.
Package Type
JA
JC
32-pin TQFP
68C/W
25.8C/W
48-pin TQFP
78.8C/W
12.3C/W
64-pin TQFP
66.7C/W
11.9C/W
32-pin QFN
37.2C/W
3.1C/W
48-pin QFN
31.6C/W
10.3C/W
64-pin QFN
32.2C/W
10.1C/W
64-pin WLCSP
36.8C/W
5.0C/W
Related Links
Junction Temperature on page 29
8.1.2.
Junction Temperature
The average chip-junction temperature, TJ, in C can be obtained from the following:
1.
2.
TJ = TA + (PD x JA)
TJ = TA + (PD x (HEATSINK + JC))
where:
From the first equation, the user can derive the estimated lifetime of the chip and decide if a cooling
device is necessary or not. If a cooling device is to be fitted on the chip, the second equation should be
used to compute the resulting average chip-junction temperature TJ in C.
Related Links
Thermal Resistance Data on page 29
29
8.2.
Package Drawings
8.2.1.
64-Ball WLCSP
10
mg
MSL1
30
8.2.2.
N/A
JESD97 Classification
E1
64 pin TQFP
300
mg
31
MSL3
MS-026
JESD97 Classification
E3
32
8.2.3.
64 pin QFN
Note: The exposed die attach pad is not connected electrically inside the device.
Table 8-8.Device and Package Maximum Weight
200
mg
MSL3
Atmel SAM L21E / SAM L21G / SAM L21J Summary [DATASHEET]
Atmel-42385J-SAM L21_Datasheet_Summary-06/2016
33
8.2.4.
MO-220
JESD97 Classification
E3
48 pin TQFP
140
mg
34
MSL3
8.2.5.
MS-026
JESD97 Classification
E3
48 pin QFN
Note: The exposed die attach pad is not connected electrically inside the device.
35
140
mg
MSL3
MO-220
JESD97 Classification
E3
36
8.2.6.
32 pin TQFP
100
mg
MSL3
37
8.2.7.
MS-026
JESD97 Classification
E3
32 pin QFN
Note: The exposed die attach pad is connected inside the device to GND and GNDANA.
Table 8-20.Device and Package Maximum Weight
90
mg
38
MSL3
8.3.
MO-220
JESD97 Classification
E3
Soldering Profile
The following table gives the recommended soldering profile from J-STD-20.
Table 8-23.
Profile Feature
Green Package
3C/s max.
150-200C
60-150s
30s
260C
Ramp-down Rate
6C/s max.
8 minutes max.
39
Atmel Corporation
T: (+1)(408) 441.0311
F: (+1)(408) 436.4200
www.atmel.com
Atmel , Atmel logo and combinations thereof, Enabling Unlimited Possibilities , and others are registered trademarks or trademarks of Atmel Corporation in U.S. and
other countries. ARM , ARM Connected logo, and others are the registered trademarks or trademarks of ARM Ltd. Other terms and product names may be
trademarks of others.
DISCLAIMER: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to any
intellectual property right is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN THE ATMEL TERMS AND
CONDITIONS OF SALES LOCATED ON THE ATMEL WEBSITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED
OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS AND PROFITS, BUSINESS
INTERRUPTION, OR LOSS OF INFORMATION) ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED
OF THE POSSIBILITY OF SUCH DAMAGES. Atmel makes no representations or warranties with respect to the accuracy or completeness of the contents of this
document and reserves the right to make changes to specifications and products descriptions at any time without notice. Atmel does not make any commitment to
update the information contained herein. Unless specifically provided otherwise, Atmel products are not suitable for, and shall not be used in, automotive
applications. Atmel products are not intended, authorized, or warranted for use as components in applications intended to support or sustain life.
SAFETY-CRITICAL, MILITARY, AND AUTOMOTIVE APPLICATIONS DISCLAIMER: Atmel products are not designed for and will not be used in connection with any
applications where the failure of such products would reasonably be expected to result in significant personal injury or death (Safety-Critical Applications) without
an Atmel officer's specific written consent. Safety-Critical Applications include, without limitation, life support devices and systems, equipment or systems for the
operation of nuclear facilities and weapons systems. Atmel products are not designed nor intended for use in military or aerospace applications or environments
unless specifically designated by Atmel as military-grade. Atmel products are not designed nor intended for use in automotive applications unless specifically
designated by Atmel as automotive-grade.