Advertisement

Quick Links

SMART ARM-based Microcontrollers
SAM L22 Xplained Pro
USER GUIDE

Preface

®
The Atmel
SAM L22 Xplained Pro evaluation kit is a hardware platform to
evaluate the ATSAML22N18A microcontroller.
Supported by the Atmel Studio integrated development platform, the kit
provides easy access to the features of the Atmel ATSAML22N18A and
explains how to integrate the device in a custom design.
The Xplained Pro MCU series evaluation kits include an on-board
Embedded Debugger, and no external tools are necessary to program or
debug the ATSAML22N18A.
The Xplained Pro extension kits offers additional peripherals to extend the
features of the board and ease the development of custom designs.
Atmel-42474B-SAM-L22-Xplained-Pro_User Guide-12/2015

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SAM L22 Xplained Pro and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Atmel SAM L22 Xplained Pro

  • Page 1: Preface

    Preface ® The Atmel SAM L22 Xplained Pro evaluation kit is a hardware platform to evaluate the ATSAML22N18A microcontroller. Supported by the Atmel Studio integrated development platform, the kit provides easy access to the features of the Atmel ATSAML22N18A and explains how to integrate the device in a custom design.
  • Page 2: Table Of Contents

    QTouch Button......................25 4.3.5. Backup Super Capacitor....................25 4.3.6. Crypto Device......................26 4.3.7. Tamper Detection......................26 4.4. Embedded Debugger Implementation..................27 4.4.1. Serial Wire Debug......................27 4.4.2. Virtual COM Port......................27 4.4.3. Atmel Data Gateway Interface..................27 Atmel SAM L22 Xplained Pro [USER GUIDE] Atmel-42474B-SAM-L22-Xplained-Pro_User Guide-12/2015...
  • Page 3 Identifying Product ID and Revision................... 40 6.2. Revision 4...........................40 6.3. Revision 2...........................40 6.3.1. Pin-out Changes......................41 6.3.2. CryptoAuthentication Device..................41 6.3.3. Assembly Drawings..................... 41 7. Document Revision History..................44 8. Evaluation Board/kit Important Notice..............45 Atmel SAM L22 Xplained Pro [USER GUIDE] Atmel-42474B-SAM-L22-Xplained-Pro_User Guide-12/2015...
  • Page 4: Introduction

    Supported with application examples in Atmel Software Framework 1.2. Kit Overview The Atmel SAM L22 Xplained Pro evaluation kit is a hardware platform to evaluate the Atmel ATSAML22N18A. The kit offers a set of features that enables the ATSAML22N18A user to get started with the SAM L peripherals right away and to get an understanding of how to integrate the device in their own design.
  • Page 5 Figure 1-1. SAM L22 Xplained Pro Evaluation Kit Overview Atmel SAM L22 Xplained Pro [USER GUIDE] Atmel-42474B-SAM-L22-Xplained-Pro_User Guide-12/2015...
  • Page 6: Getting Started

    , Windows 7, and Windows 8. Once the Xplained Pro MCU board is powered the green power LED will be lit and Atmel Studio will auto detect which Xplained Pro MCU- and extension board(s) are connected. Atmel Studio will present relevant information like datasheets and kit documentation.
  • Page 7 • Design Documentation - Package containing CAD source, schematics, BOM, assembly drawings, 3D plots, layer plots etc. • Hardware Users Guide in PDF format - PDF version of this User Guide. Atmel SAM L22 Xplained Pro [USER GUIDE] Atmel-42474B-SAM-L22-Xplained-Pro_User Guide-12/2015...
  • Page 8: Xplained Pro

    Atmel Data Visualizer is used to send and receive data through DGI. The EDBG controls two LEDs on SAM L22 Xplained Pro; a power LED and a status LED. The table below shows how the LEDs are controlled in different operation modes.
  • Page 9: Xplained Pro Analog Module (Xam)

    C: This is used to control and configure the XAM • SPI: Current measurement data is streamed to the EDBG via this interface. This is a one-way data transfer channel from the XAM to the EDBG Atmel SAM L22 Xplained Pro [USER GUIDE] Atmel-42474B-SAM-L22-Xplained-Pro_User Guide-12/2015...
  • Page 10: Sample Rate

    When an Xplained Pro extension is connected to an Xplained Pro MCU board the information is read and sent to Atmel Studio. The Atmel Kits extension, installed with Atmel Studio, will give relevant information, code examples, and links to relevant documents. The table below shows the data fields stored in the ID chip with example content.
  • Page 11: Power Sources

    Maximum Current [mA] uint16_t 3.4. Power Sources The SAM L22 Xplained Pro kit can be powered by several power sources as listed in the table below. Table 3-3. Power Sources for SAM L22 Xplained Pro Power input Voltage requirements Current requirements...
  • Page 12: Xplained Pro Headers And Connectors

    SPI_MISO Master in slave out line of serial peripheral interface. Always implemented, bus type. SPI_SCK Clock for serial peripheral interface. Always implemented, bus type. Ground Power for extension board Atmel SAM L22 Xplained Pro [USER GUIDE] Atmel-42474B-SAM-L22-Xplained-Pro_User Guide-12/2015...
  • Page 13: Xplained Pro Segment Lcd Connector

    SEG32 / QT_X2 SEG33 / QT_Y2 Segment 33 / QTouch X-line 2 QTouch Y-line 2 Segment 34 / SEG34 / QT_X1 SEG35 / QT_Y1 Segment 35 / QTouch X-line 1 QTouch Y-line 1 Atmel SAM L22 Xplained Pro [USER GUIDE] Atmel-42474B-SAM-L22-Xplained-Pro_User Guide-12/2015...
  • Page 14: Xplained Pro Power Header

    Xplained Pro Power Header The power header can be used to connect external power to the SAM L22 Xplained Pro kit. The kit will automatically detect and switch to any external power if supplied. The power header can also be used as supply for external peripherals or extension boards.
  • Page 15: Hardware User Guide

    4.1. Power Distribution SAM L22 Xplained Pro has three power sources; EDBG USB, Target USB, and/or external 5.0V. The kit will automatically select a source to draw power from. The kit has two on-board 3.3V voltage regulators, one for the EDBG and XAM and one for the ATSAML22N18A and other peripherals.
  • Page 16: Xplained Pro Standard Extension Headers

    Xplained Pro Standard Extension Headers The SAM L22 Xplained Pro headers EXT1, EXT2, and EXT3 offer access to the I/O of the microcontroller in order to expand the board, e.g. by connecting extensions to the board. These headers are based on the standard extension header specified in the table below.
  • Page 17 Communication line to the ID chip on an extension board 2 [GND] Ground 3 [ADC(+)] PA04 AIN[4] Shield 4 [ADC(-)] PA05 AIN[5] Shield 5 [GPIO1] PB04 GPIO EDBG GPIO0, SLCD, and Atmel SAM L22 Xplained Pro [USER GUIDE] Atmel-42474B-SAM-L22-Xplained-Pro_User Guide-12/2015...
  • Page 18 SLCD 5 [GPIO1] PC16 GPIO SLCD 6 [GPIO2] PC17 GPIO SLCD 7 [PWM(+)] PB16 TC2/WO[0] SLCD 8 [PWM(-)] PB17 TC2/WO[1] SLCD 9 [IRQ/GPIO] PB18 IRQ2/GPIO SLCD 10 [SPI_SS_B/GPIO] PB19 GPIO SLCD Atmel SAM L22 Xplained Pro [USER GUIDE] Atmel-42474B-SAM-L22-Xplained-Pro_User Guide-12/2015...
  • Page 19: Segment Lcd Connector

    4.2.2. Segment LCD Connector Extension connector EXT5 is a special connector for segment LCD displays. SAM L22 Xplained Pro implements one segment LCD extension connector for Xplained Pro extensions and supports up to eight COM, twenty seven SEG and six touch signals. The connector has a standardized pin-out as shown in the table below.
  • Page 20 PB06 PTC/XY[12] QTBTN1 QT_X1] 40 [SEG35/ PB05 PTC/XY[11] EDBG GPIO1, EXT2, and QT_Y1] 41 [SEG36/ PC28 PTC/XY[20] EXT2 QT_X0] 42 [SEG37/ PA27 PTC/XY[21] EXT2 QT_Y0] 43 [COM4] PC07 SLCD/ LP[10] Shield Atmel SAM L22 Xplained Pro [USER GUIDE] Atmel-42474B-SAM-L22-Xplained-Pro_User Guide-12/2015...
  • Page 21: Arduino Connector Footprint

    Xplained Pro ID Communication line to ID chip on extension board 51 [GND] 4.2.3. Arduino Connector Footprint SAM L22 Xplained Pro implements Arduino shield connectors footprints based on the Arduino Uno. All references to Arduino pin names are taken from the official Arduino schematics of the Arduino Uno.
  • Page 22 GPIO SLCD PC12 D11 / SPI-MOSI SERCOM1 PAD[0] SPI SLCD Shield MOSI PC11 D12 / SPI-MISO SERCOM1 PAD[3] SPI SLCD Shield MISO PC13 D13 / SPI-SCK SERCOM1 PAD[1] SPI SLCD Shield Atmel SAM L22 Xplained Pro [USER GUIDE] Atmel-42474B-SAM-L22-Xplained-Pro_User Guide-12/2015...
  • Page 23: Usb

    Cortex Debug 4.2.4. The SAM L22 Xplained Pro has a Micro-USB connector for use with the SAM L22 USB module labeled as TARGET USB on the kit. To be able to detect when a target USB cable is connected in self-powered mode, a GPIO is used to detect the VBUS voltage on the connector.
  • Page 24: Current Measurement Header

    Crystal The SAM L22 Xplained Pro kit contains a 32.768kHz crystal that can be used as clock source for the SAM L22 device. The crystal has a cut-strap next to it that can be used to measure the oscillator safety factor.
  • Page 25: Led

    EXT2, Shield, and EDBG GPIO3 4.3.3. There is one yellow LED available on the SAM L22 Xplained Pro board that can be turned ON and OFF. The LED can be activated by driving the connected I/O line to GND. Table 4-14. LED Connection...
  • Page 26: Crypto Device

    Several of the Atmel security devices require only an I C interface to work, and they share the same packages and pin-outs. SAM L22 Xplained Pro implements a DFN8 footprint for these devices so the user may test the mounted ATECC508A device or solder in other CryptoAuthentication devices.
  • Page 27: Embedded Debugger Implementation

    4.4. Embedded Debugger Implementation SAM L22 Xplained Pro contain an Embedded Debugger (EDBG) that can be used to program and debug the ATSAML22N18A using Serial Wire Debug (SWD). The Embedded Debugger also include a Virtual Com port interface over UART, an Atmel Data Gateway Interface over SPI, and I C and it includes four of the SAM L22 GPIOs.
  • Page 28: Xam Configuration

    4.4.4. XAM Configuration On the SAM L22 Xplained Pro the MCU and the MCU peripherals (e.g. extensions) are powered by its own regulator as shown in the figure below. All other parts of the board, mainly embedded debugger and accompanying Xplained Pro Analog Module (XAM), are powered from a separate regulator. The current to the MCU and peripherals can be measured by connecting them to the XAM output through jumper settings.
  • Page 29: Kit Modifications

    4.5. Kit Modifications SAM L22 Xplained Pro has several resistors that can be used to disconnect I/O pins of the ATSAML22N18A from connectors and on-board ICs and to disconnect power signals. Atmel SAM L22 Xplained Pro [USER GUIDE] Atmel-42474B-SAM-L22-Xplained-Pro_User Guide-12/2015...
  • Page 30 EDBG SS PB25 SPI SS R427 TARGET RESET TARGET_MCU_RES Reset sense signal to EDBG, SENSE used to detect external resets R900 TARGET MCU RESET UNO ATSAML22N18A reset signal to RESET Arduino connectors Atmel SAM L22 Xplained Pro [USER GUIDE] Atmel-42474B-SAM-L22-Xplained-Pro_User Guide-12/2015...
  • Page 31 Figure 4-4. Assembly Drawing Top Atmel SAM L22 Xplained Pro [USER GUIDE] Atmel-42474B-SAM-L22-Xplained-Pro_User Guide-12/2015...
  • Page 32 Figure 4-5. Assembly Drawing Bottom Atmel SAM L22 Xplained Pro [USER GUIDE] Atmel-42474B-SAM-L22-Xplained-Pro_User Guide-12/2015...
  • Page 33: Operation At Other Voltages

    Operation at Other Voltages The SAM L22 Xplained Pro board is operated at 3.3V by default, but it also has the possibility of running at lower voltages from an external supply. The EDBG is designed to run from a 3.3V supply and won't work on other voltages, therefore all connections from the EDBG and the on board 3.3V regulator to the...
  • Page 34 Figure 4-7. SAM L22 Xplained Pro Current Measurement Headers Related Links Xplained Pro Power Header on page 14 Cortex Debug Connector on page 23 Connectors on page 15 Atmel SAM L22 Xplained Pro [USER GUIDE] Atmel-42474B-SAM-L22-Xplained-Pro_User Guide-12/2015...
  • Page 35: Appendix

    Select System (default) as the reset method. In the category Debugger > CMSIS DAP, select the JTAG/SWD tab. Select SWD as the interface and optionally select the SWD speed. Figure 5-1. Select Target Device Atmel SAM L22 Xplained Pro [USER GUIDE] Atmel-42474B-SAM-L22-Xplained-Pro_User Guide-12/2015...
  • Page 36 Figure 5-2. Select Debugger Figure 5-3. Configure Flash Loader Atmel SAM L22 Xplained Pro [USER GUIDE] Atmel-42474B-SAM-L22-Xplained-Pro_User Guide-12/2015...
  • Page 37 Figure 5-4. Configure Reset Figure 5-5. Configure Interface Atmel SAM L22 Xplained Pro [USER GUIDE] Atmel-42474B-SAM-L22-Xplained-Pro_User Guide-12/2015...
  • Page 38: Connecting A Sam-Ice To An Xplained Pro Board

    Cortex Debug Connector. You can connect the SAM-ICE to the debug connector on an Xplained Pro using either an Atmel-ICE adapter, SAM-ICE adapter, or a 10-pin 50-mil header to squid cable. When using a squid cable, see the table and figures below for how to connect the SAM-ICE to the Xplained Pro board.
  • Page 39 USB. Physically removing the connection between the EDBG and the debug header by removing 0Ω resistors, where available, or cutting the tracks to the EDBG can also be done. Atmel SAM L22 Xplained Pro [USER GUIDE] Atmel-42474B-SAM-L22-Xplained-Pro_User Guide-12/2015...
  • Page 40: Hardware Revision History And Known Issues

    6.1. Identifying Product ID and Revision The revision and product identifier of Xplained Pro boards can be found in two ways; either through Atmel Studio or by looking at the sticker on the bottom side of the PCB. By connecting an Xplained Pro MCU board to a computer with Atmel Studio running, an information window will pop up.
  • Page 41: Pin-Out Changes

    SERCOM5 PAD[1] I²C SCL EXT1, EXT2, EXT3, Shield, and EDBG I²C 7 [NC] 8 [VCC] VCC_TARGET_P3V3 6.3.3. Assembly Drawings Assembly drawings for kit modifications on revision 2 of SAM L22 Xplained Pro. Atmel SAM L22 Xplained Pro [USER GUIDE] Atmel-42474B-SAM-L22-Xplained-Pro_User Guide-12/2015...
  • Page 42 Figure 6-1. Revision 2 Assembly Drawing Top Atmel SAM L22 Xplained Pro [USER GUIDE] Atmel-42474B-SAM-L22-Xplained-Pro_User Guide-12/2015...
  • Page 43 Figure 6-2. Revision 2 Assembly Drawing Bottom Atmel SAM L22 Xplained Pro [USER GUIDE] Atmel-42474B-SAM-L22-Xplained-Pro_User Guide-12/2015...
  • Page 44: Document Revision History

    Document Revision History Doc. rev. Date Comment 42474B 12/2015 Bug fix on hardware. See Hardware Revision History and Known Issues on page 40 for changes. 42474A 08/2015 Initial document release. Atmel SAM L22 Xplained Pro [USER GUIDE] Atmel-42474B-SAM-L22-Xplained-Pro_User Guide-12/2015...
  • Page 45: Evaluation Board/Kit Important Notice

    (WEEE), FCC, CE or UL (except as may be otherwise noted on the board/kit). Atmel supplied this board/kit "AS IS," without any warranties, with all faults, at the buyer's and further users' sole risk. The user assumes all responsibility and liability for proper and safe handling of the goods.
  • Page 46 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...
  • Page 47 Mouser Electronics Authorized Distributor Click to View Pricing, Inventory, Delivery & Lifecycle Information: Microchip ATSAML22-XPRO ATSAML22-XPRO-B...

Table of Contents