AT09886: SAM L22 Getting Started Guide. Introduction. Features. SMART ARM-based Microcontrollers APPLICATION NOTE

Similar documents
SMARTCARD XPRO. Preface. SMART ARM-based Microcontrollers USER GUIDE

USER GUIDE EDBG. Description

CryptoAuth Xplained Pro

APPLICATION NOTE. AT07175: SAM-BA Bootloader for SAM D21. Atmel SAM D21. Introduction. Features

QT1 Xplained Pro. Preface. Atmel QTouch USER GUIDE

AT88CK490 Evaluation Kit

How To Use An Atmel Atmel Avr32848 Demo For Android (32Bit) With A Microcontroller (32B) And An Android Accessory (32D) On A Microcontroller (32Gb) On An Android Phone Or

APPLICATION NOTE. Secure Personalization with Transport Key Authentication. ATSHA204A, ATECC108A, and ATECC508A. Introduction.

AVR1900: Getting started with ATxmega128A1 on STK bit Microcontrollers. Application Note. 1 Introduction

USER GUIDE. ZigBit USB Stick User Guide. Introduction

APPLICATION NOTE. Atmel AT04389: Connecting SAMD20E to the AT86RF233 Transceiver. Atmel SAMD20. Description. Features

APPLICATION NOTE. AT16268: JD Smart Cloud Based Smart Plug Getting. Started Guide ATSAMW25. Introduction. Features

AVR1510: Xplain training - XMEGA USART. 8-bit Microcontrollers. Application Note. Prerequisites. 1 Introduction

Atmel AVR4920: ASF - USB Device Stack - Compliance and Performance Figures. Atmel Microcontrollers. Application Note. Features.

SAM D21 Xplained Pro. Preface. SMART ARM-based Microcontrollers USER GUIDE

32-bit AVR UC3 Microcontrollers. 32-bit AtmelAVR Application Note. AVR32769: How to Compile the standalone AVR32 Software Framework in AVR32 Studio V2

AVR151: Setup and Use of the SPI. Introduction. Features. Atmel AVR 8-bit Microcontroller APPLICATION NOTE

AT91SAM ARM-based Flash MCU. Application Note

AVR115: Data Logging with Atmel File System on ATmega32U4. Microcontrollers. Application Note. 1 Introduction. Atmel

APPLICATION NOTE. AT12405: Low Power Sensor Design with PTC. Atmel MCU Integrated Touch. Introduction

AT15007: Differences between ATmega328/P and ATmega328PB. Introduction. Features. Atmel AVR 8-bit Microcontrollers APPLICATION NOTE

8-bit. Application Note. Microcontrollers. AVR282: USB Firmware Upgrade for AT90USB

Section 1 Introduction to the AT91SAMD20 and the Development Environment

AVR1922: Xplain Board Controller Firmware. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

APPLICATION NOTE. Atmel AVR134: Real Time Clock (RTC) Using the Asynchronous Timer. Atmel AVR 8-bit Microcontroller. Introduction.

Atmel AT32UC3A3256 microcontroller 64MBit SDRAM Analog input (to ADC) Temperature sensor RC filter

APPLICATION NOTE. Authentication Counting. Atmel CryptoAuthentication. Features. Introduction

APPLICATION NOTE. AT17284: Proximetry Cloud Based Smart Plug User Guide. SMART ARM-based Microcontrollers. Introduction. Features

Designing Feature-Rich User Interfaces for Home and Industrial Controllers

AT11805: Capacitive Touch Long Slider Design with PTC. Introduction. Features. Touch Solutions APPLICATION NOTE

SAM4L Xplained Pro. Preface. SMART ARM-based MCUs USER GUIDE

APPLICATION NOTE. Atmel AT02985: User s Guide for USB-CAN Demo on SAM4E-EK. Atmel AVR 32-bit Microcontroller. Features. Description.

Introducing a platform to facilitate reliable and highly productive embedded developments

