Atmel QTouch Library User Guide

Atmel QTouch Library User Guide Atmel QTouch Library User Guide

prochild.co.kr
from prochild.co.kr More from this publisher
11.07.2015 Views

QTouch Library configuration parameters for ATtiny40The Table below describes the various configuration parameters corresponding to the ATtiny40QTouch Library.ParameterDescriptionDEF_QT_DIDEF_QT_NEG_DRIFT_RATE*(See Note 1)DEF_QT_POS_DRIFT_RATE*(See Note 1)DEF_QT_MAX_ON_DURATIONDEF_QT_DRIFT_HOLD_TIMESensor detect integration (DI) limit.Range: 0u to 255u.Refer Section 5.3 and Section 5.4 for more info.Sensor negative drift rate. Units: 100ms, Range: 1u to 127u.Refer Section 5.3 and Section 5.4 for more info.Sensor positive drift rate. Units: 100ms, Range: 1u to 127u.Refer Section 5.3 and Section 5.4 for more info.Sensor maximum on duration. Units: 100ms, Range: 0u to 255u.Refer Section 5.3 and Section 5.4 for more info.Sensor drift hold time. Units: 100ms, Range: 1u to 255u.Refer Section 5.3 and Section 5.4 for more info.DEF_QT_POS_RECAL_DELAYDEF_QT_BERST_LENGTHPositive Recalibration delay. Range: 1u to 255u.Refer Section 5.3 and Section 5.4 for more info.Burst Length. Range: 10u – 13u. Proper function for values morethan 13u is not guaranteed.This parameter helps in increasing thesignal resolution.Charge Share Delay. Range: 0u – 255u. This value needs to beincreased if we use high value of series resistor on sensor pin toensure proper charge time.Table 21 QTouch Library for ATtiny40 Configuration parametersDEF_QT_CHARGE_SHARE_DELAYNote1:For the case of ATtiny40 devices, a ‘touch’ causes the Signal value measured on the Sensor toincrease above the Sensor Reference value (In the case of Generic Library devices, a ‘touch’causes the Signal value to decrease below the Reference value).However, the Negative drift rate and Positive drift rate functionality for the case of Tiny40 devicesshall be consistent with the Generic Library case.So, it is recommended to have a ‘Slower’ Negative Drift rate (4 seconds is the default setting) anda ‘Faster’ Positive Drift rate (1 second is the default setting) for the Tiny40 device.QTouch Library ATtiny40 Example projectsThe QTouch method IAR Example project for the Tiny40 Evaluation Kit can be found in thefollowing path.\Device_Specific_Libraries\8bit_AVR\AVR_Tiny_Mega_XMega\ATtiny40\tiny40_qt_example_iarThe Example projects demonstrate the 12 button sensor configuration. The Example projectsalso support QDebug data transfer to QTouch Studio – Touch Analyzer PC Application.It is possible to configure the number of Sensors in the Example project from 1 to 12 for testingon the ATtiny40 Evaluation kit.1788207K-AT42-09/11

QTouch Library ATtiny40 code and data memory requirementsThe code and data memory requirements for QTouch Library for ATtiny40 devices is captured inthe Table below. The Table indicates these values for the standalone library and not for theentire Example Project application.Librarylibtiny40_4qt_k_0rslibtiny40_8qt_k_0rslibtiny40_12qt_k_0rsNumber ofSensorsCode MemoryDatamemory4 2200 1358 2200 17512 2300 216CStack/RStackCStack= 32 bytesRStack= 24 bytesCStack= 32 bytesRStack= 24 bytesCStack= 32 bytesRStack= 24 bytesTable 22 QTouch Library for ATtiny40 Memory requirementsGeneric QTouch Libraries for 2K DevicesIntroductionThis section provides information about the QTouch library Acquisition Support for Tiny deviceswith 2K Flash memory. These libraries have the same API’s as Generic libraries, except for a fewwhich are not supported.Information about the API’s are provided in touch_api_2kdevice.h filewhich is placed at location mentioned in section 5.6.10.1179

<strong>QTouch</strong> <strong>Library</strong> ATtiny40 code and data memory requirementsThe code and data memory requirements for <strong>QTouch</strong> <strong>Library</strong> for ATtiny40 devices is captured inthe Table below. The Table indicates these values for the standalone library and not for theentire Example Project application.<strong>Library</strong>libtiny40_4qt_k_0rslibtiny40_8qt_k_0rslibtiny40_12qt_k_0rsNumber ofSensorsCode MemoryDatamemory4 2200 1358 2200 17512 2300 216CStack/RStackCStack= 32 bytesRStack= 24 bytesCStack= 32 bytesRStack= 24 bytesCStack= 32 bytesRStack= 24 bytesTable 22 <strong>QTouch</strong> <strong>Library</strong> for ATtiny40 Memory requirementsGeneric <strong>QTouch</strong> Libraries for 2K DevicesIntroductionThis section provides information about the <strong>QTouch</strong> library Acquisition Support for Tiny deviceswith 2K Flash memory. These libraries have the same API’s as Generic libraries, except for a fewwhich are not supported.Information about the API’s are provided in touch_api_2kdevice.h filewhich is placed at location mentioned in section 5.6.10.1179

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!