Atmel QTouch Library User Guide
Atmel QTouch Library User Guide Atmel QTouch Library User Guide
Libraries for AVR microcontrollers include both acquisition methods. Libraries for ATSAMmicrocontrollers include only QTouch acquisition method.QTouch acquisition methodThe QTouch acquisition method charges an electrode of unknown capacitance to a knownpotential. The resulting charge is transferred into a measurement capacitor (Cs). The cycle isrepeated until the voltage across Cs reaches a voltage Vih. The signal level is the number ofcharge transfer cycles it took to reach that voltage. Placing a finger on the touch surfaceintroduces external capacitance that increases the amount of charge transferred each cycle,reducing the total number of cycles required for Cs to reach the voltage. When the signal level(number of cycles) goes below the present threshold, then the sensor is reported to be indetected.QTouch acquisition method sensors can drive single or multiple keys. Where multiple keys areused, each key can be set for an individual sensitivity level. Keys of different sizes and shapescan be used to meet both functional and aesthetic requirements.NOTE: It is recommended to keep the size of the keys larger than 6mmx6mm to ensure reliableand robust measurements, although actual key design requirements also depend on panelthickness and material. Refer to the ATMEL Capacitive touch sensor design guide for details.QTouch acquisition method can be used in two ways• normal touch contact (i.e. when pressing buttons on a panel), and• high sensitivity proximity mode (i.e. when a panel lights up before you actually contact it).Figure 5-2 : QTouch AcquisitionQTouch circuits offers high signal-to-noise ratio, very good low power performance, and theeasiest sensor layout.Sensor schematics for a QTouch acquisition method design148207K-AT42-09/11
SamplingcapacitorSNSKPB1RsElectrodeMicrocontrollerUsed for touchapplicationCsPC1SNSTypical Rs- 1kvalues: Cs- 22nF----------------Port requirements:SNS: generic I/O pinSNSK: generic I/O pinRs- Series resistor, Cs – Sample capacitor, PB1- PortB bit1, and PC1- PortC bit1Figure 5-3 : Schematics for a QTouch acquisition method designQMatrix acquisition methodQMatrix devices detect touch using a scanned passive matrix of electrode sets. A single QMatrixdevice can drive a large number of keys, enabling a very low cost-per-key to be achieved.Figure 5-4 : QMatrix Acquisition methodQMatrix uses a pair of sensing electrodes for each channel. One is an emitting electrode intowhich a charge consisting of logic pulses is driven in burst mode. The other is a receive electrodethat couples to the emitter via the overlying panel dielectric. When a finger touches the panel thefield coupling is changed, and touch is detected. The drive electrode (or drive line) used for15
- Page 1: Atmel QTouch LibraryUser GuideSuppo
- Page 4: 5.6.11.6.1 Debug Support in the sam
- Page 7 and 8: 6.3.16.21 touch_info_t ............
- Page 12 and 13: • ARM: refers to a device in the
- Page 16 and 17: QMatrix charge transfer is labeled
- Page 18 and 19: Maximum ON DurationIf an object uni
- Page 20 and 21: Setting Variable name Data Type Uni
- Page 22 and 23: Guard ChannelGuard channel in Qtouc
- Page 24 and 25: 7 AKS groups are supported by the l
- Page 26 and 27: Data structuresThis section lists t
- Page 28 and 29: The signal gain for each sensor is
- Page 30 and 31: • This function can be called any
- Page 32 and 33: unit16_t qt_measure_sensors( uint16
- Page 34 and 35: Channel NumberingChannel numbering
- Page 36 and 37: qt_reset_sensing()qt_enable_xxx()qt
- Page 38 and 39: Port AAll SNSK pinsterminatedon thi
- Page 40 and 41: Example:Pins A0 ,A3 and A5 of PORT
- Page 42 and 43: Channel 47 N/A N/A N/A N/A N/A X7Y5
- Page 44 and 45: channel 0channel 1channel 2channel
- Page 46 and 47: Disabling and Enabling of Pull-up f
- Page 48 and 49: ‣ Recommended threshold should be
- Page 50 and 51: QMatrix acquisitionmethod libraries
- Page 52 and 53: definition is not required.QT_NUM_C
- Page 54 and 55: SNS1 and SNSK1 pins usethe same por
- Page 56 and 57: • It is recommended to disable PU
- Page 58 and 59: Table 4 :List of configurable param
- Page 60 and 61: Number ofchannels requiredfor the a
- Page 62 and 63: 2. The above definitions should be
Libraries for AVR microcontrollers include both acquisition methods. Libraries for ATSAMmicrocontrollers include only <strong>QTouch</strong> acquisition method.<strong>QTouch</strong> acquisition methodThe <strong>QTouch</strong> acquisition method charges an electrode of unknown capacitance to a knownpotential. The resulting charge is transferred into a measurement capacitor (Cs). The cycle isrepeated until the voltage across Cs reaches a voltage Vih. The signal level is the number ofcharge transfer cycles it took to reach that voltage. Placing a finger on the touch surfaceintroduces external capacitance that increases the amount of charge transferred each cycle,reducing the total number of cycles required for Cs to reach the voltage. When the signal level(number of cycles) goes below the present threshold, then the sensor is reported to be indetected.<strong>QTouch</strong> acquisition method sensors can drive single or multiple keys. Where multiple keys areused, each key can be set for an individual sensitivity level. Keys of different sizes and shapescan be used to meet both functional and aesthetic requirements.NOTE: It is recommended to keep the size of the keys larger than 6mmx6mm to ensure reliableand robust measurements, although actual key design requirements also depend on panelthickness and material. Refer to the ATMEL Capacitive touch sensor design guide for details.<strong>QTouch</strong> acquisition method can be used in two ways• normal touch contact (i.e. when pressing buttons on a panel), and• high sensitivity proximity mode (i.e. when a panel lights up before you actually contact it).Figure 5-2 : <strong>QTouch</strong> Acquisition<strong>QTouch</strong> circuits offers high signal-to-noise ratio, very good low power performance, and theeasiest sensor layout.Sensor schematics for a <strong>QTouch</strong> acquisition method design148207K-AT42-09/11