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

Channel NumberingChannel numbering when using QTouch acquisition methodQTouch acquisition method libraries require 2 GPIO pins per channel. QTouch libraries can beconfigured to use 1 to 16 channels requiring 2 to 32 pins respectively. There are two optionsprovided for connecting the SNS and SNSK pins.1. The SNS and SNSK pins are connected to separate ports. ( i.e. Interport)2. The SNS and SNSK pins are connected to the same port. ( i.e. Intraport)The following list provides a look at various combinations supported by various 8bit AVRlibraries released for each device.When pin configurability is not used:• 4-channel library – supports up to 4 channels using 4 consecutive pins on different SNSand SNSK ports (or) supports up to 4 channels using 8 consecutive pins on the sameport used for both SNS and SNSK lines. This library requires 1 or 2 ports.• 8-channel library – supports up to 8 channels using 8 consecutive pins on different SNSand SNSK ports (or) supports up to 8 channels using 16 pins spread over two ports (SNSand SNSK are on alternate pins) with SNS1 and SNSK1 pins on the first port and SNS2and SNSK2 pins on the second port. This library requires 2 ports.• 12-channel library (available only for 8bit AVR devices) – supports up to 12 channels outof which, 8 channels with 8 consecutive pins for SNS1 and SNSK1 are available ondifferent ports and the other 4 channels with 8 consecutive pins available on the sameport for both SNS and SNSK lines. This library requires a total of 3 ports.• 16-channel library – supports up to 16 channels out of which, 8 channels with 8consecutive pins for SNS1 and SNSK1 are available on different ports and the other 8channels with 8 consecutive pins are available on a different pair of SNS2 and SNSK2ports. This library requires a total of 4 ports.When pin configurability is used:• 4-channel library – supports up to 4 channels using any 4 pins on different SNS andSNSK ports (or) supports up to 4 channels using pins on the same port used for bothSNS and SNSK lines. This library requires 1 or 2 ports.• 8-channel library – supports up to 8 channels using 8 pins on different SNS and SNSKports (or) supports up to 8 channels using pins spread over two ports (SNS and SNSKare on alternate pins) with SNS1 and SNSK1 pins on the first port and SNS2 and SNSK2pins on the second port. This library requires 2 ports.• 12-channel library (available only for 8bit AVR devices) – supports up to 12 channels outof which, 8 channels with 8 pins for SNS1 and SNSK1 are available on different ports andthe other 4 channels with 8 pins available on the same port for both SNS and SNSKlines. This library requires a total of 3 ports.• 16-channel library – supports up to 16 channels out of which, 8 channels with 8 pins forSNS1 and SNSK1 are available on different ports and the other 8 channels with 8 pinsare available on a different pair of SNS2 and SNSK2 ports. This library requires a total of4 ports.Note:‣ When a library supports 4 channels using 8 consecutive pins on the same port, the SNS andSNSK pins are allocated alternately. This is valid for all the libraries mentioned above.348207K-AT42-09/11

‣ Usage of intraport configuration requires more code memory than the interport configuration.The values mentioned in the Library_selection_Guide.xls are for interport configurations. Thememory consumption for intra-port will be higher to the values mentioned in theLibrary_selection_Guide.xls‣ The configurations on pin configurability should be used in conjunction with the rules forassigning the pins that are described in section 5.8.2For UC3 and ATSAM libraries, an n- channel library supports up to n channels using nconsecutive pins on different SNS and SNSK ports (or) supports up to n/2 channels using (n)consecutive pins on the same port used for both SNS and SNSK lines. This library requires 1 or 2UC3 or ATSAM ports. In addition to this, for the ATSAM libraries the pins can be configured on 3ports based on the configuration selected.NOTE:Some of the devices in UC3 family has ports having more than 32 pins or less than 32pins.In those devices, the mapping is given as below:GPIO Port0 -> AGPIO Port1 -> BGPIO Port2 -> CGPIO Port3 -> XExample SNS=A and SNSK=X, So channel 0 will be (SNS0 = GPIO0_Pin0 and SNSK0 =GPIO3_Pin0 ).Similarly,Example SNS=X and SNSK=X, So channel 0 will be (SNS0 = GPIO3_Pin0 and SNSK0= GPIO3_Pin1 ).35

Channel NumberingChannel numbering when using <strong>QTouch</strong> acquisition method<strong>QTouch</strong> acquisition method libraries require 2 GPIO pins per channel. <strong>QTouch</strong> libraries can beconfigured to use 1 to 16 channels requiring 2 to 32 pins respectively. There are two optionsprovided for connecting the SNS and SNSK pins.1. The SNS and SNSK pins are connected to separate ports. ( i.e. Interport)2. The SNS and SNSK pins are connected to the same port. ( i.e. Intraport)The following list provides a look at various combinations supported by various 8bit AVRlibraries released for each device.When pin configurability is not used:• 4-channel library – supports up to 4 channels using 4 consecutive pins on different SNSand SNSK ports (or) supports up to 4 channels using 8 consecutive pins on the sameport used for both SNS and SNSK lines. This library requires 1 or 2 ports.• 8-channel library – supports up to 8 channels using 8 consecutive pins on different SNSand SNSK ports (or) supports up to 8 channels using 16 pins spread over two ports (SNSand SNSK are on alternate pins) with SNS1 and SNSK1 pins on the first port and SNS2and SNSK2 pins on the second port. This library requires 2 ports.• 12-channel library (available only for 8bit AVR devices) – supports up to 12 channels outof which, 8 channels with 8 consecutive pins for SNS1 and SNSK1 are available ondifferent ports and the other 4 channels with 8 consecutive pins available on the sameport for both SNS and SNSK lines. This library requires a total of 3 ports.• 16-channel library – supports up to 16 channels out of which, 8 channels with 8consecutive pins for SNS1 and SNSK1 are available on different ports and the other 8channels with 8 consecutive pins are available on a different pair of SNS2 and SNSK2ports. This library requires a total of 4 ports.When pin configurability is used:• 4-channel library – supports up to 4 channels using any 4 pins on different SNS andSNSK ports (or) supports up to 4 channels using pins on the same port used for bothSNS and SNSK lines. This library requires 1 or 2 ports.• 8-channel library – supports up to 8 channels using 8 pins on different SNS and SNSKports (or) supports up to 8 channels using pins spread over two ports (SNS and SNSKare on alternate pins) with SNS1 and SNSK1 pins on the first port and SNS2 and SNSK2pins on the second port. This library requires 2 ports.• 12-channel library (available only for 8bit AVR devices) – supports up to 12 channels outof which, 8 channels with 8 pins for SNS1 and SNSK1 are available on different ports andthe other 4 channels with 8 pins available on the same port for both SNS and SNSKlines. This library requires a total of 3 ports.• 16-channel library – supports up to 16 channels out of which, 8 channels with 8 pins forSNS1 and SNSK1 are available on different ports and the other 8 channels with 8 pinsare available on a different pair of SNS2 and SNSK2 ports. This library requires a total of4 ports.Note:‣ When a library supports 4 channels using 8 consecutive pins on the same port, the SNS andSNSK pins are allocated alternately. This is valid for all the libraries mentioned above.348207K-AT42-09/11

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

Saved successfully!

Ooh no, something went wrong!