11.07.2015 Views

Atmel QTouch Library User Guide

Atmel QTouch Library User Guide

Atmel QTouch Library User Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

In a 4 channel library, two keys on channel 0 and 3 are enabled.SNS and SNSK on Port B.Channel0 will B0B1 and Channel3 will be B6B7.The SNS and SNSK masks will beSNS_array[0]=0x41;SNS_array[1]=0x00;SNSK_array[0]=0x82;SNSK_array[1]=0x00;Integrating <strong>QTouch</strong> libraries for 2K Devices in your applicationIn order to Integrate <strong>QTouch</strong> libraries for 2K devices, the constants and symbol names listed inTable 1 below need to be defined in the user application. These can be defined in either thecompiler/assembler preprocessing definitions or in the touch_t_config_2kdegice.h file. Exampleprojects are provided for all the four devices supported.Refer 5.6.10.1 for directory structure of allthe files.Table 1: Constant and symbol name definitions required to use the <strong>QTouch</strong>acquisition method libraries for 2K device librariesSymbol / Constant name Range of values Comments_QTOUCH_This macro has to be defined in order touse <strong>QTouch</strong> libraries.SNS & SNSKRefer to library selection guide._SNS_SNSK_SAME_PORT_ Comment/uncomment define To be enabled if thesame port is used forSNSK and SNS pinsfor <strong>QTouch</strong>. If SNSKand SNS pins are ondifferent ports thenthis definition is notrequired.QT_NUM_CHANNELS1, 2 and 4 for 2K device libraries.QT_DELAY_CYCLES 1 to 255 Please refer to section5.6.8.QTOUCH_STUDIO_MASKSThis macro has to be defined in order touse <strong>QTouch</strong> libraries for 2K devices.SNS_array andSNSK_array masksvariablesare initializedunder this Macro inmain file.Refer section7.5.2.2The following files are to be added along with the touch library and user applicationbefore compilation:• For ATtiny 2K devices - touch_api_2kdevice.h, touch_qt_config_2kdevice.h andqt_asm_tiny_mega_2kdevice.S183

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

Saved successfully!

Ooh no, something went wrong!