Atmel AVR4921: ASF - USB Device Stack Differences between ASF V1 and V2. 8-bit Atmel Microcontrollers. Application Note. Features.

Atmel Power Line Communications. Solutions for the Smart Grid

SAM D20 Xplained Pro. Preface. SMART ARM-based Microcontrollers USER GUIDE

AVR033: Getting Started with the CodeVisionAVR C Compiler. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

APPLICATION NOTE Atmel AT02509: In House Unit with Bluetooth Low Energy Module Hardware User Guide 8-bit Atmel Microcontroller Features Description

DACC (Digital-to-Analog Converter Controller) The outline of this documentation is as follows: Module Overview. Special Considerations

Application Note. Atmel ATSHA204 Authentication Modes. Prerequisites. Overview. Introduction

AVR319: Using the USI module for SPI communication. 8-bit Microcontrollers. Application Note. Features. Introduction

AVR1318: Using the XMEGA built-in AES accelerator. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR106: C Functions for Reading and Writing to Flash Memory. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE

Two mechanical buttons Two user LEDs Four expansion headers. Board controller with USB interface. One power LED and one status LED

APPLICATION NOTE. Atmel LF-RFID Kits Overview. Atmel LF-RFID Kit. LF-RFID Kit Introduction

Atmel AVR4903: ASF - USB Device HID Mouse Application. Atmel Microcontrollers. Application Note. Features. 1 Introduction

General Porting Considerations. Memory EEPROM XRAM

SAM G55 Xplained Pro. Preface. SMART ARM-based Microcontrollers USER GUIDE

UM1680 User manual. Getting started with STM32F429 Discovery software development tools. Introduction

Application Note. 8-bit Microcontrollers. AVR270: USB Mouse Demonstration

Atmel SMART ARM Core-based Embedded Microprocessors

Using CryptoMemory in Full I 2 C Compliant Mode. Using CryptoMemory in Full I 2 C Compliant Mode AT88SC0104CA AT88SC0204CA AT88SC0404CA AT88SC0808CA

Atmel AVR ATxmega384C3 microcontroller OLED display with pixels resolution Analog sensors. Ambient light sensor Temperature sensor

AVR1309: Using the XMEGA SPI. 8-bit Microcontrollers. Application Note. Features. 1 Introduction SCK MOSI MISO SS

SAMA5D2. Scope. Reference Documents. Atmel SMART ARM-based MPU ERRATA

Application Note. 8-bit Microcontrollers. AVR272: USB CDC Demonstration UART to USB Bridge

AVR1321: Using the Atmel AVR XMEGA 32-bit Real Time Counter and Battery Backup System. 8-bit Microcontrollers. Application Note.

AT12181: ATWINC1500 Wi-Fi Network Controller - AP Provision Mode. Introduction. Features. Atmel SmartConnect APPLICATION NOTE

AVR030: Getting Started with IAR Embedded Workbench for Atmel AVR. 8-bit Microcontrollers. Application Note. Features.

Quick Start Guide. USB Packet Sniffer/Dongle for Kinetis MKW22D and MKW24D Wireless MCUs USB-KW24D512

How To Use Atmel'S Atmel Crypto Device For A Year On A Computer Or Cell Phone

AVR32138: How to optimize the ADC usage on AT32UC3A0/1, AT32UC3A3 and AT32UC3B0/1 series. 32-bit Microcontrollers. Application Note.

AVR32701: AVR32AP7 USB Performance. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR1301: Using the XMEGA DAC. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR317: Using the Master SPI Mode of the USART module. 8-bit Microcontrollers. Application Note. Features. Introduction

AVR131: Using the AVR s High-speed PWM. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE

APPLICATION NOTE. Atmel AT01095: Joystick Game Controller Reference Design. 8-/16-bit Atmel Microcontrollers. Features.

SKP16C62P Tutorial 1 Software Development Process using HEW. Renesas Technology America Inc.

