中国电子技术网

设为首页 网站地图 加入收藏

 

[原创] Atmel SAM L21 32位MCU超低功耗可穿戴解决方案

关键词:ARM® Cortex-M0+ MCU 可穿戴 物联网(IoT) SAM L2

时间:2016-08-18 10:57:24       来源:中电网

Atmel公司的SMART SAM L21是基于32位ARM® Cortex®-M0+处理器的超低功耗MCU,最大工作频率48MHz(2.46CoreMark®/MHz),集成了高达256KB闪存和40KB SRAM,具有极专业的电源管理技术,高度可配置的外设如支持容性和接近式传感器的触摸控制器,非常适合用在可穿戴和物联网(IoT)市场.本文介绍了SAM L21主要特性,功能框图以及可穿戴演示板ATULPC-DEMO主要特性,框图和电路图.

Atmel® | SMART SAM L21 is a series of Ultra low-power microcontrollers using the 32-bit ARM® Cortex®-M0+ processor, and ranging from 32- to 64-pins with up to 256KB Flash and 40KB of SRAM. The 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-peripheral signaling, and support for capacitive touch button, slider and wheel user interfaces.

The Atmel SAM L21 devices provide the following features: In-system programmable Flash, 16-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 frequency measurement 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-on reset and two-pin Serial Wire Debug (SWD) program and debug interface.

All devices have accurate and low-power external and internal oscillators. All oscillators can be used as 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 uprom 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 to and 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.

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.

SAM L21主要特性:

• 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 anddebugging 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)
– 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,each configurable 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)
• 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

图1.SAM L21框图

SAM L21可穿戴演示板ATULPC-DEMO

The Wearable Demo (Ordering code: ATULPC-DEMO) Reference Designevaluation kit is hardware platform to address the wearable and IOT markets.The Wearable Demo Reference Design incorporates Atmel® SAML21microcontroller and BTLC1000 module along with sensors to demonstrate acomplete solution needed for the IOT.Supported by the Atmel Studio integrated development platform, the kit provides easy access to the features that can be custom integrated in a design which will significantly reduce the Time-to-Market.

The ATULPC-DEMO demo uses Atmel’s SAM L21 MCU, interfaced with BTLC1000 fully certified module and several sensors on a small form factor PCB (40mm X 30mm) operated on a coin cell battery. The environment sensor data (temperature, pressure, humidity, light), motion sensor data (3-axis acceleration, gyroscope) and sensor fusion data (3D plot, step count, free fall detection) are sent using BLE and displayed on an Android App. The HMI interface of the App is linked to a touch surface of the demo board, which is driven by the Peripheral Touch Controller integrated in the SAML21 MCU.

图2. 可穿戴演示板ATULPC-DEMO外形图表

图3. 可穿戴演示板ATULPC-DEMO正面元件图

图4. 可穿戴演示板ATULPC-DEMO背面元件图

图5. 可穿戴演示板ATULPC-DEMO功能框图

可穿戴演示板ATULPC-DEMO主要特性:

To demonstrate the Lowest power ARM® Cortex®-M0+, the Atmel | SMART SAM L21 for Wearable applications
A small size fully certified Bluetooth module sensor tag with Android app to display data
Functionality — Activity and environment monitor
Atmel components and technologies — MCU, Touch, Crypto and Bluetooth
3rd party Mems sensors — Bosch 6-axis motion sensor (BHI160), Bosch environment (BME280) sensor, light/color sensor
Low power, small form factor

图6.可穿戴演示板ATULPC-DEMO电路图(1)

图7.可穿戴演示板ATULPC-DEMO电路图(2)

图8.可穿戴演示板ATULPC-DEMO电路图(3)

图9.可穿戴演示板ATULPC-DEMO电路图(4)
详情请见:
http://www.atmel.com/Images/Atmel-42385-SAM-L21_Datasheet_Summary.pdf
http://www.atmel.com/Images/ATULPC-DEMO-UserGuide.pdf
以及http://www.atmel.com/Images/ATULPC-Demo_Schematic_ev3.pdf
Atmel-42385-SAM-L21_Datasheet_Summary.pdf
ATULPC-Demo_Schematic_ev3.pdf
ATULPC-DEMO-UserGuide.pdf

 

猜你喜欢