Atmel SAM R21 ARM Cortex-M0+based IEEE 802.15.4 Wireless MCUs The Atmel® SAM R21 series of low-power microcontrollers combines Key Benefits the 32-bit ARM® Cortex®-M0+ High performance These devices are available in 32- and • • • • • 48-pin packages with up to 256KB Low power processor and an integrated ultra-low power 2.4GHz ISM band transceiver. Flash, and 32KB of SRAM. They deliver a maximum operating frequency of 48MHz and reach 2.14 CoreMark/ MHz. SAM R21 devices are designed for simple and intuitive migration with identical peripheral modules, hex compatible code, identical linear address map, and pin compatible migration paths between all devices in the product series. All devices include intelligent and flexible peripherals, Atmel Event System for inter-peripheral signaling, and support for capacitive • • • • 48MHz operation 2.14 CoreMark/MHz Single-cycle IO access 12-channel event system 12-channel DMA < 70µA/MHz <3.5μA RAM retention and RTC Internal and external oscillators On-the-fly clock switching and prescaling Robust peripheral set • Ultra-low power 2.4GHZ transceiver • Up to five serial communication modules (SERCOM) configurable as UART/USART, SPI or I2C • Up to three 16-bit Timer/Counters • Peripheral Touch Controller that supports buttons, sliders, wheels and proximity with up to 48 channels • Real Time Clock (RTC) and Calendar with leap year correction and 1ppm calibration • 12-bit 300kbps ADC • Full Speed USB device and host World-class tools • • • • SAM R21 Xplained Pro starter kits – $39 Atmel Studio with compiler support – Free Atmel Software Framework – Free Low-level drivers and stacks – Free touch button, slider and wheel user interfaces. 2 © 2014 / www.atmel.com Atmel SAM R21 ARM Cortex-M0+based IEEE 802.15.4 Wireless MCUs ARM Cortex-M0+ Processor PB02 PA31/SWDIO PA30/SWCLK VDDIN VDDCORE GND PA28 RESET PA27 PB23 PB22 45 44 43 42 41 40 39 38 37 GND XTAL2 3 34 PA25 XTAL1 4 33 PA24 GNDANA 5 32 PA23 VDDANA 6 31 PA22 PA19 AVDD 7 30 DVDD 8 29 GND VDDIO XTAL1 2 23 PA25 GNDANA 3 22 PA24 VDDANA 4 21 DVDD 20 46 VDDIO 35 24 5 PB03 36 2 1 AVDD 47 1 PA01 XTAL2 SAM R21E QFN32 48 PA27 RESET PA28 GND VDDCORE VDDIN PA30/SWCLK PA00 25 26 27 28 29 30 31 32 PA31/SWDIO The most energy-efficient ARM processor yet, the Cortex-M0+ builds on the Cortex-M0 processor—retaining its full instruction set and tool compatibility—while further reducing energy consumption and increasing performance. The SAM R21 ARM Cortex-M0+ based MCUs operate at 48MHz and feature a two-stage pipeline, single-cycle I/O access, single-cycle 32x32 multiplier, event system, and a fast and flexible interrupt controller. They are also highly efficient, reaching 2.14 CoreMark/MHz – 0.93 DMIPS/MHz. SAM R21G QFN48 18 19 20 21 22 23 24 RFN GNDANA PA12 PA13 PA14 PA15 PA15 PA14 GNDANA RFN RFP GNDANA PA09 PA08 RFP PA16 17 25 GNDANA 12 16 PA17 PA07 PA09 26 15 11 PA08 PA18 PA06 14 PA19 27 13 28 10 GND 9 PA05 VDDIO PA04 PA16 16 PA17 17 15 18 8 14 7 PA07 13 PA06 12 PA18 11 19 9 6 10 GNDANA GNDANA The Atmel SAM R21 series consists of two pin- and code-compatible product series and a total of 24 different microcontrollers. They all use the same processor, bus matrix, interrupt system and other core features, but they are differentiated in regards to pin counts, memories, peripheral mix and temperature grades. Atmel SAM R21 3 SWCLK SWDIO Low Power SERIAL WIRE DEVICE SERVICE UNIT M 32/16/8KB RAM 256/128/64KB NVM NVM CONTROLLER SRAM CONTROLLER CACHE M M S HIGH SPEED BUS MATRIX S AHB/APB BRIDGE B S M DMA USB FS DEVICE MINI-HOST S AHB/APB BRIDGE A AHB/APB BRIDGE C PERIPHERAL ACCESS CONTROLLER PERIPHERAL ACCESS CONTROLLER 5 x SERCOM VREF BOD33 PAD0 PAD1 PAD2 PAD3 DMA SYSTEM CONTROLLER XIN32 XOUT32 S DP PERIPHERAL ACCESS CONTROLLER PORT The SAM R21 implements a wide range of features to drive down power consumption, including low-power oscillators, clock gating and prescaling, Atmel SleepWalking™ technology and a proprietary low-power process. All this enables 70μA/MHz in active mode and <3.5μA with full RAM retention and RTC running in sleep mode. CORTEX-M0+ PROCESSOR Fmax 48 MHz MEMORY TRACE BUFFER IOBUS OSCULP32K OSC32K XOSC32K DMA WO0 3 x TIMER / COUNTER OSC8M WO1 DFLL48M XOSC FDPLL96M POWER MANAGER CLOCK CONTROLLER RESETN RESET CONTROLLER GCLK_IO[n] SLEEP CONTROLLER GENERIC CLOCK CONTROLLER REAL TIME COUNTER WATCHDOG TIMER EXTINT[15..1] NMI 4 EVENT SYSTEM XIN XOUT WO0 WO1 DMA 3 x TIMER / COUNTER FOR CONTROL WOn AIN[n] DMA 8-CHANNEL 12-bit ADC 350KSPS VREFB 2 ANALOG COMPARATORS AIN[3..0] PERIPHERAL TOUCH CONTROLLER X[7..0] Y[5..0] EXTERNAL INTERRUPT CONTROLLER © 2014 / www.atmel.com DM BOF 1KHZ Atmel SAM R21 ARM Cortex-M0+based IEEE 802.15.4 Wireless MCUs FS USB 2.0 Micro Trace Buffer SAM R21 products feature Full Speed USB device and embedded host. In Device mode, a device can operate from the internal RC oscillator giving you a minimum Bill of Materials implementation of a USB device. The USB drivers are available from Atmel through the Atmel Software Framework. The Micro Trace Buffer available in selected SAM R21 devices enables enhanced on-chip debugging with trace capabilities supported by Atmel and third-party debuggers. SERCOM Peripheral Touch Controller SAM R21 devices feature multiple instances of the Serial Communication Module (SERCOM). The SERCOM is configurable to operate as I2C, SPI or USART, giving developers extended flexibility to mix serial interfaces and greater freedom in PCB layout. Each SERCOM instance can be assigned to different I/O pins through I/O multiplexing, further increasing versatility. An embedded peripheral touch controller (PTC) makes it easy to add capacitive touch sensing to your project with buttons, sliders, wheels and proximity. By offering superb sensitivity and noise tolerance as well as self-calibration, the PTC eliminates the need for external components and minimizes CPU overhead. The PTC supports up to 48 channels on the 48-pin devices, and 12 channels on the 32-pin devices. PORT Timers/Counters SAM R21 devices include multiple instances of 16-bit Timer/Counters (TC). Each TC can be individually programmed to perform frequency and waveform generation, accurate program execution timing, and input capture with time and frequency measurement of digital signals. Each TC can be configured to operate as 2x8-bit timers, as a 16-bit timer, and two TCs can be combined to a 32-bit TC. In addition, the SAM R21 features a 32-bit RTC with full calendar and leap year support. Hardware and Software Tools Prototype your designs with the Atmel SAM R21 Xplained Pro, which incorporates an embedded programmer debugger. If you prefer to use a standalone programmer/debugger, the Atmel SAMICE™ emulator fully supports the SAM R21 series. Atmel Studio and the Atmel Software Framework also support SAM R21 products, providing an easy-to-use and low-cost development platform to reduce your time to market. Timers/Counters for Control SAM R21 devices have T/CCs, these are Timers/ Counters for control applications like switch mode power supplies, lighting and motor control. The T/CCs support up to 96MHz and 24 bit resolution. Atmel SAM R21 5 Hardware and Software Tools The Xplained Pro board available for the SAM R21 is perfect for rapid prototyping and development. It features an embedded programmer and debugger, and easily connects to your computer and Atmel Studio. Several expansion wings are available for Xplained Pro boards. The wings enable evaluation of different interfaces and peripherals. Wings are also available from third parties. Xplained Pro Boards are available for the SAM R21 MCUs 6 © 2014 / www.atmel.com Atmel SAM R21 ARM Cortex-M0+based IEEE 802.15.4 Wireless MCUs Extension Boards The PROTO1 extension provides a breadboarding area for general prototyping with the SAM R21 Xplained Pro boards. The PROTO1 extension provides a breadboarding area for general prototyping with the SAM R21 Xplained Pro boards. The OLED1 wing connects a 128x32 OLED display, LEDs and buttons to the Xplained Pro. Ordering Information: SAM R21 Series Package type M = QFN Plating material and temp grade U = -40 — 85˚C Matte Sn plating F = -40 — 125˚C Matte Sn plating Package carrier T = Tape & Reel No character = Tray (Default) SAM R 21 G 18 A - M U T Product Family SAM R = Low Power Wireless MCU Product Series 21 = D21 + 2.4GHz TRX, USB, DMA, TCC, I2C Pin Count Marketing Revision A = Initial Revision Memory Density 16 = 64kB 17 = 128kB 18 = 256kB E = 32 pins G = 48 pins Atmel SAM R21 7 Atmel Corporation 1600 Technology Drive, San Jose, CA 95110 USA T : (+1)(408) 441. 0311 F : (+1)(408) 436. 4200 | www.atmel.com © 2014 Atmel Corporation. / Rev.: Atmel-45067A-SAM-R21_E_A4_022014 Atmel,® Atmel logo and combinations thereof, Enabling Unlimited Possibilities,® and others are registered trademarks or trademarks of Atmel Corporation or its subsidiaries. ARM,® ARM Connected® logo and others are the registered trademarks or trademarks of ARM Ltd. Other terms and product names may be the 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.