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

Figure 46 GNU Example project usage with AVR32 StudioThe IAR Example Projects can be used with IAR Embedded Workbench for AVR32 v3.3. The IARExample project gives a Compilation error when building with IAR Embedded Workbench forAVR32 v3.3. The fix for this Compilation error is available in the ‘IAR_Build_Error_Fix.txt’provided in each of the IAR Example project.Figure 47 IAR Example project usage with IAR Embedded Workbench forAVR32QMatrix Example ProjectThe QMatrix method GNU and IAR Example projects can be found in the following path.\Device_Specific_Libraries\32bit_AVR\UC3L\example_projects\uc3l_gnu_qm_ek_example and\Device_Specific_Libraries\32bit_AVR\UC3L\example_projects\uc3l_iar_qm_ek_exampleThe QMatrix Example projects demonstrate the QMatrix operation on the UC3L Evaluation Kit(Rev 2). QMatrix SMP discharge mode hardware arrangement is used for the UC3L EvaluationKit with 6 X Lines and 2 Y Lines. Using the 12 Touch Channels (6x2), 6 Touch Sensors areformed that include a Rotor (that uses six Touch Channels) and 5 keys (each using one Touchchannel).The Example projects demonstrate the QMatrix measured data and Touch Status usage usingthe LED Demo application. The onboard LED0, LED1, LED2 and LED3 are set when the TouchPosition of the Rotor position varies from 0 to 255. By Touching the up key (^), left key (/||) and right key (>), the LED0, LED1, LED2 and LED3 can be individuallycleared. When the down key (v) is touched, it clears all LEDs.QTouch Group A Example ProjectThe QTouch Group A method GNU and IAR Example projects can be found in the following path.\Device_Specific_Libraries\32bit_AVR\UC3L\example_projects\uc3l_gnu_qt_grp_a_example and\Device_Specific_Libraries\32bit_AVR\UC3L\example_projects\uc3l_iar_qt_grp_a_example1368207K-AT42-09/11

The QTouch Group A Example projects demonstrate the QTouch method API usage with aRotor, Slider and two keys Sensor configuration.Autonomous QTouch Example ProjectThe Autonomous QTouch Sensor GNU and IAR Example projects can be found in the followingpath.\Device_Specific_Libraries\32bit_AVR\UC3L\example_projects\uc3l_gnu_autonomous_qt_example and\Device_Specific_Libraries\32bit_AVR\UC3L\example_projects\uc3l_iar_autonomous_qt_exampleThe Autonomous QTouch Example projects demonstrate the Autonomous QTouch Sensor APIusage. The Example projects also demonstrate wake up from Sleep mode using theAsynchronous Timer peripheral event.Note 1: The Example Projects also support relaying the Touch Sensor debug information to the“QTouch Studio – Touch Analyzer” PC Software. The QTouch Studio can also be used forsetting the Sensor and Global configuration parameters of the QTouch Library at run-time.The QTouch Studio can be downloaded from the following path.http://www.atmel.com/products/touchsoftware/qtouchsuite.asp?family_id=702The QDebug two-way debug protocol used by the Example project to communicate (transmit orreceive touch debug data) with the QTouch Studio can be found in the following installation path.\Device_Specific_Libraries\32bit_AVR\UC3L\qdebug• For the UC3L Evaluation kit (uc3l_xx_qm_ek_example Example project) to connect withthe QTouch Studio using the USB interface, the UC3B MCU on the UC3L Evaluation kitmust be Flashed with ISP and Program binaries. The procedure to flash the binaries isavailable in the readme note in the following path.\Device_Specific_Libraries\32bit_AVR\UC3L\example_projects\uc3l_gnu_qm_ek_example\ uc3b\readme.txt or\Device_Specific_Libraries\32bit_AVR\UC3L\example_projects\uc3l_iar_qm_ek_example\ uc3b\readme.txt• For the case of QTouch Group A and Autonomous QTouch Example projects, the‘QT600-USB Bridge’ board can be use to capture the QDebug debug data in the QTouchStudio.Note 2: In order to flash the generated elf binary file for GNU and IAR, the following commandcan be used from the Command Line.avr32program --part UC3L064 program -finternal@0x80000000 -e --run -R -cintuc3l_gnu_qm_ek_example.elfCode and Data Memory requirements for UC3LQMatrix method memory requirementThe Table below captures the Typical Code & Data Memory requirement for the QTouch Librarywhen QMatrix method is used standalone.In addition to the Data memory captured in the Table, the QMatrix method requires additionalData Memory that must be provided to the Touch Library for storing the Signals, References,Sensor information and Touch status. This data memory is provided by the Host Application to137

Figure 46 GNU Example project usage with AVR32 StudioThe IAR Example Projects can be used with IAR Embedded Workbench for AVR32 v3.3. The IARExample project gives a Compilation error when building with IAR Embedded Workbench forAVR32 v3.3. The fix for this Compilation error is available in the ‘IAR_Build_Error_Fix.txt’provided in each of the IAR Example project.Figure 47 IAR Example project usage with IAR Embedded Workbench forAVR32QMatrix Example ProjectThe QMatrix method GNU and IAR Example projects can be found in the following path.\Device_Specific_Libraries\32bit_AVR\UC3L\example_projects\uc3l_gnu_qm_ek_example and\Device_Specific_Libraries\32bit_AVR\UC3L\example_projects\uc3l_iar_qm_ek_exampleThe QMatrix Example projects demonstrate the QMatrix operation on the UC3L Evaluation Kit(Rev 2). QMatrix SMP discharge mode hardware arrangement is used for the UC3L EvaluationKit with 6 X Lines and 2 Y Lines. Using the 12 Touch Channels (6x2), 6 Touch Sensors areformed that include a Rotor (that uses six Touch Channels) and 5 keys (each using one Touchchannel).The Example projects demonstrate the QMatrix measured data and Touch Status usage usingthe LED Demo application. The onboard LED0, LED1, LED2 and LED3 are set when the TouchPosition of the Rotor position varies from 0 to 255. By Touching the up key (^), left key (/||) and right key (>), the LED0, LED1, LED2 and LED3 can be individuallycleared. When the down key (v) is touched, it clears all LEDs.<strong>QTouch</strong> Group A Example ProjectThe <strong>QTouch</strong> Group A method GNU and IAR Example projects can be found in the following path.\Device_Specific_Libraries\32bit_AVR\UC3L\example_projects\uc3l_gnu_qt_grp_a_example and\Device_Specific_Libraries\32bit_AVR\UC3L\example_projects\uc3l_iar_qt_grp_a_example1368207K-AT42-09/11

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

Saved successfully!

Ooh no, something went wrong!