首页资源分类嵌入式处理器ARM MPU > Atmel SAM D21 PTC模块和QTouch设计平台

Atmel SAM D21 PTC模块和QTouch设计平台

已有 445506个资源

下载专区

文档信息举报收藏

标    签:SAMD21PTCQTouchAtmel

分    享:

文档简介

Atmel SAM D21 PTC模块和QTouch设计平台

文档预览

Introduction to SAM D21 PTC Module and QTouch Design Platform 1 © 2013 Atmel Corporation Outline • Atmel Portfolio / Atmel ARM Cortex-M products • Introducing SAM D21 series • Atmel Capacitive Touch Technology • Charge transfer principle • Self capacitance and Mutual Capacitance Methods • Atmel SAM D2x Capacitive Touch Solution • Peripheral Touch Controller • QTouch Library • QTouch Development Platform • QTouch Composer • QT1 Xplained Pro Board • Safety Touch Platform 2 © 2013 Atmel Corporation Atmel MCU & MPU Portfolio Atmel ARM Cortex-M Products 3 © 2013 Atmel Corporation Atmel MCU & MPU Portfolio Overview 32-bit MPU SAMA5 32-bit MCU 100 DMIPS 16KB to 512KB Flash UC3 32-bit AVR SAM3 Cortex-M3 SAM4 Cortex-M4 + FPU SAM9 ARM926 Cortex-A5 + FPU 850 DMIPS FPU Low Power Operating System 440 DMIPS Flash-based and Flash-less Operating System 180 DMIPS 512KB to 2MB Flash SAM7 8-bit SAM D ARM7TDMI tinyAVR 8-bit AVR megaAVR 8-bit AVR XMEGA Cortex-M0+ 50 DMIPS 16KB to 512KB Flash 8-bit AVR 45 DMIPS 16KB to 256KB Flash 32 MIPS 16KB to 384KB Flash 20 MIPS 20 MIPS 0.5KB to 4KB to 16KB Flash 256KB Flash 125 DMIPS 16KB to 512KB Flash Legacy 8-bit AVR 32-bit AVR 8051 8-bit ARM Cortex-M ARM926 ARM Cortex-A5 Performance 4 © 2013 Atmel Corporation Atmel ARM Cortex-M Products Overview 32-bit MPU SAMA5 32-bit MCU 100 DMIPS 16KB to 512KB Flash UC3 32-bit AVR SAM3 Cortex-M3 SAM4 Cortex-M4 + FPU SAM9 ARM926 Cortex-A5 + FPU 850 DMIPS FPU Low Power Operating System 440 DMIPS Flash-based and Flash-less Operating System 180 DMIPS 512KB to 2MB Flash SAM7 8-bit SAM D ARM7TDMI tinyAVR 8-bit AVR megaAVR 8-bit AVR XMEGA Cortex-M0+ 50 DMIPS 16KB to 512KB Flash 8-bit AVR 45 DMIPS 16KB to 256KB Flash 32 MIPS 16KB to 384KB Flash 20 MIPS 0.5KB to 16KB Flash 20 MIPS 4KB to 256KB Flash 8051 8-bit 125 DMIPS 16KB to 512KB Flash Legacy 8-bit AVR 32-bit AVR ARM Cortex-M ARM926 ARM Cortex-A5 Performance 5 © 2013 Atmel Corporation Atmel ARM Cortex-M Products Product Families • SAM D • ARM Cortex-M0+ core, up to 45 DMIPS • 8KB - 256KB flash, 14 - 64 pins • Small, fully featured and flexible • SAM4S • ARM Cortex-M4 core, up to 150 DMIPS • 128KB – 2MB flash, 48 - 100 pins • Scalable Performance, Memory Density and Power Efficiency • SAM4L • ARM Cortex-M4 core, up to 60 DMIPS • 128KB - 512KB flash, 48 - 100 pins • Redefining Low Power in Cortex-M4-based MCUs • SAM4E • ARM CM4 core with FPU, up to 150 DMPIS • 512KB – 1MB flash, 100 - 144 pins • High Performance and Advanced Connectivity for Industrial Applications • SAM G • ARM CM4 core with FPU, up to 60 DMPIS • 256KB - 512KB flash, 48 - 100 pins • Ultra Low Power, High Throughput and Small Form Factor 6 © 2013 Atmel Corporation Introducing Atmel SAM Dx Series SAM D Family Overview 7 © 2013 Atmel Corporation Introducing Atmel SAM D21 Series Powerful and Efficient Product • 48MHz operation • Up to 2.14 CoreMark® • ±2% internal RC oscillator • 1.62V - 3.63V • 16KB to 256KB Flash • 32-, 48- and 64-pin versions 8 © 2013 Atmel Corporation Introducing the SAM D21 Series SAM D21 Block Diagram System Peripheral Unique ID LDO 8 MHz RC OSC WDT POR/BOD Device Service Unit CRC-32 0.4-32MHz Xtal OSC 32 KHz Xtal 2x 32 KHz RC OSC DFLL 48MHz FDPLL 96MHz Debug SWD Internal memories Cortex-M0+ 48 MHz System SRAM 4 KB 8 KB 16 KB 32 KB Flash 32 KB 64 KB 128KB 256 KB 64 B Cache DMA x 8ch Multi-layer High Speed Bus Matrix Package TQFP/QFN32 TQFP/QFN48 TQFP/QFN64 General Purpose SERCOM Peripheral Touch controller (PTC) 12 bit Analog Event System DMA Pin and code compatible USB FS Host & Device AHB/APB Bridge A AHB/APB Bridge C DMA SERCOM 32bit up to 6 RTC DMA TCC Up to 3 DMA Timers 16bit Up to 5 DMA DMA ADC 12bit Up to 20ch DAC 10bit 1 ch Analog Comp. x2 PTC DMA I2S 9 © 2013 Atmel Corporation Peripheral Event System AHB/APB Bridge B GPIO Up to 52 Atmel Capacitive Touch Technology 10 © 2013 Atmel Corporation 03/04/2013 Atmel Capacitive Touch Technology Charge Transfer Technology Measurement Principle Charge Transfer Measurement Method Y Self- Capacitance Sensor Types Buttons Y0 Mutual- Capacitance Y1 Y2 X0 Sliders Wheels 11 © 2013 Atmel Corporation Atmel Capacitive Touch Technology Self-Capacitance Measurement Method • Use a single sense electrode (Y line) • Self capacitance button use one channel (one Y line) • Self capacitance slider and wheels use 3 channels (three Y lines) • Robust and easy to use, ideal for: • Low sensors count • Implementing of proximity sensors • High moisture-resistant applications Y0 Atmel Y1 Flash MCU Y2 Y3 12 © 2013 Atmel Corporation Sensor 0 Sensor 1 Atmel Capacitive Touch Technology Mutual Capacitance Measurement Method • Use a pair of sense electrodes (X-Y lines) • Mutual capacitance buttons use one X-Y channel • Mutual capacitance sliders and wheels use 3 to 8 X-Y channels • Suitable for high sensor count, better moisture tolerance X0 X1 Atmel X2 Flash MCU Y0 Y1 Y2 13 © 2013 Atmel Corporation Atmel SAM D2x Capacitive Touch Solution 14 © 2013 Atmel Corporation Atmel SAM D2x Capacitive Touch Solution Legacy Solution • 100% Firmware technology • Qtouch Library • CPU runs everything • High CPU utilization • No low power features • Performance depending on CPU Previous Atmel MCU Firmware 15 © 2013 Atmel Corporation Atmel SAM D2x Capacitive Touch Solution Atmel Peripheral Touch Controller (PTC) solution • Mixed HW + Firmware solution • Peripheral Touch Controller + QTouch library • Lower CPU utilization • PTC runs data acquisition autonomously SAM D • Optimize power consumption • CPU can idle while PTC is working Firmware PTC • Improve noise immunity • Compensation and oversampling done automatically in PTC 16 © 2013 Atmel Corporation Atmel SAM D2x Capacitive Touch Solution SAM D Family PTC Features • Supports both Mutual and Self-Capacitance sensing • No external components needed • Advanced noise immunity features • Supports buttons, sliders and wheels • Hardware Assisted Self Calibration • Done automatically by the Library at start-up • Low standby power consumption • 8µA scanning one channel at 200ms scan rate • Low CPU Utilization • 5% CPU utilization scanning 10 channels at 50ms scan rate 17 © 2013 Atmel Corporation Atmel SAM D2x Capacitive Touch Solution SAM D Family PTC Features (continued) • Self-capacitance channel count available • SAM D2xJ (64 pin): up to 16 channels • SAM D2xG (48 pin): up to 12 channels • SAM D2xE (32 pin): up to 8 channels • Mutual capacitance channel count available • SAM D2xJ (64 pin): up to 16 x 16 channels • SAM D2xG (48 pin): up to 12 x 12 channels • SAM D2xE (32 pin): up to 8 x 6 channels 18 © 2013 Atmel Corporation Atmel SAM D2x Capacitive Touch Solution PTC Block Diagram – Self Capacitance Cy0 Cy15 Input control Y0 Y1 RS Y15 100K Compensation Circuit Acquisition Module • Gain control • ADC • Filtering IRQ Result 10 X Line Driver 19 © 2013 Atmel Corporation Atmel SAM D2x Capacitive Touch Solution PTC Block Diagram – Mutual Capacitance Input control Y0 Y1 RS Acquisition IRQ Module • Gain control Result Y15 100K • ADC • Filtering 10 Compensation Circuit X0 X1 X Line Driver X15 20 © 2013 Atmel Corporation Atmel SAM D2x Capacitive Touch Solution PTC Conversion Cycle Y-Line Precharge •Sensor cap is charged Charge Transfer •Charge is transferred to internal capacitors Conversion •Charge is converted to voltage and measured with ADC 21 © 2013 Atmel Corporation Input control Y0 Y1 RS Acquisition IRQ Module • Gain control Result • ADC Y15 100K • Oversampling filter 10 Compensation Circuit X0 X1 X Line Driver X15 Atmel SAM D2x Capacitive Touch Solution PTC Acquisition Timing Conversion •Charge is converted to voltage and measured with ADC Y-Line Precharge •Sensor cap is charged Charge Transfer •Charge is transferred to internal capacitors Conversion •Charge is converted to voltage and measured with ADC Y-Line Precharge •Sensor cap is charged One Acquisition Cycle Mesurement Period interupt (RTC) CPU is interrupted and prepare next channel CPU is interrupted and prepare next channel CPU processes results and End of Conversion flag is raised Y-Line Precharge • Sensor cap is charged Charge Transfer • Charge is transferred to internal capacitors Conversion • Charge is converted to voltage and measured with ADC Y-Line Precharge • Sensor cap is charged Charge Transfer • Charge is transferred to internal capacitors Conversion • Charge is converted to voltage and measured with ADC Y-Line Precharge • Sensor cap is charged Charge Transfer • Charge is transferred to internal capacitors Conversion • Charge is converted to voltage and measured with ADC Channel 1 Channel 2 Channel 3 One 3-channel Acquisition Cycle 22 © 2013 Atmel Corporation Atmel SAM D2x Capacitive Touch Solution Typical QTouch Application Execution RTC PTC End Of Conversion Measurement complete RTC Channel 1 Post Processing Channel 2 Channel 3 Acquisition Time User Application Measurement Period 23 © 2013 Atmel Corporation Atmel SAM D2x Capacitive Touch Solution PTC is Accessed through the QTouch Library Input control QTouch Library Y0 Y1 Y15 RS 100K Acquisition Module • Gain control • ADC • Oversampling filter IRQ Result 10 • Initiate • Set Gain • Set Filter Level A P Compensation Circuit • Set Prescaler I • Set Frequency Mode X0 • Get Touch Value X1 X Line Driver From Channel # X15 24 © 2013 Atmel Corporation Atmel SAM D2x Capacitive Touch Solution QTouch Library Highlights • Self and Mutual capacitance support • Up to 256 channels support in Mutual capacitance mode • Up to 16 channels support in Self-capacitance mode • Flexible sensor configuration • Button, Slider, Wheel • Freedom to place the sensors where you want within the 16x16 matrix • Supports both self-capacitance and mutual capacitance sensors in the same application • High performance noise reduction • Dynamic Filtering – Filtering the nodes that need it • Automatic tuning of internal components during initialization • Adjustable Filter level and Gain Custom Code (.c and .h files) 25 © 2013 Atmel Corporation Compiler Atmel QTouch® Library (.a file) Link Application (.hex, .bin…) Atmel SAM D2x Capacitive Touch Solution QTouch Library Highlights (continued) • Easy application integration • Non-blocking, interrupt driven code • ASF compatible • Royalty free • Provided as a linkable object files • Common API Custom Code (.c and .h files) Compiler Atmel QTouch® Library (.a file) 26 © 2013 Atmel Corporation Link Application (.hex, .bin…) Atmel SAM D2x Capacitive Touch Solution Generic QTouch Application Flow chart Application code QTouch Library Initialize Time to Yes measure? No Measurement Yes complete? No Other Host functions Perform touch actions Sleep (optional) 27 © 2013 Atmel Corporation Enable EOC ISR EOC ISR Start measurement on Channel 0 Store result Last channel complete? Sensors post processing Start next channel Measurement complete Atmel Capacitive Touch Technology Power Consumption [µA] 140 120 100 80 60 40 20 0 1 2 4 8 16 32 64 Sample averaging 1 channel Vcc = 3.3V, f = 48MHz [µA] 1200 1000 800 600 400 200 0 1 2 4 8 16 32 64 Sample averaging 10 channels Vcc = 3.3V, f = 48MHz Scan rate 10ms Scan rate 50ms Scan rate 100ms Scan rate 200ms 34 © 2013 Atmel Corporation Atmel Capacitive Touch Technology CPU Utilization 80 % 70 % 60 % 50 % 40 % 30 % 20 % 10 % 0% 10 50 100 200 Scan rate (ms) Vcc = 3.3V, f = 48MHz PTC @ maximum speed 35 © 2013 Atmel Corporation Channel count 1 Channel count 10 Channel count 100 QTouch Development Platform 36 © 2013 Atmel Corporation QTouch Development Package Complete Development Package QTouch Composer QTouch Library • Ease of Use • Create SAM D21 Projects • Analyze Touch Performance • Mutual / Self -Cap Support • Flexible sensor configuration • High Robustness QT1 Xplained Pro • Supported by SAM D21 Xplained Pro Kit • Self Cap Wing Card • Mutual Capacitance Card Atmel SAM D ASF Examples • Example projects for QT1 • Use wheel to control RGB LED • Available for both Self and Mutual Cap 37 © 2013 Atmel Corporation QTouch Development Package QTouch Composer • Fully integrated in Atmel Studio 6 and provided as an extension • Project Builder: Create QTouch projects • Wizard guided project builder - QTouch application code autogenerated • Based on Qtouch Library • User board or Evaluation board • Qtouch Analyzer: Analyze QTouch projects • Real-time data streaming of QTouch data (QDebug protocol) • Allows dynamic tuning of the application • User board supported using SAM D2x Xplained Pro board as gateway 38 © 2013 Atmel Corporation QTouch Development Package QTouch Composer – Project Builder 39 © 2013 Atmel Corporation QTouch Development Package QTouch Composer – QTouch Analyzer 40 © 2013 Atmel Corporation QTouch Development Package How to connect a custom board to QTouch Analyzer • The SAM D21 Xplained Pro board is used as a bridge. QTouch Analyzer SAM D21 SPI EDBG SAM D21 Xplained Pro SAM D21 Custom Board 41 © 2013 Atmel Corporation QTouch Development Package QTouch Library Overview QTouch Library API QTouch Library Sensor pin / channel configuration Host application Sensor parameters setting Sensor status / position postprocessing Sensor touch status, rotor/slider position Sensor selfcalibration Adjacent Key suppression Noise counter measure Detect integration mechanism Auto recalibration Program PTC registers SAM D21 PTC module Raw sensor data GPIO SAM D21 Capacitive touch Buttons, sliders and wheels 42 © 2013 Atmel Corporation QTouch Development Package QT1 Xplained Pro board • Supported by the SAM D Xplained Pro • QTouch extension boards • Same feature set, different technology • QT1 Xplained Pro Self capacitance • 2 buttons + 2 yellow LEDs • 1 slider + 8 yellow LEDs • 1 wheel + 1 RGB LED • QT1 Xplained Pro Mutual capacitance • 2 buttons + 2 yellow LEDs • 1 slider + 8 yellow LEDs • 1 wheel + 1 RGB LED • Both Boards included • Available at Atmel Store now 43 © 2013 Atmel Corporation QTouch Development Package Atmel Software Framework Support • Two example projects included: • Self-capacitance • Mutual capacitance • Both are based on QT1 Xplained Pro boards • Use slider to control 8 LEDs • Wheel control RGB LED using 3 individual PWMs • Buttons control one LED each 44 © 2013 Atmel Corporation QTouch Development Package QTouch Safety Platform • FMEA Library • Failure Analysis tool • Compliant with UL 1998 and UL 60730-1 standards Non-Safety Application Firmware Safety Application Firmware FMEA Library QTouch Library • QTouch Safety Library • Enhanced for safety compliance Sensor Hardware • Adds preventive checks related to wrong parameters and wrong API sequence • Compliant with UL 1998 and UL 60730-1 standards • QTouch Composer Safety Monitor • Live stream of safety status and test results from FMEA and UL/VDE 60730-1 45 © 2013 Atmel Corporation © 2013 Atmel Corporation. Atmel®, Atmel logo and combinations thereof, Enabling Unlimited Possibilities®, and others are registered trademarks or trademarks of Atmel Corporation or its subsidiaries. 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. 46 © 2013 Atmel Corporation 6/30/2014

Top_arrow
回到顶部
EEWORLD下载中心所有资源均来自网友分享,如有侵权,请发送举报邮件到客服邮箱bbs_service@eeworld.com.cn 或通过站内短信息或QQ:273568022联系管理员 高进,我们会尽快处理。