11.07.2015 Views

Atmel QTouch Library User Guide

Atmel QTouch Library User Guide

Atmel QTouch Library User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

• The channel number is derived from the position of the pins used for SNS and SNSKlines for any channel.ochannel number = floor( [SNS(or SNSK) pin number] / 2 )For e.g., pins 4 and 5 are connected to a SNS/SNSK pair and the channel numberassociated with the SNS/SNSK pin is 2.Rules For Configuring SNS and SNSK masks for 2K DevicesThe libraries internally need SNS_array and SNSK_array masks. These masks need to bedefined under Macro QTOUCH_STUDIO_MASKS as per the following rules given below:1. In case of Interport, SNS_array[0] and SNSK_array[0] mask is used for configuring theChannel0 and Channel2.And SNS_array[1] and SNSK_array[1] mask is used for configuring theChannel1 and Channel3.And In case of Intraport SNS_array[0] and SNSK-array[0] are used forall the four channels configured based on enabled bits in SNS_array[0] and SNSK-array[0].2. The channel numbers are allocated based on enabled SNS pins starting from LSBBit.In case of Interport, Keys on adjacent channels should be placed on different masks. Channel0and Channel1 should be on different SNS/SNSK masks ie channel0 onSNS_array[0]/SNSK_array[0] and channel1 on SNS_array[1]/ SNSK_array[1].But in case of Intraport, Keys on adjacent channels should be placed on same masks. Channel0and Channel2 should be on same mask ie SNS_array[0]/SNSK_array[0] and Channel1 andChannel3 on SNS_array[1]/ SNSK_array[1].Configuring SNS and SNSK masks in case of Interport:1. Enable the Bit0 in SNS_array[0] and Bit0 in SNSK_array[0] mask when enabling Channel0.2. Enable the Bit1 in SNS_array[1] and Bit1 in SNSK_array[1] mask when enabling Channel1.3. Enable the Bit2 in SNS_array[0] and Bit2 in SNSK_array[0] mask when enabling Channel2.4. Enable the Bit3 in SNS_array[1] and Bit3 in SNSK_array[1] mask when enabling Channel3.Example 1:In a 4 channel library, two keys on channel 0 and 3 are enabled.SNS on Port A and SNSK onPort B .Channel0 will A0B0 and Channel3 will be A3B3.The SNS and SNSK masks will beSNS_array[0]=0x01;SNS_array[1]=0x08;SNSK_array[0]=0x01;SNSK_array[1]=0x08;Configuring SNS and SNSK masks in case of Intraport:1. Enable the Bit0 in SNS_array[0] and Bit1 in SNSK_array[0] mask when enabling Channel0.2. Enable the Bit2 in SNS_array[0] and Bit3 in SNSK_array[0] mask when enabling Channel1.3. Enable the Bit4 in SNS_array[0] and Bit5 in SNSK_array[0] mask when enabling Channel2.4. Enable the Bit6 in SNS_array[0] and Bit7 in SNSK_array[0] mask when enabling Channel3.Example 1:1828207K-AT42-09/11

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

Saved successfully!

Ooh no, something went wrong!