UM1790 User manual. Getting started with STM32L053 discovery kit software development tools. Introduction

APPLICATION NOTE. Atmel AVR443: Sensor-based Control of Three Phase Brushless DC Motor. Atmel AVR 8-bit Microcontrollers. Features.

PC Base Adapter Daughter Card UART GPIO. Figure 1. ToolStick Development Platform Block Diagram

AN3252 Application note

UM1727 User manual. Getting started with STM32 Nucleo board software development tools. Introduction

AVR287: USB Host HID and Mass Storage Demonstration. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR305: Half Duplex Compact Software UART. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR315: Using the TWI Module as I2C Master. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE

AVR127: Understanding ADC Parameters. Introduction. Features. Atmel 8-bit and 32-bit Microcontrollers APPLICATION NOTE

AVR1600: Using the XMEGA Quadrature Decoder. 8-bit Microcontrollers. Application Note. Features. 1 Introduction. Sensors

UM0985 User manual. Developing your STM32VLDISCOVERY application using the IAR Embedded Workbench software. Introduction

AN3332 Application note

Spotlight Management Pack for SCOM

Software Prerequisites Linux Ubuntu LTS. Estimated completion time: 15min. The goal of this hands-on is to:

AN10866 LPC1700 secondary USB bootloader

Figure 1. 8-Bit USB Debug Adapter

AN LPC1700 timer triggered memory to GPIO data transfer. Document information. LPC1700, GPIO, DMA, Timer0, Sleep Mode

AN3354 Application note

How To Develop A Toolstick

ES_LPC4357/53/37/33. Errata sheet LPC4357/53/37/33. Document information

TWR-KV31F120M Sample Code Guide for IAR Board configuration, software, and development tools Rev.0

AVR311: Using the TWI Module as I2C Slave. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE

AN3265 Application note

AVR125: ADC of tinyavr in Single Ended Mode. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

Complete Integrated Development Platform Copyright Atmel Corporation

Dell Statistica. Statistica Document Management System (SDMS) Requirements

APPLICATION NOTE. AT05558: Wireless Manufacturing Test Kit. Atmel ATmega256RFR2. Description. Features

AT09333: USB Host Interface (UHI) for Communication Class Device (CDC) Introduction. Atmel Microcontrollers APPLICATION NOTE

AN4646 Application note

Dell Spotlight on Active Directory Server Health Wizard Configuration Guide

Application Note. Atmel CryptoAuthentication Product Uses. Atmel ATSHA204. Abstract. Overview

USER GUIDE. Atmel SAM4S Xplained Pro. Preface

Transcription:

SMART ARM-based Microcontrollers AT09886: SAM L22 Getting Started Guide APPLICATION NOTE Introduction This application note aims at helping the reader to get started with the Atmel SAM L22 ARM Cortex -M0+ based Ultra low-power segment LCD microcontroller. Atmel SMART SAM L22 is a series of Ultra low-power segment LCD microcontrollers using the 32-bit ARM Cortex-M0+ processor, ranging from 48- to 100-pins with up to 256KB Flash and 32KB of SRAM and to drive up to 320 LCD segments. The SAM L22 devices operate at a maximum frequency of 32MHz and reach 2.14 Coremark/ MHz. With sophisticated power management technologies the SAM L22 devices run below 50μA/MHz in active mode and below 600nA in ultra-low-power backup mode with RTC. SAM L22 is targeted for segment LCD and/or Battery powered applications, like sport watches, personal healthcare devices, thermostat with user interface, access control panels and metering (gas, water, energy metering, and basic smart meter) applications. Features Getting started with Atmel SAM L22 microcontrollers Getting started with Atmel SAM L22 tools (Atmel SAM L22 Xplained PRO, Atmel Software Framework 3.26.10 or later, and Atmel Studio 6.2 or later)

