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.

};FILL_OUT_YB_LINE_INFO( 7u ),FILL_OUT_YB_LINE_INFO( 22u ),Yb lines are one of the inputs of the Analog Comparators.2) Copy the library variant that was selected in step 1 to your project’s working directory orupdate your project to point to the library selected.Include the “touch_api.h” header file and assembler source file from the <strong>QTouch</strong> library inyour application. The touch_api.h can be found in the release package at C:\ProgramFiles\<strong>Atmel</strong>\<strong>Atmel</strong>_<strong>QTouch</strong>_Libraries_4.x\Generic_<strong>QTouch</strong>_Libraries\include. Theassembler files mentioned below could be found at the location C:\ProgramFiles\<strong>Atmel</strong>\<strong>Atmel</strong>_<strong>QTouch</strong>_Libraries_4.x\Generic_<strong>QTouch</strong>_Libraries\32bit_AVR\UC3\QMatrix\common_filese. qm_asm_uc3c_gcc.x in case of GCC compilerf. qm_asm_uc3c_iar.s82 in case of IAR compiler.3) Initialize/create and use the touch api’s in your applicationd. In your application, create, initialize and configure the sensors.a. The APIs of interest are qt_enable_key/rotor/slider().see sections 5.6.5.2,5.6.5.3 and 5.6.5.4e. configure the global configuration parameters valid for all the sensors in thelibraryf. Provide timing for the <strong>QTouch</strong> libraries to operate. i,e. the <strong>QTouch</strong> libraries donot use any timer resources of the microcontroller. The Host application has toprovide the required timing and also call the API’s at the appropriate intervals toperform touch sense detect operations4) General application notesg. The clock, host application and other peripherals needed by the host applicationneeds to be initialized.h. The QMatrix acquisition method libraries for 32 Bit devices internally use TIMER0with channel0 for their operation.i. Ensure that there are no conflicts between the resources used by the touchlibrary and the host applicationResources used by QMatrix acquisition method librariesfor 32 Bit deviceDevices supported by 32 Bit Qmatrix Acquisition libraries are:1. AT32UC3C0512The following additional resources are used by the QMatrix acquisition method libraries.• Four Analog Comparator• One internal Timer ( Timer0 with channel0 )• Two Analog Comparator Interface ACIFA0/1.• Event System Channel 16 is used.The device has two Analog comparator interfaces ACIFA0 and ACIFA1 .Each interfaceprovides the flexibility to configure two analog comparators ACA and ACB comparators..UC3C65

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

Saved successfully!

Ooh no, something went wrong!