SHARED_YAYB
Possible values:
0 or 1.
#define SHARED_YAYB 1 in case YA and
YB are on same port else 0.
Once you have selected the right library variant and configuration parameters for the application,
follow the steps outlined below to integrate the library variant in your application.
4) Fill in the arrays
x_line_info_t
x_line_info[NUM_X_LINES]
y_line_info_t
ya_line_info[NUM_Y_LINES] and y_line_info_t yb_line_info[NUM_Y_LINES] using the
pin configuration wizard provided by the QTouch Studio.
5) Copy the library variant that was selected in step one to your project’s working directory
or update your project to point to the library selected.
Include the “touch_api.h” header file and assembler source file from the QTouch library in
your application. The touch_api.h can be found in the release package at C:\Program
Files\Atmel\Atmel_QTouch_Libraries_5.x Generic_QTouch_Libraries
\AVR_Tiny_Mega_XMega\QMatrix\common_files. The assembler files mentioned below
could be found at the location C:\Program Files\Atmel\Atmel_QTouch_Libraries_5.x
Generic_QTouch_Libraries \AVR_Tiny_Mega_XMega\QMatrix\common_ files
a. qm_asm_tiny_mega.S in case of ATtiny and ATmega devices.
b. qm_asm_xmega.S in case of ATxmega devices.
c.
qm_asm_m8535_m16.S in case of ATmega8535 and ATmega16 devices.
6) Initialize/create and use the touch api’s in your application
a. 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,
b. configure the global configuration parameters valid for all the sensors in the
library
c.
Provide timing for the QTouch libraries to operate. i,e. the QTouch libraries do
not use any timer resources of the microcontroller. The Host application has to
provide the required timing and also call the API’s at the appropriate intervals to
perform touch sense detect operations
7) General application notes
a. The clock, host application and other peripherals needed by the host application
needs to be initialized.
b. The QMatrix acquisition method libraries internally use TIMER1 for their
operation.
c.
Ensure that there are no conflicts between the resources used by the touch
library and the host application
d. Ensure that the stack size is adjusted to factor in the stack depth required for the
operation of the touch libraries.
5.6.10.3.1.1 Example
The example below will explain in detail the steps to follow for library selection.
Criteria
Microcontroller
Selection
ATTiny88
Notes
List of supported devices can be
found
at
Library_Selection_Guide.xls
Number
of
6
number channels available for a
channels
required
Tiny88
is
listed
in
for the application
Library_Selection_Guide.xls
Number of X lines
58
Based on the number of channels,
Since 3 X- lines (6 channels ) are
8207L-AT42-05/12
相关PDF资料
ATU6-P305T-R CABLE CAT6 FULL-BOX 305M GRAY
ATUP-P305T-R CABLE CAT5E PULL-BOX 305M GRAY
ATUP-V305T-R CABLE CAT5E REEL 305M GRAY
AWG28-05/F-1/300-R CABLE 5 COND MULTI 300' RIBBON
AWG28-05/G-1/300-R CABLE 5 COND GRAY 300' RIBBON
AWG28-09/F-1/300-R CABLE 9 COND MULTI 300' RIBBON
AWG28-09/G-1/300-R CABLE 9 COND GRAY 300' RIBBON
AWG28-25/F-1/300-R CABLE 25 COND MULTI 300' RIBBON
相关代理商/技术参数
ATQT600IB 功能描述:界面开发工具 ATQT600IB Interface Brd RoHS:否 制造商:Bourns 产品:Evaluation Boards 类型:RS-485 工具用于评估:ADM3485E 接口类型:RS-485 工作电源电压:3.3 V
ATQT6-XPRO 功能描述:Xplained Pro - Extension Board 制造商:atmel 系列:- 零件状态:有效 配件类型:扩展板 配套使用产品/相关产品:Xplained Pro 标准包装:1
ATR 1078 功能描述:TOOL INSERTION TWEEZER 20 GA 制造商:astro tool corp 系列:* 零件状态:有效 标准包装:1
ATR 1079 功能描述:TWEEZER INSERTION 20 GA 制造商:astro tool corp 系列:* 零件状态:有效 标准包装:1
ATR 1080 制造商:Astro Tool Corp 功能描述:TOOL INSERTION 20 GA
ATR 1080-135 功能描述:INSERTION TOOL 20 GA ANGLED TIP 制造商:astro tool corp 系列:* 零件状态:有效 标准包装:1
ATR 1080-S 功能描述:INSERTION TOOL STRAIGHT 制造商:astro tool corp 系列:* 零件状态:有效 标准包装:1
ATR 1105 功能描述:TOOL INSERTION TWEEZER 16 GA 制造商:astro tool corp 系列:* 零件状态:有效 标准包装:1