SAM L21 Family Data Sheet - RS Components · – 12-channel Event System – Up to five 16-bit...
Transcript of SAM L21 Family Data Sheet - RS Components · – 12-channel Event System – Up to five 16-bit...
-
SMART ARM-basedMicrocontrollers
SAM L21 Family Data Sheet
Introduction
Atmel® | SMART SAM L21 is a series of Ultra low-power microcontrollers 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 a32, 48, and 64 pin package. The sophisticated power management technologies, such as power domaingating, SleepWalking, Ultra low-power peripherals and more, allow for very low current consumptions.The highly configurable peripherals include a touch controller supporting capacitive interfaces withproximity 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– 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)
© 2017 Microchip Technology Inc. Datasheet Complete 60001477A-page 1
-
– 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
– 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 (12Mbps) 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, eachconfigurable to operate as either:
• USART with full-duplex and single-wire half-duplex configuration• I2C up to 3.4MHz• 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-, 14-, 15-, or 16-bit resolution
– Two 12-bit, 1MSPS 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 standby mode
• Oscillators– 32.768kHz crystal oscillator (XOSC32K)– 0.4-32MHz crystal oscillator (XOSC)– 32.768kHz internal oscillator (OSC32K)– 32.768kHz ultra-low-power internal oscillator (OSCULP32K)– 16/12/8/4MHz high-accuracy internal oscillator (OSC16M)– 48MHz Digital Frequency Locked Loop (DFLL48M)– 96MHz Fractional Digital Phased Locked Loop (FDPLL96M)
SMART ARM-based Microcontrollers
© 2017 Microchip Technology Inc. Datasheet Complete 60001477A-page 2
-
• I/O– Up to 51 programmable I/O pins
• Easy migration from SAM D family• 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– -40°C to 105°C
SMART ARM-based Microcontrollers
© 2017 Microchip Technology Inc. Datasheet Complete 60001477A-page 3
-
Table of Contents
Introduction......................................................................................................................1
Features.......................................................................................................................... 1
1. Description...............................................................................................................14
2. Configuration Summary...........................................................................................16
3. Ordering Information................................................................................................193.1. SAM L21J...................................................................................................................................193.2. SAM L21G..................................................................................................................................203.3. SAM L21E.................................................................................................................................. 203.4. Device Identification................................................................................................................... 21
4. Block Diagram......................................................................................................... 23
5. Pinout...................................................................................................................... 255.1. SAM L21J...................................................................................................................................255.2. SAM L21J WLCSP64.................................................................................................................265.3. SAM L21G..................................................................................................................................275.4. SAM L21E.................................................................................................................................. 28
6. Signal Descriptions List........................................................................................... 29
7. I/O Multiplexing and Considerations........................................................................317.1. Multiplexed Signals.................................................................................................................... 317.2. Other Functions..........................................................................................................................33
8. Analog Connections of Peripherals......................................................................... 368.1. Block Diagram............................................................................................................................368.2. Analog Connections................................................................................................................... 368.3. Reference Voltages....................................................................................................................378.4. Analog ONDEMAND Function................................................................................................... 37
9. Power Supply and Start-Up Considerations............................................................ 399.1. Power Domain Overview............................................................................................................399.2. Power Supply Considerations.................................................................................................... 399.3. Power-Up................................................................................................................................... 429.4. Power-On Reset and Brown-Out Detector.................................................................................439.5. Performance Level Overview..................................................................................................... 44
10. Product Mapping..................................................................................................... 46
11. Memories.................................................................................................................4711.1. Embedded Memories................................................................................................................. 4711.2. Physical Memory Map................................................................................................................47
SMART ARM-based Microcontrollers
© 2017 Microchip Technology Inc. Datasheet Complete 60001477A-page 4
-
11.3. NVM User Row Mapping............................................................................................................4811.4. NVM Software Calibration Area Mapping...................................................................................4911.5. NVM Temperature Log Row.......................................................................................................5011.6. Serial Number............................................................................................................................ 50
12. Processor and Architecture..................................................................................... 5112.1. Cortex M0+ Processor............................................................................................................... 5112.2. Nested Vector Interrupt Controller..............................................................................................5312.3. Micro Trace Buffer......................................................................................................................5412.4. High-Speed Bus System............................................................................................................ 55
13. PAC - Peripheral Access Controller.........................................................................6013.1. Overview.................................................................................................................................... 6013.2. Features..................................................................................................................................... 6013.3. Block Diagram............................................................................................................................6013.4. Product Dependencies...............................................................................................................6013.5. Functional Description................................................................................................................6113.6. Register Summary......................................................................................................................6513.7. Register Description...................................................................................................................66
14. Peripherals Configuration Summary........................................................................82
15. DSU - Device Service Unit...................................................................................... 8515.1. Overview.................................................................................................................................... 8515.2. Features..................................................................................................................................... 8515.3. Block Diagram............................................................................................................................8615.4. Signal Description...................................................................................................................... 8615.5. Product Dependencies...............................................................................................................8615.6. Debug Operation........................................................................................................................8715.7. Chip Erase..................................................................................................................................8915.8. Programming..............................................................................................................................8915.9. Intellectual Property Protection.................................................................................................. 9015.10. Device Identification...................................................................................................................9115.11. Functional Description................................................................................................................9215.12. Register Summary..................................................................................................................... 9815.13. Register Description.................................................................................................................100
16. Clock System.........................................................................................................12216.1. Clock Distribution..................................................................................................................... 12216.2. Synchronous and Asynchronous Clocks..................................................................................12316.3. Register Synchronization......................................................................................................... 12416.4. Enabling a Peripheral...............................................................................................................12716.5. On Demand Clock Requests....................................................................................................12716.6. Power Consumption vs. Speed................................................................................................12816.7. Clocks after Reset....................................................................................................................128
17. GCLK - Generic Clock Controller.......................................................................... 12917.1. Overview.................................................................................................................................. 12917.2. Features................................................................................................................................... 129
SMART ARM-based Microcontrollers
© 2017 Microchip Technology Inc. Datasheet Complete 60001477A-page 5
-
17.3. Block Diagram..........................................................................................................................12917.4. Signal Description.................................................................................................................... 13017.5. Product Dependencies.............................................................................................................13017.6. Functional Description..............................................................................................................13117.7. Register Summary....................................................................................................................13717.8. Register Description.................................................................................................................141
18. MCLK – Main Clock...............................................................................................14918.1. Overview.................................................................................................................................. 14918.2. Features................................................................................................................................... 14918.3. Block Diagram..........................................................................................................................14918.4. Signal Description.................................................................................................................... 14918.5. Product Dependencies.............................................................................................................14918.6. Functional Description..............................................................................................................15118.7. Register Summary - MCLK...................................................................................................... 15618.8. Register Description.................................................................................................................156
19. RSTC – Reset Controller.......................................................................................17019.1. Overview.................................................................................................................................. 17019.2. Features................................................................................................................................... 17019.3. Block Diagram..........................................................................................................................17019.4. Signal Description.................................................................................................................... 17119.5. Product Dependencies.............................................................................................................17119.6. Functional Description..............................................................................................................17219.7. Register Summary....................................................................................................................17519.8. Register Description.................................................................................................................175
20. PM – Power Manager............................................................................................18020.1. Overview.................................................................................................................................. 18020.2. Features................................................................................................................................... 18020.3. Block Diagram..........................................................................................................................18120.4. Signal Description.................................................................................................................... 18120.5. Product Dependencies.............................................................................................................18120.6. Functional Description..............................................................................................................18220.7. Register Summary....................................................................................................................20520.8. Register Description.................................................................................................................205
21. OSCCTRL – Oscillators Controller........................................................................ 21121.1. Overview...................................................................................................................................21121.2. Features................................................................................................................................... 21121.3. Block Diagram.......................................................................................................................... 21121.4. Signal Description.....................................................................................................................21121.5. Product Dependencies.............................................................................................................21221.6. Functional Description..............................................................................................................21321.7. Register Summary....................................................................................................................22421.8. Register Description.................................................................................................................225
22. OSC32KCTRL – 32KHz Oscillators Controller......................................................25022.1. Overview.................................................................................................................................. 250
SMART ARM-based Microcontrollers
© 2017 Microchip Technology Inc. Datasheet Complete 60001477A-page 6
-
22.2. Features................................................................................................................................... 25022.3. Block Diagram..........................................................................................................................25122.4. Signal Description.................................................................................................................... 25122.5. Product Dependencies.............................................................................................................25122.6. Functional Description..............................................................................................................25322.7. Register Summary....................................................................................................................25722.8. Register Description.................................................................................................................257
23. SUPC – Supply Controller.....................................................................................26823.1. Overview.................................................................................................................................. 26823.2. Features................................................................................................................................... 26823.3. Block Diagram..........................................................................................................................26923.4. Signal Description.................................................................................................................... 26923.5. Product Dependencies.............................................................................................................26923.6. Functional Description..............................................................................................................27123.7. Register Summary....................................................................................................................27923.8. Register Description.................................................................................................................280
24. WDT – Watchdog Timer........................................................................................ 29624.1. Overview.................................................................................................................................. 29624.2. Features................................................................................................................................... 29624.3. Block Diagram..........................................................................................................................29724.4. Signal Description.................................................................................................................... 29724.5. Product Dependencies.............................................................................................................29724.6. Functional Description..............................................................................................................29824.7. Register Summary....................................................................................................................30424.8. Register Description.................................................................................................................304
25. RTC – Real-Time Counter..................................................................................... 31125.1. Overview...................................................................................................................................31125.2. Features................................................................................................................................... 31125.3. Block Diagram.......................................................................................................................... 31125.4. Signal Description.................................................................................................................... 31225.5. Product Dependencies.............................................................................................................31225.6. Functional Description..............................................................................................................31425.7. Register Summary - COUNT32................................................................................................32025.8. Register Description - COUNT32.............................................................................................32125.9. Register Summary - COUNT16................................................................................................33225.10. Register Description - COUNT16.............................................................................................33325.11. Register Summary - CLOCK....................................................................................................34325.12. Register Description - CLOCK................................................................................................. 344
26. DMAC – Direct Memory Access Controller........................................................... 35626.1. Overview.................................................................................................................................. 35626.2. Features................................................................................................................................... 35626.3. Block Diagram..........................................................................................................................35826.4. Signal Description.................................................................................................................... 35826.5. Product Dependencies.............................................................................................................35826.6. Functional Description..............................................................................................................359
SMART ARM-based Microcontrollers
© 2017 Microchip Technology Inc. Datasheet Complete 60001477A-page 7
-
26.7. Register Summary....................................................................................................................37926.8. Register Description.................................................................................................................38026.9. Register Summary - LP SRAM.................................................................................................40626.10. Register Description - LP SRAM..............................................................................................406
27. EIC – External Interrupt Controller........................................................................ 41327.1. Overview.................................................................................................................................. 41327.2. Features................................................................................................................................... 41327.3. Block Diagram..........................................................................................................................41327.4. Signal Description.................................................................................................................... 41427.5. Product Dependencies.............................................................................................................41427.6. Functional Description..............................................................................................................41527.7. Register Summary....................................................................................................................42027.8. Register Description.................................................................................................................420
28. NVMCTRL – Non-Volatile Memory Controller....................................................... 43028.1. Overview.................................................................................................................................. 43028.2. Features................................................................................................................................... 43028.3. Block Diagram..........................................................................................................................43028.4. Signal Description.................................................................................................................... 43128.5. Product Dependencies.............................................................................................................43128.6. Functional Description..............................................................................................................43228.7. Register Summary....................................................................................................................43928.8. Register Description.................................................................................................................439
29. PORT - I/O Pin Controller......................................................................................44929.1. Overview.................................................................................................................................. 44929.2. Features................................................................................................................................... 44929.3. Block Diagram..........................................................................................................................45029.4. Signal Description.................................................................................................................... 45029.5. Product Dependencies.............................................................................................................45029.6. Functional Description..............................................................................................................45329.7. Register Summary....................................................................................................................45929.8. PORT Pin Groups and Register Repetition..............................................................................46129.9. Register Description.................................................................................................................461
30. EVSYS – Event System........................................................................................ 47830.1. Overview.................................................................................................................................. 47830.2. Features................................................................................................................................... 47830.3. Block Diagram..........................................................................................................................47830.4. Signal Description.................................................................................................................... 47930.5. Product Dependencies.............................................................................................................47930.6. Functional Description..............................................................................................................48030.7. Register Summary....................................................................................................................48430.8. Register Description.................................................................................................................485
31. SERCOM – Serial Communication Interface.........................................................50131.1. Overview.................................................................................................................................. 50131.2. Features................................................................................................................................... 501
SMART ARM-based Microcontrollers
© 2017 Microchip Technology Inc. Datasheet Complete 60001477A-page 8
-
31.3. Block Diagram..........................................................................................................................50231.4. Signal Description.................................................................................................................... 50231.5. Product Dependencies.............................................................................................................50231.6. Functional Description..............................................................................................................504
32. SERCOM USART – SERCOM Universal Synchronous and Asynchronous Receiverand Transmitter......................................................................................................51032.1. Overview.................................................................................................................................. 51032.2. USART Features...................................................................................................................... 51032.3. Block Diagram.......................................................................................................................... 51132.4. Signal Description.....................................................................................................................51132.5. Product Dependencies............................................................................................................. 51132.6. Functional Description..............................................................................................................51332.7. Register Summary....................................................................................................................52532.8. Register Description.................................................................................................................525
33. SERCOM SPI – SERCOM Serial Peripheral Interface..........................................54233.1. Overview.................................................................................................................................. 54233.2. Features................................................................................................................................... 54233.3. Block Diagram..........................................................................................................................54333.4. Signal Description.................................................................................................................... 54333.5. Product Dependencies.............................................................................................................54333.6. Functional Description..............................................................................................................54533.7. Register Summary....................................................................................................................55433.8. Register Description.................................................................................................................555
34. SERCOM I2C – SERCOM Inter-Integrated Circuit................................................ 56834.1. Overview.................................................................................................................................. 56834.2. Features................................................................................................................................... 56834.3. Block Diagram..........................................................................................................................56934.4. Signal Description.................................................................................................................... 56934.5. Product Dependencies.............................................................................................................56934.6. Functional Description..............................................................................................................57134.7. Register Summary - I2C Slave.................................................................................................58934.8. Register Description - I2C Slave...............................................................................................58934.9. Register Summary - I2C Master...............................................................................................60434.10. Register Description - I2C Master............................................................................................ 605
35. TC – Timer/Counter...............................................................................................62135.1. Overview.................................................................................................................................. 62135.2. Features................................................................................................................................... 62135.3. Block Diagram..........................................................................................................................62235.4. Signal Description.................................................................................................................... 62235.5. Product Dependencies.............................................................................................................62335.6. Functional Description..............................................................................................................62435.7. Register Description.................................................................................................................639
36. TCC – Timer/Counter for Control Applications...................................................... 691
SMART ARM-based Microcontrollers
© 2017 Microchip Technology Inc. Datasheet Complete 60001477A-page 9
-
36.1. Overview.................................................................................................................................. 69136.2. Features................................................................................................................................... 69136.3. Block Diagram..........................................................................................................................69236.4. Signal Description.................................................................................................................... 69236.5. Product Dependencies.............................................................................................................69336.6. Functional Description..............................................................................................................69436.7. Register Summary....................................................................................................................72836.8. Register Description.................................................................................................................730
37. TRNG – True Random Number Generator............................................................76637.1. Overview.................................................................................................................................. 76637.2. Features................................................................................................................................... 76637.3. Block Diagram..........................................................................................................................76637.4. Signal Description.................................................................................................................... 76637.5. Product Dependencies.............................................................................................................76637.6. Functional Description..............................................................................................................76737.7. Register Summary....................................................................................................................77037.8. Register Description.................................................................................................................770
38. AES – Advanced Encryption Standard..................................................................77438.1. Overview.................................................................................................................................. 77438.2. Features................................................................................................................................... 77438.3. Block Diagram..........................................................................................................................77538.4. Signal Description.................................................................................................................... 77638.5. Product Dependencies.............................................................................................................77638.6. Functional Description..............................................................................................................77738.7. Register Summary....................................................................................................................78638.8. Register Description.................................................................................................................788
39. USB – Universal Serial Bus...................................................................................80239.1. Overview.................................................................................................................................. 80239.2. Features................................................................................................................................... 80239.3. USB Block Diagram..................................................................................................................80339.4. Signal Description.................................................................................................................... 80339.5. Product Dependencies.............................................................................................................80339.6. Functional Description..............................................................................................................80539.7. Register Summary....................................................................................................................82339.8. Register Description.................................................................................................................827
40. CCL – Configurable Custom Logic........................................................................88040.1. Overview.................................................................................................................................. 88040.2. Features................................................................................................................................... 88040.3. Block Diagram..........................................................................................................................88140.4. Signal Description.................................................................................................................... 88140.5. Product Dependencies.............................................................................................................88140.6. Functional Description..............................................................................................................88340.7. Register Summary....................................................................................................................89340.8. Register Description.................................................................................................................893
SMART ARM-based Microcontrollers
© 2017 Microchip Technology Inc. Datasheet Complete 60001477A-page 10
-
41. OPAMP – Operational Amplifier Controller............................................................89741.1. Overview.................................................................................................................................. 89741.2. Features................................................................................................................................... 89741.3. Block Diagram..........................................................................................................................89841.4. Signal Description.................................................................................................................... 89841.5. Product Dependencies.............................................................................................................89941.6. Functional Description..............................................................................................................90041.7. Register Summary....................................................................................................................91241.8. Register Description.................................................................................................................912
42. ADC – Analog-to-Digital Converter........................................................................91842.1. Overview.................................................................................................................................. 91842.2. Features................................................................................................................................... 91842.3. Block Diagram..........................................................................................................................91942.4. Signal Description.................................................................................................................... 91942.5. Product Dependencies.............................................................................................................91942.6. Functional Description..............................................................................................................92142.7. Register Summary....................................................................................................................93442.8. Register Description.................................................................................................................935
43. AC – Analog Comparators.....................................................................................95343.1. Overview.................................................................................................................................. 95343.2. Features................................................................................................................................... 95343.3. Block Diagram..........................................................................................................................95443.4. Signal Description.................................................................................................................... 95443.5. Product Dependencies.............................................................................................................95443.6. Functional Description..............................................................................................................95643.7. Register Summary....................................................................................................................96543.8. Register Description.................................................................................................................965
44. DAC – Digital-to-Analog Converter........................................................................97844.1. Overview.................................................................................................................................. 97844.2. Features................................................................................................................................... 97844.3. Block Diagram..........................................................................................................................97844.4. Signal Description.................................................................................................................... 97944.5. Product Dependencies.............................................................................................................97944.6. Functional Description..............................................................................................................98144.7. Register Summary....................................................................................................................98944.8. Register Description.................................................................................................................989
45. PTC - Peripheral Touch Controller.......................................................................100345.1. Overview................................................................................................................................ 100345.2. Features................................................................................................................................. 100345.3. Block Diagram........................................................................................................................100445.4. Signal Description.................................................................................................................. 100445.5. Product Dependencies...........................................................................................................100445.6. Functional Description............................................................................................................1006
SMART ARM-based Microcontrollers
© 2017 Microchip Technology Inc. Datasheet Complete 60001477A-page 11
-
46. Electrical Characteristics..................................................................................... 100846.1. Disclaimer...............................................................................................................................100846.2. Absolute Maximum Ratings....................................................................................................100846.3. General Operating Ratings.....................................................................................................100846.4. Supply Characteristics............................................................................................................100946.5. Maximum Clock Frequencies.................................................................................................101046.6. Power Consumption............................................................................................................... 101146.7. Wake-Up Time........................................................................................................................101546.8. I/O Pin Characteristics............................................................................................................101646.9. Injection Current.....................................................................................................................101846.10. Analog Characteristics........................................................................................................... 101846.11. NVM Characteristics...............................................................................................................103446.12. Oscillators Characteristics......................................................................................................103546.13. Timing Characteristics............................................................................................................104246.14. USB Characteristics...............................................................................................................1046
47. Electrical Characteristics - Extended Temperature Range 105°C.......................104847.1. Disclaimer...............................................................................................................................104847.2. General Operating Ratings - 105°C....................................................................................... 104847.3. Power Consumption...............................................................................................................104847.4. I/O Pin Characteristics............................................................................................................105347.5. Injection Current - 105°C........................................................................................................105447.6. Analog Characteristics........................................................................................................... 105547.7. NVM Characteristics...............................................................................................................106547.8. Oscillators Characteristics......................................................................................................106647.9. Timing Characteristics............................................................................................................1073
48. Typical Characteristics.........................................................................................107748.1. Power Consumption over Temperature in Sleep Modes........................................................1077
49. Packaging Information.........................................................................................107949.1. Thermal Considerations......................................................................................................... 107949.2. Package Drawings................................................................................................................. 108049.3. Soldering Profile.....................................................................................................................1089
50. Schematic Checklist............................................................................................ 109050.1. Introduction.............................................................................................................................109050.2. Power Supply......................................................................................................................... 109050.3. External Analog Reference Connections............................................................................... 109350.4. External Reset Circuit.............................................................................................................109450.5. Unused or Unconnected Pins.................................................................................................109550.6. Clocks and Crystal Oscillators................................................................................................109550.7. Programming and Debug Ports..............................................................................................109850.8. USB Interface......................................................................................................................... 1102
51. Errata................................................................................................................... 110451.1. Die Revision A........................................................................................................................ 110451.2. Die Revision B........................................................................................................................ 1117
SMART ARM-based Microcontrollers
© 2017 Microchip Technology Inc. Datasheet Complete 60001477A-page 12
-
51.3. Die Revision C........................................................................................................................1123
52. Conventions.........................................................................................................112952.1. Numerical Notation................................................................................................................. 112952.2. Memory Size and Type...........................................................................................................112952.3. Frequency and Time...............................................................................................................112952.4. Registers and Bits.................................................................................................................. 1130
53. Acronyms and Abbreviations............................................................................... 1131
54. Datasheet Revision History................................................................................. 113454.1. Rev. A - 02/2017.....................................................................................................................113454.2. Rev J - 06/2016...................................................................................................................... 113654.3. Rev I - 02/2016....................................................................................................................... 113854.4. Rev H - 12/2015..................................................................................................................... 114054.5. Rev G - 11/2015......................................................................................................................114054.6. Rev F - 09/2015......................................................................................................................114354.7. Rev E - 07/2015......................................................................................................................114554.8. Rev D - 06/2015..................................................................................................................... 114654.9. Rev C - 03/2015..................................................................................................................... 114854.10. Rev B - 02/2015..................................................................................................................... 114954.11. Rev A - 01/2015......................................................................................................................1150
The Microchip Web Site.............................................................................................1151
Customer Change Notification Service......................................................................1151
Customer Support......................................................................................................1151
Product Identification System.................................................................................... 1152
Microchip Devices Code Protection Feature............................................................. 1152
Legal Notice...............................................................................................................1153
Trademarks................................................................................................................1153
Quality Management System Certified by DNV.........................................................1154
Worldwide Sales and Service.................................................................................... 1155
SMART ARM-based Microcontrollers
© 2017 Microchip Technology Inc. Datasheet Complete 60001477A-page 13
-
1. DescriptionAtmel® | 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 SAML21 devices operate at a maximum frequency of 48MHz and reach 2.46 CoreMark®/MHz. They aredesigned 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 productseries. All devices include intelligent and flexible peripherals, Atmel Event System for inter-peripheralsignaling, 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-channeldirect memory access (DMA) controller, 12-channel Event System, programmable interrupt controller, upto 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 frequencyand waveform generation, accurate program execution timing or input capture with time and frequencymeasurement of digital signals. The TCs can operate in 8- or 16-bit mode, selected TCs can be cascadedto form a 32-bit TC, and three timer/counters have extended functions optimized for motor, lighting andother control applications. Two TCC can operate in 24-bit mode, the third TCC can operate in 16-bitmode. The series provide one full-speed USB 2.0 embedded host and device interface; up to six SerialCommunication Modules (SERCOM) that each can be configured to act as an USART, UART, SPI, I2C upto 3.4MHz, SMBus, PMBus, and LIN slave; up to twenty channel 1MSPS 12-bit ADC with programmablegain and optional oversampling and decimation supporting up to 16-bit resolution, two 12-bit 1MSPSDACs, two analog comparators with window mode, three independent cascadable OPAMPs supportinginternal 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-onreset 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 asource for the system clock. Different clock domains can be independently configured to run at differentfrequencies, enabling power saving by running each peripheral at its optimal clock frequency, and thusmaintaining a high CPU frequency while reducing power consumption.
The SAM L21 devices have four software-selectable sleep modes, idle, standby, backup and off. In idlemode the CPU is stopped while all other functions can be kept running. In standby all clocks andfunctions are stopped except those selected to continue running. In this mode all RAMs and logiccontents are retained. The device supports SleepWalking. This feature allows the peripheral to wake upfrom sleep based on predefined conditions, and thus allows some internal operation like DMA transferand/or the CPU to wake up only when needed, e.g. when a threshold is crossed or a result is ready. TheEvent System supports synchronous and asynchronous events, allowing peripherals to receive, react toand send events even in standby mode.
The SAM L21 devices have two software-selectable performance levels (PL0 and PL2) allowing the userto scale the lowest core voltage level that will support the operating frequency. To further minimizeconsumption, specifically leakage dissipation, the SAM L21 devices utilizes power domain gatingtechnique with retention to turn off some logic area while keeping its logic state. This technique is fullyhandled by hardware.
The Flash program memory can be reprogrammed in-system through the SWD interface. The sameinterface can be used for nonintrusive on-chip debugging of application code. A boot loader running in thedevice can use any communication interface to download and upgrade the application program in theFlash memory.
SMART ARM-based Microcontrollers
© 2017 Microchip Technology Inc. Datasheet Complete 60001477A-page 14
-
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 evaluationkits.
SMART ARM-based Microcontrollers
© 2017 Microchip Technology Inc. Datasheet Complete 60001477A-page 15
-
2. Configuration SummarySAM L21J SAM L21G SAM L21E
Pins 64 48 32
General Purpose I/O-pins (GPIOs)
51 37 25
Flash 256/128/64KB 256/128/64KB 256/128/64/32KB
Flash RWW section 8/4/2KB 8/4/2KB 8/4/2/1KB
System SRAM 32/16/8KB 32/16/8KB 32/16/8/4KB
Low Power SRAM 8/8/4KB 8/8/4KB 8/8/4/2KB
Timer Counter (TC)instances(1)
5 3 3
Waveform outputchannels per TCinstance
2 2 2
Timer Counter forControl (TCC) instances
3 3 3
Waveform outputchannels per TCC
8/4/2 8/4/2 6/4/2
DMA channels 16 16 16
USB interface 1 1 1
AES engine 1 1 1
Configurable CustomLogic (CCL) (LUTs)
4 4 4
True Random Generator(TRNG)
1 1 1
Serial CommunicationInterface (SERCOM)instances
6 6 6
Analog-to-DigitalConverter (ADC)channels
20 14 10
Analog Comparators(AC)
2 2 2
Digital-to-AnalogConverter (DAC)channels
2 2 2
Operational Amplifier(OPAMP)
3 3 3
SMART ARM-based Microcontrollers
© 2017 Microchip Technology Inc. Datasheet Complete 60001477A-page 16
-
SAM L21J SAM L21G SAM L21E
Real-Time Counter(RTC)
Yes Yes Yes
RTC alarms 1 1 1
RTC compare values One 32-bit value or
two 16-bit values
One 32-bit value or
two 16-bit values
One 32-bit value or
two 16-bit values
External Interrupt lines 16 16 16
Peripheral TouchController (PTC)channels (X- x Y-Lines)for mutual capacitance (2)
169 (13x13) 81 (9x9) 42 (7x6)
Peripheral TouchController (PTC)channels for selfcapacitance (Y-Linesonly) (3)
16 10 7
Maximum CPUfrequency
48MHz
Packages QFN
TQFP
WLCSP(4)
QFN
TQFP
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)
16/12/8/4MHz high-accuracy internal oscillator (OSC16M)
48MHz Digital Frequency Locked Loop (DFLL48M)
96MHz Fractional Digital Phased Locked Loop (FDPLL96M)
Event System channels 12 12 12
SW Debug Interface Yes Yes Yes
Watchdog Timer (WDT) 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 theConfiguration Summary is the maximum number of channels that can be obtained.
SMART ARM-based Microcontrollers
© 2017 Microchip Technology Inc. Datasheet Complete 60001477A-page 17
-
3. The number of Y-lines depends on the configuration of the device, as some I/O lines can beconfigured as either X-lines or Y-lines. The number given here is the maximum number of Y-linesthat can be obtained.
4. WLCSP parts are programmed with a specific SPI bootloader. Refer to Application Note AT09002for details.
Related LinksMultiplexed Signals
SMART ARM-based Microcontrollers
© 2017 Microchip Technology Inc. Datasheet Complete 60001477A-page 18
-
3. Ordering Information
SAML 21 E 15 B - M U T
Product FamilySAML = Low Power ULP Microcontroller
21 = Cortex M0+ CPU, Advanced Feature Set
E = 32 Pins
T = Tape and Reel
U = -40 to 85°C Matte Sn PlatingN = -40 to 105°C Matte Sn Plating
A = TQFPM = QFNU = WLCSP
+ DMA + USB
Product Series
Flash Memory Density
Device VariantA = Engineering Samples OnlyB = Released to Production
Pin Count
Package Carrier
Package Grade
Package Type
18 = 256KB17 = 128KB16 = 64KB15 = 32KB
G = 48 PinsJ = 64 Pins
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 marksevolution of the die.
3.1 SAM L21JTable 3-1. SAM L21J Ordering Codes
Ordering Code FLASH(bytes)
SRAM(bytes)
Package Carrier Type
ATSAML21J16B-AUT 64K 8K -40°C to85°C
TQFP64 Tape & Reel
ATSAML21J16B-MUT QFN64
ATSAML21J16B-ANT -40°C to105°C
TQFP64
ATSAML21J16B-MNT QFN64
ATSAML21J17B-AUT 128K 16K -40°C to85°C
TQFP64 Tape & Reel
ATSAML21J17B-MUT QFN64
ATSAML21J17B-UUT WLCSP64
ATSAML21J17B-ANT -40°C to105°C
TQFP64
ATSAML21J17B-MNT QFN64
ATSAML21J18B-AUT 256K 32K -40°C to85°C
TQFP64 Tape & Reel
ATSAML21J18B-MUT QFN64
ATSAML21J18B-UUT WLCSP64
SMART ARM-based Microcontrollers
© 2017 Microchip Technology Inc. Datasheet Complete 60001477A-page 19
-
Ordering Code FLASH(bytes)
SRAM(bytes)
Package Carrier Type
ATSAML21J18B-ANT -40°C to105°C
TQFP64
ATSAML21J18B-MNT QFN64
3.2 SAM L21GTable 3-2. SAM L21G Ordering Codes
Ordering Code FLASH(bytes)
SRAM(bytes)
Package Carrier Type
ATSAML21G16B-AUT 64K 8K -40°C to85°C
TQFP48 Tape & Reel
ATSAML21G16B-MUT QFN48
ATSAML21G16B-ANT -40°C to105°C
TQFP48
ATSAML21G16B-MNT QFN48
ATSAML21G17B-AUT 128K 16K -40°C to85°C
TQFP48 Tape & Reel
ATSAML21G17B-MUT QFN48
ATSAML21G17B-ANT -40°C to105°C
TQFP48
ATSAML21G17B-MNT QFN48
ATSAML21G18B-AUT 256K 32K -40°C to85°C
TQFP48 Tape & Reel
ATSAML21G18B-MUT QFN48
ATSAML21G18B-ANT -40°C to105°C
TQFP48
ATSAML21G18B-MNT QFN48
3.3 SAM L21ETable 3-3. SAM L21E
Ordering Code FLASH(bytes)
SRAM(bytes)
TemperatureRange
Package Carrier Type
ATSAML21E15B-AUT 32K 4K -40°C to85°C
TQFP32 Tape & Reel
ATSAML21E15B-MUT QFN32
ATSAML21E15B-ANT -40°C to105°C
TQFP32
ATSAML21E15B-MNT QFN32
ATSAML21E16B-AUT 64K 8K -40°C to85°C
TQFP32 Tape & Reel
ATSAML21E16B-MUT QFN32
ATSAML21E16B-ANT -40°C to105°C
TQFP32
ATSAML21E16B-MNT QFN32
SMART ARM-based Microcontrollers
© 2017 Microchip Technology Inc. Datasheet Complete 60001477A-page 20
-
Ordering Code FLASH(bytes)
SRAM(bytes)
TemperatureRange
Package Carrier Type
ATSAML21E17B-AUT 128K 16K -40°C to85°C
TQFP32 Tape & Reel
ATSAML21E17B-MUT QFN32
ATSAML21E17B-ANT -40°C to105°C
TQFP32
ATSAML21E17B-MNT QFN32
ATSAML21E18B-AUT 256K 32K -40°C to85°C
TQFP32 Tape & Reel
ATSAML21E18B-MUT QFN32
ATSAML21E18B-ANT -40°C to105°C
TQFP32
ATSAML21E18B-MNT QFN32
3.4 Device IdentificationThe DSU - Device Service Unit peripheral provides the Device Selection bits in the Device Identificationregister (DID.DEVSEL) in order to identify the device by software. The SAM L21 variants have a resetvalue of DID=0x1081drxx, with the LSB identifying the die number ('d'), the die revision ('r') and thedevice 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
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
SMART ARM-based Microcontrollers
© 2017 Microchip Technology Inc. Datasheet Complete 60001477A-page 21
-
DEVSEL (DID[7:0]) Device
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 marksevolution of the die.
Related LinksDSU - Device Service UnitDID
SMART ARM-based Microcontrollers
© 2017 Microchip Technology Inc. Datasheet Complete 60001477A-page 22
-
4. Block Diagram
6 x SERCOM
8 x Timer Counter
REAL TIMECOUNTER
AHB-APBBRIDGE D
M
M
LOW POWERBUS MATRIX
POR
T
POR
TWATCHDOGTIMER
S
AHB-APBBRIDGE A
20-CHANNEL12-bit ADC 1MSPS
AIN[19..0]VREFA
AIN[3..0]
S
LP SRAMCONTROLLER
8/8/4/2KBRAM
4 x TIMER / COUNTER
S
5 x SERCOM
2 ANALOGCOMPARATORS
OSCILLATORS CONTROLLER
XOUTXIN
XOUT32XIN32
OSCULP32K
OSC32K
OSC16M
DFLL48M
XOSC32K
XOSC
X[15..0]
Y[15..0]
PERIPHERALTOUCH
CONTROLLER
AHB-APBBRIDGE E
VREFAVOUT[1..0]
12-bit DAC 1MSPS
EXTERNAL INTERRUPTCONTROLLER
MAIN CLOCKSCONTROLLER
PERIPHERALACCESS
CONTROLLER
EXTINT[15..0]NMI
GCLK_IO[7..0]
S
PAD0
WO1
PAD1PAD2PAD3
WO0
VREFB
DMA
3x TIMER / COUNTERFOR CONTROL WOn
FDPLL96M
DMA
DMA
DMA
DMA
DMA
S
WO0WO1
(2)
GENERIC CLOCKCONTROLLER
POWERMANAGER
RESETCONTROLLER
OSC32K CONTROLLER
SUPPLY CONTROLLER
VREFBOD33
VREG
AHB-APBBRIDGE C
SERCOM
PAD0PAD1PAD2PAD3
TIMER / COUNTER WO1WO0DMA
AESDMA
TRNGDMA
3 x OPAMP
OA_NEGOA_POSOA_OUT
4 x CCLIN[2..0]OUT
M
HIGH SPEEDBUS MATRIX
SERIALWIRESWDIO
S
CORTEX-M0+PROCESSORFmax 48 MHz
SWCLK
DEVICESERVICE
UNIT
S
SRAMCONTROLLER
32/16/8/4KBRAM
M
S
256/128/64/32KBNVM
NVMCONTROLLER
Cache
S
USB FSDEVICE
MINI-HOST
DP
DM
IOBUS
MEM
OR
YTR
ACE
BUFF
ER
S
SOF 1KHZM
AHB-APBBRIDGE B
S
Dual Channels
RESETEXTWAKEx
EVEN
T SY
STEM
EVEN
T
EVENT
EVEN
T
EVENT
EVENT
EVENT
EVENT
EVENT
EVENT
EVENTEVENT
Note: 1. Some products have different number of SERCOM instances, Timer/Counter instances, PTC
signals and ADC signals. Refer to Peripherals Configuration Summary for details.
SMART ARM-based Microcontrollers
© 2017 Microchip Technology Inc. Datasheet Complete 60001477A-page 23
-
2. The three TCC instances have different configurations, including the number of Waveform Output(WO) lines.
SMART ARM-based Microcontrollers
© 2017 Microchip Technology Inc. Datasheet Complete 60001477A-page 24
-
5. Pinout
5.1 SAM L21J
PA00 1PA01 2PA02 3PA03 4PB04 5PB05 6
GNDANA 7VDDANA 8
PB06 9PB07 10PB08 11PB09 12PA04 13PA05 14PA06 15PA07 16
PA08
17PA
0918
PA10
19PA
1120
VDD
IO21
GN
D22
PB10
23PB
11
24
PB12
25PB
1326
PB14
27PB
1528
PA12
29PA
1330
PA14
31PA
1532
VDDIO48GND47PA2546PA2445PA2344PA2243PA2142PA2041PB1740PB1639PA1938PA1837PA1736PA1635VDDIO34GND33
PB22
49PB
2350
PA27
51R
ESET
52
VSW
53G
ND
54VD
DC
OR
E
55VD
DIN
56PA
3057
PA31
58PB
3059
PB31
60PB
0061
PB01
62PB
0263
PB03
64
DIGITAL PINANALOG PINOSCILLATORGROUNDINPUT SUPPLY REGULATED INPUT/OUTPUT SUPPLYRESET PIN
SMART ARM-based Microcontrollers
© 2017 Microchip Technology Inc. Datasheet Complete 60001477A-page 25
-
5.2 SAM L21J WLCSP64
8 7 6 5 4 3 2 1
BC
DEFGHJKL
A
MNPQR
PB03PA03VDDANAPB08
PA01GNDANAPB07PA05
PB01PA02PB06PA04
PA00PA06PB09PA08
PB31PB04PA07PA09
PB30PB05PA10PA11
PA30PB00PB11GND
VDDINPB10 VDDIO PB02
GNDPA31PB12PB14
VSWPB17PB15PB13
VDDCOREPB23VDDIOPA13
PA27PA21GNDPA12RESETPA24PA19PA14
GNDPA23PA18PA15
PB22PA25PA20PA17
VDDIOPA22PB16PA16
REGULATED INPUT/OUPUT SUPPLY
SMART ARM-based Microcontrollers
© 2017 Microchip Technology Inc. Datasheet Complete 60001477A-page 26
-
5.3 SAM L21G
PA21
PA00 1PA01 2PA02 3PA03 4
GNDANA 5VDDANA 6
PB08 7PB09 8PA04 9PA05 10PA06 11PA07 12
PA08
13PA
0914
PA10
15PA
1116
VDD
IO17
GN
D18
PB10
19PB
1120
PA12
21PA
1322
PA14
23PA
1524
VDDIO36GND35PA2534PA2433PA2332PA2231
30PA2029PA1928PA1827PA1726PA1625
PB22
37PB
2338
PA27
39R
ESET
40
VSW
41G
ND
42VD
DC
OR
E
43VD
DIN
44PA
3045
PA31
46PB
0247
PB03
48
DIGITAL PINANALOG PINOSCILLATORGROUNDINPUT SUPPLYREGULATED INPUT/OUTPUT SUPPLYRESET PIN
SMART ARM-based Microcontrollers
© 2017 Microchip Technology Inc. Datasheet Complete 60001477A-page 27
-
5.4 SAM L21E
PA00 1PA01 2PA02 3PA03 4PA04 5PA05 6PA06 7PA07 8
VDD
ANA
9G
ND
10PA
0811
PA09
12PA
1013
PA11
14PA
1415
PA15
16
PA2524PA2423PA2322PA2221PA1920PA1819PA1718PA1617
PA27
25R
ESET
26
VSW
27G
ND
28VD
DC
OR
E
29VD
DIN
30PA
3031
PA31
32
DIGITAL PINANALOG PINOSCILLATORGROUNDINPUT SUPPLYREGULATED INPUT/OUTPUT SUPPLYRESET PIN
SMART ARM-based Microcontrollers
© 2017 Microchip Technology Inc. Datasheet Complete 60001477A-page 28
-
6. Signal Descriptions ListThe following table gives details on signal names classified by peripheral.
Table 6-1. Signal Descriptions List
Signal Name Function Type Active Level
Analog Comparators - AC
AIN[3:0] AC Analog Inputs Analog
CMP[1:0] AC Comparator Outputs Digital
Analog Digital Converter - ADC
AIN[19:0] ADC Analog Inputs Analog
VREFA ADC Voltage External ReferenceA
Analog
VREFB ADC Voltage External ReferenceB
Analog
Digital Analog Converter - DAC
VOUT[1:0] DAC Voltage output Analog
VREFA DAC Voltage External Reference Analog
Operational Amplifier - OPAMP
OANEG[2:0] OPAMP Analog Negative Inputs Analog
OAPOS[2:0] OPAMP Analog Positive Inputs Analog
OAOUT[2:0] OPAMP Analog outputs Analog
External Interrupt Controller - EIC
EXTINT[15:0] External Interrupts inputs Digital
NMI External Non-Maskable Interruptinput
Digital
Reset Controller - RSTC
EXTWAKE[7:0] External wake-up inputs Digital
Generic Clock Generator - GCLK
GCLK_IO[7:0] Generic Clock (source clockinputs or generic clock generatoroutput)
Digital
Custom Control Logic - CCL
IN[11:0] Logic Inputs Digital
OUT[3:0] Logic Outputs Digital
Supply Controller - SUPC
VBAT External battery supply Inputs Analog
SMART ARM-based Microcontrollers
© 2017 Microchip Technology Inc. Datasheet Complete 60001477A-page 29
-
Signal Name Function Type Active Level
PSOK Main Power Supply OK input Digital
OUT[1:0] Logic Outputs Digital
Power Manager - PM
RESETN Reset input Digital Low
Serial Communication Interface - SERCOMx
PAD[3:0] SERCOM Inputs/Outputs Pads Digital
Oscillators Control - OSCCTRL
XIN Crystal or external clock Input Analog/Digital
XOUT Crystal Output Analog
32KHz Oscillators Control - OSC32KCTRL
XIN32 32KHz Crystal or external clockInput
Analog/Digital
XOUT32 32KHz Crystal Output Analog
Timer Counter - TCx
WO[1:0] Waveform Outputs Digital
Timer Counter - TCCx
WO[7:0] Waveform Outputs Digital
Peripheral Touch Controller - PTC
X[15:0] PTC Input Analog
Y[15:0] PTC Input Analog
General Purpose I/O - PORT
PA25 - PA00 Parallel I/O Controller I/O Port A Digital
PA27 Parallel I/O Controller I/O Port A Digital
PA31 - PA30 Parallel I/O Controller I/O Port A Digital
PB17 - PB00 Parallel I/O Controller I/O Port B Digital
PB23 - PB22 Parallel I/O Controller I/O Port B Digital
PB31 - PB30 Parallel I/O Controller I/O Port B Digital
Universal Serial Bus - USB
DP DP for USB Digital
DM DM for USB Digital
SOF 1kHz USB Start of Frame Digital
SMART ARM-based Microcontrollers
© 2017 Microchip Technology Inc. Datasheet Complete 60001477A-page 30
-
7. I/O Multiplexing and Considerations
7.1 Multiplexed SignalsEach pin is by default controlled by the PORT as a general purpose I/O and alternatively it can beassigned to one of the peripheral functions A, B, C, D, E, F, G, H or I. To enable a peripheral function on apin, the Peripheral Multiplexer Enable bit in the Pin Configuration register corresponding to that pin(PINCFGn.PMUXEN, n = 0..31) in the PORT must be written to '1'. The selection of peripheral function Ato H is done by writing to the Peripheral Multiplexing Odd and Even bits in the Peripheral Multiplexingregister (PMUXn.PMUXE/O) in the PORT.
This table describes the peripheral signals multiplexed to the PORT I/O pins.
Table 7-1. PORT Function MultiplexingPin I/O
pinSupply A B(1)(2) C D E F G H I
SAML21E SAML21G SAML21J EIC/RSTC REF ADC AC PTC DAC OPAMP SERCOM (1)(2)
SERCOM-ALT
TC/TCC (3)
TCC COM AC/GCLK/SUPC
CCL
1 1 1 PA00 VSWOUT EXTINT[0]/EXTWAKE[0]
SERCOM1/PAD[0]
TCC2/WO[0]
2 2 2 PA01 VSWOUT EXTINT[1]/EXTWAKE[1]
SERCOM1/PAD[1]
TCC2/WO[1]
3 3 3 PA02(5)
VDDANA EXTINT[2]/EXTWAKE[2]
AIN[0] Y[0] VOUT[0] OA_NEG[0]
4 4 4 PA03 VDDANA EXTINT[3]/EXTWAKE[3]
VREFA AIN[1] Y[1]
5 PB04 VDDANA EXTINT[4] AIN[12] Y[10]
6 PB05 VDDANA EXTINT[5] AIN[13] Y[11] OA_NEG[1]
9 PB06 VDDANA EXTINT[6] AIN[14] Y[12] OA_NEG[2] CCL2IN[0]
10 PB07 VDDANA EXTINT[7] AIN[15] Y[13] CCL2IN[1]
7 11 PB08(5)
VDDANA EXTINT[8] AIN[2] OA_OUT[1] SERCOM4/PAD[0]
TC0/WO[0]
CCL2IN[2]
8 12 PB09 VDDANA EXTINT[9] AIN[3] Y[15] OA_POS[1] SERCOM4/PAD[1]
TC0/WO[1]
CCL2OUT
5 9 13 PA04(5)
VDDANA EXTINT[4]/EXTWAKE[4]
VREFB AIN[4] AIN[0] OA_OUT[2] SERCOM0/PAD[0]
TCC0/WO[0]
CCL0IN[0]
6 10 14 PA05(5)
VDDANA EXTINT[5]/EXTWAKE[5]
AIN[5] AIN[1] VOUT[1] OA_POS[2] SERCOM0/PAD[1]
TCC0/WO[1]
CCL0IN[1]
7 11 15 PA06 VDDANA EXTINT[6]/EXTWAKE[6]
AIN[6] AIN[2] Y[4] OA_POS[0] SERCOM0/PAD[2]
TCC1/WO[0]
CCL0IN[2]
8 12 16 PA07(5)
VDDANA EXTINT[7]/EXTWAKE[7]
AIN[7] AIN[3] OA_OUT[0] SERCOM0/PAD[3]
TCC1/WO[1]
CCL0OUT
11 13 17 PA08(5)
VDDIO(6) NMI AIN[16] X[0]
Y[6]
SERCOM0/PAD[0]
SERCOM2/PAD[0]
TCC0/WO[0]
TCC1/WO[2]
CCL1IN[0]
12 14 18 PA09 VDDIO(6) EXTINT[9] AIN[17] X[1]
Y[7]
SERCOM0/PAD[1]
SERCOM2/PAD[1]
TCC0/WO[1]
TCC1/WO[3]
CCL1IN[1]
13 15 19 PA10 VDDIO(6) EXTINT[10] AIN[18] X[2]
Y[8]
SERCOM0/PAD[2]
SERCOM2/PAD[2]
TCC1/WO[0]
TCC0/WO[2]
GCLK_IO[4] CCL1IN[2]
14 16 20 PA11 VDDIO(6) EXTINT[11] AIN[19] X[3]
Y[9]
SERCOM0/PAD[3]
SERCOM2/PAD[3]
TCC1/WO[1]
TCC0/WO[3]
GCLK_IO[5] CCL1OUT
19 23 PB10 VDDIO EXTINT[10] Y[2] SERCOM4/PAD[2]
TC1/WO[0]
TCC0/WO[4]
GCLK_IO[4] CCL1IN[2]
20 24 PB11 VDDIO EXTINT[11] Y[3] SERCOM4/PAD[3]
TC1/WO[1]
TCC0/WO[5]
GCLK_IO[5] CCL1OUT
25 PB12 VDDIO EXTINT[12] X[12]Y[5]
SERCOM4/PAD[0
TC0/WO[0]
TCC0/WO[6]
GCLK_IO[6]
26 PB13 VDDIO EXTINT[13] X[13]Y[14]
SERCOM4/PAD[1]
TC0/WO[1]
TCC0/WO[7]
GCLK_IO[7]
SMART ARM-based Microcontrollers
© 2017 Microchip Technology Inc. Datasheet Complete 60001477A-page 31
-
Pin I/Opin
Supply A B(1)(2) C D E F G H I
SAML21E SAML21G SAML21J EIC/RSTC REF ADC AC PTC DAC OPAMP SERCOM (1)(2)
SERCOM-ALT
TC/TCC (3)
TCC COM AC/GCLK/SUPC
CCL
27 PB14 VDDIO EXTINT[14] X[14] SERCOM4/PAD[2]
TC1/WO[0]
GCLK_IO[0] CCL3IN[0]
28 PB15 VDDIO EXTINT[15] X[15] SERCOM4/PAD[3]
TC1/WO[1]
GCLK_IO[1] CCL3IN[1]
21 29 PA12 VDDIO EXTINT[12] SERCOM2/PAD[0]
SERCOM4/PAD[0]
TCC2/WO[0]
TCC0/WO[6]
AC/CMP[0]
22 30 PA13 VDDIO EXTINT[13] SERCOM2/PAD[1]
SERCOM4/PAD[1]
TCC2/WO[1]
TCC0/WO[7]
AC/CMP[1]
15 23 31 PA14 VDDIO(6) EXTINT[14] SERCOM2/PAD[2]
SERCOM4/PAD[2]
TC4/WO[0]
TCC0/WO[4]
GCLK_IO[0]
16 24 32 PA15 VDDIO(6) EXTINT[15] SERCOM2/PAD[3]
SERCOM4/PAD[3]
TC4/WO[1]
TCC0/WO[5]
GCLK_IO[1]
17 25 35 PA16 VDDIO(6) EXTINT[0] X[4] SERCOM1/PAD[0]
SERCOM3/PAD[0]
TCC2/WO[0]
TCC0/WO[6]
GCLK_IO[2] CCL0IN[0]
18 26 36 PA17 VDDIO(6) EXTINT[1] X[5] SERCOM1/PAD[1]
SERCOM3/PAD[1]
TCC2/WO[1]
TCC0/WO[7]
GCLK_IO[3] CCL0IN[1]
19 27 37 PA18 VDDIO(6) EXTINT[2] X[6] SERCOM1/PAD[2]
SERCOM3/PAD[2]
TC4/WO[0]
TCC0/WO[2]
AC/CMP[0] CCL0IN[2]
20 28 38 PA19 VDDIO(6) EXTINT[3] X[7] SERCOM1/PAD[3]
SERCOM3/PAD[3]
TC4/WO[1]
TCC0/WO[3]
AC/CMP[1] CCL0OUT
39 PB16 VDDIO EXTINT[0] SERCOM5/PAD[0]