Table of Contents Introduction...1 Features... 1 1. Configuration Summary...3 2. Getting the Device Datasheet...4 3. Get the SAM L22 Xplained Pro Evaluation Kit...5 4. Get the Tools...7 4.1. Get Atmel Studio 6... 7 4.2. Get IAR Embedded Workbench for ARM...7 4.3. Get SAM L22 Xplained Pro Embedded Debugger Software (Segger J-Link)... 7 4.4. Get Atmel Software Framework (ASF)...7 4.5. Atmel Studio 6.2 Users Getting Started...7 5. What s Next?...11 6. Revision History...12 2

1. Configuration Summary Table 1-1 Comparison Between SAM L22, SAM L21, and SAM D21 on page 3 shows the difference between SAM L22, SAM L21, and SAM D21 features. For more details, refer to the datasheet of the respective products. Table 1-1 Comparison Between SAM L22, SAM L21, and SAM D21 Features SAM L22N SAM L22J SAM L22G SAM L21J SAM L21G SAM L21E SAM D21J SAM D21G SAM D21E Pins 100 64 48 64 48 32 64 48 32 GPIO(s) 82 50 36 51 37 25 52 26 26 Flash 256/128/64KB 256/128/64KB 256/128/64KB 256/128/64KB 256/128/64KB 256/128/64/32KB 256/128/64/32KB 256/128/64/32KB 256/128/64/32KB Flash RWW section 8/4/2KB 8/4/2KB 8/4/2KB 8/4/2KB 8/4/2KB 8/4/2/1KB 2KB/ 1KB in 32KB and 64KB Flash variants 2KB/ 1KB in 32KB and 64KB Flash variants 2KB/ 1KB in 32KB and 64KB Flash variants System SRAM 32/16/8KB 32/16/8KB 32/16/8KB 32/16/8KB 32/16/8KB 32/16/8/4KB 32/16/8/4KB 32/16/8/4KB 32/16/8/4KB Low Power SRAM - - - 8/8/4KB 8/8/4KB 8/8/4/2KB - - - Segment LCD (SLCD) Pins 48 31 23 - - - - - - Timer Counter (TC) 4 4 4 5 3 3 5 3 3 Timer Counter for Control (TCC) 1 1 1 3 3 3 3 3 3 DMA channels 16 16 16 16 16 16 12 12 12 USB interface 1 1 1 1 1 1 1 1 1 AES engine 1 1 1 1 1 1 - - - Configurable Custom Logic (CCL) (LUTs) True Random Generator (TRNG) 4 4 4 4 4 4 - - - 1 1 1 1 1 1 - - - SERCOM 6 4 3 6 6 4 6 6 4 ADC channels 20 16 10 20 14 10 20 14 10 Analog Comparators 2 2 2 2 2 2 2 2 2 DAC Channels - - - 2 2 2 1 1 1 Op-Amp - - - 3 3 3 - - - Tamper Input Pins 5 3 2 - - - RTC Yes Yes Yes Yes Yes Yes Yes Yes Yes RTC alarms 1 1 1 1 1 1 1 1 1 External Interrupt lines 16 16 16 16 16 16 16 16 16 PTC channels for mutual capacitance PTC channels for self capacitance Maximum CPU frequency 256 (16x16) 182 (13x14) 110 (10x11) 12x16 16x12 8x12 12x8 6x10 10x6 16x16 12x10 10x6 24 19 13 16 12 10 16 16 6 32MHz 32MHz 32MHz 48MHz 48MHz 48MHz 48MHz 48MHz 48MHz Packages TQFP QFN TQFP QFN TQFP QFN TQFP QFN TQFP QFN TQFP QFN TQFP QFN TQFP QFN TQFP Event System channels 8 8 8 12 12 12 12 12 12 SW Debug Interface Yes Yes Yes Yes Yes Yes Yes Yes Yes WDT Yes Yes Yes Yes Yes Yes Yes Yes Yes 3

