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.

2. QTOUCH_STUDIO_MASKS needs to be enabled if using pin configurability .If not enabledthen, static pin mapping will work same as in the earlier versions of the librariesPin Configuration for QMatrix Acquisition MethodThe QMatrix acquisition method libraries needs to be used after configuring X and YA andYB lines on IO pins of the port as described in the configuration rules described in thesection below. The <strong>QTouch</strong> Studio Pin Configurator Wizard can be used to assign X, YA,YB, SMP lines on the pins and rules are internally taken care in the Qtouch Studio PinConfigurator Wizard.The snippets can be taken from the <strong>QTouch</strong> Studio Pin Configurator Wizard and copied toappropriate places in the main.c and touch_qm_config.h files in the example projectsprovided.Configuration Rules:1. The X lines can be configured on different ports up to a maximum of 3 portsEx: NUM_X_PORTS = 3 (maximum value supported). However the possible valuesare NUM_X_PORTS = 1 or NUM_X_PORTS = 2 or NUM_X_PORTS = 32. The X lines can be configured on the three different ports.3. The X lines can be configured on any pins of the ports selected aboveEx: X0 on PB2, X1 on PD5, X2 on PE0, X3 on PD1( when NUM_X_LINES= 4),Provided that these pins do not conflict with the other pins for touch sensing or with thehost application usage.Note:4. The Y lines can be configured on the any of the pins of the ports selectedEx: Any pins on the PORT_YA and PORT_YB selected.Suppose, PORT_YA is D, and PORT_YB is CSince, pin 5 and pin 1 PORTD are already used for X lines(X1, X3), the user can selectany of the remaining pins for Y0A lines. Suppose that Y0 is on pin2 and Y1 is on pin6Hence, Y0A – PD2, Y0B – PC2, Y1A – PD6, Y1B – PC6,5. Both YA and YB lines can share the same port. And the YA and YB need not be on samecorresponding pins of the ports.6. The PORT_YB is fixed for each device and should be same as the PORT on which theADC input pins are available.7. The SMP pin can be configured on any of the IO PORT pins available.Ex:PORT_SMP = DSMP_PIN = 7 as this pin is not being used by touch sensing.‣ Please take care that the touch sensing pins do not conflict with other IO pins used by hostapplication1028207K-AT42-09/11

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

Saved successfully!

Ooh no, something went wrong!