Introduction

ATMEL QTouch Library is a royalty free software library (available for GCC and IAR compiler tool chains) for developing touch applications on standard AVR and SAM microcontrollers. Customers can link the library into their applications in order to provide touch sensing capability in their projects. The Library can be used to develop single chip solutions for control applications which have touch sensing capabilities, or to develop standalone touch sensing solutions which interface with other host or control devices.

Features of ATMEL QTouch Library

  1. 1.

    Capacitive touch sensing using patented charge-transfer signal acquisition for robust sensing.

  2. 2.

    Support for a wide range of 8- and 32-bit AVRs.

  3. 3.

    Support for 32-bit  ARM microcontrollers.

  4. 4.

    Support for 8-bit tiny AVRs having flash of 2K bytes.

  5. 5.

    Support both QTouch and QMatrix acquisition methods and autonomous touch for UC3L.

  6. 6.

    Support up to 64 touch sense channels for generic libraries and up to 136 channels for UC3L libraries.

  7. 7.

    Flexible choice of touch sensing functionality (keys, sliders, wheels) in a variety of combinations.

  8. 8.

    Includes Adjacent Key Suppression® (AKS) technology for the unambiguous detection of key events.

  9. 9.

    Support for both IAR and GCC compiler tool chains.

  10. 10.

    A comparison of various features and parameters between QTouch Libraries for Generic 8-bit and 32-bit AVRs as well as Device Specific Libraries is provided in the table below.

Table 1. Feature Comparison between Generic QTouch Libraries and Device Specific Libraries
Parameter/Functionality Generic Tiny_​​Mega_​​Xmega Tiny 2K Tiny20 Tiny40 Generic, 32-Bit AVR UC3L ATSAM
Technology QTouch, QMatrix QTouch QTouch-ADC QTouch-ADC QTouch, QMatrix QTouch, QMatrix QTouch
Rotors/Sliders Support Yes No No No Yes Yes Yes
Filter Callback Yes Yes No Yes Yes Yes Yes  
Library Status Flags Yes Yes No Yes Yes Yes Yes
Library Signature Yes No No No Yes Yes Yes
Calibrate Sensing Yes Yes No Yes Yes Yes Yes
Reset Sensing Yes Yes No Yes Yes Yes Yes
Sensor Deltas Yes Yes No Yes Yes Yes Yes
Maximum AKS Groups 7 7 1 7 7 7 7
Maximum Channels, QT 16 4 5 12 32 17 32
Maximum Rotors/Sliders, QT 4 0 0 0 8   8
Maximum Channels, QM 64 0 0 0 64 64 0
Maximum Rotors/Sliders, QM 8 0 0 0 8   0
Autonomous Touch No No No No No Yes No
Sensor Reconfiguration Yes Yes No No Yes Yes Yes
Frequency Hopping SS Enabled Always If _POWER_​​OPTIMIZATION = 0 Never Never Always Programmable Always
Delay Cycles Parameter QT_​​DELAY_​​CLCYES QT_​​DELAY_​​CLCYES DEF_​​CHARGE_​​SHARE_​​DELAY DEF_​​QT_​​CHARGE_​SHARE_​​DELAY QT_​​DELAY_​​CYCLES xx_CHLEN, xx_SELEN QT_​​DELAY_​​CLCYES
Debug Interface Enable Macro _DEBUG_​​INTERFACE_ None NDEBUG _DEBUG_​​QTOUCH_​​STUDIO_ _DEBUG_​​INTERFACE_ DEF_​​TOUCH_​​QDEBUG_​​ENABLE _DEBUG_​​INTERFACE_

This user guide describes the content, design and use of the QTouch Libraries. This should be read in conjunction with all of the applicable documents listed below

  1. 1.

    Device datasheet for the selected ATMEL device used for touch sensing.

  2. 2.

    Data sheet for the selected evaluation board.

  3. 3.

    A library selection guide that is used for the selection of the appropriate library from the released package. Default path: C:\Program Files\Atmel\Atmel_QTouch_Libraries_5.x\Library_Selection_Guide.xls

The intended readers of this document are engineers, who use the QTouch Library on ATMEL microcontrollers to realize capacitive touch sensing solutions.

1

Only Burst Again Flag

2

QT Values: 1 to 255, QM Values: 1,2,3,4,5,10,25,50

3

Value: 1 to 255

4

Value: 3 to 255