2. Getting the Device Datasheet Web page: http://www.atmel.com/products/microcontrollers/arm/sam-l.aspx?tab=documents Document: Atmel SAM L22 Datasheet (summary, complete) (.pdf) Select the latest datasheet (.pdf file). There are two versions: Complete version (includes all peripheral descriptions and electrical characteristics) Summary version (includes Ordering Information, pinout and Packaging Information) 4

3. Get the SAM L22 Xplained Pro Evaluation Kit Web page: http://www.atmel.com/products/microcontrollers/arm/sam-l.aspx?tab=tools Get the kit: http://store.atmel.com Figure 3-1 SAML22 Xplained Pro Picture Document: SAM L22 Xplained Pro User Guide application note (.pdf) available in http://www.atmel.com/tools/ ATSAML22-XPRO.aspx?tab=documents 5

Key features: ATSAML22N18A microcontroller One mechanical reset button One user button (wake-up, bootloader entry or general purpose) One Yellow user LED (LED0) USB Device interface function One QTouch Button Segment LCD connector with additional lines for touch ATAES132 Crypto Authentication 32.768kHz crystal Standard Cortex Debug connector 3 Xplained Pro extension headers (EXT1, EXT2, and EXT3) USB powered Supported with application examples in Atmel Software Framework Embedded Debugger Auto ID for board identification in Atmel Studio 6.2 Programming/debugging of target via SWD Data gateway interface to target (SPI & TWI) Four GPIOs connected to target One yellow EDBG status LED One green board power LED (controlled by EDBG) Virtual COM-port interface via UART Embedded current measurement circuitry, with Atmel Data Visualizer support for data visualization Arduino extension footprint The SAM L22 Xplained Pro User Guide application note covers how to power the kit, the detailed information of the on board components, extension interface and the hardware guide. 6

4. Get the Tools Atmel Studio 6.2 is the preferred IDE to get started with the SAM L22 device and GCC compiler. Atmel Software Framework (ASF) provides SAM L22 peripheral drivers and example projects. IAR compiler is supported as well. 4.1. Get Atmel Studio 6 Web page: www.atmel.com/atmelstudio Document/ file: Atmel Studio 6.2 installer (.exe) Atmel Studio 6.2 is the IDE for developing and debugging firmware for the SAM L22 microcontroller. 4.2. Get IAR Embedded Workbench for ARM Web page: http://www.iar.com/en/products/iar-embedded-workbench/arm/ Document/file: IAR installer for ARM 4.3. Get SAM L22 Xplained Pro Embedded Debugger Software (Segger J-Link) Web page: http://www.segger.com/jlink-software.html Document/file: J-Link software This software is required to program/debug the SAM L22 Xplained Pro embedded debugger with IAR IDE. 4.4. Get Atmel Software Framework (ASF) Web page: www.atmel.com/asf Document/file: ASF update for Atmel Studio (.vsix) from ASF web page ASF update through Atmel Gallery https://gallery.atmel.com/ for version 3.26.10 and above ASF update through Tools>Extension Manager from Atmel Studio ASF standalone package for GCC makefile and IAR users ASF: Getting started (.pdf) ASF: Reference Manual (.pdf) ASF online documentation for available API and examples can be found at http://asf.atmel.com 4.5. Atmel Studio 6.2 Users Getting Started Prerequisites: 7

Atmel Studio 6.2 SP2 or above installed ASF version 3.26.10 or above installed SAM L22 Xplained Pro board connected to PC through embedded debugger USB connector. The kit is powered through USB. Getting started with Atmel Studio 6.2, ASF, and SAM L22 Xplained Pro: Launch Atmel Studio 6.2 Connect the SAM L22 Xplained Pro board to the PC using a USB cable A page on SAM L22 Xplained Pro description will open in Atmel Studio This page contains external link to Device Technical Documentation, Datasheet, Kit user guide, and Kit specific details like serial number and target name. Also, there will be an option to open ASF example projects. To open ASF examples, click File-> New -> then Example Project. Figure 4-1 Creating New Example Project in Atmel Studio Select Getting started application-sam L22 Xplained Pro as shown in Figure 4-2 SAML22 Getting started Project Selection on page 9, press OK and accept the license agreement. Then the project will be created and opened 8

