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

X0,X1,X2,X3 are on PB0,PB1,PB2,PB3NY 1,2,3,4,7,8 Indicates the number of Y-Lines that the library needsfor supporting the listed number of channelsCFGkkrsNY=7 support only for ATXmega DevicesNY=3 support only for 32Bit Devicesk – library variant supports only keyskrs – library variant supports keys, Rotors and SlidersNRS 0,1,2,3,4,8 Maximum number of rotor sliders that the librarysupports.NRS=3 support only for 32Bit DevicesThe table below provides a few examples of the naming convention.Example Library nameConfiguration supportedlibavr51g2_8qm_4x_2y_krs_2rs.a • Compiler tool chain : GCC• Device : ATMega164P• 8 Channels• 4 X lines• 2 Y lines• Supports Keys, Rotors and Sliders ( krs )• 2 Rotors and Sliderslibavr25g1s1_16qm_8x_2y_k_0rs.r90 • Compiler tool chain : IAR• Device : ATTiny88• 16 Channels• 8 X lines• 2 Y lines• Supports only keys ( k)• 0 Rotors and SlidersQMatrix acquisition method library variantsDevices supported for QMatrix AcquisitionRefer to the Library_selection_guide.xls for the list of devices supported for QMatrix for thisrelease.PIN Configuration for QTouch LibrariesPin Configuration for QTouch Acquisition MethodPin configurability for QTouch acquisition method is provided for 8Bit AVR’s. QTouchacquisition method libraries can be used to configure SNS and SNSK on any pins of theport. But few rules should be followed while assigning the SNS and SNSK on particularpins. These rules are internal to the library. But QTouch Studio –Pin Configuration Wizardcan be used to assign SNS and SNSK on the pins and rules are internally taken care in theQTouch Studio Pin Configuration Wizard.By default, for 4 and 8 channel QTouch acquisition libraries, the channel numbering followsthe pin number of the port.To use the pin configurability, enable the macro _STATIC_PORT_PIN_CONF_ in theproject options or define the macro in the touch_qt_config.h file.To use the pin configurability feature, the SNS_array and SNSK_array masks are exportedfor the user, which needs to be initialized. These SNS_array and SNSK_array masks can888207K-AT42-09/11

Note:be taken from the QTouch Studio Pin Configuration Wizard and can be copied atappropriate place in the main.c file as explained in the example projects provided.QTOUCH_STUDIO_MASKS macro is used for providing pin configurability feature forQTouch Acquisition method libraries.In case the macro QTOUCH_STUDIO_MASKS enabled in project space,SNS_array and SNSK_array takes values that are supplied by the user in main.c files.This will reduce the code memory foot print of the library.In case the macro QTOUCH_STUDIO_MASKS is not enabled in project space,SNS_array and SNSK_array are calculated internal to the library according to theconfigured sensors.1. Port pin configurability is enabled for the following configurations,4- channel intraport configuration8-channel intraport configuration12-channel configuration16- channel configuration2. In case, the user wants to use the pin configurability for the other supportedconfigurations, (4- channel interport and 8-channel interport), the user has to enable themacro _STATIC_PORT_PIN_CONF_ in his project space.Rules for configurable SNS-SNSK Mask GenerationXXXSNS1=PORTAPORT PAIR 1 Ch2 Ch1 Ch0SNSK1=PORTBX X XXXXSNS2=PORTCPORT PAIR 2 Ch5 Ch4 Ch3SNSK2=PORTDX X X89

Note:be taken from the <strong>QTouch</strong> Studio Pin Configuration Wizard and can be copied atappropriate place in the main.c file as explained in the example projects provided.QTOUCH_STUDIO_MASKS macro is used for providing pin configurability feature for<strong>QTouch</strong> Acquisition method libraries.In case the macro QTOUCH_STUDIO_MASKS enabled in project space,SNS_array and SNSK_array takes values that are supplied by the user in main.c files.This will reduce the code memory foot print of the library.In case the macro QTOUCH_STUDIO_MASKS is not enabled in project space,SNS_array and SNSK_array are calculated internal to the library according to theconfigured sensors.1. Port pin configurability is enabled for the following configurations,4- channel intraport configuration8-channel intraport configuration12-channel configuration16- channel configuration2. In case, the user wants to use the pin configurability for the other supportedconfigurations, (4- channel interport and 8-channel interport), the user has to enable themacro _STATIC_PORT_PIN_CONF_ in his project space.Rules for configurable SNS-SNSK Mask GenerationXXXSNS1=PORTAPORT PAIR 1 Ch2 Ch1 Ch0SNSK1=PORTBX X XXXXSNS2=PORTCPORT PAIR 2 Ch5 Ch4 Ch3SNSK2=PORTDX X X89

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

Saved successfully!

Ooh no, something went wrong!