Figure 4-2 SAML22 Getting started Project Selection Open project properties (Project -> Properties or shortcut Alt+f7) In Tool view, set Select debugger/programmer to XPRO-EDBG and interface to SWD as shown in Figure 4-3 SAML22 Atmel Studio Tools Configuration on page 9 Figure 4-3 SAML22 Atmel Studio Tools Configuration Build the project: Build -> Build solution or shortcut F7 9

To load the code in the SAM L22 Xplained Pro and debug, select Debug -> Start debugging and break (shortcut Alt + F5) The application is programmed and the debugger breaks in main To run the code, select Debug -> Continue (shortcut F5) On the computer, open and configure a terminal application (e.g. HyperTerminal on Microsoft Windows or Terminal application is available as an addon to Atmel Studio) with these settings: 38400 bauds 8 bits of data No parity 1 stop bit No flow control Start the application The LED should start blinking on the board. In the terminal window, the following text should appear (values depend on the board and chip used): \code Getting Started Example xxx -- xxxxxx-xx Compiled: xxx xx xxxx xx:xx:xx -- \endcode Figure 4-4 SAML22 Getting Started Terminal Output Pressing and release button SW0 should make LED0 on and off blinking. 10

5. What s Next?. Atmel Studio videos: www.atmel.com/atmelstudio Atmel Studio help: Help -> View Help (Ctrl+F1) ASF Getting Started: www.atmel.com/asf ASF online documentation: http://asf.atmel.com/docs/latest/ ASF Reference manual: http://www.atmel.com/tools/avrsoftwareframework.aspx? tab=documents Technical Documentation for various products: www.atmel.no/webdoc Technical Support: http://www.atmel.com/design-support/ 11

6. Revision History Doc Rev. Date Comments 42494A 08/2015 Initial document release. 12

Atmel Corporation 1600 Technology Drive, San Jose, CA 95110 USA T: (+1)(408) 441.0311 F: (+1)(408) 436.4200 www.atmel.com 2015 Atmel Corporation. / Rev.: Atmel, Atmel logo and combinations thereof, Enabling Unlimited Possibilities, AVR, QTouch, and others are registered trademarks or trademarks of Atmel Corporation in U.S. and other countries. ARM, ARM Connected logo and others are the registered trademarks or trademarks of ARM Ltd. Windows is a registered trademark of Microsoft Corporation in U.S. and or other countries. Other terms and product names may be trademarks of others. DISCLAIMER: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN THE ATMEL TERMS AND CONDITIONS OF SALES LOCATED ON THE ATMEL WEBSITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS AND PROFITS, BUSINESS INTERRUPTION, OR LOSS OF INFORMATION) ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Atmel makes no representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to make changes to specifications and products descriptions at any time without notice. Atmel does not make any commitment to update the information contained herein. Unless specifically provided otherwise, Atmel products are not suitable for, and shall not be used in, automotive applications. Atmel products are not intended, authorized, or warranted for use as components in applications intended to support or sustain life. SAFETY-CRITICAL, MILITARY, AND AUTOMOTIVE APPLICATIONS DISCLAIMER: Atmel products are not designed for and will not be used in connection with any applications where the failure of such products would reasonably be expected to result in significant personal injury or death ( Safety-Critical Applications ) without an Atmel officer's specific written consent. Safety-Critical Applications include, without limitation, life support devices and systems, equipment or systems for the operation of nuclear facilities and weapons systems. Atmel products are not designed nor intended for use in military or aerospace applications or environments unless specifically designated by Atmel as military-grade. Atmel products are not designed nor intended for use in automotive applications unless specifically designated by Atmel as automotive-grade.